Skip to contentSkip to conversation

Bad Data CRC ERROR: can't get kernel image!

U-Boot Ronny D 3 participants 6 messages Apr 15, 2010 – Apr 16, 2010

lore
Share & tools
lore

Ronny D

author
#0 lore raw

I am using u-boot version 2009-08 for customized PPC 440 based board.

Board is having 16MB Nor flash. I am
flashing the kernel image at 0xffdc0000, ramdisk at 0xff8c0000 and dtb at 0xff200000

When I pass bootm command through
u-boot prompt i.e ?bootm 0xffdc0000 0xff8c0000 0xff200000?

?

Kernel booting stops with following error message.

## Booting kernel from Legacy Image at ffdc0000 ...

??
Image Name:?? Linux-2.6.31-LE

??
Image Type:?? PowerPC Linux Kernel Image (gzip compressed)

??
Data Size:??? 936145 Bytes = 914.2 kB

??
Load Address: 00000000

??
Entry Point:? 00000000

??
Bad Data CRC

??
ERROR: can't get kernel image!

?

When I print the data that we
calculated in image_check_dcrc() ?I found foloowing difference:

Calculated DCRC --------Data :
0xffdc0040 Len: 0xe48d1 dcrc: 0x5fe26d1e

From image_get_dcrc function DCRC: 0x72e08293

?

And hence return (dcrc ==
image_get_dcrc (hdr)) this condition become false.

?

Please let me know your input on this.
-Ronny

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php

#1 lore raw

Hi Ronny,

Quoted 4 lines

Bad Data CRC

??
ERROR: can't get kernel image!

[...]

Quoted 1 line

Please let me know your input on this.

Well your data seems to be corrupt - what more can we say? What does "imi 0xffdc0000" say?

Maybe you did not flash the whole image correctly? E.g. did you see error message about non-erased flash?

Cheers
Detlev

Signature · 8 lines
Test applications  with a variety of tools.  Don't assume everything works if
you've tested  with only  one client.  Also, assume the low end of technology
for clients and don't create applications which can only be used by Graphical
User Interfaces.                                       -- RFC 1855
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
author
#2 lore raw

Hi Detlev,

I used "iminfo 0xffdc0000" and got following log
?? Image Name:?? Linux-2.6.31-LE
?? Image Type:?? PowerPC Linux Kernel Image (gzip compressed) ?? Data Size:??? 936145 Bytes = 914.2 kB
?? Load Address: 00000000
?? Entry Point:? 00000000
?? Bad Data CRC

Here i am confused that if i comment the verification of kernel header then kernel commend prompts come. so not sure about image is corrupt or not.

Is there any dependency of mkimage?

-Ronny

--- On Thu, 15/4/10, Detlev Zundel <[email protected]> wrote:

From: Detlev Zundel <[email protected]>
Subject: Re: [U-Boot] Bad Data CRC ERROR: can't get kernel image!
To: "Ronny D" <[email protected]>
Cc: "U-boot" <[email protected]>
Date: Thursday, 15 April, 2010, 9:49 AM

Hi Ronny,

Quoted 4 lines

Bad Data CRC

??
ERROR: can't get kernel image!

[...]

Quoted 1 line

Please let me know your input on this.

Well your data seems to be corrupt - what more can we say?? What does "imi 0xffdc0000" say?

Maybe you did not flash the whole image correctly?? E.g. did you see error message about non-erased flash?

Cheers
? Detlev

Signature · 11 lines
Test applications? with a variety of tools.? Don't assume everything works if
you've tested? with only? one client.? Also, assume the low end of technology
for clients and don't create applications which can only be used by Graphical
User Interfaces.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???-- RFC 1855
--
DENX Software Engineering GmbH,? ? ? MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,? Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
#3 lore raw
Quoted 12 lines

Hi Detlev,

I used "iminfo 0xffdc0000" and got following log
?? Image Name:?? Linux-2.6.31-LE
?? Image Type:?? PowerPC Linux Kernel Image (gzip compressed) ?? Data Size:??? 936145 Bytes = 914.2 kB
?? Load Address: 00000000
?? Entry Point:? 00000000
?? Bad Data CRC

Quoted 5 lines

Here i am confused that if i comment the verification of kernel header then kernel commend prompts come.
so not sure about image is corrupt or not.

Is there any dependency of mkimage?

There was an endian problem with the CRC routine a while ago. Try updating your u-boot tree and rebuild the mkimage tool.

Jocke

#4 lore raw
In reply to Ronny D

Hi Ronny,

Quoted 2 lines

I used "iminfo 0xffdc0000" and got following log
Image Name: Linux-2.6.31-LE

Just out of curiosity - does the "-LE" mean that you do have a little-endian linux running on this platform?

Cheers
Detlev

Signature · 7 lines
 Those who do not understand Unix are condemned to reinvent it,
 poorly.
 - Henry Spencer, University of Toronto Unix hack
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
author
#5 lore raw

Yes i am running little endian kernel, but this error comes in both little as well as big endian kernel.

--- On Thu, 15/4/10, Detlev Zundel <[email protected]> wrote:

From: Detlev Zundel <[email protected]>
Subject: Re: [U-Boot] Bad Data CRC ERROR: can't get kernel image!
To: "Ronny D" <[email protected]>
Cc: "U-boot" <[email protected]>
Date: Thursday, 15 April, 2010, 3:37 PM

Hi Ronny,

Quoted 2 lines

I used "iminfo 0xffdc0000" and got following log
? ? Image Name:???Linux-2.6.31-LE

Just out of curiosity - does the "-LE" mean that you do have a little-endian linux running on this platform?

Cheers
? Detlev

Signature · 10 lines
 Those who do not understand Unix are condemned to reinvent it,
 poorly.
 - Henry Spencer, University of Toronto Unix hack
--
DENX Software Engineering GmbH,? ? ? MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,? Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php