From patchwork Fri Feb 5 18:08:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 579545 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id F0F1C140B95 for ; Sat, 6 Feb 2016 05:09:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=MuDrJrJi; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8F05033A43; Fri, 5 Feb 2016 18:09:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SGtZEt-m7Eo8; Fri, 5 Feb 2016 18:08:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C5C75338A7; Fri, 5 Feb 2016 18:08:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B5B7C1C11DC for ; Fri, 5 Feb 2016 18:08:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B025A915A5 for ; Fri, 5 Feb 2016 18:08:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lzjz2KgHGvPJ for ; Fri, 5 Feb 2016 18:08:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5AF62920CC for ; Fri, 5 Feb 2016 18:08:55 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id p63so4091431wmp.1 for ; Fri, 05 Feb 2016 10:08:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=yyuXzjXfRyEtgmtNa1Fq1XWbLhPyebfpqs/AEk6z2dc=; b=MuDrJrJibis5UjJd1V/RhHTjerrDibpAKOKfnNi/cEJYNSSI0uA0nTuhP1K/1y8IFj 9NiMNWT/B0MbLN1/ibFYz55bJLyB554HizLuCk9fhvRMGh6/wHITRkVpm0F6LqKzknTY SbIZcfR/8CW2bP2w4uYv+lfgrPR48t39rUDYVwifVFjNnaaVDeovhaUtsd//AWqYqeMy Qv9DTJTTW90jbtpNRFAssU0PT8M01c7P8trLQaH968T3CumTYjn3HIxSqe9+aNNonP/I e+ylRdlpPOiizcIMaSpNH6O7daNTlz8Wu3HfPSoiyXGo5zLUE50wb/ZgeUi+iloaZ5Ot 87vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yyuXzjXfRyEtgmtNa1Fq1XWbLhPyebfpqs/AEk6z2dc=; b=IVAeyfqLgf+UJjwHEGR1V15ybmq7ttjAUzi9Es6TJ2TWdFJEtP1qdpeBSJx4bx/VWp 1/XLteW1Uv8iOWAEYeJa/sbamsSyVf2to+g2leguns8x5rHt31BmnuNSylVSIXLI8nd2 B+jSIbbFgmcUhuhGmvehRobxDiO3x53oT+j8t5t6gPB9Ib/BUwyO7Owx9SLlYKtIG4es pXWdPz0oOTt/96MCNMyaN0oidiJXBB72rGbyeH1kNGB21Y04ZkCEYHch2wfZToopnqUz nONBBG2QfAliVJ5wz/MJt1zbGEORvpMMwte/l9vtUNKkes4cWzgw/53gYcCz7UBkpoVa seJg== X-Gm-Message-State: AG10YOSHDZ4drQRYHph0mDZ17w/pc6FXnOyu5SD7ne9/uMHnnmRKnubdAjZArrPas/RV9g== X-Received: by 10.28.138.69 with SMTP id m66mr40710645wmd.101.1454695734030; Fri, 05 Feb 2016 10:08:54 -0800 (PST) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id e198sm18492198wmd.0.2016.02.05.10.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Feb 2016 10:08:52 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 5 Feb 2016 19:08:40 +0100 Message-Id: <1454695720-24583-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH v3] board: Add support for Acmesystems Arietta g25 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds a minimal working configuration for Acmesystems Arietta g25. Signed-off-by: Angelo Compagnucci --- Changelog: v3 -> v3: * Fixing missing DOSFSTOOLS, MTOOLS * Rewording of readme.txt v1 -> v2: * Using genimage for image generation, updating documentation accordingly. board/acmesystems/arietta-g25/genimage.cfg | 35 +++++++++++++++++++ board/acmesystems/arietta-g25/post-image.sh | 16 +++++++++ board/acmesystems/arietta-g25/readme.txt | 45 +++++++++++++++++++++++++ configs/acmesystems_arietta_g25_128mb_defconfig | 33 ++++++++++++++++++ configs/acmesystems_arietta_g25_256mb_defconfig | 33 ++++++++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 board/acmesystems/arietta-g25/genimage.cfg create mode 100755 board/acmesystems/arietta-g25/post-image.sh create mode 100644 board/acmesystems/arietta-g25/readme.txt create mode 100644 configs/acmesystems_arietta_g25_128mb_defconfig create mode 100644 configs/acmesystems_arietta_g25_256mb_defconfig diff --git a/board/acmesystems/arietta-g25/genimage.cfg b/board/acmesystems/arietta-g25/genimage.cfg new file mode 100644 index 0000000..d69d403 --- /dev/null +++ b/board/acmesystems/arietta-g25/genimage.cfg @@ -0,0 +1,35 @@ +# Minimal SD card image for the Acmesystems Arietta G25 +# +image boot.vfat { + vfat { + file zImage { + image = "zImage" + } + + file acme-arietta.dtb { + image = "at91-ariag25.dtb" + } + + file boot.bin{ + image = "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.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/arietta-g25/post-image.sh b/board/acmesystems/arietta-g25/post-image.sh new file mode 100755 index 0000000..c82b189 --- /dev/null +++ b/board/acmesystems/arietta-g25/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/acmesystems/arietta-g25/readme.txt b/board/acmesystems/arietta-g25/readme.txt new file mode 100644 index 0000000..3680b95 --- /dev/null +++ b/board/acmesystems/arietta-g25/readme.txt @@ -0,0 +1,45 @@ +Acmesystems Arietta G25 + +Intro +===== + +This default configuration will allow you to start experimenting with the +buildroot environment for the Arietta G25. With the current configuration +it will bring-up the board, and allow access through the serial console. + +You can find additional informations, tutorials and a very comprehensive +documentation on http://www.acmesystems.it/arietta. + +Build instructions +================== + +To build an image for the arietta g25 choose the configuration +corresponding to the arietta variant. + +For 128MB RAM variant type: + +$ make acmesystems_arietta_g25_128mb_defconfig + +else for 256MB RAM variant type: + +$ make acmesystems_arietta_g25_256mb_defconfig + +then: + +$ make + +How to write the microSD card +============================= + +Once the build process is finished you will have an image called "sdcard.img" +in the output/images/ directory. + +Copy the bootable "sdcard.img" onto an SD card with "dd": + + $ sudo dd if=output/images/sdcard.img of=/dev/sdX + +Insert the microSD card into the arietta slot and power it. + +The image just built is fairly basic and the only output +you will get is on serial console, please consider to use a DPI +cable (http://www.acmesystems.it/DPI) diff --git a/configs/acmesystems_arietta_g25_128mb_defconfig b/configs/acmesystems_arietta_g25_128mb_defconfig new file mode 100644 index 0000000..e7f1dee --- /dev/null +++ b/configs/acmesystems_arietta_g25_128mb_defconfig @@ -0,0 +1,33 @@ +# Architecture +BR2_arm=y + +# Toolchain +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="4.1.1" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.1" +BR2_LINUX_KERNEL_DEFCONFIG="at91_dt" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25" +BR2_LINUX_KERNEL_XZ=y + +# Bootloader +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="git://github.com/tanzilli/at91bootstrap.git" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="cedbde4b36695b715f469f4872f47e5cc8115000" +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="arietta-128m" + +# Image +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/arietta-g25/post-image.sh" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_MTOOLS=y diff --git a/configs/acmesystems_arietta_g25_256mb_defconfig b/configs/acmesystems_arietta_g25_256mb_defconfig new file mode 100644 index 0000000..8c39001 --- /dev/null +++ b/configs/acmesystems_arietta_g25_256mb_defconfig @@ -0,0 +1,33 @@ +# Architecture +BR2_arm=y + +# Toolchain +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="4.1.1" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.1" +BR2_LINUX_KERNEL_DEFCONFIG="at91_dt" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25" +BR2_LINUX_KERNEL_XZ=y + +# Bootloader +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="git://github.com/tanzilli/at91bootstrap.git" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="cedbde4b36695b715f469f4872f47e5cc8115000" +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="arietta-256m" + +# Image +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/arietta-g25/post-image.sh" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_MTOOLS=y