[U-Boot] twister fails to start u-boot from NAND

Jeroen Hofstee jeroen at myspectrum.nl
Sat Jan 21 20:40:34 CET 2017


Hi,

I am facing some issues when booting u-boot (755b06d1c0f) from
_NAND_ on a twister board. It works fine when booting from mmc.
u-boot v2016.09 works fine from NAND as well.

The first issue is that it hangs after DRAM initialization /
before NAND is found. Git bisect points to 085be482f6
(ARM: revive CONFIG_USE_ARCH_MEMCPY/MEMSET for UniPhier and Tegra)
and while reverting that patch makes the issue go away, it doesn't
seem to me like the root cause.

With the patch reverted, the board hangs after getting the first
ethernet address from the i2c EEPROM.

Disabling reading from the EEPROM, it reaches the prompt but every
issued command cause a data abort.

So clearly something is wrong, but I have no clue what at the moment.
I guess the most likely area which could cause such an issue would be
the spl NAND driver corrupting memory or something, since it is the
main difference between booting from mmc vs NAND. However almost
nothing has changed in that area since v2016.09...

Perhaps stack usage is significantly higher in the NAND boot..?

If someone has idea what could be wrong here, let me know.

With kind regards,

Jeroen

to reproduce:
---------------------------------------------------------------------------
arm-linux-gnueabi-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

# from sd-card
env default -f -a
fatload mmc 0 ${loadaddr} u-boot.img && run update
fatload mmc 0 ${loadaddr} mlo && run updatemlo

# remove sd-card / reboot



More information about the U-Boot mailing list