aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorGravatar Fabio Estevam <festevam@gmail.com>2016-10-05 21:11:17 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-09 22:47:18 +0200
commit8ec127d8d87f3aa373be94fde2849de4e793131c (patch)
tree08b93eca55e3cec532a4127d83d13a9666c1b4e0 /board
parent3907b1ac66422c0b9182f090f41e6544dc859825 (diff)
downloadbuildroot-8ec127d8d87f3aa373be94fde2849de4e793131c.tar.gz
buildroot-8ec127d8d87f3aa373be94fde2849de4e793131c.tar.bz2
configs/mx6udoo: Add initial support
Add the initial support for mx6q/dl udoo boards. For information about these boards, please visit: http://www.udoo.org/ In linux.fragment we disable USB support for now because kernel 4.8 hangs on udoo board. This is been addressed by Peter Chen's kernel patch series that provides a standard way to reset a USB hub. When such series hit mainline, then we can bump the kernel and remove linux.fragment. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board')
-rw-r--r--board/udoo/genimage.cfg48
-rw-r--r--board/udoo/linux.fragment1
-rwxr-xr-xboard/udoo/post-image.sh14
-rw-r--r--board/udoo/readme.txt17
4 files changed, 80 insertions, 0 deletions
diff --git a/board/udoo/genimage.cfg b/board/udoo/genimage.cfg
new file mode 100644
index 0000000000..4361d540c7
--- /dev/null
+++ b/board/udoo/genimage.cfg
@@ -0,0 +1,48 @@
+# Minimal microSD card image for Udoo MX6Q/DL boards
+#
+# We mimic the .sdcard Freescale's image format for i.MX6:
+# * the microSD card must have 1 kB free space at the beginning,
+# * U-Boot is dumped as is,
+# * a FAT partition at offset 16 MB is containing zImage and dtbs,
+# * a single root filesystem partition is required (Ext4 in this case).
+#
+
+image boot.vfat {
+ vfat {
+ files = {
+ "imx6q-udoo.dtb",
+ "imx6dl-udoo.dtb",
+ "zImage"
+ }
+ }
+ size = 16M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition SPL {
+ in-partition-table = "no"
+ image = "SPL"
+ offset = 1K
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "u-boot.img"
+ offset = 69K
+ }
+
+ partition boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ offset = 16M
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ }
+}
diff --git a/board/udoo/linux.fragment b/board/udoo/linux.fragment
new file mode 100644
index 0000000000..2acad15757
--- /dev/null
+++ b/board/udoo/linux.fragment
@@ -0,0 +1 @@
+CONFIG_USB=n
diff --git a/board/udoo/post-image.sh b/board/udoo/post-image.sh
new file mode 100755
index 0000000000..b4ac4608ff
--- /dev/null
+++ b/board/udoo/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/udoo/readme.txt b/board/udoo/readme.txt
new file mode 100644
index 0000000000..acd05f6775
--- /dev/null
+++ b/board/udoo/readme.txt
@@ -0,0 +1,17 @@
+Udoo MX6Q/DL board
+
+For information about MX6 Udoo boards:
+http://www.udoo.org/
+
+To build a minimal support for these boards:
+
+ $ make mx6udoo_defconfig
+ $ make
+
+Buildroot prepares a bootable "sdcard.img" image in the output/images/
+directory, ready to be dumped on a micro SD card:
+
+dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
+
+For details about the medium image layout, see the definition in
+board/udoo/genimage.cfg.