summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorPhil Eichinger <phil.eichinger@gmail.com>2016-03-10 22:34:11 +0100
committerPeter Korsgaard <peter@korsgaard.com>2016-03-11 13:14:54 +0100
commit0b7b84310c3781c346eea4c114c8cb4e97bbd8ea (patch)
treebae7caa8dc4a00ae1ce309a32427594fb1f51baa /board
parentb3bb3f0b82b9afd5eef79fb449df68e013cc3175 (diff)
downloadbuildroot-0b7b84310c3781c346eea4c114c8cb4e97bbd8ea.tar.gz
buildroot-0b7b84310c3781c346eea4c114c8cb4e97bbd8ea.zip
olimex_imx233_olinuxino_defconfig: genimage support
* add a post-image.sh script * update defconfig for genimage * update readme.txt [Peter: also add host-dosfstools dependency for vfat partition] Signed-off-by: Phil Eichinger <phil@zankapfel.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board')
-rw-r--r--board/olimex/imx233_olinuxino/genimage-imx233_olinuxino.cfg28
-rwxr-xr-xboard/olimex/imx233_olinuxino/post-image.sh20
-rw-r--r--board/olimex/imx233_olinuxino/readme.txt22
3 files changed, 70 insertions, 0 deletions
diff --git a/board/olimex/imx233_olinuxino/genimage-imx233_olinuxino.cfg b/board/olimex/imx233_olinuxino/genimage-imx233_olinuxino.cfg
new file mode 100644
index 0000000000..78979dcc9c
--- /dev/null
+++ b/board/olimex/imx233_olinuxino/genimage-imx233_olinuxino.cfg
@@ -0,0 +1,28 @@
+image kernel.vfat {
+ vfat {
+ files = {
+ "uImage"
+ }
+ }
+ size = 5M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+ partition boot {
+ partition-type = 0x53
+ image = "u-boot.sd"
+ size = 16M
+ }
+
+ partition kernel {
+ partition-type = 0xC
+ image = "kernel.vfat"
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext2"
+ }
+}
diff --git a/board/olimex/imx233_olinuxino/post-image.sh b/board/olimex/imx233_olinuxino/post-image.sh
new file mode 100755
index 0000000000..703cbe7ee2
--- /dev/null
+++ b/board/olimex/imx233_olinuxino/post-image.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+BOARD_NAME="$(basename ${BOARD_DIR})"
+GENIMAGE_CFG="${BOARD_DIR}/genimage-${BOARD_NAME}.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+# Create symlink to "rename" kernel image
+ln -sf uImage.imx23-olinuxino ${BINARIES_DIR}/uImage
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+ --rootpath "${TARGET_DIR}" \
+ --tmppath "${GENIMAGE_TMP}" \
+ --inputpath "${BINARIES_DIR}" \
+ --outputpath "${BINARIES_DIR}" \
+ --config "${GENIMAGE_CFG}"
+
+exit $?
diff --git a/board/olimex/imx233_olinuxino/readme.txt b/board/olimex/imx233_olinuxino/readme.txt
index a545f7bbb5..4b24ac2c16 100644
--- a/board/olimex/imx233_olinuxino/readme.txt
+++ b/board/olimex/imx233_olinuxino/readme.txt
@@ -5,6 +5,28 @@ one or more of: hostapd, iw, wireless_tools and/or wpa_supplicant.
It also pulls up the console on the serial port, not on TV output.
+=== Output files after building ==============================================
+
+output/images
++-- kernel.vfat (VFAT kernel partition image generated by genimage)
++-- rootfs.ext2 (Root file system)
++-- sdcard.img (Complete SD card image generated by genimage)
++-- u-boot.sd (U-Boot image)
++-- uImage -> uImage.imx23-olinuxino (To copy kernel as "uImage" to kernel.vfat)
++-- uImage.imx23-olinuxino (Kernel uImage)
+
+=== Use of generated SD card image ===========================================
+
+Just write sdcard.img directly to the SD card
+
+***** WARNING: Double check that /dev/sdc is your MicroSD card *****
+***** It might be /dev/sdb or some other device name *****
+***** Failure to do so may result in you wiping your hard disk *****
+
+ # dd if=output/images/sdcard.img of=/dev/sdc bs=512
+
+=== Manual creation of SD card image =========================================
+
You'll need a spare MicroSD card with Freescale's special partition layout.
This is basically three partitions:
OpenPOWER on IntegriCloud