Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: AT91SAM9261-EK Linux Demo (NAND Flash) - Basic Question
PostPosted: Wed Dec 10, 2008 10:56 pm 
Offline

Joined: Wed Sep 24, 2008 8:59 pm
Posts: 4
Hello, this is probably a very basic question however I havn't been able to figure it out. I'm trying to run the "linux4sam-angstrom-at91sam9261ek Rev1.3" NAND Flash example but been unable. I can run the DataFlash fine doing the following:

1. J4 Open
2. Remove J21
3. Reset the Board
4. Close J21 (Pins 1-2)
5. Run at91sam9261ek_demo_linux_dataflash.bat
6. Power Cycle the Board

It then boots from DataFlash and everything works fine. However, I would like to try the NAND Flash example.

a) I have tried the above 6 steps with replacing the "at91sam9261ek_demo_linux_dataflash.bat" with "at91sam9261ek_demo_linux_nandflash.bat" however the powercycle only displays a "RomBOOT" in the hyperterminal.

Below is the logfile.log after running the "at91sam9261ek_demo_linux_nandflash.bat" (I added "DATAFLASH::SelectDataflash AT91C_SPI0_CS0" and "DATAFLASH::EraseAllDataFlash" at the begining to clean the DataFlash, but have tried the origional. The log looks 100% fine to me.
Code:
-I- Waiting ...connection : \usb\ARM0
board : AT91SAM9261-EK
target(handle) : 17985160
read chip ID : 0x00000000 at addr: 0xFFFFEE40
read chip ID : 0x019703A0 at addr: 0xFFFFF240
-I- Found processor : AT91SAM9261 (0x019703A0)
-I- Loading applet isp-extram-at91sam9261.bin at address 0x301000
-I- Memory Size : 0x4000000 bytes
-I- Buffer address : 0x301808
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- External RAM initialized
script file : at91sam9261ek_demo_linux_nandflash.tcl
-I- === Initialize the DataFlash access and Erase===
-I- DATAFLASH::Init 0 (trace level : 3)
-I- Loading applet isp-dataflash-at91sam9261.bin at address 0x20000000
-I- Memory Size : 0x840000 bytes
-I- Buffer address : 0x20002810
-I- Buffer size: 0x80E80 bytes
-I- Applet initialization done
-I-    Erasing: 0x80E80 bytes at address 0x0
-I-    Erasing: 0x80E80 bytes at address 0x80E80
-I-    Erasing: 0x80E80 bytes at address 0x101D00
-I-    Erasing: 0x80E80 bytes at address 0x182B80
-I-    Erasing: 0x80E80 bytes at address 0x203A00
-I-    Erasing: 0x80E80 bytes at address 0x284880
-I-    Erasing: 0x80E80 bytes at address 0x305700
-I-    Erasing: 0x80E80 bytes at address 0x386580
-I-    Erasing: 0x80E80 bytes at address 0x407400
-I-    Erasing: 0x80E80 bytes at address 0x488280
-I-    Erasing: 0x80E80 bytes at address 0x509100
-I-    Erasing: 0x80E80 bytes at address 0x589F80
-I-    Erasing: 0x80E80 bytes at address 0x60AE00
-I-    Erasing: 0x80E80 bytes at address 0x68BC80
-I-    Erasing: 0x80E80 bytes at address 0x70CB00
-I-    Erasing: 0x80E80 bytes at address 0x78D980
-I-    Erasing: 0x80E80 bytes at address 0x80E800
-I- === Initialize the NAND access and Erase===
-I- NANDFLASH::Init (trace level : 3)
-I- Loading applet isp-nandflash-at91sam9261.bin at address 0x20000000
-I- Memory Size : 0x10000000 bytes
-I- Buffer address : 0x200047FC
-I- Buffer size: 0x20000 bytes
-I- Applet initialization done
-I- GENERIC::EraseAll
-I- === Load the bootstrap: nandflash_at91sam9-ek in the first sector ===
GENERIC::SendFile nandflash_at91sam9261ek.bin at address 0x0
-I- File size : 0x1244 byte(s)
-I-    Writing: 0x1244 bytes at 0x0 (buffer addr : 0x200047FC)
-I-    0x1244 bytes written by applet
-I- === Load the u-boot in the next sectors ===
-I- Send File u-boot-1.1.5_atmel_1.7-at91sam9261ek-nandflash.bin at address 0x00020000
GENERIC::SendFile u-boot-1.1.5_atmel_1.7-at91sam9261ek-nandflash.bin at address 0x20000
-I- File size : 0x2CEB4 byte(s)
-I-    Writing: 0x20000 bytes at 0x20000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0xCEB4 bytes at 0x40000 (buffer addr : 0x200047FC)
-I-    0xCEB4 bytes written by applet
-I- === Load the u-boot environment variables ===
-I- Send File ubootEnvtFileNandFlash.bin at address 0x00060000
GENERIC::SendFile ubootEnvtFileNandFlash.bin at address 0x60000
-I- File size : 0x20000 byte(s)
-I-    Writing: 0x20000 bytes at 0x60000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I- === Load the Kernel image ===
-I- Send File linux-2.6.24.at91.2-at91sam9261ek.bin at address 0x00200000
GENERIC::SendFile linux-2.6.24.at91.2-at91sam9261ek.bin at address 0x200000
-I- File size : 0x16A1B4 byte(s)
-I-    Writing: 0x20000 bytes at 0x200000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x220000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x240000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x260000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x280000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x2A0000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x2C0000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x2E0000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x300000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x320000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x340000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0xA1B4 bytes at 0x360000 (buffer addr : 0x200047FC)
-I-    0xA1B4 bytes written by applet
-I- === Load the linux file system ===
-I- Send File Angstrom-x11-image-demo-glibc-at91.rootfs.jffs2 at address 0x00400000
GENERIC::SendFile Angstrom-x11-image-demo-glibc-at91.rootfs.jffs2 at address 0x400000
-I- File size : 0x1980000 byte(s)
-I-    Writing: 0x20000 bytes at 0x400000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x420000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x440000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
[[[SNIP]]]
-I-    Writing: 0x20000 bytes at 0x1D00000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x1D20000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x1D40000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet
-I-    Writing: 0x20000 bytes at 0x1D60000 (buffer addr : 0x200047FC)
-I-    0x20000 bytes written by applet


If someone has the time to give me a quick "1. 2. 3." step thing to boot the NAND Flash Example that'd be great? I believe the Jumpers are all in the correct places (they work for DataFlash, and to my understanding, NAND Flash should boot after it doesn't find valid code in DataFlash), however, if there is something special I have to do with the Jumpers (like on the AT91SAM9260 board) it'd be great if someone could mention it to me. Thank you.


