From 316215a746f59f9ffcbc39d3a1475f432e02dd27 Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Tue, 23 Feb 2016 01:24:30 +0100 Subject: olimex_a20_olinuxino_micro: update to use genimage Signed-off-by: Luca Ceresoli Signed-off-by: Peter Korsgaard --- board/olimex/a20_olinuxino/genimage.cfg | 16 ++++++++++++++++ board/olimex/a20_olinuxino/post-image.sh | 16 ++++++++++++++++ board/olimex/a20_olinuxino/readme.txt | 17 +++++++++++++++-- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 board/olimex/a20_olinuxino/genimage.cfg create mode 100755 board/olimex/a20_olinuxino/post-image.sh (limited to 'board/olimex') diff --git a/board/olimex/a20_olinuxino/genimage.cfg b/board/olimex/a20_olinuxino/genimage.cfg new file mode 100644 index 000000000..8ea24ccab --- /dev/null +++ b/board/olimex/a20_olinuxino/genimage.cfg @@ -0,0 +1,16 @@ +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8192 + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +} diff --git a/board/olimex/a20_olinuxino/post-image.sh b/board/olimex/a20_olinuxino/post-image.sh new file mode 100755 index 000000000..9cca1b178 --- /dev/null +++ b/board/olimex/a20_olinuxino/post-image.sh @@ -0,0 +1,16 @@ +#!/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}" + +exit $? diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt index 485bf5668..febfbe7f7 100644 --- a/board/olimex/a20_olinuxino/readme.txt +++ b/board/olimex/a20_olinuxino/readme.txt @@ -52,6 +52,7 @@ After building, you should get a tree like this: +-- rootfs.ext2 +-- rootfs.ext4 -> rootfs.ext2 +-- script.bin (lime_mali) + +-- sdcard.img (micro) +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline) +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline) +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline) @@ -60,8 +61,20 @@ After building, you should get a tree like this: `-- zImage -How to write the SD card -======================== +How to write the SD card - boards with sdcard.img +================================================= + +The sdcard.img file is a complete bootable image ready to be written +on the boot medium. To install it, simply copy the image to a uSD +card: + + # dd if=output/images/sdcard.img of=/dev/sdX + +Where 'sdX' is the device node of the uSD. + + +How to write the SD card - other boards +======================================= Prepare the SD card -- cgit v1.2.3