Skip to contentSkip to conversation

Improved patches for Arietta G25 and Aria G25 boards

Buildroot New Biagio Montaruli 3 participants 10 messages Sep 20, 2016 – Sep 21, 2016

lore
Share & tools
lore
#0 lore raw

Hi all,
I have improved the previous patches that I sent to improve Buildroot configuration for Arietta G25 and Aria G25.
Here you are the main changes :

1) Use the mainline linux kernel (the default version used by Buildrooot)

2) Add post-build.sh script beacause, the build of AT91bootstrap produces "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin" that needs to be renamed to "boot.bin" because the boot ROM code expects to load a file named ar91bootstrap3 and moves the binary files in this directory. Finally the script create a copy of at91sam9x5_arietta-sdcardboot-linux-zima$ with the boot.bin name that is used to build the sdcard.img with genimage. It is necessary to move the boot.bin link in another directory since we can't rename at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin to boot.bin because at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin and the boot.bin link are in the same directory (to avoid name collision). Regarding the AT91bootstrap package in Buildroot,
I think that it should be updated to 3.8.6 version since Buildroot uses the 3.8 version

3) Add genimage.cfg in order to build sdcard.img

4) Remove the local configuration of usb0
(which was added in the previous series of patches I sent)

5) Update documentation in readme.txt file for both Arietta and Aria

Best regards,
Biagio

#1 lore raw

PATCH 1/2 Buildroot v2016.08 configuration for Acmesystems Arietta G25

- Update default configuration files for both 128MB and 256MB version :

Quoted 2 lines

Add support for the default kernel version,
Add support for AT91bootstrap v3.8.6

- Add 'post-build.sh' script to rename the AT91bootstrap binary file from 'at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6' to 'boot.bin' because the boot ROM code needs to load boot.bin to SRAM and run it

- Add 'post-image.sh' script and 'genimage.cfg' in order to build sdcard.img for Arietta-G25

- Update documentation and notes about how to build sdcard.img for Arietta G25 in the readme.txt file

---
 board/acmesystems/arietta-g25/genimage.cfg      | 14 +++------
 board/acmesystems/arietta-g25/post-build.sh     | 14 +++++++++
 board/acmesystems/arietta-g25/post-image.sh     |  2 +-
 board/acmesystems/arietta-g25/readme.txt        | 31 ++++++++++++--------
 configs/acmesystems_arietta_g25_128mb_defconfig | 38 ++++++++++++++-----------
 configs/acmesystems_arietta_g25_256mb_defconfig | 38 ++++++++++++++-----------
 6 files changed, 82 insertions(+), 55 deletions(-)
 create mode 100755 board/acmesystems/arietta-g25/post-build.sh
board/acmesystems/arietta-g25/genimage.cfg +4 -10
index 1080b0e..d4e1648 100644
@@ -2,16 +2,10 @@
 #
 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"
+		files = {
+			"zImage",
+			"at91-ariettag25.dtb",
+			"boot.bin"
 		}
 	}
 	size = 16M
