From 3225241c2bc61e907ea2980cd2f14ea6589cdf2d Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Fri, 24 Apr 2020 09:58:53 +0200 Subject: sunxi: add support for H6 boards and OrangePiOnePlus Specifications: SoC Allwinner H6 @ 1.8 Ghz DRAM 1Gb LPDDR3 Power DC 5V @ 3A Video HDMI (Type 2.0A - full) Audio HDMI, on-board microphone Network 10/100/1000Mbps Ethernet (Realtek RTL8211) Storage microSD USB 1 USB2.0 Host, 1 USB2.0 OTG Debug Serial UART Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI --- package/boot/arm-trusted-firmware-sunxi/Makefile | 6 ++++++ package/boot/uboot-sunxi/Makefile | 10 ++++++++++ package/boot/uboot-sunxi/uEnv-h6.txt | 7 +++++++ 3 files changed, 23 insertions(+) create mode 100644 package/boot/uboot-sunxi/uEnv-h6.txt (limited to 'package/boot') diff --git a/package/boot/arm-trusted-firmware-sunxi/Makefile b/package/boot/arm-trusted-firmware-sunxi/Makefile index e2a11c8bd7..0abfbae750 100644 --- a/package/boot/arm-trusted-firmware-sunxi/Makefile +++ b/package/boot/arm-trusted-firmware-sunxi/Makefile @@ -37,6 +37,11 @@ define Package/arm-trusted-firmware-sunxi-a64 VARIANT:=sun50i_a64 endef +define Package/arm-trusted-firmware-sunxi-h6 + $(call Package/arm-trusted-firmware-sunxi/Default) + VARIANT:=sun50i_h6 +endef + export GCC_HONOUR_COPTS=s MAKE_VARS = \ @@ -55,3 +60,4 @@ define Package/arm-trusted-firmware-sunxi/install endef $(eval $(call BuildPackage,arm-trusted-firmware-sunxi-a64)) +$(eval $(call BuildPackage,arm-trusted-firmware-sunxi-h6)) diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile index 18288cdd3a..17f1c0d158 100644 --- a/package/boot/uboot-sunxi/Makefile +++ b/package/boot/uboot-sunxi/Makefile @@ -204,6 +204,15 @@ define U-Boot/orangepi_one BUILD_DEVICES:=xunlong_orangepi-one endef +define U-Boot/orangepi_one_plus + BUILD_SUBTARGET:=cortexa53 + NAME:=Orange Pi One Plus (H6) + DEPENDS:=+PACKAGE_u-boot-orangepi_one_plus:arm-trusted-firmware-sunxi-h6 + BUILD_DEVICES:=xunlong_orangepi-one-plus + UENV:=h6 + ATF:=h6 +endef + define U-Boot/orangepi_pc BUILD_SUBTARGET:=cortexa7 NAME:=Orange Pi PC (H3) @@ -344,6 +353,7 @@ UBOOT_TARGETS := \ orangepi_zero \ orangepi_r1 \ orangepi_one \ + orangepi_one_plus \ orangepi_pc \ orangepi_pc_plus \ orangepi_plus \ diff --git a/package/boot/uboot-sunxi/uEnv-h6.txt b/package/boot/uboot-sunxi/uEnv-h6.txt new file mode 100644 index 0000000000..78810ff223 --- /dev/null +++ b/package/boot/uboot-sunxi/uEnv-h6.txt @@ -0,0 +1,7 @@ +setenv mmc_rootpart 2 +part uuid mmc ${mmc_bootdev}:${mmc_rootpart} uuid +setenv loadkernel fatload mmc \$mmc_bootdev \$kernel_addr_r uImage +setenv loaddtb fatload mmc \$mmc_bootdev \$fdt_addr_r dtb +setenv bootargs console=ttyS0,115200 earlyprintk root=PARTUUID=${uuid} rootwait +setenv uenvcmd run loadkernel \&\& run loaddtb \&\& booti \$kernel_addr_r - \$fdt_addr_r +run uenvcmd -- cgit v1.2.3