public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Problem booting Linux from Flash
@ 2009-07-20  8:19 Rahanesh
  2009-07-20 14:19 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Rahanesh @ 2009-07-20  8:19 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Problem booting Linux from Flash
  2009-07-20  8:19 [U-Boot] Problem booting Linux from Flash Rahanesh
@ 2009-07-20 14:19 ` Wolfgang Denk
  2009-07-22  8:11   ` Rahanesh
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2009-07-20 14:19 UTC (permalink / raw)
  To: u-boot

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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Humans do claim a great deal for that particular emotion (love).
	-- Spock, "The Lights of Zetar", stardate 5725.6

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Problem booting Linux from Flash
  2009-07-20 14:19 ` Wolfgang Denk
@ 2009-07-22  8:11   ` Rahanesh
  0 siblings, 0 replies; 3+ messages in thread
From: Rahanesh @ 2009-07-22  8:11 UTC (permalink / raw)
  To: u-boot

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
>
>   

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-22  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-20  8:19 [U-Boot] Problem booting Linux from Flash Rahanesh
2009-07-20 14:19 ` Wolfgang Denk
2009-07-22  8:11   ` Rahanesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox