[source] package/uboot-omap: add default uEnv to boot via mmc card
LEDE Commits
lede-commits at lists.infradead.org
Mon Apr 24 09:08:32 PDT 2017
lynxis pushed a commit to source.git, branch master:
https://git.lede-project.org/a5eb9c6370f5e1f38c9429b0c46f757706eac0c7
commit a5eb9c6370f5e1f38c9429b0c46f757706eac0c7
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Wed Apr 19 04:48:03 2017 +0200
package/uboot-omap: add default uEnv to boot via mmc card
Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
package/boot/uboot-omap/Makefile | 2 ++
package/boot/uboot-omap/files/uEnv-default.txt | 8 ++++++++
2 files changed, 10 insertions(+)
diff --git a/package/boot/uboot-omap/Makefile b/package/boot/uboot-omap/Makefile
index 17a4af4..d11ced4 100644
--- a/package/boot/uboot-omap/Makefile
+++ b/package/boot/uboot-omap/Makefile
@@ -19,6 +19,7 @@ include $(INCLUDE_DIR)/package.mk
define U-Boot/Default
BUILD_TARGET:=omap
UBOOT_IMAGE:=u-boot.img MLO
+ UENV:=default
endef
define U-Boot/omap4_panda
@@ -45,6 +46,7 @@ UBOOT_TARGETS:=omap4_panda am335x_evm omap3_overo omap3_beagle
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)
$(CP) $(patsubst %,$(PKG_BUILD_DIR)/%,$(UBOOT_IMAGE)) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/
+ $(CP) ./files/uEnv-$(UENV).txt $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/uEnv.txt
endef
$(eval $(call BuildPackage/U-Boot))
diff --git a/package/boot/uboot-omap/files/uEnv-default.txt b/package/boot/uboot-omap/files/uEnv-default.txt
new file mode 100644
index 0000000..3584e43
--- /dev/null
+++ b/package/boot/uboot-omap/files/uEnv-default.txt
@@ -0,0 +1,8 @@
+bootpart=0:1
+bootdir=/
+bootfile=zImage
+fdtdir=/dtbs
+uenvcmd=run loadfdt; run loadimage; run uenvbootargs ; bootz ${loadaddr} - ${fdtaddr}
+loadfdt=load mmc ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
+devtype=mmc
+uenvbootargs=setenv bootargs console=${console} root=/dev/mmcblk0p2
More information about the lede-commits
mailing list