summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTheo Debrouwere <Theo.Debrouwere@gmail.com>2016-12-18 22:35:26 +0100
committerPeter Korsgaard <peter@korsgaard.com>2016-12-18 23:07:03 +0100
commite1a0a8858e59c3ed73637521cc77e3937e9da2d4 (patch)
tree5cf7e7d4d1f2d88cc60b487929dc3b1a6af0604c /board
parenta0ccec38973f825f18c3600900cc771f7d79ecec (diff)
BeagleBoard X15: new board
This configuration provides a basic setup for using Buildroot to create a sd-card image a BeagleBoard X15 board. [Peter: use 512M ext4 partition, linux 4.9 and u-boot 2016.11] Signed-off-by: Theo Debrouwere <Theo.Debrouwere@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board')
-rw-r--r--board/beagleboardx15/genimage.cfg26
-rwxr-xr-xboard/beagleboardx15/post-image.sh15
-rw-r--r--board/beagleboardx15/readme.txt49
3 files changed, 90 insertions, 0 deletions
diff --git a/board/beagleboardx15/genimage.cfg b/board/beagleboardx15/genimage.cfg
new file mode 100644
index 000000000..d27eff609
--- /dev/null
+++ b/board/beagleboardx15/genimage.cfg
@@ -0,0 +1,26 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "MLO",
+ "u-boot.img"
+ }
+ }
+ size = 4M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 512M
+ }
+}
diff --git a/board/beagleboardx15/post-image.sh b/board/beagleboardx15/post-image.sh
new file mode 100755
index 000000000..f52682f5d
--- /dev/null
+++ b/board/beagleboardx15/post-image.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+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/beagleboardx15/readme.txt b/board/beagleboardx15/readme.txt
new file mode 100644
index 000000000..56ebca8c5
--- /dev/null
+++ b/board/beagleboardx15/readme.txt
@@ -0,0 +1,49 @@
+BeagleBoard X15
+
+Intro
+=====
+This config currently supports the beagleboard x15,
+and generates a barebone image.
+
+The image must be flashed to a SD card to be used.
+
+How to build it
+===============
+
+ $ make beagleboardx15_defconfig
+
+Then you can edit the build options using
+
+ $ make menuconfig
+
+Compile all and build a sdcard image:
+
+ $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+ output/images/
+ ├── am57xx-beagle-x15.dtb
+ ├── am57xx-beagle-x15-revb1.dtb
+ ├── boot.vfat
+ ├── MLO
+ ├── rootfs.ext2
+ ├── rootfs.ext4
+ ├── rootfs.tar
+ ├── sdcard.img
+ ├── u-boot.img
+ ├── u-boot-spl.bin
+ └── zImage
+
+How to write the microSD 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