aboutsummaryrefslogtreecommitdiff
path: root/board/orangepi
diff options
context:
space:
mode:
authorGravatar Jagan Teki <jagannadh.teki@gmail.com>2017-12-20 10:53:39 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-12-20 18:57:39 +0100
commit4e3ac4749a11b633b05995658dd36adb0804f4d8 (patch)
treee88f60db3a7a418d690ac965b9e0067ca829cfe7 /board/orangepi
parentdc21f8957d91e6e4204c636b9cd1b6ba6d1dcb99 (diff)
downloadbuildroot-4e3ac4749a11b633b05995658dd36adb0804f4d8.tar.gz
buildroot-4e3ac4749a11b633b05995658dd36adb0804f4d8.tar.bz2
board: Add Orangepi PC2 support
Add initial support for Orangepi PC2 board with below features: - U-Boot 2017.11 - Linux 4.14 - Default packages from buildroot Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/orangepi')
-rw-r--r--board/orangepi/orangepi-pc2/boot.cmd6
-rw-r--r--board/orangepi/orangepi-pc2/genimage.cfg39
-rw-r--r--board/orangepi/orangepi-pc2/readme.txt37
3 files changed, 82 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-pc2/boot.cmd b/board/orangepi/orangepi-pc2/boot.cmd
new file mode 100644
index 0000000000..4d4fc7bf67
--- /dev/null
+++ b/board/orangepi/orangepi-pc2/boot.cmd
@@ -0,0 +1,6 @@
+setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
+
+fatload mmc 0 $kernel_addr_r Image
+fatload mmc 0 $fdt_addr_r sun50i-h5-orangepi-pc2.dtb
+
+booti $kernel_addr_r - $fdt_addr_r
diff --git a/board/orangepi/orangepi-pc2/genimage.cfg b/board/orangepi/orangepi-pc2/genimage.cfg
new file mode 100644
index 0000000000..e10c67ffc3
--- /dev/null
+++ b/board/orangepi/orangepi-pc2/genimage.cfg
@@ -0,0 +1,39 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "Image",
+ "sun50i-h5-orangepi-pc2.dtb",
+ "boot.scr"
+ }
+ }
+ size = 64M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition spl {
+ in-partition-table = "no"
+ image = "sunxi-spl.bin"
+ offset = 8192
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "u-boot.itb"
+ offset = 40K
+ size = 1M # 1MB - 40K
+ }
+
+ partition boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ }
+}
diff --git a/board/orangepi/orangepi-pc2/readme.txt b/board/orangepi/orangepi-pc2/readme.txt
new file mode 100644
index 0000000000..1200481952
--- /dev/null
+++ b/board/orangepi/orangepi-pc2/readme.txt
@@ -0,0 +1,37 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Orangepi PC2. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Orangepi PC2 link:
+http://www.orangepi.org/orangepipc2/
+
+Wiki link:
+https://openedev.amarulasolutions.com/display/ODWIKI/Orangepi+PC2
+
+This configuration uses U-Boot mainline and kernel mainline.
+
+How to build
+============
+
+ $ make orangepi_pc2_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 PC2 and power it up. The console
+is on the serial line, 115200 8N1.