diff options
| author | Chakra Divi <2chakrass@gmail.com> | 2017-07-05 21:34:15 +0530 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-05 18:15:54 +0200 |
| commit | 7de984bdbc071508b4f888e03f73f89987be0930 (patch) | |
| tree | be4e2b23213c50407468961a5e4ac389eefe4622 /board/friendlyarm | |
| parent | 9971e936be6eb2ee5f531953bc35259d016dc60f (diff) | |
| download | buildroot-7de984bdbc071508b4f888e03f73f89987be0930.tar.gz buildroot-7de984bdbc071508b4f888e03f73f89987be0930.zip | |
board: Add nanopi-m1 Support
Add initial support for nanopi-m1 board
with below features
- U-Boot 2017.07-rc1
- Linux 4.11.5
- Default packages from buildroot
Signed-off-by: Chakra Divi <chakra@openedev.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/friendlyarm')
| -rw-r--r-- | board/friendlyarm/nanopi-m1/boot.cmd | 8 | ||||
| -rw-r--r-- | board/friendlyarm/nanopi-m1/genimage.cfg | 36 | ||||
| -rw-r--r-- | board/friendlyarm/nanopi-m1/readme.txt | 29 |
3 files changed, 73 insertions, 0 deletions
diff --git a/board/friendlyarm/nanopi-m1/boot.cmd b/board/friendlyarm/nanopi-m1/boot.cmd new file mode 100644 index 0000000000..b4d612ede7 --- /dev/null +++ b/board/friendlyarm/nanopi-m1/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-nanopi-m1.dtb + +bootz $kernel_addr_r - $fdt_addr_r diff --git a/board/friendlyarm/nanopi-m1/genimage.cfg b/board/friendlyarm/nanopi-m1/genimage.cfg new file mode 100644 index 0000000000..23c9c7dca2 --- /dev/null +++ b/board/friendlyarm/nanopi-m1/genimage.cfg @@ -0,0 +1,36 @@ +# Minimal SD card image for the NanoPi M1 +# +image boot.vfat { + vfat { + files = { + "zImage", + "sun8i-h3-nanopi-m1.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/friendlyarm/nanopi-m1/readme.txt b/board/friendlyarm/nanopi-m1/readme.txt new file mode 100644 index 0000000000..8b10e4b7ce --- /dev/null +++ b/board/friendlyarm/nanopi-m1/readme.txt @@ -0,0 +1,29 @@ +NanoPi M1 + +Intro +===== + +This default configuration will allow you to start experimenting with the +buildroot environment for the NanoPi M1. 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_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 |

