[But I can't make the "Touch Part" work! If you know how, please let me know by leaving me comment. See the "Cross compile Raspberry Pi kernel to inslude tsc2007.ko" on bottom.]
Tontec 2.4-inch TFT LCD 240x320 RGB Pixels Touch Screen Display on Raspberry Pi |
- Power up Raspberry Pi and login.
- Download "https://s3.amazonaws.com/tontec/24usingmanual.zip" (it can be found in the product page), using the command in Terminal.
$ wget https://s3.amazonaws.com/tontec/24usingmanual.zip
- Unzip the file.
- Enter unzipped directory <download directory>/mztx-ext-2.4/src
- Enter the command:
$ make
- Edit file /boot/config.txt with the command:
$ sudo pico /boot/config.txt
Uncomment and change the two 2 lines
framebuffer_width=320
framebuffer_height=240
Save and exit.
- Reboot.
- After login, enter mztx-ext-2.4/src Directory. Run the program mztx06a with command:
$ sudo ./mztx06a
You should see the LCD turned on now.
Next: If you prefer the mztx06a program automatically run on startup, refer to next post "Run program on startup automatically".
Related: Raspberry Pi with mini LCD display without HDMI.
remark: more discussing in Raspberry Pi forum http://www.raspberrypi.org/forum/viewtopic.php?f=91&t=64414
More:
- Cross compile Raspberry Pi kernel to inslude tsc2007.ko
Updated:
- osandov's Raspberry Pi TSC2007 Kernel Modules updated
4 comments:
About the 'touch' part, have a look at http://www.raspberrypi.org/forum/viewtopic.php?f=91&t=64414
The solution isn't there yet. One can move the cusor but, for some reason, it still doesn't 'click'...
Thanks for your info, somebody mention me in the forum:)
Actually I visit the forum before, it get much more info now. I need time to review the forum again.
FYI:
I don't know is it anybody in the forum can compile the tsc2007 module.
I can cross compile the kernel with tsc2007 module from source, and can load the module, and can be found with lsmod. But still no function, that's why I haven't post here.
Refer to the post Cross compile Raspberry Pi kernel from source on Ubuntu (http://helloraspberrypi.blogspot.com/2014/01/cross-compile-raspberry-pi-kernel-from.html), run
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig
after make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig
I can select tsc2007 with the config menu, to include tsc2007 module.
And then after re-build the kernel image, enable the tsc2007 module (and i2c module) by editing /etc/modules.
Found some information in get i2c touch working on Raspberry Pi.
Still not try all of this, because my Tontec arrive just today.
Thanks for your help in make it working!
Get inspired by that solution: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=64&t=48967
Find and compile the proper kernel module: https://github.com/osandov/raspi/tree/master/tsc2007
Understand how Linux handle the touchscreen: http://tias.ulyssis.org/calibration/device_support.html
See if this module (tsc2007) is supported (YES it IS): http://git.kernel.org/cgit/linux/kernel/git/dtor/input.git/plain/drivers/input/touchscreen/Kconfig?id=HEAD
FYI:
http://helloraspberrypi.blogspot.com/2014/03/cross-compile-raspberry-pi-kernel-to.html
Post a Comment