User Tools

Site Tools


chumbyqt

This is an old revision of the document!


Preparation

You will need a chumby, one usb-stick with at least 75 Mb of free space and ext2/3 formatting. Since the chumby mounts the USB-Stick in /mnt/usb, this is done the same way when building.

:!: Warning :!:

This software only works with chumby software version 1.0.7 or higher

Arm Toolchain

Install the arm crosscompiler toolchain as described here:

GNU_Toolchain

TSlib

Library used to get data from the touchscreen. Get it from github:

git clone https://github.com/kergoth/tslib.git

run autogen

./autogen.sh

then configure & make & make install to copy the files

./configure --prefix=/mnt/usb --host=arm-linux
make
make install

Qt

Download Qt from coregpl, install it to a custom folder. Make sure to install the sources!

cd QtSDK/QtSources/<Version>/
./configure -embedded arm -pch -prefix /mnt/usb -qt-kbd-linuxinput -qt-mouse-tslib -L/mnt/usb/lib -I/mnt/usb/include -nomake examples -nomake demos
make
make install

Demo

We are using this demo: fckeditor_upload_pictureflow-chumby_1_0.tar.gz

Unpack & cd, then:

/mnt/usb/bin/qmake
make
mkdir /mnt/usb/test
cp pictureflow *jpg /mnt/usb/test
touch /mnt/usb/start_sshd

Create a file /mnt/usb/chumby.env with the following content:

export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/mnt/usb/lib/ts
#export TSLIB_CONSOLEDEVICE=/dev/ttyS0
export TSLIB_CONFFILE=/mnt/usb/etc/ts.conf
export TSLIB_CALIBFILE=/mnt/usb/etc/pointercal
export LD_LIBRARY_PATH=/lib:/mnt/usb/lib
export POINTERCAL_FILE=/mnt/usb/etc/pointercal
export QWS_DISPLAY=LinuxFb:/dev/fb0:mmWidth113:mmHeight85
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
#export QWS_KEYBOARD=LinuxInput:/dev/input/event0

Edit /mnt/usb/etc/ts.conf:

# Uncomment if you wish to use the linux input layer event interface
module_raw input

module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

Running Demo

  1. ssh to chumby
  2. cd /mnt/usb
  3. stop_control_panel
  4. source ./chumby.env
  5. run /mnt/usb/bin/ts_calibrate
  6. to test calibration: /mnt/usb/bin/ts_test
  7. run /mnt/usb/test/pictureflow -qws & (note the &, application will crash otherwise)

Libraries needed for controlpanel

libiw

Download http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz

copy libiw.h to /mnt/usb/include/

copy /usr/lib/libiw.so.29 to /mnt/usb/lib/libiw.so.29 and create a symlink/copy /mnt/usb/lib/libiw.so

alsalib

Download chumbyqt

copy alsa/*.h to /mnt/usb/include/

copy /usr/lib/… to /mnt/usb/lib/…

chumbyqt.1331129341.txt.gz · Last modified: 2012/10/30 10:39 (external edit)