diff options
| author | Chakra Divi <2chakrass@gmail.com> | 2017-07-01 06:47:20 +0530 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-01 16:52:40 +0200 |
| commit | bd22ae58fac1c86ac47c84b642e6c5a8e7829846 (patch) | |
| tree | 8e09c5b3d478f2bfff4bfd561ff349e5ea50dd5b /board/orangepi | |
| parent | 9bb306bd6411071cd07529923b825627502c794d (diff) | |
| download | buildroot-bd22ae58fac1c86ac47c84b642e6c5a8e7829846.tar.gz buildroot-bd22ae58fac1c86ac47c84b642e6c5a8e7829846.zip | |
board: add orangepi-plus support
Signed-off-by: Chakra Divi <chakra@openedev.com>
[Thomas: remove host-uboot-tools from defconfig, already pulled by
BR2_TARGET_UBOOT_BOOT_SCRIPT, remove trailing whitespace.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/orangepi')
| -rw-r--r-- | board/orangepi/orangepi-plus/boot.cmd | 8 | ||||
| -rw-r--r-- | board/orangepi/orangepi-plus/genimage.cfg | 35 | ||||
| -rw-r--r-- | board/orangepi/orangepi-plus/readme.txt | 29 |
3 files changed, 72 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-plus/boot.cmd b/board/orangepi/orangepi-plus/boot.cmd new file mode 100644 index 0000000000..1a378cb918 --- /dev/null +++ b/board/orangepi/orangepi-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-plus.dtb + +bootz $kernel_addr_r - $fdt_addr_r diff --git a/board/orangepi/orangepi-plus/genimage.cfg b/board/orangepi/orangepi-plus/genimage.cfg new file mode 100644 index 0000000000..391678b73a --- /dev/null +++ b/board/orangepi/orangepi-plus/genimage.cfg @@ -0,0 +1,35 @@ +# Minimal SD card image for the OrangePi Plus\Plus2 +# +image boot.vfat { + vfat { + files = { + "zImage", + "sun8i-h3-orangepi-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" + } +} diff --git a/board/orangepi/orangepi-plus/readme.txt b/board/orangepi/orangepi-plus/readme.txt new file mode 100644 index 0000000000..7f871bcfab --- /dev/null +++ b/board/orangepi/orangepi-plus/readme.txt @@ -0,0 +1,29 @@ +OrangePi Plus/Plus2 + +Intro +===== + +This default configuration will allow you to start experimenting with the +buildroot environment for the OrangePi Plus/Plus2. 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_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 |

