[U-Boot] Problem booting Linux from Flash

Hi all,
I am trying to boot Linux from flash on MIPS Board. When uBoot tries to boot Linux it fails saying "Verifying Checksum Failed.... bad data crc". The bootcmd is fsload 0x80800000 /boot/uImage; bootm 0x80800000.
But When i do a tftp of the same image(uImage) to same address(0x80800000) it works fine. What might be the problem when it is loading uImage from flash?
Log is as shown below:
Bootrom Version [RTEMS]: Rel_30 Chip: Atlanta A80 Board: REF MTA
U-Boot 1.1.2 (Jul 17 2009 - 10:32:57) Board: MIPS CPU Speed 200 MHz DRAM: 32 MB sflash.c:266:DF_F_DataflashProbe: Entered sflash.c:269:DF_F_DataflashProbe: flash type is 0x1 sflash.c:270:DF_F_DataflashProbe: num pages 32768 DataFlash:Nb pages: 32768 Page Size: 256 Size= 8388608 bytes Logical address: 0xAD000000 Nb Erase Blocks: 128 Erase Block Size: 65536 Area 0: AD000000 to AD003FFF Area 1: AD004000 to AD03FFFF Area 2: AD040000 to AD30BFFF Area 3: AD30C000 to AD7FFFFF crc matched In: serial Out: serial Err: serial Net: Eth.
Type "run flash_nfs" to mount root filesystem over NFS
Hit any key to stop autoboot: 0 ### JFFS2 loading '/boot/uImage' to 0x80800000 Scanning JFFS2 FS: . done. ### JFFS2 load complete: 1853548 bytes loaded to 0x80800000 ## Booting image at 80800000 ... Image Name: Linux Kernel Image with ramdisk. Created: 2009-07-17 11:01:27 UTC Image Type: MIPS Linux Kernel Image (gzip compressed) Data Size: 1853484 Bytes = 1.8 MB Load Address: 80100000 Entry Point: 80423000 Verifying Checksum ... Bad Data CRC uboot>#
Please Help
Thanks Rahanesh

Dear Rahanesh,
In message 4A642891.2090604@tataelxsi.co.in you wrote:
I am trying to boot Linux from flash on MIPS Board. When uBoot tries to boot Linux it fails saying "Verifying Checksum Failed.... bad data crc".
CRC is one type of checksum.
What might be the problem when it is loading uImage from flash?
Obviously the loaded data are corrupt. Based on the information you gave us it is impossible to tell if the data are already corrupt in your JFFS2 file system, of if they get corrupted when loading the file, or when booting it.
Best regards,
Wolfgang Denk

Hi Wolfgang Denk,
Thanks a lot for your reply.
Actually problem started when i added few utilities in flash. I ll explain the scenario.
I had a working jffs image with bin , boot, scripts as directories in it. uImage(Linux kernel image ) was contained in boot folder.
For my application i had to add few new networking utilitiess like iptables, brctl, racoon etc.. Hence i added these utilities in bin directory and created a new jffs image.
This jffs image was flashed to board. This image gave the CRC error when uboot tried to boot.
Now instead of adding the utilities to bin i added all the utilities to a new created Utility Directory. This time It worked fine. The jffs image was flashed and uboot successfully loaded uImage and booting was perfect.
What might be the reason behind this? can u please throw some light on this?
Thanks Rahanesh
Wolfgang Denk wrote:
Dear Rahanesh,
In message 4A642891.2090604@tataelxsi.co.in you wrote:
I am trying to boot Linux from flash on MIPS Board. When uBoot tries to boot Linux it fails saying "Verifying Checksum Failed.... bad data crc".
CRC is one type of checksum.
What might be the problem when it is loading uImage from flash?
Obviously the loaded data are corrupt. Based on the information you gave us it is impossible to tell if the data are already corrupt in your JFFS2 file system, of if they get corrupted when loading the file, or when booting it.
Best regards,
Wolfgang Denk
participants (2)
-
Rahanesh
-
Wolfgang Denk