[U-Boot] Fwd: [PATCH v4] arm: omap3: Add SPL support to cm_t35
Stefan Roese
sr at denx.de
Wed Dec 4 13:02:53 CET 2013
On 04.12.2013 12:57, Tom Rini wrote:
>>>> On 27.11.2013 10:46, Nikita Kiryanov wrote:
>>>>> I compiled SPL with your patch and it does boot U-Boot from an SD card.
>>>>> U-Boot functionality seems to be intact too.
>>>>> However, I was unable to install it on the NAND flash. When booting
>>>>> from NAND, SPL does start (the SPL header is displayed), but it fails to
>>>>> load U-Boot with the following errors:
>>>>>
>>>>> Error: Bad compare! failed
>>>>>
>>>>> I used similar commands as the ones I use to install X-Loader:
>>>>> CM-T3x # mmc rescan && fatload mmc 0 80a00000 mlo && nandecc hw && nand
>>>>> erase.chip && nand scrub.chip -y && nand write 80a00000 0 30000
>>>>> CM-T3x # fatload mmc 0 80a00000 u-boot.img && nandecc sw && nand erase
>>>>> 80000 60000 && nand write 80a00000 80000 60000
>
> OK, but why the nandecc switching around? On omap3_beagle _now_ (and
> for a year or two, but a change from long ago) we do nandecc hw for MLO
> and U-Boot and get the same 1bit ECC scheme the kernel uses too. I bet
> the problem is that SPL is loading and expecting the HW scheme, but you
> wrote in the SW scheme...
No (please read my mail to the end). The problem is that the BootROM
doesn't boot the SPL which is written with the latest U-Boot and with
1bit hw ecc. And this works again when the patch I mention is reverted.
Thanks,
Stefan
More information about the U-Boot
mailing list