Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
February 09, 2012, 01:28:20 PM
News: Glomation introduced new wireless ready low cost GESBC-9260S
Pages: [1]
Topic Tools  
Read April 21, 2010, 04:24:40 AM #0
faumarz

GESBC-9260S Hardware Watchdog

I want to activate the AT91 hardware watchdog on the GESBC-9260S board (32MB or 64MB RAM).

I've seen in the following thread:
http://glomation.net/smf/index.php/topic,91.0.html
that modified u-boot and bootstrap are needed, and a kernel configuration.
But the files referred in the thread above are called "u-boot64MB.bin" and "u-boot128MB.bin", so I suppose that they are made for the GESBC-9260 board (64MB/128MB options available) and not for the GESBC-9260S (32MB/64MB options available).

Can I use the file "u-boot64MB.bin" and "nandflash_at91sam9260ek64MB.bin" in a GESBC-9260S board with 32MB or 64MB RAM?

Does Glomation provide a set of those files also specifically for GESBC-9260S?

By the way: in case I'd need to modify myself the u-boot and bootstrap in order to activate the watchdog (or for some other reason), does Glomation provide any GESBC-9260S specific board patch for ATMEL bootstrap source code and U-Boot source code?
Or is it enough to use the AT91SAM9260-EK general configuration?


Thank you,

Fausto
 
Read April 23, 2010, 08:51:08 AM #1
admin

Re: GESBC-9260S Hardware Watchdog

The 9260 bootstrap code can not be used on the 9260S.  The SDRAM setup function must be modified to use 16 bit data bus in the at91sam9260ek.c file,

   sdram_init(   AT91C_SDRAMC_NC_9  |
            AT91C_SDRAMC_NR_13 |
            AT91C_SDRAMC_CAS_2 |
            AT91C_SDRAMC_NB_4_BANKS |
            AT91C_SDRAMC_DBW_16_BITS |
            AT91C_SDRAMC_TWR_2 |
            AT91C_SDRAMC_TRC_7 |
            AT91C_SDRAMC_TRP_2 |
            AT91C_SDRAMC_TRCD_2 |
            AT91C_SDRAMC_TRAS_5 |
            AT91C_SDRAMC_TXSR_8,      /* Control Register */
            (MASTER_CLOCK * 7)/1000000,   /* Refresh Timer Register */
            AT91C_SDRAMC_MD_SDRAM);      /* SDRAM (no low power)   */


The same factory installed U-boot can be used on both 32MB and 64MB version but it will always report 32MB at U-boot start up.  The mem=XXMB can be added to the U-boot bootargs environment variable to pass the correct memory size to the kernel.  The memory size if a fixed define statement in U-boot.  It can be modified to match the board if the false boot up display is undesirable.


 
Read April 26, 2010, 03:21:11 AM #2
faumarz

Re: GESBC-9260S Hardware Watchdog

So, in order to activate the hardware watchdog on the GESBC-9260S board I have to:

1) Modify the bootstrap code to use the watchdog and 16 bit data bus, and compile it
2) Modify the u-boot code (configured for AT91SAM9260-EK) to use the watchdog, and compile it (factory installed U-Boot version is 1.3.3, so I will use the same)
3) Modify the kernel configuration to use the watchdog
4) Load the new bootstrap and u-boot with SAM-BA
5) Modify the u-boot environment variable to use the watchdog
6) Load the new kernel (with mem=XXMB option if on 64MB board)

It's right?
 
Read April 28, 2010, 04:01:37 PM #3
admin

Re: GESBC-9260S Hardware Watchdog

#5 is not needed.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re