I have been using an eGalax Touchscreen monitor with my Raspberry Pi, for a while. With the new Banana Pi board, I wanted to use the same eGalax TS Monitor and try my web kiosk project. After a lot of research and trials,I finally came up with a much more straight forward and simple tutorial, that explains the steps, as in detail, as possible.
Intel core email@example.comGHz
Ubuntu 14.04 LTS 32-bit Desktop OS
HDD space available: 120GB
SD card: 8GB class 10 SDHC UHS-1
2A power supply via microUSB DC IN.
A/V output by: HDMI
TS i/o by: USB
Download the “Raspbian_For_BananaPi_v3.1” file from here and burn it on a good SD card with sufficient space(at least 4GB) and speed(at least class 4). If you need help in installing the image onto the SD card, follow the instructions given here.
Verify if the SD card is bootable or not. While booting, you should see the green led on the board blink often and texts start appearing in your monitor and finally a Desktop interface appears.
The default login details are:
Shutdown the bananapi and insert the SD card in your computer’s SD card reader, running a linux OS.
Now, we are ready to start building the modified OS kernel.
Install the cross-compiler tools.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf gcc-4.7-arm-linux-gnueabihf-base g++-4.7-arm-linux-gnueabihf gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev libncurses5-dev
Note: If you are using later versions of linux,
uboot-mkimage would have been replaced by
u-boot-tools. You can remove the
uboot-mkimage from the install list.
Create a directory where you will build the OS.
and cd into it.
Download the BSP packages
git clone https://github.com/LeMaker/bananapi-bsp.git
took about 5-10 seconds.
Once the configure script finished without any errors, then do:
It will download bananapi packages from git, which took about 1-2 hours on my system and then menuconfig would open automatically.
In the menuconfig screen, go to:
Device drivers->Input Device Support->Touchscreens->USB Touchscreen Driver
Mark the “USB Touchscreen Driver” option as built-in by pressing the ‘Y’ key, i.e. a * symbol in the s alongside the option, should appear.
NOTE: Do not select the “EETI eGalax multi-touch panel support” option.
Press ESC key again and again, until you get a dialog box asking if you want to save the configuration changes. Select the YES option.
The build will continue and complete, in a few seconds.
Now, on the command line, issue
It will build the USB touchscreen driver into the kernel and take about 10-15 minutes(as in my system) to complete.
Copy the kernel components to your SD card:
(first FAT partition of the SD card)
sudo cp build/Bananapi_hwpack/kernel/uImage /media/username/boot
sudo cp build/Bananapi_hwpack/kernel/script.bin /media/username/boot
Copy the new compiled library modules & firmware
(Second EXT4 partition of SD card)
sudo cp -r build/Bananapi_hwpack/rootfs/lib /media/username/disk2
sudo cp -r build/Bananapi_hwpack/rootfs/etc /media/username/disk2
Unmount/Eject the SD card and boot it with Banana Pi.
Check if, your touches on the Desktop screen, moves the mouse cursor and then use your calibration program(for eg. eCalib), if necessary, to calibrate the TS inputs.