Last edited by NBeing on Tue Dec 16, 2008 12:41 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: AT91SAM9261-EK Linux Demo (NAND Flash) - Basic Question
PostPosted: Sat Dec 13, 2008 3:57 am 
Offline

Joined: Wed Sep 24, 2008 8:59 pm
Posts: 4
EDIT: My mistake, I should of read the errata on the datasheet more closely. It states that NANDFlash boot isn't functional with my revision of the at91sam9261.

Thanks, NB


------------------------------------------------------
----------------------OLD----------------------------
------------------------------------------------------
An update; I read a few of the older posts here (~1 year) and they (viewtopic.php?p=8606) seem to say that the AT91SAM9261 doesn't support NAND flash booting? Is this true? The references provided don't match up with what is being said.

Looking at the Preliminary Summary for the AT91SAM9261 it says "8.1.2.1 BMS = 1, Boot on Embedded ROM; DataFlash Boot > NANDFlash Boot > SAM-BA Boot Loader". The Preliminary also states "The NANDFlash Boot program searches for a valid application in the NANDFlash memory."

I do indeed have BMS=1 (Open), J21 Jumper Removed > Reset > J21 Jumper Placed on Pin 1 & 2, Flashing.
By looking at the log, it looks like the command "NANDFLASH::sendBootFile nandflash_at91sam9261ek.bin" is run successfully; Is the "buffer addr : 0x200047FC" the problem?

-----LogFile-----
[SNIP]
-I- === Load the bootstrap: nandflash_at91sam9-ek in the first sector ===
GENERIC::SendFile nandflash_at91sam9261ek.bin at address 0x0
-I- File size : 0x1244 byte(s)
-I- Writing: 0x1244 bytes at 0x0 (buffer addr : 0x200047FC)
-I- 0x1244 bytes written by applet
[SNIP]

However with a reset, only the "ROMBoot" message is shown in the HyperTerminal for me. This means it doesn't find a valid program in DataFlash, then doesn't find a valid program in NANDFlash. Is there something special I have to do after sending the nandflash_at91sam9261ek.bin file via the SAM-BA's NANDFlash Send Bootfile Script?

I've also tried buildroots AT91Bootstraps (at91sam9261ek-nandflashboot-2.3.4.bin), and it results in the same as the 1st.

Would anyone have any possible suggestions, or confirm that NAND Flash Boot isn't supported? Thanks
------------------------------------------------------


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: