Chiliboard/Arch Linux

From Chiliboard Wiki
Jump to: navigation, search

Arch Linux

Arch Linux ARM is now officially supporting ChiliBoard.

For installation instructions please refer to their website: http://archlinuxarm.org/platforms/armv7/ti/chiliboard


X Server on ChiliBoard with LCD Sandwich

To install the latest Arch Linux ARM please check the instructions on website: https://archlinuxarm.org/platforms/armv7/ti/chiliboard

Kernel includes all necessary modules so only what you need to run X server is install it.

Activate LCD

To activate LCD sandwich you have to change device tree file in u-boot settings. Open file /boot/uEnv.txt and edit the fdtfile variable to

fdtfile=am335x-chiliboard-lcd.dtb

X server and LXDE installation

All steps do as root: command su, password root.

  • Udpdate packages with
pacman -Sy
  • Install xorg server packages with default settings
pacman -S xorg
  • Install evdev input driver
pacman -S xf86-input-evdev
  • Touchpanel calibration tool
pacman -S xinput_calibrator
  • Install LXDE(Lightweight X11 Desktop environment) with default packages
pacman -S lxde
  • Install xorg-init package
pacman -S xorg-xinit
  • Create ~/.xinitrc file with following contents:
exec dbus-launch startlxde

It allows you to use startx and run LXDE.

  • Create /etc/X11/xorg.conf.d/99-calibration.conf touchscreen configuration file with
Section "InputClass"
	Identifier      "calibration"
	MatchProduct 	"ti-tsc"
	Driver  "evdev"
	Option  "Calibration" "3803 327 3528 548"
	Option  "SwapAxes" "0"
EndSection

This is the default calibration. If you want to calibrate touchscreen you need to connect a keyboard and mouse to Chiliboard. From serial console run startx as root. Now run xinput_calibrator in terminal on Chiliboard. After calibration you have to write returned calibration data into /etc/X11/xorg.conf.d/99-calibration.conf file.

  • Set login manager to start at boot
systemctl enable lxdm

After reboot there should appear login screen on LCD.

Qt 4 and demos installation

All steps do as root: command su, password root.

Install Qt 4 with default settings

pacman -S qt4

You need wget to download qtdemos package. To install it enter

pacman -S wget

Go to /home/alarm directory and download the qtdemos package

wget ftp://ftp.chiliboard.org/archlinux/chili-arch-qtdemos.tar.gz

Extract it

tar xzf chili-arch-qtdemos.tar.gz

Next, go to qtdemos directory and execute prepared bash script

sh qtdemos.sh

Now you have 5 shortcuts with Qt demos on LXDE desktop.