aboutsummaryrefslogtreecommitdiff
path: root/board/orangepi
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2019-05-03 16:25:21 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-05-05 21:12:04 +0200
commitd7d82a318b1d3f34257dd5fc5f3d84a83d4c3c38 (patch)
tree2c668cf2da555bd0200ff8d36036b11aed08a1ba /board/orangepi
parent5754df13c0e46ba9d6b426debbf2fb43c8f16039 (diff)
downloadbuildroot-d7d82a318b1d3f34257dd5fc5f3d84a83d4c3c38.tar.gz
buildroot-d7d82a318b1d3f34257dd5fc5f3d84a83d4c3c38.tar.bz2
config: add defconfig for orangepi-r1
Very similar to orangepi-zero, except that the board has a 16MB SPI flash, a 2nd ethernet port is provided through a Realtek RTL8152 and wifi is provided through a Realtek RTL8189FTV (no mainline driver, not supported). Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/orangepi')
-rw-r--r--board/orangepi/orangepi-r1/boot.cmd8
-rw-r--r--board/orangepi/orangepi-r1/genimage.cfg36
-rw-r--r--board/orangepi/orangepi-r1/linux-extras.config11
-rw-r--r--board/orangepi/orangepi-r1/readme.txt29
4 files changed, 84 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-r1/boot.cmd b/board/orangepi/orangepi-r1/boot.cmd
new file mode 100644
index 0000000000..e927b01e82
--- /dev/null
+++ b/board/orangepi/orangepi-r1/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-h2-plus-orangepi-r1.dtb
+
+bootz $kernel_addr_r - $fdt_addr_r
diff --git a/board/orangepi/orangepi-r1/genimage.cfg b/board/orangepi/orangepi-r1/genimage.cfg
new file mode 100644
index 0000000000..01e2c0adc4
--- /dev/null
+++ b/board/orangepi/orangepi-r1/genimage.cfg
@@ -0,0 +1,36 @@
+# Minimal SD card image for the OrangePi R1
+#
+image boot.vfat {
+ vfat {
+ files = {
+ "zImage",
+ "sun8i-h2-plus-orangepi-r1.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-r1/linux-extras.config b/board/orangepi/orangepi-r1/linux-extras.config
new file mode 100644
index 0000000000..47ba88f670
--- /dev/null
+++ b/board/orangepi/orangepi-r1/linux-extras.config
@@ -0,0 +1,11 @@
+# spi nor
+CONFIG_MTD=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_M25P80=y
+
+# ondemand cpufreq governor
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
+
+# USB ethernet
+CONFIG_USB_RTL8152=y
diff --git a/board/orangepi/orangepi-r1/readme.txt b/board/orangepi/orangepi-r1/readme.txt
new file mode 100644
index 0000000000..8266499366
--- /dev/null
+++ b/board/orangepi/orangepi-r1/readme.txt
@@ -0,0 +1,29 @@
+OrangePi R1
+
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the OrangePi R1. 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_r1_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