Skip to contentSkip to conversation

ARM relocation, board_init() now called AFTER relocation

U-Boot Reinhard Meyer 1 participant 1 message Oct 4, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

before the relocation patches, and if relocation is disabled (CONFIG_SYS_ARM_WITHOUT_RELOC)
board_init() is called _very_ early, before relocation.

With relocation enabled, board_init() is called after relocation and when BSS is available.

--->> Board maintainers should look at their board_init() and check that they do not do "early init" stuff there.
Most AT91 boards, as I can see do high level inits (requiring bss), which is NOW ok to do (with relocation) and actually was WRONG before that. (Or you might say, board_init() was until now called in the wrong place)

Reinhard

PS: realizing that solved my ENV READ CRC issue ;) - the GPIO pins were initialized in board_init() which is too late now.