Skip to contentSkip to conversation

board: Add support for Acmesystems Arietta g25

PATCH Superseded Angelo Compagnucci 2 participants 3 messages Jan 23, 2016 – Feb 3, 2016

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: Add support for Acmesystems Arietta g25

This patch adds a minimal working configuration for Acmesystems Arietta g25

---
 board/acmesystems/arietta-g25/readme.txt        | 50 +++++++++++++++++++++++++
 configs/acmesystems_arietta_g25_128mb_defconfig | 23 ++++++++++++
 configs/acmesystems_arietta_g25_256mb_defconfig | 23 ++++++++++++
 3 files changed, 96 insertions(+)
 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
board/acmesystems/arietta-g25/readme.txt new file +50 -0
new file mode 100644
index 0000000..bccdb61
@@ -0,0 +1,50 @@
+Build instructions
+==================
+
+As a regular user configure and then build:
+
+$ make acmesystems_arietta_g25_128mb_defconfig (128MB RAM variant)
+  or...
+$ make acmesystems_arietta_g25_256mb_defconfig (256MB RAM variant)
+
+$ make
+
+Writing to the MicroSD card
+===========================
+
+You'll need a blank MicroSD (obviously) initialized
+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
+you'll need to run the following commands as root or via sudo.
+
+Make sure all of the card partitions are unmounted before starting.
+
+First we'll need to create two partitions:
+
+# sfdisk -uM /dev/sdb <<EOF
+,32,6
+;
+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.
+
configs/acmesystems_arietta_g25_128mb_defconfig new file +23 -0
new file mode 100644
index 0000000..97813b9
@@ -0,0 +1,23 @@
+# 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
+
+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"
configs/acmesystems_arietta_g25_256mb_defconfig new file +23 -0
new file mode 100644
index 0000000..20336c8
@@ -0,0 +1,23 @@
+# 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
+
+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"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 board: Add support for Acmesystems Arietta g25

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]> writes:

This patch adds a minimal working configuration for Acmesystems Arietta g25

Thanks, see below for a few comments.

Quoted 15 lines
---
 board/acmesystems/arietta-g25/readme.txt        | 50 +++++++++++++++++++++++++
 configs/acmesystems_arietta_g25_128mb_defconfig | 23 ++++++++++++
 configs/acmesystems_arietta_g25_256mb_defconfig | 23 ++++++++++++
 3 files changed, 96 insertions(+)
 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
board/acmesystems/arietta-g25/readme.txt new file +0 -0
new file mode 100644
index 0000000..bccdb61

board/acmesystems/arietta-g25/readme.txt line 8

Quoted 8 lines
board/acmesystems/arietta-g25/readme.txt new file +8 -0
@@ -0,0 +1,50 @@
+Build instructions
+==================
+
+As a regular user configure and then build:
+
+$ make acmesystems_arietta_g25_128mb_defconfig (128MB RAM variant)
+  or...
+$ make acmesystems_arietta_g25_256mb_defconfig (256MB RAM variant)

It's a pity that we need two different configurations when they are so similar. It's been a few years since I've used at91bootstrap, I take it that doesn't have any sdram size detection logic like U-Boot has nowadays? (get_ram_size()).

Quoted 30 lines
board/acmesystems/arietta-g25/readme.txt new file +30 -0
+$ make
+
+Writing to the MicroSD card
+===========================
+
+You'll need a blank MicroSD (obviously) initialized
+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
+you'll need to run the following commands as root or via sudo.
+
+Make sure all of the card partitions are unmounted before starting.
+
+First we'll need to create two partitions:
+
+# sfdisk -uM /dev/sdb <<EOF
+,32,6
+;
+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

board/acmesystems/arietta-g25/readme.txt line 49

Quoted 10 lines
board/acmesystems/arietta-g25/readme.txt new file +10 -0
+# 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.

Could you convert this to genimage instead of all these manual steps? Have a look at board/orangepi/orangepipc/genimage.cfg for an example.

Thanks!

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 board: Add support for Acmesystems Arietta g25

Dear Peter Korsgaard,

2016-02-02 12:20 GMT+01:00 Peter Korsgaard <[email protected]>:

Quoted 29 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]> writes:

This patch adds a minimal working configuration for Acmesystems Arietta g25

Thanks, see below for a few comments.

Quoted 20 lines
---
 board/acmesystems/arietta-g25/readme.txt        | 50 +++++++++++++++++++++++++
 configs/acmesystems_arietta_g25_128mb_defconfig | 23 ++++++++++++
 configs/acmesystems_arietta_g25_256mb_defconfig | 23 ++++++++++++
 3 files changed, 96 insertions(+)
 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
board/acmesystems/arietta-g25/readme.txt new file +5 -0
new file mode 100644
index 0000000..bccdb61
@@ -0,0 +1,50 @@
+Build instructions
+==================
+
+As a regular user configure and then build:
+
Quoted 8 lines

board/acmesystems/arietta-g25/readme.txt line 8

Quoted 3 lines
board/acmesystems/arietta-g25/readme.txt new file +3 -0
+$ make acmesystems_arietta_g25_128mb_defconfig (128MB RAM variant)
+  or...
+$ make acmesystems_arietta_g25_256mb_defconfig (256MB RAM variant)

It's a pity that we need two different configurations when they are so similar. It's been a few years since I've used at91bootstrap, I take it that doesn't have any sdram size detection logic like U-Boot has nowadays? (get_ram_size()).

Nope, at least not in the version used by the hardware vendor.

Quoted 37 lines
Quoted 37 lines
board/acmesystems/arietta-g25/readme.txt new file +35 -0
+$ make
+
+Writing to the MicroSD card
+===========================
+
+You'll need a blank MicroSD (obviously) initialized
+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
+you'll need to run the following commands as root or via sudo.
+
+Make sure all of the card partitions are unmounted before starting.
+
+First we'll need to create two partitions:
+
+# sfdisk -uM /dev/sdb <<EOF
+,32,6
+;
+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:
+
Quoted 8 lines

board/acmesystems/arietta-g25/readme.txt line 49

Quoted 5 lines
board/acmesystems/arietta-g25/readme.txt new file +5 -0
+# 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.

Could you convert this to genimage instead of all these manual steps? Have a look at board/orangepi/orangepipc/genimage.cfg for an example.

I just sent a v2 where genimage is used.

Quoted 5 lines

Thanks!

--
Bye, Peter Korsgaard

Signature · 1 line
Profile: http://it.linkedin.com/in/compagnucciangelo