All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] at91SAM7S9263B-EK + u-boot using sd card: linux uncompress ... crc error
@ 2009-11-03 16:00 Thomas.Schulte at saf-kassel.de
  2009-11-03 19:14 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas.Schulte at saf-kassel.de @ 2009-11-03 16:00 UTC (permalink / raw)
  To: u-boot

u-boot 2009.08

Hello,

we urgently need some help.
WE NEED TO RUN THE WHOLE THING FROM SD!

We made the u-boot working with the SD (mci1) on the at91SAM7S9263B-EK 
board.

Status:

boot.bin (At91Bootstrap 3.0) starts from SD
boot.bin (2009.08) loads u-boot form SD and starts it

u-boot loads the uImage (linux-2.6.27)from SD to 0x22000000
u-boot does Bootm 0x22000000 (0x22200000 shows same result)

Linux starts , but fails! see screen copy:
Uncompressing 
Linux....................................................................................................
crc error

What went wrong? Can you help?

An Alternative is an uncompressed Kernel in order to come around the crc 
issue. Then Linux kernel starts, but crashes after 100lines of messages 
anyway.
see attached file


RAM of the board seems to be okay per tests.
Putting the u-boot and kernel into the nand seems to start and work. With 
Nand it is possible to start boot.bin from SD and call u-boot/kernel from 
sd.


We found comments in some forum that flushing/invalidating the 
icashe/dcashe is required when SD is used before u-boot is going on to run 
the kernel. 
We tried already dcache_disable/icache_disable before u-boot starts 
kernel. But no imrpovement. 
Do you have a code snippet to do so?

Looking forwart to hearing from you asap - THANKS INDEED!
                 

Mit freundlichen Gr??en
Thomas Schulte


_____________________________________________

Dipl.-Ing. Thomas Schulte
Entwicklung

SaF Gesellschaft f?r 
technische Sonderanlagen mbH
Wohnstr. 10, 34123 Kassel
t. +49 (561) 507 87-29, f. +49 (561) 507 87-99
thomas.schulte at saf-kassel.de
www.saf-kassel.de

Amtsgericht Kassel HRB 3758
Gesch?ftsf?hrer: 
Dipl.-Inform. Michael Franz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bootlog.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20091103/60447835/attachment.txt 

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

* [U-Boot] at91SAM7S9263B-EK + u-boot using sd card: linux uncompress ... crc error
  2009-11-03 16:00 [U-Boot] at91SAM7S9263B-EK + u-boot using sd card: linux uncompress ... crc error Thomas.Schulte at saf-kassel.de
@ 2009-11-03 19:14 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-11-03 19:14 UTC (permalink / raw)
  To: u-boot

Dear Thomas.Schulte at saf-kassel.de,

In message <OF003996F1.6CA453FB-ONC1257663.0056E6C1-C1257663.00575C2E@saf-kassel.de> you wrote:
>
> we urgently need some help.

Read http://www.catb.org/~esr/faqs/smart-questions.html and/or hire an
expert.

> WE NEED TO RUN THE WHOLE THING FROM SD!

No need to shout.

> u-boot loads the uImage (linux-2.6.27)from SD to 0x22000000
> u-boot does Bootm 0x22000000 (0x22200000 shows same result)
>
> Linux starts , but fails! see screen copy:
> Uncompressing 
> Linux....................................................................................................
> crc error
>
> What went wrong? Can you help?

Obviously there is some memory corruption.

> An Alternative is an uncompressed Kernel in order to come around the crc 
> issue. Then Linux kernel starts, but crashes after 100lines of messages 
> anyway.

Could be some memory corruption.

> We found comments in some forum that flushing/invalidating the 
> icashe/dcashe is required when SD is used before u-boot is going on to run
> the kernel. 

Indeed it is a good idea to make sure caches are properly flushed.


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
The trouble with our times is that the future is not what it used  to
be.                                                     - Paul Valery

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

end of thread, other threads:[~2009-11-03 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03 16:00 [U-Boot] at91SAM7S9263B-EK + u-boot using sd card: linux uncompress ... crc error Thomas.Schulte at saf-kassel.de
2009-11-03 19:14 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.