configs: mediatek: enable boot via extlinux
PATCH v2 1/1 configs: mediatek: enable boot via extlinux
From: Alexandre Mergnat <[email protected]>
Enable FAT and SYSBOOT to use extlinux boot script
---
V1 -> V2: adding missing CONFIG_ENV_OFFSET config
--- configs/mt8183_pumpkin_defconfig | 3 +++ configs/mt8516_pumpkin_defconfig | 7 +++++++ 2 files changed, 10 insertions(+)
configs/mt8183_pumpkin_defconfig +3 -0
@@ -48,8 +48,11 @@ CONFIG_CMD_PART=y # CONFIG_CMD_ITEST is not set # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_BLOCK_CACHE is not set +CONFIG_CMD_SYSBOOT=y CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_MMC_ENV_PART=2 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
configs/mt8516_pumpkin_defconfig +7 -0
@@ -6,6 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x4C000000 CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x1000 +CONFIG_ENV_OFFSET=0x0 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="mt8516-pumpkin" CONFIG_TARGET_MT8516=y
@@ -49,6 +50,12 @@ CONFIG_CMD_PART=y # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_BLOCK_CACHE is not set # CONFIG_CMD_SLEEP is not set +CONFIG_CMD_SYSBOOT=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set +CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_CLK=y
Signature · 1 line
2.38.1
Quoted 46 lines · Julien STEPHAN
From: Alexandre Mergnat <[email protected]>
Enable FAT and SYSBOOT to use extlinux boot script
Signed-off-by Jerome Brunet <[email protected]>Signed-off-by Alexandre Mergnat <[email protected]>Signed-off-by Julien STEPHAN <[email protected]>---
V1 -> V2: adding missingCONFIG_ENV_OFFSETconfig--- configs/mt8183_pumpkin_defconfig | 3 +++ configs/mt8516_pumpkin_defconfig | 7 +++++++ 2 files changed, 10 insertions(+)configs/mt8183_pumpkin_defconfig +3
-0@@ -48,8 +48,11 @@ CONFIG_CMD_PART=y # CONFIG_CMD_ITEST is not set # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_BLOCK_CACHE is not set +CONFIG_CMD_SYSBOOT=y CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_MMC_ENV_PART=2 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=yconfigs/mt8516_pumpkin_defconfig +1
-0@@ -6,6 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x4C000000 CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x1000 +CONFIG_ENV_OFFSET=0x0 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="mt8516-pumpkin" CONFIG_TARGET_MT8516=y@@ -49,6 +50,12 @@ CONFIG_CMD_PART=y # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_BLOCK_CACHE is not set
configs/mt8516_pumpkin_defconfig CONFIG_CMD_PART=y · line 61
Quoted 10 lines
configs/mt8516_pumpkin_defconfig +6
-0# CONFIG_CMD_SLEEP is not set +CONFIG_CMD_SYSBOOT=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set +CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_CLK=y
I will take this as is, but I would also encourage looking at enabling DISTRO_DEFAULTS as that seems like the underlying problem, a platform aimed at running off the shelf distros not enabling the CONFIG knob to ensure all the required features are in turn enabled.
Signature · 1 line
Tom
Quoted 7 lines · Julien STEPHAN
From: Alexandre Mergnat <[email protected]>
Enable FAT and SYSBOOT to use extlinux boot script
Signed-off-by Jerome Brunet <[email protected]>Signed-off-by Alexandre Mergnat <[email protected]>Signed-off-by Julien STEPHAN <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom