aboutsummaryrefslogtreecommitdiff
path: root/board/orangepi
diff options
context:
space:
mode:
authorGravatar Jagan Teki <jagan@amarulasolutions.com>2018-11-03 18:26:06 +0530
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-16 15:54:40 +0100
commit209f98154fd21260258a85d1229596d2493dec4f (patch)
tree945330939c09d8f214f538fcc70bd40dcbfa5491 /board/orangepi
parent5c952178b7b0779758981736fc2878853325d588 (diff)
downloadbuildroot-209f98154fd21260258a85d1229596d2493dec4f.tar.gz
buildroot-209f98154fd21260258a85d1229596d2493dec4f.tar.bz2
configs/orangepi_one_plus: new defconfig
Add initial support for Orangepi One Plus board with below features: - U-Boot 2018.09 - Linux 4.19.0-rc8 - Default packages from buildroot Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'board/orangepi')
-rw-r--r--board/orangepi/orangepi-one-plus/extlinux.conf4
-rw-r--r--board/orangepi/orangepi-one-plus/genimage.cfg33
-rwxr-xr-xboard/orangepi/orangepi-one-plus/post-build.sh4
-rw-r--r--board/orangepi/orangepi-one-plus/readme.txt37
4 files changed, 78 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-one-plus/extlinux.conf b/board/orangepi/orangepi-one-plus/extlinux.conf
new file mode 100644
index 0000000000..f573aa17d0
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/extlinux.conf
@@ -0,0 +1,4 @@
+label linux
+ kernel /Image
+ devicetree /sun50i-h6-orangepi-one-plus.dtb
+ append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
diff --git a/board/orangepi/orangepi-one-plus/genimage.cfg b/board/orangepi/orangepi-one-plus/genimage.cfg
new file mode 100644
index 0000000000..ebb07e8b26
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/genimage.cfg
@@ -0,0 +1,33 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "Image",
+ "sun50i-h6-orangepi-one-plus.dtb",
+ "extlinux"
+ }
+ }
+ size = 64M
+}
+
+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"
+ }
+}
diff --git a/board/orangepi/orangepi-one-plus/post-build.sh b/board/orangepi/orangepi-one-plus/post-build.sh
new file mode 100755
index 0000000000..ec20fca7d9
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/post-build.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
diff --git a/board/orangepi/orangepi-one-plus/readme.txt b/board/orangepi/orangepi-one-plus/readme.txt
new file mode 100644
index 0000000000..87f6de8510
--- /dev/null
+++ b/board/orangepi/orangepi-one-plus/readme.txt
@@ -0,0 +1,37 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Orangepi One Plus. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Orangepi One Plus link:
+http://www.orangepi.org/OrangePiOneplus/
+
+Wiki link:
+https://openedev.amarulasolutions.com/display/ODWIKI/Orangepi+One+Plus
+
+This configuration uses U-Boot mainline and kernel mainline.
+
+How to build
+============
+
+ $ make orangepi_one_plus_defconfig
+ $ make
+
+Note: you will need access to the internet to download the required
+sources.
+
+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
+ $ sudo sync
+
+Insert the micro SDcard in your Orangepi One Plus and power it up. The console
+is on the serial line, 115200 8N1.