uboot-zynq: use a file to modify the default environment
Follow the strategy of other targets and create a default environment file, uEnv.txt, to configure the behavior of U-Boot. For now, use it to pass bootargs to the kernel Signed-off-by: Luis Araneda <luaraneda@gmail.com>
This commit is contained in:
parent
306a60fcfe
commit
e2a4d14aaa
2 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ define U-Boot/Default
|
||||||
BUILD_TARGET:=zynq
|
BUILD_TARGET:=zynq
|
||||||
UBOOT_IMAGE:=spl/boot.bin u-boot.img
|
UBOOT_IMAGE:=spl/boot.bin u-boot.img
|
||||||
UBOOT_CONFIG:=zynq_$(1)
|
UBOOT_CONFIG:=zynq_$(1)
|
||||||
|
UENV:=default
|
||||||
HIDDEN:=1
|
HIDDEN:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||||
$(CP) $(PKG_BUILD_DIR)/spl/boot.bin $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-boot.bin
|
$(CP) $(PKG_BUILD_DIR)/spl/boot.bin $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-boot.bin
|
||||||
$(CP) $(PKG_BUILD_DIR)/u-boot.img $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-u-boot.img
|
$(CP) $(PKG_BUILD_DIR)/u-boot.img $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-u-boot.img
|
||||||
|
$(CP) ./files/uEnv-$(UENV).txt $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-uEnv.txt
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/u-boot/install/default
|
define Package/u-boot/install/default
|
||||||
|
|
1
package/boot/uboot-zynq/files/uEnv-default.txt
Normal file
1
package/boot/uboot-zynq/files/uEnv-default.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bootargs=console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rootwait earlyprintk
|
Loading…
Reference in a new issue