]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx8mp_evk: enable booting Image.gz and avoid extra memcpy
authorPeng Fan <peng.fan@nxp.com>
Fri, 19 Jun 2026 16:06:03 +0000 (00:06 +0800)
committerFabio Estevam <festevam@gmail.com>
Sat, 27 Jun 2026 02:02:46 +0000 (23:02 -0300)
Add support for booting compressed kernel Image.gz by defining
kernel_comp_addr_r and kernel_comp_size in the default environment.

Set kernel_comp_addr_r to a high memory region (0x80000000) to provide
a dedicated decompression buffer, avoiding overlap between compressed
input and decompressed output.

Also adjust CONFIG_SYS_LOAD_ADDR from 0x40480000 to 0x40600000.

With TEXT_OFFSET=0, the kernel is relocated directly to loadaddr, so
separating decompression and execution regions is required to guarantee
safe decompression without additional copying.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/nxp/imx8mp_evk/imx8mp_evk.env
configs/imx8mp_evk_defconfig

index e994b93b168de6e24685d1fbeb2c709f1b8900f7..dfc922e621557ea0d5154a4e718b8d3b630d9b4a 100644 (file)
@@ -10,6 +10,8 @@ fdt_addr=0x43000000
 fdtfile=DEFAULT_FDT_FILE
 image=Image
 ip_dyn=yes
+kernel_comp_addr_r=0x80000000
+kernel_comp_size=0x2000000
 mmcdev=CONFIG_ENV_MMC_DEVICE_INDEX
 mmcpart=1
 mmcroot=/dev/mmcblk1p2 rootwait rw
index d176b42e83d85f14a3e67f7ca3ba30abb3f1bc9a..12dcf3d14353091dba94bea760b85ae5b962105a 100644 (file)
@@ -19,7 +19,7 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x98fc00
 CONFIG_SPL_BSS_MAX_SIZE=0x400
 CONFIG_SYS_BOOTM_LEN=0x2000000
-CONFIG_SYS_LOAD_ADDR=0x40480000
+CONFIG_SYS_LOAD_ADDR=0x40600000
 CONFIG_SPL=y
 CONFIG_ENV_OFFSET_REDUND=0x20400
 CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000