When I program the NAND I erase the whole chip,
Then write header+nand_ubl,header(s)+u-boot and Linux kernel
In that order. Exactly how do you write the u-boot binary?
I write u-boot binary like I wrote ubl_nand.bin (ubl works), using a
modified u-boot with your "Nand_Write" function. I added a 'printf' to
that function to see what page is being written:

DaVinci EVM # setenv  bootfile u-boot-567-nand.bin
DaVinci EVM # tftp
TFTP from server 192.168.1.12; our IP address is 192.168.1.33
Filename 'u-boot-567-nand.bin'.
Load address: 0x80700000
Loading: #####################
done
Bytes transferred = 107484 (1a3dc hex)
DaVinci EVM # nand erase 0x40000 0x20000

NAND erase: device 0 offset 262144, size 131072 ... OK
DaVinci EVM # nand write 0x80700000 0x40000 0x1a400

NAND write: device 0 offset 262144, size 107520 ...
Writing page 512 !
Writing page 513 !
..
..
..
Writing page 720 !
Writing page 721 !
107520 bytes written: OK
DaVinci EVM #

Which version of u-boot are you using (I made my own nand version).
I tried with u-boot-567-nand.bin and with a modified
u-boot-596-nand.bin that has the new 'Nand_write' function.

Another idea...If TI could prepare a binary image file of say the first
200K of a bootable NAND (ubl+u-boot+headers) then you could simply
Erase and write that file!
That would be great!

Thanks and regards,
Carlos
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to