Other Parts Discussed in Thread: SYSCONFIG
Hi All.
We are working on DM8148 ARM+DSP custom board. We currently have a major problem in loading U-boot from MLO.
First i would like to mention, that this problem reproduces rarely but constantly and it happens on one of our devices (different device each time), about once or twice in six months period. For that reason it is very important for us to solve it.
Our board has no MMC, but 2 SD card slots (connected to SD0 and SD1). SD1 contains an SD card with the operating system on it (MLO,u-boot,kernel and FS), and the GPMC is configured to boot from SD1. So far so good all works.
When the problem occurs, The MLO is succesfully loaded, MLO command line is:
mmc rescan 0; fatload mmc 0:2 0x80800000 u-boot.bin; go 0x80800000
upon the fatload mmc 0:2 command i get the error message
** Can't read from device 0 ** ** Unable to use mmc 0:2 for fatload **
When i issue:
mmc write 0:2 0x80800000 0x1 0x10
I get the response:
MMC write: dev # 0, block # 1, count 16 ... set write bl len failed. err -19
And reads also fail.
output of mmcinfo command:
Device: OMAP SD/MMC Manufacturer ID: 3 OEM: 5344 Name: SS32G Tran Speed: 25000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 31914983424 Bus Width: 4-bit
The thing i don't understand is how come the MLO is loaded from the SD card, but then it doesn't manage to communicate with the card anymore, so how come it manages to get the MLO?? I checked the Errata and didn't seem to find anything related. When i check MMCHS_CSRE it's all zeroed which means no errors occured?
One more thing. If i will take the SD card out and then insert it back, the problem will be gone for about 6 months, but i'd like to solve the problem permanently ;)
I've tried changing and checking my pinmux settings, as well as increasing timeouts on mmc and also applying patch from here but none of it seem to make a difference.
What could be the cause of the behavior?
Please Help :)

