aboutsummaryrefslogtreecommitdiff
path: root/board/grinn
diff options
context:
space:
mode:
authorGravatar Marcin Niestroj <m.niestroj@grinn-global.com>2017-01-30 19:36:16 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-01-30 21:24:43 +0100
commitc9abeddce65a62e89223cecedb29e9e207f7b0a9 (patch)
tree063b448e4ee96b27e6c8007e7ca946ba92cff7e3 /board/grinn
parentcd2e115a3feb501afc11d3c6ce29fd947a631cda (diff)
downloadbuildroot-c9abeddce65a62e89223cecedb29e9e207f7b0a9.tar.gz
buildroot-c9abeddce65a62e89223cecedb29e9e207f7b0a9.tar.bz2
board: add support for chiliBoard
Board support package includes: * Buildroot defconfig * Mainline Linux kernel v4.9.6 * Mainline U-Boot (current HEAD revision is used, as board support patches are not in stable release yet) * genimage config to create sdcard image * Board readme.txt [Peter: use http:// instead of git:// for u-boot] Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/grinn')
-rw-r--r--board/grinn/chiliboard/genimage.cfg31
-rwxr-xr-xboard/grinn/chiliboard/post-image.sh14
-rw-r--r--board/grinn/chiliboard/readme.txt46
3 files changed, 91 insertions, 0 deletions
diff --git a/board/grinn/chiliboard/genimage.cfg b/board/grinn/chiliboard/genimage.cfg
new file mode 100644
index 0000000000..ffe027e7ab
--- /dev/null
+++ b/board/grinn/chiliboard/genimage.cfg
@@ -0,0 +1,31 @@
+# Minimal microSD card image for Grinn's chiliBoard
+#
+
+image boot.vfat {
+ vfat {
+ files = {
+ "MLO",
+ "u-boot.img",
+ "am335x-chiliboard.dtb",
+ "zImage"
+ }
+ }
+ size = 16M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ offset = 1M
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ }
+}
diff --git a/board/grinn/chiliboard/post-image.sh b/board/grinn/chiliboard/post-image.sh
new file mode 100755
index 0000000000..1a076eecb8
--- /dev/null
+++ b/board/grinn/chiliboard/post-image.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+ --rootpath "${TARGET_DIR}" \
+ --tmppath "${GENIMAGE_TMP}" \
+ --inputpath "${BINARIES_DIR}" \
+ --outputpath "${BINARIES_DIR}" \
+ --config "${GENIMAGE_CFG}"
diff --git a/board/grinn/chiliboard/readme.txt b/board/grinn/chiliboard/readme.txt
new file mode 100644
index 0000000000..676aa70407
--- /dev/null
+++ b/board/grinn/chiliboard/readme.txt
@@ -0,0 +1,46 @@
+**********
+chiliBoard
+**********
+
+Build
+=====
+
+First, configure Buildroot for your chiliBoard:
+
+ make grinn_chiliboard_defconfig
+
+Build image:
+
+ make
+
+After building you should get a tree like this:
+
+ output/images/
+ ├── am335x-chiliboard.dtb
+ ├── boot.vfat
+ ├── MLO
+ ├── rootfs.ext2
+ ├── rootfs.ext4
+ ├── rootfs.tar
+ ├── sdcard.img
+ ├── u-boot.img
+ └── zImage
+
+Create a bootable microSD card
+==============================
+
+Buildroot prepares a bootable microSD card image "sdcard.img" in output/images/
+directory, To flash SD card just run the following command:
+
+ sudo dd if=output/images/sdcard.img of=/dev/<sd_card> bs=1M
+
+where <sd_card> can be sdX or mmcblkX
+
+*** WARNING! This will destroy all contents of device you specify! ***
+
+Boot chiliBoard
+===============
+
+- insert the microSD card in the microSD slot of the board;
+- plug micro USB cable to provide power and console interface
+- use terminal emulator with 115200 bps, 8n1