[PATCH] board: novtech: meerkat96: Add environment variables
Carl Gelfand
carlgelfand at gmail.com
Sun Apr 4 21:47:56 CEST 2021
Add environment variables for booting Linux on imx7d-meerkat96.
Signed-off-by: Carl Gelfand <carlgelfand at gmail.com>
---
include/configs/meerkat96.h | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/include/configs/meerkat96.h b/include/configs/meerkat96.h
index f43a8415e1..f3a6906054 100644
--- a/include/configs/meerkat96.h
+++ b/include/configs/meerkat96.h
@@ -33,7 +33,21 @@
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
/* Environment configs */
-
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "image=zImage\0" \
+ "console=ttymxc5\0" \
+ "bootcmd=mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan;
then if run loadimage; then run mmcboot; else run netboot; fi; else
run netboot; fi\0" \
+ "fdt_addr=0x83000000\0" \
+ "fdt_file=imx7d-meerkat96.dtb\0" \
+ "loadaddr=0x80800000\0" \
+ "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
+ "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
+ "mmcargs=setenv bootargs console=${console},${baudrate}
root=${mmcroot}\0" \
+ "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
+ "boot_fdt=try\0" \
+ "mmcboot=echo Booting from mmc ...; run mmcargs; if test
${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then
bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then
bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;\0"
\
+ "mmcdev=0\0" \
+ "mmcpart=1\0" \
/* USB configs */
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
--
2.20.1
More information about the U-Boot
mailing list