board/acmesystems/arietta-g25/post-build.sh new file +14 -0
new file mode 100755
index 0000000..e8c8918
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -e ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin ]; then 
+	if [ -e ${BINARIES_DIR}/boot.bin ]; then
+		mkdir ${BINARIES_DIR}/arietta-at91bootstrap3
+		mv ${BINARIES_DIR}/*.bin ${BINARIES_DIR}/arietta-at91bootstrap3
+		cp -v ${BINARIES_DIR}/arietta-at91bootstrap3/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin ${BINARIES_DIR}/boot.bin
+	else
+		mv ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin ${BINARIES_DIR}/boot.bin
+	fi
+else
+	echo "Cannot find the AT91bootstrap image for Arietta-G25"
+fi
+
board/acmesystems/arietta-g25/post-image.sh +1 -1
index c82b189..9cca1b1 100755
@@ -6,7 +6,7 @@ GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
 
 rm -rf "${GENIMAGE_TMP}"
 
-genimage                               \
+genimage                           \
 	--rootpath "${TARGET_DIR}"     \
 	--tmppath "${GENIMAGE_TMP}"    \
 	--inputpath "${BINARIES_DIR}"  \
board/acmesystems/arietta-g25/readme.txt +19 -12
index 485e275..c712c8f 100644
@@ -1,11 +1,16 @@
-Acmesystems Arietta G25
+Acme Systems 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.
+Buildroot configuration for Arietta G25.
+This default configuration allows you to build a minimal root filesystem
+which includes the support for the serial console.
+The default configuration for Arietta G25 includes the getty program that
+enables you to log in through the serial console ttyS0.
+After the boot, to log in at the getty prompt use the following credentials:
+Username: root
+Password: acmesystems
 
 You can find additional informations, tutorials and a very comprehensive
 documentation on http://www.acmesystems.it/arietta.
@@ -13,8 +18,8 @@ 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.
+To build an image for the Arietta G25 choose the configuration
+corresponding to the Arietta variant.
 
 For 128MB RAM variant type:
 
@@ -24,7 +29,11 @@ else for 256MB RAM variant type:
 
 $ make acmesystems_arietta_g25_256mb_defconfig
 
-then:
+To customize the configuration choosed type:
+
+$ make menuconfig
+
+When you are ready to start building Buildroot type:
 
 $ make
 
@@ -34,12 +43,10 @@ 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":
+Write the bootable SD card image "sdcard.img" onto an SD card with "dd" command:
 
   $ sudo dd if=output/images/sdcard.img of=/dev/sdX
 
-Insert the microSD card into the arietta slot and power it.
+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)
+To get the kernel log messages you can use a DPI cable (http://www.acmesystems.it/DPI)
configs/acmesystems_arietta_g25_128mb_defconfig +22 -16
index e5ddf13..518d13e 100644
@@ -1,30 +1,36 @@
 # Architecture
 BR2_arm=y
 
-# Toolchain
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+# Kernel header
+BR2_KERNEL_HEADERS_4_7=y
 
-# Kernel
+# System configuration
+BR2_TARGET_GENERIC_ISSUE="Welcome to Arietta-G25 Buildroot"
+BR2_TARGET_GENERIC_ROOT_PASSWD="acmesystems"
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/acmesystems/arietta-g25/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/arietta-g25/post-image.sh"
+
+# Kernel configuration
 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_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25"
-BR2_LINUX_KERNEL_XZ=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariettag25"
+
+# Root filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_LABEL="rootfs"
 
-# Bootloader
+# AT91bootstrap bootloader
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/tanzilli/at91bootstrap.git"
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="cedbde4b36695b715f469f4872f47e5cc8115000"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/biagiom/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.6-buildroot"
 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
+# Host tools to build sdcard.img
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
configs/acmesystems_arietta_g25_256mb_defconfig +22 -16
index cf6f67b..a858a90 100644
@@ -1,30 +1,36 @@
 # Architecture
 BR2_arm=y
 
-# Toolchain
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+# Kernel header
+BR2_KERNEL_HEADERS_4_7=y
 
-# Kernel
+# System configuration
+BR2_TARGET_GENERIC_ISSUE="Welcome to Arietta-G25 Buildroot"
+BR2_TARGET_GENERIC_ROOT_PASSWD="acmesystems"
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/acmesystems/arietta-g25/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/arietta-g25/post-image.sh"
+
+# Kernel configuration
 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_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariag25"
-BR2_LINUX_KERNEL_XZ=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-ariettag25"
+
+# Root filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_LABEL="rootfs"
 
-# Bootloader
+# AT91bootstrap bootloader
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/tanzilli/at91bootstrap.git"
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="cedbde4b36695b715f469f4872f47e5cc8115000"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/biagiom/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.6-buildroot"
 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
+# Host tools to build sdcard.img
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 Buildroot v2016.08 configuration for Acmesystems Aria G25

In reply to Biagio Montaruli

- Update default configuration files for both 128MB and 256MB version :

Quoted 2 lines

Add support for the default kernel version,
Add support for AT91bootstrap v3.8.6

- Add 'post-build.sh' script to rename the AT91bootstrap binary file from 'at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.6' to 'boot.bin' because the boot ROM code needs to load boot.bin to SRAM and run it

- Add 'post-image.sh' script and 'genimage.cfg' in order to build sdcard.img for Aria-G25

- Update documentation and notes about how to build sdcard.img for Aria G25 in the readme.txt file

---
 board/acmesystems/aria-g25/genimage.cfg      | 29 ++++++++++++
 board/acmesystems/aria-g25/post-build.sh     | 14 ++++++
 board/acmesystems/aria-g25/post-image.sh     | 16 +++++++
 board/acmesystems/aria-g25/readme.txt        | 70 ++++++++++++++--------------
 configs/acmesystems_aria_g25_128mb_defconfig | 32 +++++++++----
 configs/acmesystems_aria_g25_256mb_defconfig | 32 +++++++++----
 6 files changed, 143 insertions(+), 50 deletions(-)
 create mode 100644 board/acmesystems/aria-g25/genimage.cfg
 create mode 100644 board/acmesystems/aria-g25/post-build.sh
 create mode 100644 board/acmesystems/aria-g25/post-image.sh
board/acmesystems/aria-g25/genimage.cfg new file +29 -0
new file mode 100644
index 0000000..a3f7301
@@ -0,0 +1,29 @@
+# Minimal SD card image for the Acmesystems Aria-G25
+
+image boot.vfat {
+	vfat {
+		files = {
+			"zImage",
+			"at91-ariag25.dtb",
+			"boot.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
+	}
+}
board/acmesystems/aria-g25/post-build.sh new file +14 -0
new file mode 100644
index 0000000..684726a
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -e ${BINARIES_DIR}/at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.6.bin ]; then 
+	if [ -e ${BINARIES_DIR}/boot.bin ]; then
+		mkdir ${BINARIES_DIR}/aria-at91bootstrap3
+		mv ${BINARIES_DIR}/*.bin ${BINARIES_DIR}/aria-at91bootstrap3
+		cp -v ${BINARIES_DIR}/aria-at91bootstrap3/at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.6.bin ${BINARIES_DIR}/boot.bin
+	else
+		mv ${BINARIES_DIR}/at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.6.bin ${BINARIES_DIR}/boot.bin
+	fi
+else
+	echo "Cannot find the AT91bootstrap image for Aria-G25"
+fi
+
board/acmesystems/aria-g25/post-image.sh new file +16 -0
new file mode 100644
index 0000000..9cca1b1
@@ -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 $?
board/acmesystems/aria-g25/readme.txt +36 -34

87 lines not on this page · raw message

configs/acmesystems_aria_g25_128mb_defconfig +24 -8
index c4d2cd6..0de281b 100644
@@ -1,20 +1,36 @@
 # Architecture
 BR2_arm=y
 
-# Linux headers same as kernel, a 4.1 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+# Kernel header
+BR2_KERNEL_HEADERS_4_7=y
 
-# Kernel
+# System configuration
+BR2_TARGET_GENERIC_ISSUE="Welcome to Aria-G25 Buildroot"
+BR2_TARGET_GENERIC_ROOT_PASSWD="acmesystems"
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/acmesystems/aria-g25/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/aria-g25/post-image.sh"
+
+# Kernel configuration
 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_DTS_SUPPORT=y
 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_CUSTOM_GIT=y
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/tanzilli/at91bootstrap.git"
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="3f957cec253abc80fd10c733e5e596f46e1aef56"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/biagiom/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.6-buildroot"
 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
configs/acmesystems_aria_g25_256mb_defconfig +24 -8
index ba191c6..17dcb56 100644
@@ -1,20 +1,36 @@
 # Architecture
 BR2_arm=y
 
-# Linux headers same as kernel, a 4.1 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+# Kernel header
+BR2_KERNEL_HEADERS_4_7=y
 
-# Kernel
+# System configuration
+BR2_TARGET_GENERIC_ISSUE="Welcome to Aria-G25 Buildroot"
+BR2_TARGET_GENERIC_ROOT_PASSWD="acmesystems"
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/acmesystems/aria-g25/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/acmesystems/aria-g25/post-image.sh"
+
+# Kernel configuration
 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_DTS_SUPPORT=y
 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_CUSTOM_GIT=y
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/tanzilli/at91bootstrap.git"
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="3f957cec253abc80fd10c733e5e596f46e1aef56"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/biagiom/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.6-buildroot"
 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
Signature · 1 line
2.7.4
#3 lore raw
In reply to Biagio Montaruli

Hi Biagio,

2016-09-20 9:34 GMT+02:00 Biagio Montaruli <[email protected]>:

Quoted 18 lines

Hi all,
I have improved the previous patches that I sent to improve Buildroot configuration for Arietta G25 and Aria G25.
Here you are the main changes :

1) Use the mainline linux kernel (the default version used by Buildrooot)

2) Add post-build.sh script beacause, the build of AT91bootstrap produces "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin" that needs
to be
renamed to "boot.bin" because the boot ROM code expects to load a file
named
ar91bootstrap3 and moves the binary files in this directory. Finally the script create a copy of at91sam9x5_arietta-sdcardboot-
linux-zima$
with the boot.bin name that is used to build the sdcard.img with
genimage.
It is necessary to move the boot.bin link in another directory since

Quoted 9 lines

we can't rename at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin to boot.bin because at91sam9x5_arietta-sdcardboot-
linux-zimage-dt-3.8.6.bin
and the boot.bin link are in the same directory (to avoid name
collision).
Regarding the AT91bootstrap package in Buildroot,
I think that it should be updated to 3.8.6 version since Buildroot uses the 3.8 version

Two things here

a) Probably you have not grasped the details of image generation, these lines:

file boot.bin {
    image = "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin"
}

renames the the image file at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin to boot.bin just at the moment of building the sdcard image, so I can't see why we need another script.

b) I think you have to send your patches to the Tanzilli's github with a pull request, I really prefer to have all the Acmesystems related patches into his repo.

Quoted 16 lines

3) Add genimage.cfg in order to build sdcard.img

4) Remove the local configuration of usb0
(which was added in the previous series of patches I sent)

5) Update documentation in readme.txt file for both Arietta and Aria

Best regards,
Biagio

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160920/cb8d3f3e/attachment.html>
#4 lore raw

Hi Angelo,
thanks for your suggestion, I will update the genimage.cfg file and so the post-build.sh script can be removed.
I added the post-build.sh script not only to rename *at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin* but also to check if the AT91bootstrap has been builded correctly.
Best regards

2016-09-20 9:54 GMT+02:00 Angelo Compagnucci <[email protected]>:

Quoted 70 lines

Hi Biagio,

2016-09-20 9:34 GMT+02:00 Biagio Montaruli <[email protected]>:

Quoted 19 lines

Hi all,
I have improved the previous patches that I sent to improve Buildroot configuration for Arietta G25 and Aria G25.
Here you are the main changes :

1) Use the mainline linux kernel (the default version used by Buildrooot)

2) Add post-build.sh script beacause, the build of AT91bootstrap produces "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.6.bin" that needs
to be
renamed to "boot.bin" because the boot ROM code expects to load a file
named
ar91bootstrap3 and moves the binary files in this directory. Finally the script create a copy of at91sam9x5_arietta-sdcardboot-
linux-zima$
with the boot.bin name that is used to build the sdcard.img with
genimage.
It is necessary to move the boot.bin link in another directory since we can't rename at91sam9x5_arietta-sdcardboot-

Quoted 9 lines

linux-zimage-dt-3.8.6.bin
to boot.bin because at91sam9x5_arietta-sdcardboot-
linux-zimage-dt-3.8.6.bin
and the boot.bin link are in the same directory (to avoid name
collision).
Regarding the AT91bootstrap package in Buildroot,
I think that it should be updated to 3.8.6 version since Buildroot uses the 3.8 version

Two things here

a) Probably you have not grasped the details of image generation, these lines:

file boot.bin {
    image = "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin"
}

renames the the image file at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin to boot.bin just at the moment of building the sdcard image, so I can't see why we need another script.

b) I think you have to send your patches to the Tanzilli's github with a pull request, I really prefer to have all the Acmesystems related patches into his repo.

Quoted 8 lines

3) Add genimage.cfg in order to build sdcard.img

4) Remove the local configuration of usb0
(which was added in the previous series of patches I sent)

5) Update documentation in readme.txt file for both Arietta and Aria

Quoted 8 lines

Best regards,
Biagio

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Quoted 3 lines

--
Profile: http://it.linkedin.com/in/compagnucciangelo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160920/019f5a4b/attachment.html>

#5 lore raw
In reply to Angelo Compagnucci

Hello,

Quoted 11 lines · Angelo Compagnucci

a) Probably you have not grasped the details of image generation, these lines:

file boot.bin {
    image = "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin"
}

renames the the image file at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin to boot.bin just at the moment of building the sdcard image, so I can't see why we need another script.

I agree.

Quoted 3 lines

b) I think you have to send your patches to the Tanzilli's github with a pull request, I really prefer to have all the Acmesystems related patches into his repo.

I don't understand what you mean here. There are no kernel or bootloader patches added by Biagio patches.

Or maybe you're suggesting that the Buildroot patches themselves should be sent to Tanzilli's Github?

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#6 lore raw

Hi Thomas,

2016-09-20 12:09 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@free- electrons.com>:

Quoted 24 lines

Hello,

Quoted 9 lines · Angelo Compagnucci

a) Probably you have not grasped the details of image generation, these lines:

file boot.bin {
    image = "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin"
}

renames the the image file at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin to boot.bin just

at

Quoted 1 line

the moment of building the sdcard image, so I can't see why we need

another

Quoted 1 line

script.

I agree.

Quoted 3 lines

b) I think you have to send your patches to the Tanzilli's github with a pull request, I really prefer to have all the Acmesystems related patches into his repo.

Quoted 6 lines

I don't understand what you mean here. There are no kernel or bootloader patches added by Biagio patches.

Or maybe you're suggesting that the Buildroot patches themselves should be sent to Tanzilli's Github?

Biagio changed the repository for at91bootstrap to his own fork. I would really prefer to have all related Acmesystems patches into the Tanzilli's repo cause he is the maintainer for his own products patches.

Sincerely, Angelo

Quoted 9 lines

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160920/287a1f36/attachment.html>
#7 lore raw

Hello,

Quoted 3 lines · Angelo Compagnucci

Biagio changed the repository for at91bootstrap to his own fork. I would really prefer to have all related Acmesystems patches into the Tanzilli's repo cause he is the maintainer for his own products patches.

Ah, yes, indeed. Please use the "reference" Github repository.

Biagio, why did you change to your own Github repository for at91bootstrap ?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#8 lore raw

Hi Thomas,
In the next patches that I will send, I have used the official repository for at91bootstrap (i.e https://github.com/linux4sam/at91bootstrap) since it includes the patches I have sent to update at91bootsrtap configuration for Acme Systems boards (Arietta, Aria and Acqua).
I think that the at91bootstrap package should be updated to 3.8.6 version which is the lastest version.
In the previous patches that I sent, I have changed to my own Github repository for at91bootstrap because when I tried to compile the at91bootstrap of Tanzilli's repo I got some errors and I noticed that the configuration for Acme Systems boards had to be updated. For this reason, I cloned the official at91bootstrap repo (i.e the official Atmel repo which also included an old configuration for Acme Systems boards) and I have updated the configuration of Arietta, Aria and Acqua boards since new configuration options were added and some old ones were been removed. You can see the changes in my at91bootstrap github repo.
I have also make a post in the acmesystems google group to explain the changes I introduced in at91bootstrap and I have also sent an email to Sergio Tanzilli to inform it about the new version of At91bootstrap but I haven't received a reply yet.
I will also make a pull request to the Tanzilli's repo.

2016-09-20 14:11 GMT+02:00 Thomas Petazzoni <
[email protected]>:

Quoted 13 lines

Hello,

Quoted 3 lines · Angelo Compagnucci

Biagio changed the repository for at91bootstrap to his own fork. I would really prefer to have all related Acmesystems patches into the Tanzilli's repo cause he is the maintainer for his own products patches.

Ah, yes, indeed. Please use the "reference" Github repository.

Biagio, why did you change to your own Github repository for at91bootstrap ?

Quoted 8 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160921/0f0a718a/attachment.html>

#9 lore raw

Hi Biagio

2016-09-21 10:37 GMT+02:00 Biagio Montaruli <[email protected]>:

Quoted 6 lines

Hi Thomas,
In the next patches that I will send, I have used the official repository for at91bootstrap (i.e https://github.com/linux4sam/at91bootstrap) since it includes the patches I have sent to update at91bootsrtap configuration for Acme Systems boards (Arietta, Aria and Acqua).

Good job!

Quoted 3 lines

I think that the at91bootstrap package should be updated to 3.8.6 version which is the lastest version.

Probably yes, but in another patch relative to that package.

Quoted 6 lines

In the previous patches that I sent, I have changed to my own Github repository for at91bootstrap because when I tried to compile the at91bootstrap of Tanzilli's repo I got some errors and I noticed that the configuration for Acme Systems boards had to be updated. For this reason, I cloned the official at91bootstrap repo (i.e the official Atmel repo which also included an old configuration for Acme Systems boards) and I have

Quoted 9 lines

updated the configuration of Arietta, Aria and Acqua boards since new configuration options were added and some old ones were been removed. You can see the changes in my at91bootstrap github repo.
I have also make a post in the acmesystems google group to explain the changes I introduced in at91bootstrap and I have also sent an email to Sergio Tanzilli to inform it about the new version of At91bootstrap but I haven't received a reply yet.
I will also make a pull request to the Tanzilli's repo.

If the patches are accepted upstream, there is no need anymore to rely on the Tanzilli's fork, so IMO you can skip this step.

Quoted 28 lines

2016-09-20 14:11 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@free- electrons.com>:

Quoted 22 lines

Hello,

Quoted 2 lines · Angelo Compagnucci

Biagio changed the repository for at91bootstrap to his own fork. I would really prefer to have all related Acmesystems patches into the

Tanzilli's

Quoted 1 line

repo cause he is the maintainer for his own products patches.

Ah, yes, indeed. Please use the "reference" Github repository.

Biagio, why did you change to your own Github repository for at91bootstrap ?

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160921/14623217/attachment-0001.html>