
1. Installation process(fresh install):- write a fresh image with the latest RaspbianOS image from http://www.raspberrypi.org/downloads/- copy the carpc folder in /home/pi/ on the SD card(get the latest...
<map type="binfile" data="$NAVIT_SHAREDIR/maps/osm_bbox_11.3,47.9,11.7,48.2.bin" />You can rename your .bin files for easier management
<map type="binfile" data="$NAVIT_SHAREDIR/maps/osm_bbox_20.3,43.5,29.9,48.4.bin" />
pi@raspberrypi ~ $ lsusbLast device is the touch controller, from eGalax.
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 005: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
wget https://github.com/raspberrypi/linux/archive/rpi-3.6.y.tar.gzInstall some dependencies.
tar -zxvf rpi-3.6.y.tar.gz
sudo apt-get install git libncurses5 libncurses5-dev qt4-dev-tools build-essentialInstall toolchain.
sudo apt-get install gcc-arm-linux-gnueabiAfter download of the kernel archive has finished unpack it and then navigate with terminal to the extracted folder.
make mrproperCreate a folder for the generated kernel:
mkdir ../kernelGenerate the .config file:
make O=../kernel/ ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfigConfigure the kernel:
make O=../kernel/ ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- xconfigIn the opened window press the | button to collapse all items. Then, navigate to Device Drivers->Input Device Support->TouchScreens and select it. Here, be sure to check also your touch screen controller if it is other than eGalax, or if it is not selected. Now press save.
make O=../kernel/ ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j3Note: -j3 option from the end means to enable parallel build. The number should be number of cpu cores + 1(I have dual core cpu).
cd ../Note: You need to have git installed.
git clone git://github.com/raspberrypi/tools.git
./imagetool-uncompressed.py ../../kernel/arch/arm/boot/ImageThis command will generate the kernel image(kernel.img file).
mkdir ../modules/
make modules_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- INSTALL_MOD_PATH=../modules/
wget https://github.com/raspberrypi/firmware/archive/next.tar.gzIn the small partition(/boot) do:
tar -zxvf next.tar.gz
sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-devDownload xinput_calibrator somewhere in the Raspberry PI's folder structure.
wget http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-0.7.5.tar.gzUnpack it and then navigate to the unpacked folder and then install it using:
./configureAfter this step you should run xinput_calibrator(from Xserver terminal console: first startx then open console and then run it).
make
sudo make install
xinput_calibratorFollow the on screen instructions(touching some points on screen) and after calibration is complete you will receive a message like this:
Calibrating EVDEV driver for "eGalax Inc. USB TouchController" id=8
current calibration values (from XInput): min_x=1938, max_x=114 and min_y=1745, max_y=341
Doing dynamic recalibration:
Setting new calibration data: 121, 1917, 317, 1741
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
Identifier "calibration"
MatchProduct "eGalax Inc. USB TouchController"
Option "Calibration" "121 1917 317 1741"
Option "SwapAxes" "1"
EndSection
sudo nano /usr/share/X11/xorg.conf.d/01-input.confAdd in this file the content above(starting with Section "InputClass" line) and then save it(ctrl+O).