From the look of things it just plugs straight onto the Raspberry Pi's GPIO pins. One of the reviews on the Amazon page says that no external power is required, so I would try that first.robotman43 wrote:...I did see the zip file but it does not discuss anything about the hookup or power supply or complete functionality of the device...
Have you figured out how to get the screen to turn on when you boot?Hitechcomputergeek wrote:Sorry I haven't replied- I've been very busy. I have managed to get this working- I used an external power supply. The first time I looked, I couldn't find one. I think the reason it didn't work being powered via USB was because I haven't been able to find a 2 amp USB power supply, and so I am using a 1 amp power supply, not enough to power the Pi and the touchscreen at the same time. The person on Amazon probably had a 2 amp USB power supply. However, the power supply I found for the touchscreen was 2 amps.
The next problem I have is how to get the touchscreen part working. It just doesn't do anything when I touch it. And is there any way to add real-time clock capability to it?
Yes, I have. However, I haven't gotten the touchscreen part working.NetOperator Wibby wrote: Have you figured out how to get the screen to turn on when you boot?
Code: Select all
pi@RPi-Test ~/tsc2007 $ make
make -C /lib/modules/3.10.27+/build M=/home/pi/tsc2007 modules
make[1]: Entering directory `/usr/src/kernels/3.10.27+'
CC [M] /home/pi/tsc2007/tsc2007.o
/home/pi/tsc2007/tsc2007.c:276:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsc2007_probe’
/home/pi/tsc2007/tsc2007.c:368:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsc2007_remove’
/home/pi/tsc2007/tsc2007.c:397:19: error: ‘tsc2007_probe’ undeclared here (not in a function)
/home/pi/tsc2007/tsc2007.c:398:9: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/pi/tsc2007/tsc2007.c:398:32: error: ‘tsc2007_remove’ undeclared here (not in a function)
/home/pi/tsc2007/tsc2007.c:167:20: warning: ‘tsc2007_soft_irq’ defined but not used [-Wunused-function]
/home/pi/tsc2007/tsc2007.c:227:20: warning: ‘tsc2007_hard_irq’ defined but not used [-Wunused-function]
/home/pi/tsc2007/tsc2007.c:249:12: warning: ‘tsc2007_open’ defined but not used [-Wunused-function]
/home/pi/tsc2007/tsc2007.c:269:13: warning: ‘tsc2007_close’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/home/pi/tsc2007/tsc2007.o] Error 1
make[1]: *** [_module_/home/pi/tsc2007] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.27+'
make: *** [all] Error 2I am having the same issue, with the same errors being output. Wondering if anyone has a solution out there or can point out to me what we are doing wrong here.dougie wrote:well, some...
According to the info I collected I tried to compile the tsc2007.ko module .... but failed.
I followed the instruction here: https://github.com/osandov/raspi/tree/master/tsc2007
It's said the touchscreen using a tsc2003 chip could make use of this driver. However, when starting "make" it takes a whole day and night for the RPi for compiling all the modules. But at the end there's no tsc2007.ko and no tsc_raspi.ko where it should be.
Therefore "make install" fails.
damn...
The situation was not as bad as I feared. I feared a global setup problem but it was just a punctual dependence problem. Adding the missing stuff in the config solved the problem.xof wrote:I tried to compile the kernel the old way (10..15 years ago I used to...)
[...]
...unfortunately, I got some errors (after around 7 hours of compilation) ;vchi_<something> undefined with 'sound/arm/snd-bcm2835.ko' and get no kernel/modules. (I got a 'tsc2007.o' (but no '.ko' files as these are generated later))
[...]
I bought an 8GB class 10 SD card and started a new system fromxof wrote: I don't dare to 'make install' yet (I don't want to 'brick' my system; I'll buy another SD card to make the test).
Will try this soon.xof wrote: I bought an 8GB class 10 SD card and started a new system from
2014-01-07-wheezy-raspbian.zip on http://www.raspberrypi.org/downloads ...
-- the procedure description is voluntary fuzzy - don't try if you don't understand it --
(unzip...dd...raspi-config (to extend root partition to the whole card))
$ apt-cache search linux-source
(choose one - (warning, 'linux-source' defaults to 3.2 which is probably old (jan 2012))
( http://kernelnewbies.org/Linux_3.10 -some-release is post jun 2013; the kernel running on 2014-01-07-wheezy-raspbian.zip is more recent; you can 'git clone' the latest one if you dare)
$ sudo apt-get install linux-source-<some-version> libqt4-dev
(you'll need libqt4-dev if you use 'make xconfig' otherwise, not)
$ cd /usr/src
(untar the source; note: you don't need to be root to compile the whole stuff...)
$ cd linux-source-<some version>
(apply the patches; (eventually) make mrproper; get the running config : zcat /proc/config.gz > .config)
(probably 'export KERNEL_SRC=/usr/src/linux-source-<some-version>; export DISPLAY=<some-host>:0.0; 'xhost +' on this (ready) host if you intend to use xconfig; don't forget an 'X -nolisten' problem on some distribs)
$ make xconfig
(<ctrl>-F tsc2007 - check the box to say you want a module; if it's grey, check 'touchscreens' upper in the tree) - save)
$ nohup make > ~/build-messages.20140201.123300.txt 2>&1
(it will take hours - check messages are building up in the .txt file and have a walk)
(the 'nohup' allows the process to go unattended as I proceed through Ethernet and shut my main host down)
if everything is ok, after 10 hours or so (with a class 10 SD card), the message file stops growing and there is no error message at the end. You now have an ./arch/arm/boot/zImage and a lot of .ko files in your source tree.
$ sudo make modules_install
(it will copy the .ko files in /lib/modules/<some-version>/ ; if it is not your running version, there is no risk; if it is, you could try to insmod tsc2007.ko instead)
$ sudo cp arch/arm/boot/zImage /boot/kernel.img
(it may be prudent to save a copy of the current kernel.img before - (there is a /boot/kernel_emergency.img but who knows...)
$ sudo reboot
(if it fails to reboot, use another system to restore /boot/kernel.img)
You now should be able to 'sudo modprobe tsc2007' (if not already loaded by some magic trick (?) (lsmod can tell))
I can't test it, I didn't receive my Tontec yet... (next, have a look at 'xinput_calibrator')
So, recompiling the kernel is not so complicated nor dangerous after all (there are a lot of steps but it is not as complicated as described in http://elinux.org/RPi_Kernel_Compilation : just 1/ get the sources - 2/ configure - 3/ build - 4/ install - 5/ reboot ; however, the Devil may hide in the details...(?))
On 2014-01-07-wheezy-raspbian, apt-cache search linux-source offers 3.2, 3.6, 3.10 (...) kernel sources (but I did not find the running one... (?) - as I remember, linux-source is 3.2)Hitechcomputergeek wrote:Will try this soon.
Let's suppose you are using 3.2, it is something like :edjuh wrote:How does one actually apply the patches?
( I got that far )
Good luckedjuh wrote:thx xof ... Now it's up to the PI ;D