public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Bad Data CRC ERROR: can't get kernel image!
@ 2010-04-15  6:18 Ronny D
  2010-04-15  9:49 ` Detlev Zundel
  0 siblings, 1 reply; 6+ messages in thread
From: Ronny D @ 2010-04-15  6:18 UTC (permalink / raw)
  To: u-boot





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

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

* [U-Boot] Bad Data CRC ERROR: can't get kernel image!
  2010-04-15  6:18 [U-Boot] Bad Data CRC ERROR: can't get kernel image! Ronny D
@ 2010-04-15  9:49 ` Detlev Zundel
  2010-04-15 13:28   ` Ronny D
  0 siblings, 1 reply; 6+ messages in thread
From: Detlev Zundel @ 2010-04-15  9:49 UTC (permalink / raw)
  To: u-boot

Hi Ronny,

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

[...]

> 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

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

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

* [U-Boot] Bad Data CRC ERROR: can't get kernel image!
  2010-04-15  9:49 ` Detlev Zundel
@ 2010-04-15 13:28   ` Ronny D
  2010-04-15 13:42     ` Joakim Tjernlund
  2010-04-15 15:37     ` Detlev Zundel
  0 siblings, 2 replies; 6+ messages in thread
From: Ronny D @ 2010-04-15 13:28 UTC (permalink / raw)
  To: u-boot


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 <dzu@denx.de> wrote:

From: Detlev Zundel <dzu@denx.de>
Subject: Re: [U-Boot] Bad Data CRC ERROR: can't get kernel image!
To: "Ronny D" <ronny_d37@yahoo.com>
Cc: "U-boot" <u-boot@lists.denx.de>
Date: Thursday, 15 April, 2010, 9:49 AM

Hi Ronny,

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

[...]

> 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

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

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

* [U-Boot] Bad Data CRC ERROR: can't get kernel image!
  2010-04-15 13:28   ` Ronny D
@ 2010-04-15 13:42     ` Joakim Tjernlund
  2010-04-15 15:37     ` Detlev Zundel
  1 sibling, 0 replies; 6+ messages in thread
From: Joakim Tjernlund @ 2010-04-15 13:42 UTC (permalink / raw)
  To: u-boot

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

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

  Jocke

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

* [U-Boot] Bad Data CRC ERROR: can't get kernel image!
  2010-04-15 13:28   ` Ronny D
  2010-04-15 13:42     ` Joakim Tjernlund
@ 2010-04-15 15:37     ` Detlev Zundel
  2010-04-16  3:10       ` Ronny D
  1 sibling, 1 reply; 6+ messages in thread
From: Detlev Zundel @ 2010-04-15 15:37 UTC (permalink / raw)
  To: u-boot

Hi Ronny,

> 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

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

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

* [U-Boot] Bad Data CRC ERROR: can't get kernel image!
  2010-04-15 15:37     ` Detlev Zundel
@ 2010-04-16  3:10       ` Ronny D
  0 siblings, 0 replies; 6+ messages in thread
From: Ronny D @ 2010-04-16  3:10 UTC (permalink / raw)
  To: u-boot

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 <dzu@denx.de> wrote:

From: Detlev Zundel <dzu@denx.de>
Subject: Re: [U-Boot] Bad Data CRC ERROR: can't get kernel image!
To: "Ronny D" <ronny_d37@yahoo.com>
Cc: "U-boot" <u-boot@lists.denx.de>
Date: Thursday, 15 April, 2010, 3:37 PM

Hi Ronny,

> 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

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

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

end of thread, other threads:[~2010-04-16  3:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15  6:18 [U-Boot] Bad Data CRC ERROR: can't get kernel image! Ronny D
2010-04-15  9:49 ` Detlev Zundel
2010-04-15 13:28   ` Ronny D
2010-04-15 13:42     ` Joakim Tjernlund
2010-04-15 15:37     ` Detlev Zundel
2010-04-16  3:10       ` Ronny D

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