[ ~nicholas@anycle.com ]# tftp 0x30008000 rootfs.img
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
could not establish link
Using dm9000 device
TFTP from server 192.168.0.52; our IP address is 192.168.0.69
Filename 'rootfs.img'.
Load address: 0x30008000
Loading: #################################################################
#################################################################
#################################################
done
Bytes transferred = 2618880 (27f600 hex)
[ ~nicholas@anycle.com ]# nand erase 0x580000 0x300000
NAND erase: device 0 offset 0x580000, size 0x300000
Erasing at 0x86000001800000 -- 0% complete.
OK
[ ~nicholas@anycle.com ]# nand write.yaffs 0x30008000 0x580000 0x300000
NAND write: device 0 offset 0x580000, size 0x300000
Attempt to write error length data!
3145728 bytes written: ERROR
Problem:
The size of nand write.yaffs must be set as true length of rootfs.img.
Solution:
nand write.yaffs 0x30008000 0x580000 0x27f600