[U-Boot-Users] fsload questions

Charles Krinke ckrinke at istor.com
Thu Dec 21 19:47:25 CET 2006



I have a setup with u-boot-1.1.6 with the nand/jffs2 subsystem enabled
and I have a flash that has been formatted with 'flash_eraseall -j
/dev/mtd0' in Linux. Additionally a PPC uImage for this 8241 target has
been put on the flash. At this point, I reboot, set the mtdids and
mtdparts and try an fsload and here is the result.

I8000E> setenv mtdids nand0=atx-0
I8000E> setenv mtdparts mtdparts=atx-0:16M at 0M(rootfs1)
I8000E> fsload
### JFFS2 loading 'uImage' to 0x100000
Scanning JFFS2 FS: - ...
read_nand_cached: error reading nand off 0xdfe200 size 8192 bytes
read_nand_cached: error reading nand off 0xdfe000 size 8192 bytes
read_nand_cached: error reading nand off 0xdffe00 size 8192 bytes
off = 0xdffff8 magic 0x0 type 0x0 node.totlen = 0
. done.
### JFFS2 load complete: 936990 bytes loaded to 0x100000
I8000E> md 0x100000
00100000: 27051956 6ed7fc8a 4587f48c 000e4bde    '..Vn...E.....K.
00100010: 00000000 00000000 dd803a34 05070201    ..........:4....
00100020: 4c696e75 782d322e 362e3137 2e313100    Linux-2.6.17.11.
...
I8000E> setenv bootargs root=/dev/nfs
nfsroot=192.168.56.27:/opt/82xxrootfs rw ip=192.168.56.190
I8000E> bootm 100000
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.17.11
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    936926 Bytes = 915 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP ERROR - must RESET board to recover

So, this leads to a few questions:
1. Why might there be occaisional read_nand_cached errors?
2. Why does the load take 5 minutes?
3. Why does the load appear to complete successfully, the bootm start,
but then there is a GUNZIP error and the board reset?

Charles




More information about the U-Boot mailing list