diff options
Diffstat (limited to 'package/u-boot')
-rw-r--r-- | package/u-boot/Makefile | 9 | ||||
-rw-r--r-- | package/u-boot/files/boot.script.opi | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile index dd8f8868d..866f8a81a 100644 --- a/package/u-boot/Makefile +++ b/package/u-boot/Makefile @@ -16,7 +16,7 @@ PKG_SITES:= ftp://ftp.denx.de/pub/u-boot/ DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SYSTEM_DEPENDS:= beaglebone-black raspberry-pi raspberry-pi2 raspberry-pi3 banana-pro solidrun-imx6 solidrun-clearfog raspberry-pi3-64 +PKG_SYSTEM_DEPENDS:= beaglebone-black orange-pi0 raspberry-pi raspberry-pi2 raspberry-pi3 banana-pro solidrun-imx6 solidrun-clearfog raspberry-pi3-64 include $(ADK_TOPDIR)/mk/host.mk include $(ADK_TOPDIR)/mk/package.mk @@ -49,6 +49,10 @@ ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) CONFIG:= Bananapro_defconfig UBOOT:= u-boot-sunxi-with-spl.bin endif +ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y) +CONFIG:= orangepi_zero_defconfig +UBOOT:= u-boot-sunxi-with-spl.bin +endif ifeq ($(ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK),y) CONFIG:= am335x_evm_defconfig UBOOT:= u-boot.img @@ -101,6 +105,9 @@ endif ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) $(INSTALL_BIN) ./files/boot.script.bpi $(FW_DIR) endif +ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y) + $(INSTALL_BIN) ./files/boot.script.opi $(FW_DIR) +endif ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG),y) $(INSTALL_BIN) ./files/boot.script.clearfog $(FW_DIR) endif diff --git a/package/u-boot/files/boot.script.opi b/package/u-boot/files/boot.script.opi new file mode 100644 index 000000000..58dbf8fae --- /dev/null +++ b/package/u-boot/files/boot.script.opi @@ -0,0 +1,5 @@ +setenv fdt_high ffffffff +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p1 rootwait +ext4load mmc 0:1 $kernel_addr_r boot/kernel +ext4load mmc 0:1 $fdt_addr_r boot/sun8i-h2-plus-orangepi-zero.dtb +bootz $kernel_addr_r - $fdt_addr_r |