board: Add support for nanopi-m1-plus
PATCH v2 1/1 board: Add support for nanopi-m1-plus
Add initial support for nanopi-m1-plus board with below features
- U-Boot 2017.07-rc3
nanopi-m1-plus dts support is present in rc3 version
- Linux 4.11.5
- linux patches to add nanopi-m1-plus dts
- Default packages from buildroot
---
Changes for v2:
- Created patches directory under board
- modified defconfig to use BR2_GLOBAL_PATCH_DIR
- Removed linux prefix for the dts patch file
- Moved linux dts patch under patches directory
- added comments about mainline in the linux patch file
.gitlab-ci.yml | 29 +----- DEVELOPERS | 2 + board/friendlyarm/nanopi-m1-plus/boot.cmd | 8 ++ board/friendlyarm/nanopi-m1-plus/genimage.cfg | 35 +++++++ ...ts-nanopi-m1-plus-add-dts-to-linux-4.11.5.patch | 103 ++++++++++++++++++++ board/friendlyarm/nanopi-m1-plus/readme.txt | 29 ++++++ configs/nanopi_m1_plus_defconfig | 44 +++++++++ 7 files changed, 222 insertions(+), 28 deletions(-) create mode 100644 board/friendlyarm/nanopi-m1-plus/boot.cmd create mode 100644 board/friendlyarm/nanopi-m1-plus/genimage.cfg create mode 100644 board/friendlyarm/nanopi-m1-plus/patches/linux/0001-ARM-dts-nanopi-m1-plus-add-dts-to-linux-4.11.5.patch create mode 100644 board/friendlyarm/nanopi-m1-plus/readme.txt create mode 100644 configs/nanopi_m1_plus_defconfig
.gitlab-ci.yml +1 -0
@@ -128,6 +128,7 @@ mx6cubox_defconfig: *defconfig mx6sx_udoo_neo_defconfig: *defconfig mx6udoo_defconfig: *defconfig nanopi_m1_defconfig: *defconfig +nanopi_m1_plus_defconfig: *defconfig nanopi_neo_defconfig: *defconfig nexbox_a95x_defconfig: *defconfig nitrogen6sx_defconfig: *defconfig
DEVELOPERS +2 -0
@@ -348,9 +348,11 @@ F: package/libsvg-cairo/ N: Chakra Divi <[email protected]> F: board/friendlyarm/nanopi-m1 +F: board/friendlyarm/nanopi-m1-plus F: board/olimex/a13_olinuxino F: board/orangepi/orangepi-plus F: configs/nanopi_m1_defconfig +F: configs/nanopi_m1_plus_defconfig F: configs/olimex_a13_olinuxino_defconfig F: configs/orangepi_plus_defconfig
board/friendlyarm/nanopi-m1-plus/boot.cmd new file +8 -0
@@ -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-nanopi-m1-plus.dtb + +bootz $kernel_addr_r - $fdt_addr_r
board/friendlyarm/nanopi-m1-plus/genimage.cfg new file +35 -0
@@ -0,0 +1,35 @@ +# Minimal SD card image for the NanoPi M1 Plus +# +image boot.vfat { + vfat { + files = { + "zImage", + "sun8i-h3-nanopi-m1-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" + } +}
board/friendlyarm/nanopi-m1-plus/patches/linux/0001-ARM-dts-nanopi-m1-plus-add-dts-to-linux-4.11.5.patch new file +103 -0
103 lines not on this page · raw message
board/friendlyarm/nanopi-m1-plus/readme.txt new file +29 -0
@@ -0,0 +1,29 @@ +NanoPi M1 Plus + +Intro +===== + +This default configuration will allow you to start experimenting with the +buildroot environment for the NanoPi M1 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 nanopi_m1_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
configs/nanopi_m1_plus_defconfig new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v2 1/1 board: Add support for nanopi-m1-plus
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Chakra" == Chakra Divi <[email protected]> writes:
Add initial support for nanopi-m1-plus board with below features
- U-Boot 2017.07-rc3
nanopi-m1-plus dts support is present in rc3 version
- Linux 4.11.5
- linux patches to add nanopi-m1-plus dts
- Default packages from buildrootSigned-off-by Chakra Divi <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard