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

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.comhttp://www.bosch.com
Tel. +49(5121)49-2965 Fax +49(711)811-5052965 Thomas.Mittelstaedt@de.bosch.commailto:Thomas.Mittelstaedt@de.bosch.com
Sitz: Hildesheim, Registergericht: Amtsgericht Hildesheim HRB 201334 Aufsichtsratsvorsitzender: Dirk Hoheisel; Geschäftsführung: Uwe Thomas; Michael Bolle, Robby Drave, Egbert Hellwig
participants (1)
-
Mittelstaedt Thomas (CM-AI/EAR-S)