Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
define U-Boot/Default
BUILD_TARGET:=omap
UBOOT_IMAGE:=u-boot.img MLO
+ UENV:=default
endef
define U-Boot/omap4_panda
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))
--- /dev/null
+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