Hi all,
I work with a DM355 EVM and I tried to flash a uImage kernel file using U-Boot commands, it works.
But using Linux commands :
# flash_eraseall /dev/mtd2
# nandwrite -p /dev/mtd2 uImage
No wrong message appears, but after rebooting, U-Boot said :
## Booting image at 80700000 ...
Image Name: Linux-2.6.10_mvl401
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1578808 Bytes = 1.5 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... Bad Data CRC
How can the checksum be bad with the same image file??
Any idea?
Thanks,
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
21/01/09
After other tests, I suppose it's because of "nandwrite" function.
Because, erasing with "flash_eraseall" Linux command and return to U-Boot using "nand write" command, it works. Chechsum OK.
Erasing with "nand erase" U-Boot command, booting with TFTP uImage and using "nandwrite" Linux command, it doesn't work. Bad checksum.
I tried other arguments for "nandwrite" (-n, -y, -a, -s addr, -b) no result...
Booting with NFS filesystem and using linux commands (flash_eraseall, nandwrite), it works!!
It's very strange.