Hello dear experts,
I am quite new to U-Boot and iMX8 and I am struggling with updating the U-Boot to newer version for our imx8mm variscite som based product.
Previous U-Boot version was 2019.04 and I need to update to 2020.04.
What happens is that everything goes well, until regular U-Boot should be executed.
SPL is fine, ATF is fine as well. Last UART message I get is:
Found FIT
fit read sector 300, sectors=3, dst=401ff840, count=3, size=0x558
Selecting config 'fsl-imx8mm-var-som'firmware: 'uboot@1'
External data: dst=40200000, offset=3000, size=a2e28
Load_addr data at 0x40200000
a 0 0 14 1f 20 3 d5 0 0 20 40 0 0 0 0 28 2e a 0
Selecting config 'fsl-imx8mm-var-som'fdt: 'fdt@2'
Can't get 'load' property from FIT 0x401ff840, node: offset 364, name fdt@2 (FDT_ERR_NOTFOUND)
External data: dst=402a2e40, offset=add40, size=80a2
Load_addr data at 0x402a2e40
0 0 0 10 0 0 0 0 0 0 8 b2 0 0 77 b8 0 0 0 0 ...
Selecting config 'fsl-imx8mm-var-som'loadables: 'atf@1'
External data: dst=920000, offset=bdf98, size=b160
Load_addr data at 0x920000
0 6 81 d2 a0 18 a6 f2 0 10 1e d5 df 3f 3 d5 f8 21 0 94 ...
Selecting config 'fsl-imx8mm-var-som'fdt: 'fdt@2'
Can't get 'load' property from FIT 0x401ff840, node: offset 364, name fdt@2 (FDT_ERR_NOTFOUND)
External data: dst=92b180, offset=add40, size=80a2
Load_addr data at 0x92b180
0 0 8 b2 0 0 77 b8 0 0 0 0 0 0 0 0 0 0 0 0 ...
Selecting config 'fsl-imx8mm-var-som'no string for index 1
Jumping to U-Boot
loaded - jumping to U-Boot...
image entry point: 0x920000
I tried to make the imx-boot binary with the old U-boot and this combination of 2020.04 SPL, actual ATF and 2019.04 U-Boot boots fine (at least until hush shell). So I am quite sure the error is somewhere in the U-boot 2020.04 or how it is mapped/executed.
So my question is, if someone could explain to me, what happens on the SPL->ATF->U-Boot transition. I can see jumping to address 0x920000, where ATF should be loaded. What happens next? Where should the regular U-boot be located, how it gets executed?
Thank you very much for any advice.