OLIMEX AT91SAM9260 NAND Problem

We have purchased SAM9-L9260 board and we are able to run example programs given . During the operation , somehow Linux on the Nand Flash got corrupted . We tried to restore the factory default configuration of the board as per the procedure explained in “SAM9_L9260 quickstart guide.txt” on supplied CD-ROM. Nand Flash is getting programmed with some bad blocks. Pls see the Log file pasted below for the details.

The Linux on the Nand Flash is not booting , we are getting following

message in the hyper terminal …:

>AT91Bootstrap loading from 0x8400…

U-Boot 1.2.0 (Oct 11 2007 - D

After this , it is hanging.

Log file we are getting is here…:

I- Waiting …

connection : \usb\ARM0

board : AT91SAM9260-EK

target(handle) : 17992656

read chip ID : 0x019803A1 at addr: 0xFFFFF240

-I- Found processor : AT91SAM9260 (0x019803A0)

script file : AT91SAM9260_demo_linux_NandFlash.tcl

u-boot file: u-boot-env-nf.bin

diskSize: 0x00400000

-I- === Performs sanity checks===

-I- === Initialize the NAND access ===

-I- Enable the address range of CS3 in HMATRIX user interface

-I- Configure SMC CS3

-I- Clock PIOC

-I- Configure Ready/Busy signal

-I- Configure pull-up

-I- Enable NandFlash

-I- ReadId

-I- NandFlash ID : 0xecdc

-I- NandFlash Samsung 8 bits 512MB

-I- Configure ECC

-I- === Erase all the NAND flash blocs and test the erasing ===

-I- Erasing whole NandFlash … Please Wait…

-I- NandFlash erased

-I- === Load the bootstrap: nandflash_at91sam9260ek in the first sector ===

-I- Send File ./nandflash_at91sam9260ek.bin at address 0x00000000

-I- NANDFLASH::sendFile

-I- File size = 3940 byte(s)

-I- Blocks 0 to 1 are programmed

-I- Number of bad blocks: 0

-I- === Load the u-boot in the next sectors ===

-I- Send File ./u-boot-env-nf.bin at address 0x00020000

-I- NANDFLASH::sendFile

-I- File size = 168780 byte(s)

-I- Blocks 1 to 3 are programmed

-I- Number of bad blocks: 0

-I- === Load the u-boot environment variables ===

-I- Send File tmp.bin at address 0x00060000

-I- NANDFLASH::sendFile

-I- File size = 131072 byte(s)

-I- Blocks 3 to 4 are programmed

-I- Number of bad blocks: 0

-I- === Load the Kernel image ===

-I- Send File uimage_write at address 0x00100000

-I- NANDFLASH::sendFile

-I- File size = 1714216 byte(s)

-I- Blocks 8 to 22 are programmed

-I- Number of bad blocks: 0

-I- === Load the linux file system ===

-I- Send File armv5l-uclibc-sam9260 at address 0x00400000

-I- NANDFLASH::sendFile

-I- File size = 4194304 byte(s)

-I- Blocks 32 to 64 are programmed

-I- Number of bad blocks: 0

Please any one look into the problem and provide a solution at the earliest. We are expecting some solution for the problem.

thanks in advance !

I´m experiencing the same problem with my board, the SAM9-L9260.

It´s a bit weird, sometimes after resetting the nand-flash it´ll work but sometimes it hangs at the same place as it does for you.

Sometimes I get Bad CRC when loading the kernel.

If I use GUI-version of sam-ba and manually send the files to the nand-flash i t never fails to boot.

But I always get a kernel panic error after reset. “No init found” but I´m guessing that this has something to do with the rootfs beeing screwed up and I´ll post another thread about that issue.

The fact is the the root system has been cleared. You have to boot with a root fs on a usb key and change bootargs parameters (setenv bootargs root=/dev/sda1 console=ttyS0,115200 rootdelay=10 mem=64M). Then you will have to reflash the rootjffs2.img