Hi,

I am trying to write my linux kernel into NAND flash using the procedure
outlined in spraaa0.
Everytime I try, I have to go back to the JTAG station and start over.
Something must be wrong in the procedure.

Here is where I am :
1) I have installed UBL in NAND (block 1) using JTAG
2) I have installed U-Boot in NAND (blocks 6-12) using JTAG
3) I have compiled a new Linux kernel with NAND support and FTL enabled
4) I am booting this kernel from TFTP and I use a rootfs through NFS
5) I am trying to write the Linux kernel into NAND flash and boot from
it instead of TFTP

Step 5 is where I fail !

I am following the procedure described in spraaa0 (booting EVM from NAND
flash), but I am suspecting it to be erroneous.

Here is my console output corresponding to steps 4 and 5 on page 12
(spraaa0):

[EMAIL PROTECTED]:~# ls /dev/mtd0
/dev/mtd0
[EMAIL PROTECTED]:~# ftl_format /dev/mtd0
Partition size = 64 mb, erase unit size = 16 kb, 1 transfer units
Reserved 5%, formatted size = 61747712 bytes
Erasing all blocks...
+++++++*+++nand_erase: attempt to erase a bad block at page 0x00005ce0

block erase failed: Input/output error
format failed.

Needless to say, after this, my NAND is scraped and I get the BOOTME
BOOTME BOOTME BOOTME messages on startup.

There are some things that do not make sense to me:

1) Formatting /dev/mtd0, since this is where UBL and U-Boot are!
2) Writing the kernel to 0x4000 (16384) like spraaa0 suggests, since
this is only the 2nd NAND block

For the sake of experimentation, I tried writing the linux kernel to
0x100000 (1MB or block #64) using nandwrite without prior formatting. No
go.

Did some of you get this working ?
If so, what am I missing ???

Thanks for your help,

Louis-Martin


__________________________________________________________________________________________
This electronic message may contain proprietary and confidential information of 
Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or authorized 
to receive this e-mail for the intended recipient), you may not use, copy, 
disclose or distribute to anyone this message or any information contained in 
this message.  If you have received this electronic message in error, please 
notify us by replying to this e-mail. (1)
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to