<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Touchscreen on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/touchscreen/</link>
        <description>Recent content in Touchscreen on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Mon, 02 Sep 2013 14:54:35 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/touchscreen/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>[RaspPi] Build Raspberry Pi Kernel for Debian Wheezy / Raspbian with eGalax Touchscreen Support on Ubuntu 12.04</title>
            <link>https://www.nico-maas.de/posts/2013-09-02-rasppi-build-raspberry-pi-kernel-for-debian-wheezy-raspbian-with-egalax-touchscreen-support-on-ubuntu-12-04/</link>
            <pubDate>Mon, 02 Sep 2013 14:54:35 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2013-09-02-rasppi-build-raspberry-pi-kernel-for-debian-wheezy-raspbian-with-egalax-touchscreen-support-on-ubuntu-12-04/</guid>
            <description>&lt;h1 id=&#34;preperations&#34;&gt;Preperations&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt-get install git libncurses5 libncurses5-dev qt4-dev-tools qt4-qmake pkg-config build-essential gcc-arm-linux-gnueabi bc&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;clone-stuff&#34;&gt;Clone Stuff&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mkdir rpi_kernel  &#xD;&#xA;cd rpi_kernel  &#xD;&#xA;git clone https://github.com/raspberrypi/tools.git  &#xD;&#xA;git clone https://github.com/raspberrypi/linux.git  &#xD;&#xA;git clone https://github.com/raspberrypi/firmware.git  &#xD;&#xA;cd ~/rpi_kernel/firmware/.git  &#xD;&#xA;git branch -a  &#xD;&#xA;cd ~/rpi_kernel/firmware  &#xD;&#xA;git checkout -t -b next remotes/origin/next  &#xD;&#xA;git pull  &#xD;&#xA;cd ~/rpi_kernel&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;make-kernel&#34;&gt;Make Kernel&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd linux  &#xD;&#xA;make mrproper  &#xD;&#xA;mkdir ../kernel  &#xD;&#xA;# Kernel Types  &#xD;&#xA;# find . -name \*bcmrpi\*config -print  &#xD;&#xA;# ./arch/arm/configs/bcmrpi_emergency_defconfig  &#xD;&#xA;# ./arch/arm/configs/bcmrpi_defconfig  &#xD;&#xA;# ./arch/arm/configs/bcmrpi_cutdown_defconfig  &#xD;&#xA;make O=../kernel/ ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_defconfig  &#xD;&#xA;make O=../kernel/ ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig #xconfig  &#xD;&#xA;#Device Drivers-&amp;gt;Input Device Support-&amp;gt;TouchScreens-&amp;gt;USB Touchscreen Driver (Build it into or as module, check if eGalax here!)  &#xD;&#xA;make O=../kernel/ ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j3  &#xD;&#xA;cd ../  &#xD;&#xA;cd tools/mkimage  &#xD;&#xA;./imagetool-uncompressed.py ../../kernel/arch/arm/boot/Image  &#xD;&#xA;cd ../../&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;make-modules&#34;&gt;Make Modules&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd kernel  &#xD;&#xA;mkdir ../modules/  &#xD;&#xA;make modules_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- INSTALL_MOD_PATH=../modules/  &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;install-kernel-on-existing-rpi-sd-card--raspbian&#34;&gt;Install Kernel on existing RPi SD Card / Raspbian&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# mount sdcard in your Ubuntu (I made an folder sdb1 for boot partiton and sdb2 for the root partition)  &#xD;&#xA;cd ~  &#xD;&#xA;mkdir sdb1 sdb2  &#xD;&#xA;mount /dev/sdb1 sdb1  &#xD;&#xA;mount /dev/sdb2 sdb2&#xD;&#xA;&#xD;&#xA;# backup config  &#xD;&#xA;cp ~/sdb1/config.txt ~/rpi_kernel/  &#xD;&#xA;# boot partition  &#xD;&#xA;sudo rm -rf ~/sdb1/*  &#xD;&#xA;# Copy all Files from boot  &#xD;&#xA;cp -R ~/rpi_kernel/firmware/boot/* ~/sdb1/  &#xD;&#xA;#replace /sdb1/boot/kernel.img with the previously created kernel image  &#xD;&#xA;sudo rm ~/sdb1/kernel.img  &#xD;&#xA;cp ~/rpi_kernel/tools/mkimage/kernel.img ~/sdb1/  &#xD;&#xA;# restore config  &#xD;&#xA;cp ~/rpi_kernel/config.txt ~/sdb1/&#xD;&#xA;&#xD;&#xA;# root partition  &#xD;&#xA;#replace /sdb2/lib/firmware with &amp;lt;modules_builded_above_folder&amp;gt;/lib/firmware  &#xD;&#xA;sudo rm -rf ~/sdb2/lib/firmware/  &#xD;&#xA;sudo cp -R ~/rpi_kernel/modules/lib/firmware/ ~/sdb2/lib/  &#xD;&#xA;#replace /sdb2/lib/modules with &amp;lt;modules_builded_above_folder&amp;gt;/lib/modules  &#xD;&#xA;sudo rm -rf ~/sdb2/lib/modules/  &#xD;&#xA;sudo cp -R ~/rpi_kernel/modules/lib/modules/ ~/sdb2/lib/  &#xD;&#xA;#replace /sdb2/opt/vc with firmware-next/hardfp/opt/vc/  &#xD;&#xA;sudo rm -rf ~/sdb2/opt/vc  &#xD;&#xA;sudo cp -R ~/rpi_kernel/firmware/hardfp/opt/vc/ ~/sdb2/opt/&#xD;&#xA;&#xD;&#xA;# sync usb mount  &#xD;&#xA;sync&#xD;&#xA;&#xD;&#xA;# Unmount sdcard  &#xD;&#xA;cd ~  &#xD;&#xA;umount sdb1  &#xD;&#xA;umount sdb2  &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;boot-pi-and-calibrate-touchscreen&#34;&gt;Boot Pi and calibrate Touchscreen&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# This stuff happens on the Pi!&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;preperations-1&#34;&gt;Preperations&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-dev&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;install-tool--xinput_calibrator&#34;&gt;Install Tool / xinput_calibrator&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd ~  &#xD;&#xA;wget http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-0.7.5.tar.gz  &#xD;&#xA;tar -xvzf xinput_calibrator-0.7.5.tar.gz  &#xD;&#xA;cd xinput_calibrator-0.7.5  &#xD;&#xA;./configure  &#xD;&#xA;make  &#xD;&#xA;sudo make install&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;calibrate-in-xserver-so-open-terminal-while-beeing-in-graphical-user-mode&#34;&gt;Calibrate (in Xserver, so open Terminal while beeing in Graphical User Mode)&#xA;&lt;/h1&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;xinput_calibrator&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It will give output like this:&lt;/p&gt;</description>
        </item></channel>
</rss>
