[U-Boot] at91SAM7S9263B-EK + u-boot using sd card: linux uncompress ... crc error

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@saf-kassel.de www.saf-kassel.de
Amtsgericht Kassel HRB 3758 Geschäftsführer: Dipl.-Inform. Michael Franz

Dear Thomas.Schulte@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
participants (2)
-
Thomas.Schulte@saf-kassel.de
-
Wolfgang Denk