From b10d29ea7f860cd2b3e202306c4d8a79d14543e7 Mon Sep 17 00:00:00 2001 From: Biagio Montaruli Date: Thu, 22 Sep 2016 11:50:32 +0200 Subject: [PATCH] configs/acmesystems_aria_g25: update and add genimage handling - configs/acmesystems_aria_g25_128mb_defconfig, configs/acmesystems_aria_g25_256mb_defconfig : update default configuration files for both 128MB and 256MB version - board/acmesystems/aria-g25/genimage.cfg board/acmesystems/aria-g25/post-image.sh : add support for genimage in order to build sdcard.img - board/acmesystems/aria-g25/readme.txt : update documentation for Aria G25 and add notes about how to build sdcard.img Signed-off-by: Biagio Montaruli Signed-off-by: Thomas Petazzoni --- board/acmesystems/aria-g25/genimage.cfg | 35 ++++++++++++ board/acmesystems/aria-g25/post-image.sh | 14 +++++ board/acmesystems/aria-g25/readme.txt | 59 +++++++++----------- configs/acmesystems_aria_g25_128mb_defconfig | 30 +++++++--- configs/acmesystems_aria_g25_256mb_defconfig | 30 +++++++--- 5 files changed, 121 insertions(+), 47 deletions(-) create mode 100644 board/acmesystems/aria-g25/genimage.cfg create mode 100755 board/acmesystems/aria-g25/post-image.sh diff --git a/board/acmesystems/aria-g25/genimage.cfg b/board/acmesystems/aria-g25/genimage.cfg new file mode 100644 index 0000000000..2e2eb129aa --- /dev/null +++ b/board/acmesystems/aria-g25/genimage.cfg @@ -0,0 +1,35 @@ +# Minimal SD card image for the Acmesystems Aria G25 + +image boot.vfat { + vfat { + file zImage { + image = "zImage" + } + + file at91-ariag25.dtb { + image = "at91-ariag25.dtb" + } + + file boot.bin { + image = "at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.6.bin" + } + } + size = 16M +} + +image sdcard.img { + hdimage { + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +} diff --git a/board/acmesystems/aria-g25/post-image.sh b/board/acmesystems/aria-g25/post-image.sh new file mode 100755 index 0000000000..2846f56d72 --- /dev/null +++ b/board/acmesystems/aria-g25/post-image.sh @@ -0,0 +1,14 @@ +#!/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/acmesystems/aria-g25/readme.txt b/board/acmesystems/aria-g25/readme.txt index 734ccd2df5..cb9e9abf77 100644 --- a/board/acmesystems/aria-g25/readme.txt +++ b/board/acmesystems/aria-g25/readme.txt @@ -1,51 +1,44 @@ +Acme Systems Aria G25 + Build instructions ================== -As a regular user configure and then build: - -$ make acmesystems_aria_g25_128mb_defconfig (128MB RAM variant) - or... -$ make acmesystems_aria_g25_256mb_defconfig (256MB RAM variant) +To build an image for the Aria G25 choose the configuration +corresponding to the Aria variant. -$ make +For 128MB RAM variant type: -Writing to the MicroSD card -=========================== +$ make acmesystems_aria_g25_128mb_defconfig -Assuming your Aria G25 baseboard has a MicroSD socket, for example with -the Terra baseboard, you'll need a blank MicroSD (obviously) initialized -in a particular way to be able to boot from it. +else for 256MB RAM variant type: -Assuming the card is seen as /dev/sdb in your PC/laptop/other device -you'll need to run the following commands as root or via sudo. +$ make acmesystems_aria_g25_256mb_defconfig -Make sure all of the card partitions are unmounted before starting. +To customize the configuration choosed type: -First we'll need to create two partitions: +$ make menuconfig -# sfdisk -uM /dev/sdb <