summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorJan Kraval <jan.kraval@gmail.com>2017-12-07 18:59:26 +0100
committerPeter Korsgaard <peter@korsgaard.com>2017-12-07 22:21:08 +0100
commit7cfafb2a6b15154b9daf45e137080424a7e66adf (patch)
tree9c82129bd34e1e32675201ad1bd4d4be4c29112e /board
parentc75439d10cfc5100fb2716c2614eee9ca511d762 (diff)
downloadbuildroot-7cfafb2a6b15154b9daf45e137080424a7e66adf.tar.gz
buildroot-7cfafb2a6b15154b9daf45e137080424a7e66adf.zip
board/orangepi: add support for orangepi-lite board
This board is quite similar to orangepi-one board. Instead of ethernet, it has RTL8189FTV SDIO WiFi chip. Board support package includes the following components: - mainline u-boot 2017.09 - mainline kernel 4.13.11 Signed-off-by: Jan Kraval <jan.kraval@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board')
-rw-r--r--board/orangepi/orangepi-lite/boot.cmd8
-rw-r--r--board/orangepi/orangepi-lite/genimage.cfg36
-rw-r--r--board/orangepi/orangepi-lite/linux-extras.config8
l---------board/orangepi/orangepi-lite/post-build.sh1
l---------board/orangepi/orangepi-lite/post-image.sh1
-rw-r--r--board/orangepi/orangepi-lite/readme.txt29
6 files changed, 83 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-lite/boot.cmd b/board/orangepi/orangepi-lite/boot.cmd
new file mode 100644
index 0000000000..5c29dabfe8
--- /dev/null
+++ b/board/orangepi/orangepi-lite/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-lite.dtb
+
+bootz $kernel_addr_r - $fdt_addr_r
diff --git a/board/orangepi/orangepi-lite/genimage.cfg b/board/orangepi/orangepi-lite/genimage.cfg
new file mode 100644
index 0000000000..cd81f986b2
--- /dev/null
+++ b/board/orangepi/orangepi-lite/genimage.cfg
@@ -0,0 +1,36 @@
+# Minimal SD card image for the OrangePi Lite
+#
+image boot.vfat {
+ vfat {
+ files = {
+ "zImage",
+ "sun8i-h3-orangepi-lite.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-lite/linux-extras.config b/board/orangepi/orangepi-lite/linux-extras.config
new file mode 100644
index 0000000000..5e3af2b831
--- /dev/null
+++ b/board/orangepi/orangepi-lite/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-lite/post-build.sh b/board/orangepi/orangepi-lite/post-build.sh
new file mode 120000
index 0000000000..cd7f11645b
--- /dev/null
+++ b/board/orangepi/orangepi-lite/post-build.sh
@@ -0,0 +1 @@
+../post-build.sh \ No newline at end of file
diff --git a/board/orangepi/orangepi-lite/post-image.sh b/board/orangepi/orangepi-lite/post-image.sh
new file mode 120000
index 0000000000..ae6294fa38
--- /dev/null
+++ b/board/orangepi/orangepi-lite/post-image.sh
@@ -0,0 +1 @@
+../post-image.sh \ No newline at end of file
diff --git a/board/orangepi/orangepi-lite/readme.txt b/board/orangepi/orangepi-lite/readme.txt
new file mode 100644
index 0000000000..5f402bf207
--- /dev/null
+++ b/board/orangepi/orangepi-lite/readme.txt
@@ -0,0 +1,29 @@
+OrangePi Lite
+
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the OrangePi Lite. 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_lite_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
OpenPOWER on IntegriCloud