aboutsummaryrefslogtreecommitdiff
path: root/board/sinovoip
diff options
context:
space:
mode:
authorGravatar Mike Harmony <mike.harmony@snapav.com>2017-09-22 10:59:46 -0400
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-09-22 23:11:01 +0200
commitcef57c964284f9b545a2347dd6eb1654e03dfd6e (patch)
tree6af76e78a87a5892a3caa9dbb37833913cc6b5ea /board/sinovoip
parentab52259ea1406fd7ee83c20de3dca734dba985b1 (diff)
downloadbuildroot-cef57c964284f9b545a2347dd6eb1654e03dfd6e.tar.gz
buildroot-cef57c964284f9b545a2347dd6eb1654e03dfd6e.tar.bz2
Added support for Sinovoip BananaPi M2 Plus board.
[Peter: board is from Sinovoip, not Lemaker, move board files, Use kernel headers from kernel, explicitly use 4.13.3, drop eth0 dhcp config, cleanup post-build args, disable tar output format, use u-boot custom format, add host-dosfstools/mtools for genimage, drop unused host-uboot-tools/genext2fs] Signed-off-by: Mike Harmony <mike.harmony@snapav.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/sinovoip')
-rw-r--r--board/sinovoip/m2-plus/boot.cmd7
-rw-r--r--board/sinovoip/m2-plus/genimage.cfg33
2 files changed, 40 insertions, 0 deletions
diff --git a/board/sinovoip/m2-plus/boot.cmd b/board/sinovoip/m2-plus/boot.cmd
new file mode 100644
index 0000000000..d22464a1c1
--- /dev/null
+++ b/board/sinovoip/m2-plus/boot.cmd
@@ -0,0 +1,7 @@
+setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
+
+mmc dev 0
+fatload mmc 0 $kernel_addr_r zImage
+fatload mmc 0 $fdt_addr_r sun8i-h3-bananapi-m2-plus.dtb
+
+bootz $kernel_addr_r - $fdt_addr_r
diff --git a/board/sinovoip/m2-plus/genimage.cfg b/board/sinovoip/m2-plus/genimage.cfg
new file mode 100644
index 0000000000..cde0669e76
--- /dev/null
+++ b/board/sinovoip/m2-plus/genimage.cfg
@@ -0,0 +1,33 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "zImage",
+ "sun8i-h3-bananapi-m2-plus.dtb",
+ "boot.scr"
+ }
+ }
+ size = 64M
+}
+
+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"
+ }
+}