mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-01 08:33:31 +08:00
apalis/colibri_imx6/-imx6ull/_imx7: update env memory layout
Update the distro config env memory layout for the Apalis iMX6,
Colibri iMX6, Colibri iMX6ULL and Colibri iMX7:
- loadaddr=0x84200000 (resp. 0x14200000 on them i.MX 6) allows for 64MB
area for uncompressing (ie FIT images)
- fdt_addr_r = loadaddr + 64MB : allows for 64MB kernel
- scriptaddr = fdt_addr_r + 512KB : allows for 512KB fdt
- pxefile_addr_r = scriptaddr + 512KB : allows for 512KB script
- ramdisk_addr_r = pxefile_addr_r + 512KB : allows for 1MB extlinux.conf
Memory layout analogous to 64-bit one from commit fd5c7173ad
("imx8m{m,n}_venice: update env memory layout") but left pxefile_addr_r
updated according to doc/develop/distro.rst.
This fixes a potential issue caused by the compressed kernel being
relocated on top of the ramdisk causing its corruption.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
This commit is contained in:
parent
187da7226c
commit
7fe2408b82
@ -22,6 +22,7 @@ CONFIG_SPL_MMC=y
|
||||
CONFIG_SPL_SERIAL=y
|
||||
CONFIG_SPL=y
|
||||
CONFIG_CMD_HDMIDETECT=y
|
||||
CONFIG_SYS_LOAD_ADDR=0x14200000
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SYS_MEMTEST_START=0x10000000
|
||||
CONFIG_SYS_MEMTEST_END=0x10010000
|
||||
|
@ -10,6 +10,7 @@ CONFIG_DM_GPIO=y
|
||||
CONFIG_TARGET_COLIBRI_IMX6ULL_EMMC=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="imx6ull-colibri-emmc-eval-v3"
|
||||
CONFIG_SYS_PROMPT="Colibri iMX6ULL # "
|
||||
CONFIG_SYS_LOAD_ADDR=0x84200000
|
||||
CONFIG_SYS_MEMTEST_START=0x80000000
|
||||
CONFIG_SYS_MEMTEST_END=0x88000000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
|
@ -11,6 +11,7 @@ CONFIG_DM_GPIO=y
|
||||
CONFIG_TARGET_COLIBRI_IMX6ULL_NAND=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="imx6ull-colibri-eval-v3"
|
||||
CONFIG_SYS_PROMPT="Colibri iMX6ULL # "
|
||||
CONFIG_SYS_LOAD_ADDR=0x84200000
|
||||
CONFIG_SYS_MEMTEST_START=0x80000000
|
||||
CONFIG_SYS_MEMTEST_END=0x88000000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
|
@ -22,6 +22,7 @@ CONFIG_SPL_MMC=y
|
||||
CONFIG_SPL_SERIAL=y
|
||||
CONFIG_SPL=y
|
||||
CONFIG_CMD_HDMIDETECT=y
|
||||
CONFIG_SYS_LOAD_ADDR=0x14200000
|
||||
CONFIG_SYS_MEMTEST_START=0x10000000
|
||||
CONFIG_SYS_MEMTEST_END=0x10010000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
|
@ -11,6 +11,7 @@ CONFIG_SYS_PROMPT="Colibri iMX7 # "
|
||||
CONFIG_IMX_RDC=y
|
||||
CONFIG_IMX_BOOTAUX=y
|
||||
CONFIG_IMX_HAB=y
|
||||
CONFIG_SYS_LOAD_ADDR=0x84200000
|
||||
CONFIG_OF_BOARD_FIXUP=y
|
||||
CONFIG_SYS_MEMTEST_START=0x80000000
|
||||
CONFIG_SYS_MEMTEST_END=0x8c000000
|
||||
|
@ -12,6 +12,7 @@ CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
|
||||
CONFIG_IMX_RDC=y
|
||||
CONFIG_IMX_BOOTAUX=y
|
||||
CONFIG_IMX_HAB=y
|
||||
CONFIG_SYS_LOAD_ADDR=0x84200000
|
||||
CONFIG_SYS_MEMTEST_START=0x80000000
|
||||
CONFIG_SYS_MEMTEST_END=0x8c000000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
|
@ -70,11 +70,11 @@
|
||||
|
||||
#define MEM_LAYOUT_ENV_SETTINGS \
|
||||
"bootm_size=0x20000000\0" \
|
||||
"fdt_addr_r=0x12100000\0" \
|
||||
"kernel_addr_r=0x11000000\0" \
|
||||
"pxefile_addr_r=0x17100000\0" \
|
||||
"ramdisk_addr_r=0x12200000\0" \
|
||||
"scriptaddr=0x17000000\0"
|
||||
"fdt_addr_r=0x18200000\0" \
|
||||
"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
||||
"pxefile_addr_r=0x18300000\0" \
|
||||
"ramdisk_addr_r=0x18400000\0" \
|
||||
"scriptaddr=0x18280000\0"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
BOOTENV \
|
||||
|
@ -43,11 +43,11 @@
|
||||
|
||||
#define MEM_LAYOUT_ENV_SETTINGS \
|
||||
"bootm_size=0x10000000\0" \
|
||||
"fdt_addr_r=0x82100000\0" \
|
||||
"kernel_addr_r=0x81000000\0" \
|
||||
"pxefile_addr_r=0x87100000\0" \
|
||||
"ramdisk_addr_r=0x82200000\0" \
|
||||
"scriptaddr=0x87000000\0"
|
||||
"fdt_addr_r=0x88200000\0" \
|
||||
"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
||||
"pxefile_addr_r=0x88300000\0" \
|
||||
"ramdisk_addr_r=0x88400000\0" \
|
||||
"scriptaddr=0x88280000\0"
|
||||
|
||||
#define UBI_BOOTCMD \
|
||||
"ubiargs=ubi.mtd=ubi root=ubi0:rootfs rw rootfstype=ubifs " \
|
||||
|
@ -66,11 +66,11 @@
|
||||
|
||||
#define MEM_LAYOUT_ENV_SETTINGS \
|
||||
"bootm_size=0x10000000\0" \
|
||||
"fdt_addr_r=0x12100000\0" \
|
||||
"kernel_addr_r=0x11000000\0" \
|
||||
"pxefile_addr_r=0x17100000\0" \
|
||||
"ramdisk_addr_r=0x12200000\0" \
|
||||
"scriptaddr=0x17000000\0"
|
||||
"fdt_addr_r=0x18200000\0" \
|
||||
"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
||||
"pxefile_addr_r=0x18300000\0" \
|
||||
"ramdisk_addr_r=0x18400000\0" \
|
||||
"scriptaddr=0x18280000\0"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
BOOTENV \
|
||||
|
@ -83,11 +83,11 @@
|
||||
|
||||
#define MEM_LAYOUT_ENV_SETTINGS \
|
||||
"bootm_size=0x10000000\0" \
|
||||
"fdt_addr_r=0x82000000\0" \
|
||||
"kernel_addr_r=0x81000000\0" \
|
||||
"pxefile_addr_r=0x87100000\0" \
|
||||
"ramdisk_addr_r=0x82100000\0" \
|
||||
"scriptaddr=0x87000000\0"
|
||||
"fdt_addr_r=0x88200000\0" \
|
||||
"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
||||
"pxefile_addr_r=0x88300000\0" \
|
||||
"ramdisk_addr_r=0x88400000\0" \
|
||||
"scriptaddr=0x88280000\0"
|
||||
|
||||
#define UBI_BOOTCMD \
|
||||
"ubiargs=ubi.mtd=ubi root=ubi0:rootfs rootfstype=ubifs " \
|
||||
|
Loading…
Reference in New Issue
Block a user