hello,
I try to load from JFFS2 filesystem , the kernel,rootfs and DTB. and I
have bad data CRC error on my file.
Have you any idea of the reason ?
I try to copy several kernel image in the filesystem i've got the same
error, also with rootfs.
I've no problem with "raw" file and using nand read in other MTD with
the same kernel,rootfs, dtb.
Sophie
environnement :
- u-boot 2013 from SDK freescale 1.4
- linux 3.8.13 from SDK freescale 1.4
- custom board based on P2020
STEP 1
- In Linux mount JFFS2 file system and copy kernel, rootfs and DTB.
STEP 2
- In U-boot
fsload 100 uImage
### JFFS2 loading 'uImage' to 0x100
### JFFS2 load complete: 3287019 bytes loaded to 0x100
One9x> iminfo 100
## Checking Image at 0100 ...
Legacy image found
Image Name: Linux-3.8.13-rt9-00053-g939d8fd-
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size:3286999 Bytes = 3.1 MiB
Load Address:
Entry Point:
Verifying Checksum ...Bad Data CRC
One9x> Bad Data CRC
configuration:
I've define :
#define CONFIG_CMD_JFFS2
#define CONFIG_JFFS2_NAND
#define CONFIG_JFFS2_CMDLINE
baudrate=9600
bootargs=root=/dev/ram rw ip=P2020_One9x:eth0:off console=ttyS0,9600
ramdisk_size=70 cache-sram-size=0x1
bootcmd=setenv bootargs root=/dev/ram rw
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off
console=$consoledev,$baudrate ramdisk_size=70
cache-sram-size=0x1;nand read 100 $nandbootaddr
$nandimgsize;nand read 200 $nandramfsaddr $nandramfssize;nand read
c0 $nandfdtaddr $nandfdtsize;bootm 100 200 c0
bootdelay=10
bootfile=uImage
consoledev=ttyS0
eth1addr=00:11:22:33:44:55
ethact=eTSEC3
ethaddr=00:11:22:33:44:55
ethprime=eTSEC3
fdtaddr=0xc0
fdtfile=p2020one91.dtb
fdtsize=10
filesize=3227eb
hostname=P2020_One9x
ipaddr=192.168.1.10
loadaddr=100
loads_echo=1
mtddevname=NAND_FILE_SYSTEM
mtddevnum=1
mtdids=nand0=flash
mtdparts=mtdparts=flash:1M(uboot),256M(NAND_FILE_SYSTEM),-(User_Data)
nandbootaddr=1010
nandfdtaddr=11d0
nandfdtsize=10
nandimgsize=40
nandramfsaddr=1050
nandramfssize=180
netdev=eth0
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off
console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp
$fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
partition=nand0,1
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate
$othbootargs; tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr
$bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
readJFFS2=fsload 100 kernel
rootpath=/opt/nfsroot
serverip=192.168.1.1
uboot=u-boot.bin
updatenand= tftpboot $loadaddr uImage;nand erase $nandbootaddr
$nandimgsize;nand write $loadaddr $nandbootaddr $nandimgsize;tftpboot
100 rootfs;nand erase $nandramfsaddr $nandramfssize;nand write
$loadaddr $nandramfsaddr $nandramfssize;tftpboot $loadaddr $fdtfile;nand
erase $nandfdtaddr $nandfdtsize;nand write $loadaddr $nandfdtaddr
$nandfdtsize;
Environment size: 2004/131068 bytes
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot