mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 14:56:03 +00:00
Merge patch series "FIT Image Boot Fixes for am57xx_hs_evm"
Anurag Dutta <a-dutta@ti.com> says: The u-boot is unable to load the FIT image due to incorrect boot arguments in case of am57_hs evm as can be seen in [1]. This series introduces multiple changes pertaining to several environment variables and overlays that are responsible for successful [2] loading of kernel image. Test links: [1] https://gist.github.com/anuragdutta731/7bbf0df73dd1e3327765f1807d337445 [2] https://gist.github.com/anuragdutta731/5244174c9b9556fd89132c8d72ae2d8b Link: https://lore.kernel.org/r/20250211094931.20817-1-a-dutta@ti.com
This commit is contained in:
commit
7fa38ae6c7
2 changed files with 28 additions and 0 deletions
|
@ -239,20 +239,47 @@
|
|||
"if test $fdtfile = undefined; then " \
|
||||
"echo WARNING: Could not determine device tree to use; fi; \0"
|
||||
|
||||
#define GET_OVERLAY_MMC_TI_ARGS \
|
||||
"get_overlay_mmc=" \
|
||||
"fdt address ${fdtaddr};" \
|
||||
"fdt resize 0x100000;" \
|
||||
"for overlay in $name_overlays;" \
|
||||
"do;" \
|
||||
"load mmc ${bootpart} ${dtboaddr} ${bootdir}/dtb/${overlay} &&" \
|
||||
"fdt apply ${dtboaddr};" \
|
||||
"done;\0" \
|
||||
|
||||
#define BOOT_TARGET_DEVICES(func) \
|
||||
func(TI_MMC, ti_mmc, na) \
|
||||
func(MMC, mmc, 0) \
|
||||
func(MMC, mmc, 1) \
|
||||
func(PXE, pxe, na) \
|
||||
func(DHCP, dhcp, na)
|
||||
|
||||
#define BOOTENV_DEV_TI_MMC(devtypeu, devtypel, instance) \
|
||||
"bootcmd_ti_mmc= run get_name_kern; run mmcboot\0"
|
||||
|
||||
#define BOOTENV_DEV_NAME_TI_MMC(devtyeu, devtypel, instance) \
|
||||
"ti_mmc "
|
||||
|
||||
#include <config_distro_bootcmd.h>
|
||||
|
||||
#define CFG_EXTRA_ENV_SETTINGS \
|
||||
DEFAULT_LINUX_BOOT_ENV \
|
||||
DEFAULT_MMC_TI_ARGS \
|
||||
"bootpart=0:2\0" \
|
||||
"bootdir=/boot\0" \
|
||||
"get_name_kern=" \
|
||||
"if test $boot_fit -eq 1; then " \
|
||||
"setenv bootfile fitImage; " \
|
||||
"else " \
|
||||
"setenv bootfile zImage; " \
|
||||
"fi\0" \
|
||||
DEFAULT_FIT_TI_ARGS \
|
||||
"get_fit_config=setenv name_fit_config ${fdtfile}\0" \
|
||||
DEFAULT_COMMON_BOOT_TI_ARGS \
|
||||
DEFAULT_FDT_TI_ARGS \
|
||||
GET_OVERLAY_MMC_TI_ARGS \
|
||||
DFUARGS \
|
||||
NETARGS \
|
||||
NANDARGS \
|
||||
|
|
1
include/env/ti/mmc.h
vendored
1
include/env/ti/mmc.h
vendored
|
@ -44,6 +44,7 @@
|
|||
"mmcloados=" \
|
||||
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
||||
"if run loadfdt; then " \
|
||||
"run get_overlay_mmc;" \
|
||||
"bootz ${loadaddr} - ${fdtaddr}; " \
|
||||
"else " \
|
||||
"if test ${boot_fdt} = try; then " \
|
||||
|
|
Loading…
Add table
Reference in a new issue