U-Boot criteria/rules to load memory with uImage, FDT, fitimage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-Boot criteria/rules to load memory with uImage, FDT, fitimage

286 Views
andreaaizza
Contributor III

Hi,

using U-Boot 2022.04 and IMX6 (IMX6S) what are the criteria/rules to follow to set SYS_TEXT_BASE, SYS_LAOD_ADDR etc?

When loading zImage(kernel+initrd), fdt via fitimage (https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/uImage.FIT/kernel_fdt.its?h=imx_v2020....), and having SYS_LAOD_ADDR=0x12000000, SYS_TEXT_BASE=0x17800000, booting via `load ... ${loadaddr} ; bootm ${loadaddr}` kernel is not starting (hangs on "Starting kernel ..."). After modifying fitimage.its and adding
```
+ load = <0x18000000>;
+ entry = <0x18000000>;
```
to FDT section, then kernel starts. Same happens if I manually load `zImage` and `.dtb` manually: FDT not in 0x153xxxxx -> fail, FDT in 0x18000000 -> works. 

DDR3 is mapped in 0x10000000 (1Gbyte) but I do not know what the keepways and rules to fill memory. 

What is best source for knowledge?

Regards,
Andrea

0 Kudos
0 Replies