ti: omap: am3517evm: Move environment definition to env file
PATCH 1/1 ti: omap: am3517evm: Move environment definition to env file
Instead of cluttering up a header file with a bunch of defines, move the default environmental variables to a file called am3517evm.env and reference it from the defconfig. Also remove dead comments.
Signed-off-by Adam Ford <[email protected]>
board/logicpd/am3517evm/am3517evm.env new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +console=ttyS2,115200n8 +fdtfile=am3517-evm.dtb +fdtaddr=0x82C00000 +vram=16M +bootenv=uEnv.txt +mmcdev=0 +mmcpart=1 +mmcroot=/dev/mmcblk0p2 rw +mmcrootfstype=ext4 rootwait fixrtc +mmcargs=setenv bootargs console=${console} ${mtdparts} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype} ${cmdline} +nandargs=setenv bootargs console=${console} ${mtdparts} ${optargs} root=ubi0:rootfs rw ubi.mtd=rootfs rootfstype=ubifs rootwait ${cmdline} +loadbootenv=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootenv} +importbootenv=echo "Importing environment from mmc ..."; env import -t ${loadaddr} ${filesize} +bootscript=echo "Running bootscript from mmc ..."; source ${loadaddr} +loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootfile} +loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile} +mmcboot=echo "Booting from mmc ..."; run mmcargs; bootz ${loadaddr} - ${fdtaddr} +nandboot=echo "Booting from nand ..."; run nandargs; nand read ${loadaddr} 2a0000 800000; nand read ${fdtaddr} aa0000 80000; bootm ${loadaddr} - ${fdtaddr}
configs/am3517_evm_defconfig +1 -0
@@ -6,6 +6,7 @@ CONFIG_TEXT_BASE=0x80100000 CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_TI_COMMON_CMD_OPTIONS=y CONFIG_NR_DRAM_BANKS=2 +CONFIG_ENV_SOURCE_FILE="am3517evm" CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x4020ff00 CONFIG_DEFAULT_DEVICE_TREE="ti/omap/am3517-evm"
include/configs/am3517_evm.h +2 -55
70 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 6 lines · Adam Ford
Instead of cluttering up a header file with a bunch of defines, move the default environmental variables to a file called am3517evm.env and reference it from the defconfig. Also remove dead comments.
Applied to u-boot/master, thanks!
Signature · 1 line
Tom