aboutsummaryrefslogtreecommitdiff
path: root/board/orangepi
diff options
context:
space:
mode:
authorGravatar Sergey Matyukevich <geomatsi@gmail.com>2017-11-08 22:43:32 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-03 23:22:30 +0100
commit289c1720689c4d43dbc6f6482ffc8da0d6cb1c52 (patch)
treedf2bf2d4d2dfb539a77150f637a1800d8609d4fd /board/orangepi
parent029bf5ff53aa413e807e47aeb4f4e2659c168044 (diff)
downloadbuildroot-289c1720689c4d43dbc6f6482ffc8da0d6cb1c52.tar.gz
buildroot-289c1720689c4d43dbc6f6482ffc8da0d6cb1c52.tar.bz2
board/orangepi: add support for orangepi-pc-plus board
This board is a variant of orangepi-pc board. It adds 8GB eMMC and Realtek RTL8189FTV SDIO WiFi chip. This variant has a separate support in U-Boot and kernel. So it makes sense to create a separate entry for this board in buildroot. Board support package includes the following components: - mainline u-boot 2017.09 - mainline kernel 4.13.11 Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> [Thomas: add entry to DEVELOPERS file.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/orangepi')
-rw-r--r--board/orangepi/orangepi-pc-plus/boot.cmd8
-rw-r--r--board/orangepi/orangepi-pc-plus/genimage.cfg36
-rw-r--r--board/orangepi/orangepi-pc-plus/linux-extras.config8
l---------board/orangepi/orangepi-pc-plus/post-build.sh1
l---------board/orangepi/orangepi-pc-plus/post-image.sh1
-rw-r--r--board/orangepi/orangepi-pc-plus/readme.txt29
6 files changed, 83 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-pc-plus/boot.cmd b/board/orangepi/orangepi-pc-plus/boot.cmd
new file mode 100644
index 0000000000..0c75c862e0
--- /dev/null
+++ b/board/orangepi/orangepi-pc-plus/boot.cmd
@@ -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-pc-plus.dtb
+
+bootz $kernel_addr_r - $fdt_addr_r
diff --git a/board/orangepi/orangepi-pc-plus/genimage.cfg b/board/orangepi/orangepi-pc-plus/genimage.cfg
new file mode 100644
index 0000000000..9ffa1a21ae
--- /dev/null
+++ b/board/orangepi/orangepi-pc-plus/genimage.cfg
@@ -0,0 +1,36 @@
+# Minimal SD card image for the OrangePi PC Plus
+#
+image boot.vfat {
+ vfat {
+ files = {
+ "zImage",
+ "sun8i-h3-orangepi-pc-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"
+ size = 512M
+ }
+}
diff --git a/board/orangepi/orangepi-pc-plus/linux-extras.config b/board/orangepi/orangepi-pc-plus/linux-extras.config
new file mode 100644
index 0000000000..5e3af2b831
--- /dev/null
+++ b/board/orangepi/orangepi-pc-plus/linux-extras.config
@@ -0,0 +1,8 @@
+# wireless core
+CONFIG_WIRELESS=y
+CONFIG_CFG80211=y
+CONFIG_MAC80211=y
+CONFIG_CFG80211_WEXT=y
+
+# wireless drivers
+CONFIG_WLAN=y
diff --git a/board/orangepi/orangepi-pc-plus/post-build.sh b/board/orangepi/orangepi-pc-plus/post-build.sh
new file mode 120000
index 0000000000..cd7f11645b
--- /dev/null
+++ b/board/orangepi/orangepi-pc-plus/post-build.sh
@@ -0,0 +1 @@
+../post-build.sh \ No newline at end of file
diff --git a/board/orangepi/orangepi-pc-plus/post-image.sh b/board/orangepi/orangepi-pc-plus/post-image.sh
new file mode 120000
index 0000000000..ae6294fa38
--- /dev/null
+++ b/board/orangepi/orangepi-pc-plus/post-image.sh
@@ -0,0 +1 @@
+../post-image.sh \ No newline at end of file
diff --git a/board/orangepi/orangepi-pc-plus/readme.txt b/board/orangepi/orangepi-pc-plus/readme.txt
new file mode 100644
index 0000000000..49206949c8
--- /dev/null
+++ b/board/orangepi/orangepi-pc-plus/readme.txt
@@ -0,0 +1,29 @@
+OrangePi PC Plus
+
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the OrangePi PC Plus. 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_pc_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