imx8m: config: convert to bootm_size
PATCH 1/1 imx8m: config: convert to bootm_size
Restrict the memory range available for image processing in the "bootm" to 256 MiB so the kernel can access it and FDT or initrd are not overwritten on ARM64.
Signed-off-by Grygorii Tertychnyi <[email protected]>
Cc Peng Fan <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Andrey Zhizhikin <[email protected]>
--- include/configs/imx8mm_evk.h | 3 +-- include/configs/imx8mn_evk.h | 3 +-- include/configs/imx8mp_evk.h | 3 +-- include/configs/imx8mq_evk.h | 4 +--- 4 files changed, 4 insertions(+), 9 deletions(-)
include/configs/imx8mm_evk.h +1 -2
@@ -38,11 +38,10 @@"image=Image\0" \"console=ttymxc1,115200\0" \"fdt_addr=0x43000000\0" \ -"fdt_high=0xffffffffffffffff\0" \"boot_fit=no\0" \"fdt_file=imx8mm-evk.dtb\0" \"initrd_addr=0x43800000\0" \ -"initrd_high=0xffffffffffffffff\0" \ +"bootm_size=0x10000000\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \ "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
include/configs/imx8mn_evk.h +1 -2
@@ -42,11 +42,10 @@"image=Image.itb\0" \"console=ttymxc1,115200\0" \"fdt_addr=0x43000000\0" \ -"fdt_high=0xffffffffffffffff\0" \"boot_fit=try\0" \"fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \"initrd_addr=0x43800000\0" \ -"initrd_high=0xffffffffffffffff\0" \ +"bootm_size=0x10000000\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \ "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
include/configs/imx8mp_evk.h +1 -2
@@ -50,11 +50,10 @@"image=Image\0" \"console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200\0" \"fdt_addr=0x43000000\0" \ -"fdt_high=0xffffffffffffffff\0" \"boot_fdt=try\0" \"fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \"initrd_addr=0x43800000\0" \ -"initrd_high=0xffffffffffffffff\0" \ +"bootm_size=0x10000000\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \ "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
include/configs/imx8mq_evk.h +1 -3
@@ -83,7 +83,6 @@"clk_ignore_unused " \"\0" \"initrd_addr=0x43800000\0" \ -"initrd_high=0xffffffff\0" \"bootcmd_mfg=run mfgtool_args;booti ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \/* Initial environment variables */ #define CONFIG_EXTRA_ENV_SETTINGS \
@@ -92,11 +91,10 @@"image=Image\0" \"console=ttymxc0,115200\0" \"fdt_addr=0x43000000\0" \ -"fdt_high=0xffffffffffffffff\0" \"boot_fdt=try\0" \"fdt_file=imx8mq-evk.dtb\0" \"initrd_addr=0x43800000\0" \ -"initrd_high=0xffffffffffffffff\0" \ +"bootm_size=0x10000000\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \ "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
Signature · 1 line
2.25.1
PATCH 1/1 imx8m: config: convert to bootm_size
Quoted 8 lines · Grygorii Tertychnyi
Restrict the memory range available for image processing in the "bootm" to 256 MiB so the kernel can access it and FDT or initrd are not overwritten on ARM64.
Signed-off-by Grygorii Tertychnyi <[email protected]>Cc Peng Fan <[email protected]>Cc Marek Vasut <[email protected]>Cc Andrey Zhizhikin <[email protected]>
I just noticed that the other day, thanks for fixing.
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200821/b457abd5/attachment.sig>
PATCH 1/1 imx8m: config: convert to bootm_size
In reply to Grygorii TertychnyiQuoted 8 lines
Restrict the memory range available for image processing in the "bootm" to 256 MiB so the kernel can access it and FDT or initrd are not overwritten on ARM64.
Signed-off-by Grygorii Tertychnyi <[email protected]>Cc Peng Fan <[email protected]>Cc Marek Vasut <[email protected]>Cc Andrey Zhizhikin <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================