Technical documentation Buy on-line

Build a small QT5 WiFi terminal with Arietta G25 and XTERM-01

This article illustrates how to generate an image to create a small QT5 WiFi terminal with Buildroot Linux using an Arietta G25 board and a XTERM-01 2.8 inch LCD with resistive touch

BuildRoot is a set of makefiles and patches that makes it easy to generate a complete and very small Embedded Linux System.

Buildroot can generate the rootfs filesystem with a rich set of application, the kernel and bootloader image but following this article it will generate just the rootfs contents.

To generate the booloader and Linux Kernel image please follow these two articles:

The basic knowledge used on this article comes from Microchip Linux4sam site on https://www.linux4sam.org/bin/view/Linux4SAM/BuildRoot.

Notes

Building procedure

Install the mandatory package listed here:

Download BuildRoot and the Microchip external package from these repositories on GitHub:

git clone https://github.com/linux4sam/buildroot-at91.git
git clone https://github.com/linux4sam/buildroot-external-microchip.git

Select the right versions:

cd buildroot-external-microchip
git checkout linux4sam_6.2 -b buildroot-external-microchip-linux4sam_6.2

cd ..
cd buildroot-at91
git checkout linux4sam_6.2 -b buildroot-at91-linux4sam_6.2

Download this patch file from GitHub:

wget https://raw.githubusercontent.com/AcmeSystems/acmepatches/master/buildroot-at91-2020.02.patch

and apply it by typing:

patch -p1 < buildroot-at91-2020.02.patch

Select the configuration for your hardware:

Arietta alonemake acme-arietta_defconfig
Arietta + XTerm-01make acme-xterm-01_defconfig

Compile

make

If everything goes well you will obtain this binary files in output/images directory:

rootfs.tar

Create two partitions on microSD using gparted:

Type Label Size
fat32 boot >8MB
ext4 rootfs >128MB

copy on the first partition the file generated following these two articles:

on the second partition copy the rootfs.tar using this command:

sudo tar xvf output/images/rootfs.tar -C /media/$USER/rootfs

Unmount the microSD and boot.

At login and password prompt type:

  • login: root
  • password: acmesystems

Try from binaries

Save this file in the first fat32 partition:

Untar this file in the second ext4 partition:

Defconfig and dts used:

WiFi access

Edit the file /etc/wpa_supplicant/wpa_supplicant.conf to configure the access to your WiFi network (it requires the WIFI-2 adapter)

network={
   ssid="your accesspoint name"
   psk="password"
}

to generate this file automatically from the Buildroot environment edit this file

buildroot-at91/board/acmesystems/arietta-xterm-01/rootfs_overlay/etc/wpa_supplicant/wpa_supplicant.conf

to create other file in the rootfs tree ad them in

buildroot-at91/board/acmesystems/arietta-xterm-01/rootfs_overlay/

Try the QT5 examples

Set this environment variable

export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="/dev/input/event0:rotate=180"

move inside the QT5 example directory

cd /usr/lib/qt/examples

and try some examples:

widgets/widgets/calculator/calculator -platform linuxfb
widgets/widgets/sliders/sliders -platform linuxfb

Links

Sergio Tanzilli
System designer, webmaster and Acme Systems co-founder
Personal email: tanzilli@acmesystems.it
Webpages: https://www.acmesystems.it - https://www.tanzolab.it
Github repositories: https://github.com/tanzilli and https://github.com/acmesystems
Telegram group dedicated to the Acme Systems boards: https://t.me/acmesystemssrl

Buy

EUR 25.00


XTERM-01 - 2.8 inch TFT display with resistive touch for Arietta G25
  • 2.8 inch TFT display
  • Resistive touch screen
  • USB host port

Arietta G25 not included

| Product description |

EUR 25.00


ARIETTA-G25-V - ARM9 Linux Embedded Module (Green,128MB)

Arietta G25 is a small and low-cost multi-chip module that integrates:

  • a ARM9 @ 400Mhz CPU Atmel AT91SAM9G25
  • a 128MB of DDR2 RAM
  • up to 3 USB 2.0 host ports
  • 20x2 pads for strip pitch 2.54mm (100mil)
  • Solder mask color: green

Basic Version with no strips mounted. If you need to have any strip mounted take a look to the soldering services

Starting from July 2018 we make by default just color green Arietta G25. The only difference between the legacy black version and the new green version is the solder mask color. To order the legacy black version (Product id: ARIETTA-G25, MOQ 100 pcs) please contact us

| Product description |

EUR 30.00


ARIETTA-G25-256-V - ARM9 Linux Embedded Module (Green,256MB)

Arietta G25 is a small and low-cost multi-chip module that integrates:

  • a ARM9 @ 400Mhz CPU Atmel AT91SAM9G25
  • a 256MB of DDR2 RAM
  • up to 3 USB 2.0 host ports
  • 20x2 pads for strip pitch 2.54mm (100mil)

Basic Version with no strips mounted. If you need to have any strip mounted take a look to the soldering services

Starting from July 2018 we make by default just color green Arietta G25. The only difference between the legacy black version and the new green version is the solder mask color. To order the legacy black version (Product id: ARIETTA-G25-256, MOQ 100 pcs) please contact us

| Product description |

EUR 7.00


WIFI-2 - WiFi USB module

OEM Small USB 2.0 IEEE 802.11 b/g/n Wi-Fi compliant module based on the RaLink RT5370N chip. It works at 3.3V and can be configured also in Access Point mode.

This model requires an external antenna model AN-WIFI-01 or AN-WIFI-02.

| Product description || Datasheet |

EUR 3.50


AN-WIFI-01 - WiFi pcb external antenna

WiFi PCB antenna with 11 cm cable and UMC 2mm connector to be plugged on WIFI-2 module.

| Antenna datasheet |

EUR 0.80


MWS-01 - WIFI-2 on Arietta G25

Manual soldering of WIFI-2 on the Arietta G25. WIFI-2 module not included.

EUR 1.40


MWS-06 - Header on Arietta G25 J4 bottom side

Manual welding of a 20x2 pitch 2.54mm male connector on the bottom side of Arietta G25 including the STRIP-001 connector.

Technical documentation Buy on-line

Bruna Mandolino