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 <biagio.hkr@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
48f39ce01a
commit
b10d29ea7f
35
board/acmesystems/aria-g25/genimage.cfg
Normal file
35
board/acmesystems/aria-g25/genimage.cfg
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
14
board/acmesystems/aria-g25/post-image.sh
Executable file
14
board/acmesystems/aria-g25/post-image.sh
Executable file
@ -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}"
|
@ -1,51 +1,44 @@
|
|||||||
|
Acme Systems Aria G25
|
||||||
|
|
||||||
Build instructions
|
Build instructions
|
||||||
==================
|
==================
|
||||||
|
|
||||||
As a regular user configure and then build:
|
To build an image for the Aria G25 choose the configuration
|
||||||
|
corresponding to the Aria variant.
|
||||||
|
|
||||||
$ make acmesystems_aria_g25_128mb_defconfig (128MB RAM variant)
|
For 128MB RAM variant type:
|
||||||
or...
|
|
||||||
$ make acmesystems_aria_g25_256mb_defconfig (256MB RAM variant)
|
$ make acmesystems_aria_g25_128mb_defconfig
|
||||||
|
|
||||||
|
else for 256MB RAM variant type:
|
||||||
|
|
||||||
|
$ make acmesystems_aria_g25_256mb_defconfig
|
||||||
|
|
||||||
|
To customize the configuration choosed type:
|
||||||
|
|
||||||
|
$ make menuconfig
|
||||||
|
|
||||||
|
When you are ready to start building Buildroot type:
|
||||||
|
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
Writing to the MicroSD card
|
How to write the microSD card
|
||||||
===========================
|
=============================
|
||||||
|
|
||||||
Assuming your Aria G25 baseboard has a MicroSD socket, for example with
|
Once the build process is finished you will have an image called
|
||||||
the Terra baseboard, you'll need a blank MicroSD (obviously) initialized
|
"sdcard.img" in the output/images/ directory.
|
||||||
in a particular way to be able to boot from it.
|
|
||||||
|
|
||||||
Assuming the card is seen as /dev/sdb in your PC/laptop/other device
|
Write the bootable SD card image "sdcard.img" onto an SD card with
|
||||||
you'll need to run the following commands as root or via sudo.
|
"dd" command:
|
||||||
|
|
||||||
Make sure all of the card partitions are unmounted before starting.
|
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
|
||||||
|
|
||||||
First we'll need to create two partitions:
|
Assuming your Aria G25 baseboard has a MicroSD socket, for example
|
||||||
|
with the Terra baseboard, insert the microSD card into the baseboard
|
||||||
|
slot and power it.
|
||||||
|
|
||||||
# sfdisk -uM /dev/sdb <<EOF
|
To get the kernel log messages you can use a DPI cable
|
||||||
,32,6
|
(http://www.acmesystems.it/DPI)
|
||||||
;
|
|
||||||
EOF
|
|
||||||
|
|
||||||
Then we'll need to create the empty filesystems:
|
|
||||||
|
|
||||||
# mkdosfs -n SD_BOOT /dev/sdb1
|
|
||||||
# mkfs.ext4 -L SD_ROOT /dev/sdb2
|
|
||||||
|
|
||||||
We'll populate the first partition (boot) with the relevant files:
|
|
||||||
|
|
||||||
# mount /dev/sdb1 /mnt
|
|
||||||
# cp output/images/at91bootstrap.bin /mnt/BOOT.BIN
|
|
||||||
# cp output/images/zImage /mnt
|
|
||||||
# cp output/images/at91-ariag25.dtb /mnt
|
|
||||||
# umount /mnt
|
|
||||||
|
|
||||||
And the root filesystem afterwards:
|
|
||||||
|
|
||||||
# mount /dev/sdb2 /mnt
|
|
||||||
# tar -C /mnt output/images/rootfs.tar
|
|
||||||
# umount /mnt
|
|
||||||
|
|
||||||
You're done, insert the MicroSD card in the slot and enjoy.
|
|
||||||
|
|
||||||
|
You can find additional informations, tutorials and a very
|
||||||
|
comprehensive documentation on http://www.acmesystems.it/aria.
|
||||||
|
@ -1,20 +1,36 @@
|
|||||||
# Architecture
|
# Architecture
|
||||||
BR2_arm=y
|
BR2_arm=y
|
||||||
|
|
||||||
# Linux headers same as kernel, a 4.1 series
|
# Kernel headers
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7=y
|
||||||
|
|
||||||
# Kernel
|
# System configuration
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to Aria-G25 Buildroot"
|
||||||
|
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
|
||||||
|
BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/aria-g25/post-image.sh"
|
||||||
|
|
||||||
|
# Kernel configuration
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.1"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7.4"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
|
BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
|
||||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25"
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25"
|
||||||
|
|
||||||
# Bootloader
|
# Root filesystem
|
||||||
|
BR2_TARGET_ROOTFS_EXT2=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2_LABEL="rootfs"
|
||||||
|
|
||||||
|
# AT91bootstrap bootloader
|
||||||
BR2_TARGET_AT91BOOTSTRAP3=y
|
BR2_TARGET_AT91BOOTSTRAP3=y
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
|
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/tanzilli/at91bootstrap.git"
|
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="3f957cec253abc80fd10c733e5e596f46e1aef56"
|
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.6"
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="aria-128m"
|
BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="aria-128m"
|
||||||
|
|
||||||
|
# Tools to build sdcard.img
|
||||||
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
@ -1,20 +1,36 @@
|
|||||||
# Architecture
|
# Architecture
|
||||||
BR2_arm=y
|
BR2_arm=y
|
||||||
|
|
||||||
# Linux headers same as kernel, a 4.1 series
|
# Kernel headers
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7=y
|
||||||
|
|
||||||
# Kernel
|
# System configuration
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to Aria-G25 Buildroot"
|
||||||
|
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
|
||||||
|
BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/aria-g25/post-image.sh"
|
||||||
|
|
||||||
|
# Kernel configuration
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.1"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7.4"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
|
BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
|
||||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25"
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25"
|
||||||
|
|
||||||
# Bootloader
|
# Root filesystem
|
||||||
|
BR2_TARGET_ROOTFS_EXT2=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2_LABEL="rootfs"
|
||||||
|
|
||||||
|
# AT91bootstrap bootloader
|
||||||
BR2_TARGET_AT91BOOTSTRAP3=y
|
BR2_TARGET_AT91BOOTSTRAP3=y
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
|
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/tanzilli/at91bootstrap.git"
|
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="3f957cec253abc80fd10c733e5e596f46e1aef56"
|
BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.6"
|
||||||
BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="aria-256m"
|
BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="aria-256m"
|
||||||
|
|
||||||
|
# Tools to build sdcard.img
|
||||||
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
Loading…
Reference in New Issue
Block a user