Skip to contentSkip to conversation

board: add orangepi-plus support

PATCH Superseded Chakra Divi 1 participant 1 message Jun 29, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: add orangepi-plus support

Add initial support for orangepi-plus board
with below features
- U-Boot 2017.05
- Linux 4.11.5
- Default packages from buildroot

---
 .gitlab-ci.yml                             |    1 +
 DEVELOPERS                                 |    2 ++
 board/orangepi/orangepi-plus/boot.cmd      |    8 ++++++
 board/orangepi/orangepi-plus/genimage.cfg  |   35 +++++++++++++++++++++++
 board/orangepi/orangepi-plus/post-build.sh |    7 +++++
 board/orangepi/orangepi-plus/readme.txt    |   29 +++++++++++++++++++
 configs/orangepi_plus_defconfig            |   42 ++++++++++++++++++++++++++++
 7 files changed, 124 insertions(+)
 create mode 100644 board/orangepi/orangepi-plus/boot.cmd
 create mode 100644 board/orangepi/orangepi-plus/genimage.cfg
 create mode 100755 board/orangepi/orangepi-plus/post-build.sh
 create mode 100644 board/orangepi/orangepi-plus/readme.txt
 create mode 100644 configs/orangepi_plus_defconfig
.gitlab-ci.yml +1 -0
index 1f2410e..9307035 100644
@@ -139,6 +139,7 @@ olimex_imx233_olinuxino_defconfig: *defconfig
 openblocks_a6_defconfig: *defconfig
 orangepi_one_defconfig: *defconfig
 orangepi_pc_defconfig: *defconfig
+orangepi_plus_defconfig: *defconfig
 orangepi_zero_defconfig: *defconfig
 pandaboard_defconfig: *defconfig
 pc_x86_64_bios_defconfig: *defconfig
DEVELOPERS +2 -0
index 9e421f4..a03903e 100644
@@ -340,7 +340,9 @@ F:	package/libsvg-cairo/
 
 N:	Chakra Divi <[email protected]>
 F:	board/olimex/a13_olinuxino
+F:	board/orangepi/orangepi-plus
 F:	configs/olimex_a13_olinuxino_defconfig
+F:	configs/orangepi_plus_defconfig
 
 N:	Chris Packham <[email protected]>
 F:	package/eventlog/
board/orangepi/orangepi-plus/boot.cmd new file +8 -0
new file mode 100644
index 0000000..1a378cb
@@ -0,0 +1,8 @@
+setenv fdt_high ffffffff
+
+setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
+
+fatload mmc 0 $kernel_addr_r zImage
+fatload mmc 0 $fdt_addr_r sun8i-h3-orangepi-plus.dtb
+
+bootz $kernel_addr_r - $fdt_addr_r
board/orangepi/orangepi-plus/genimage.cfg new file +35 -0
new file mode 100644
index 0000000..391678b
@@ -0,0 +1,35 @@
+# Minimal SD card image for the OrangePi Plus\Plus2
+#
+image boot.vfat {
+	vfat {
+		files = {
+			"zImage",
+			"sun8i-h3-orangepi-plus.dtb",
+			"boot.scr"
+		}
+	}
+	size = 10M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition u-boot {
+		in-partition-table = "no"
+		image = "u-boot-sunxi-with-spl.bin"
+		offset = 8192
+		size = 1040384 # 1MB - 8192
+	}
+
+	partition boot {
+		partition-type = 0xC
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+	}
+}
board/orangepi/orangepi-plus/post-build.sh new file +7 -0
new file mode 100755
index 0000000..bada615
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+MKIMAGE=$HOST_DIR/usr/bin/mkimage
+
+$MKIMAGE -A arm -O linux -T script -C none \
+         -d board/orangepi/orangepi-plus/boot.cmd \
+         ${BINARIES_DIR}/boot.scr
board/orangepi/orangepi-plus/readme.txt new file +29 -0
new file mode 100644
index 0000000..fc3f293
@@ -0,0 +1,29 @@
+OrangePi Plus/Plus2
+
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the OrangePi Plus/Plus2. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+How to build it
+===============
+
+Configure Buildroot:
+
+    $ make orangepi_plus_defconfig 
+
+Compile everything and build the SD card image:
+
+    $ make
+
+How to write the SD card
+========================
+
+Once the build process is finished you will have an image called "sdcard.img"
+in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an SD card with "dd":
+
+  $ sudo dd if=output/images/sdcard.img of=/dev/sdX
configs/orangepi_plus_defconfig new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.7.9.5