[U-Boot] Problem while loading data from partition 2 with u-boot

Mittelstaedt Thomas (CM-AI/EAR-S) Thomas.Mittelstaedt at de.bosch.com
Fri Dec 7 14:20:57 CET 2012


Hello,

we are developing imx6-based Linux-Systems.

I've experienced a problem using u-Boot for imx on Sabrelight board (Rev. D)

http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=refs/heads/master

current commit: a918a53c3650dd2a7a96c3145cf0544e0c4b0e59

The way to reproduce is very easy: Reboot the system with reboot command from linux, hart reset button or power on reset several times.
After 1-15 resets the boot sequence has been stopped with one of the following outputs.

The related output of u-boot can be seen in following traces:



I've examined the problem and have found out:

1.
It' a problem of more than 1 Sd card and more than 1 Sabrelight boards

2
The core problem is, that U-boot tries to read the partition info with the function get_partition_info_extended() in part_dos.c and at least the last 32 bytes of the read block is wrong. Usually there are some text fragments (e.g. format strings of printf)  from u-boot program.

Example:


I've debugged the problem and the first guess was, that something is going wrong with the data cache from the processor.
If I disable the cache (#define CONFIG_SYS_DCACHE_OFF) I can't reproduce the error.

After some further tests and trials I've found a small patch for enable data cache, which is good tested, but I'm not a specialist for sd cards and
therefore I've not found the root cause.


It would be fine to use this patch or a better one in your u-boot repository or help to find the root cause for it.



Mit freundlichen Grüßen / Best regards

Thomas Mittelstaedt

Robert Bosch Car Multimedia GmbH
Engineering Architecture (CM-AI/EAR)
Postfach
31132 Hildesheim
GERMANY
www.bosch.com<http://www.bosch.com>

Tel. +49(5121)49-2965
Fax +49(711)811-5052965
Thomas.Mittelstaedt at de.bosch.com<mailto:Thomas.Mittelstaedt at de.bosch.com>

Sitz: Hildesheim, Registergericht: Amtsgericht Hildesheim HRB 201334
Aufsichtsratsvorsitzender: Dirk Hoheisel; Geschäftsführung: Uwe Thomas;
Michael Bolle, Robby Drave, Egbert Hellwig



-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubooterr1
Type: application/octet-stream
Size: 522 bytes
Desc: ubooterr1
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121207/83857e68/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubooterr2
Type: application/octet-stream
Size: 606 bytes
Desc: ubooterr2
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121207/83857e68/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-blockerr.png
Type: image/png
Size: 42492 bytes
Desc: u-boot-blockerr.png
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121207/83857e68/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commit-a5312cf
Type: application/octet-stream
Size: 1192 bytes
Desc: commit-a5312cf
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121207/83857e68/attachment-0002.obj>


More information about the U-Boot mailing list