PiTFT Plug'n Play image, testers needed
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

PiTFT Plug'n Play image, testers needed

by notro on Fri Mar 21, 2014 8:55 am

I have made a plug'n play image for the PiTFT display. All set up and ready to go.
It has the drivers built into the kernel proper (kernel.img) which enables the display early in the boot process.

Wiki: https://github.com/notro/fbtft-spindle/wiki/FBTFT-image
Download: http://adafruit-download.s3.amazonaws.c ... -pitft.zip

Please give feedback if you try it out. Good or bad.

Update 28 Mar 2014:
The image has been updated with the following changes:
* stmpe-ts has been patched to handle lockups
* rpi_power_switch kernel module has been added

Those of you that have downloaded the previous image, can update with
Code: Select all | TOGGLE FULL SIZE
sudo rpi-update
Last edited by notro on Fri Apr 04, 2014 8:01 am, edited 3 times in total.
notro
 
Posts: 88
Joined: Tue Sep 11, 2012 9:59 am

Re: PiTFT Plug'n Play image, testers needed

by jay911144 on Fri Mar 21, 2014 12:38 pm

I am trying it now
jay911144
 
Posts: 3
Joined: Fri Mar 21, 2014 12:37 pm

Re: PiTFT Plug'n Play image, testers needed

by jay911144 on Fri Mar 21, 2014 12:51 pm

It did not work for me, just blank white screen
jay911144
 
Posts: 3
Joined: Fri Mar 21, 2014 12:37 pm

Re: PiTFT Plug'n Play image, testers needed

by pburgess on Fri Mar 21, 2014 7:25 pm

Haven't tested it extensively yet, but can report that it does boot on Model A and B Pis (both v1 and v2 of the latter).

Trying to do the image rebuild now...this is great stuff and I'd like to use it as the base image for an upcoming project!
User avatar
pburgess
 
Posts: 2760
Joined: Sun Oct 26, 2008 2:29 am

Re: PiTFT Plug'n Play image, testers needed

by turk on Sun Mar 23, 2014 6:04 am

I downloaded and installed: it seems to work.
I will test it as soon as I can deepen.
Which kernel did you use? The BETA ones?

turk
 
Posts: 14
Joined: Sat Jan 25, 2014 10:05 am

Re: PiTFT Plug'n Play image, testers needed

by turk on Sun Mar 23, 2014 6:17 am

I have the same problem with the backlight found with the kernel BETA:
Schermata 2014-03-23 alle 11.13.28.png
Screenshot
Schermata 2014-03-23 alle 11.13.28.png (56.32 KiB) Viewed 732 times

turk
 
Posts: 14
Joined: Sat Jan 25, 2014 10:05 am

Re: PiTFT Plug'n Play image, testers needed

by turk on Sun Mar 23, 2014 6:35 am

It does not work even the Tactile switch as power button!

Why can not I edit my posts?

turk
 
Posts: 14
Joined: Sat Jan 25, 2014 10:05 am

Re: PiTFT Plug'n Play image, testers needed

by notro on Sun Mar 23, 2014 7:32 am

Haven't tested it extensively yet, but can report that it does boot on Model A and B Pis (both v1 and v2 of the latter).
Thanks, good to know. I have never tested my kernels on model A.

Which kernel did you use? The BETA ones?
It's a kernel I have built myself: https://github.com/notro/rpi-firmware/b ... /README.md

I have the same problem with the backlight found with the kernel BETA:
I have added a kernel module that connects GPIO252 to the Linux backlight subsystem.
See: https://github.com/notro/fbtft-spindle/ ... #backlight
You can disable this behaviour by removing gpio_backlight_device from /etc/modules

It does not work even the Tactile switch as power button!
I have used a different approach not involving a kernel module.
See: https://github.com/notro/fbtft-spindle/ ... O-keyboard
notro
 
Posts: 88
Joined: Tue Sep 11, 2012 9:59 am

Re: PiTFT Plug'n Play image, testers needed

by turk on Sun Mar 23, 2014 9:10 am

Ok .... I read everything and understand half!
But I think you did a great job! ;)
I will do other tests and in the case I will ask advice!

turk
 
Posts: 14
Joined: Sat Jan 25, 2014 10:05 am

Re: PiTFT Plug'n Play image, testers needed

by notro on Sun Mar 23, 2014 8:16 pm

It does not work even the Tactile switch as power button!
I have looked closer at the Adafruit power switch module. I see that it can also turn on the Pi. My solution can't do that.
I will see if I can build that module and make it available for download.
notro
 
Posts: 88
Joined: Tue Sep 11, 2012 9:59 am

Re: PiTFT Plug'n Play image, testers needed

by notro on Mon Mar 24, 2014 11:02 am

rpi_power_switch module can be downloaded.

I did some changes to the original driver and it's arguments:
* 'gpio_pin' must be specified, it has no default
* 'mode' default has changed from MODE_SWITCH to MODE_BUTTON

Install
Code: Select all | TOGGLE FULL SIZE
$ sudo wget -P /lib/modules/$(uname -r)/extra/ tronnes.org/downloads/rpi_power_switch.ko
$ sudo depmod

Arguments
Code: Select all | TOGGLE FULL SIZE
$ modinfo rpi_power_switch
parm:           gpio_pin:Switch gpio (int)
parm:           led_pin:Indicator LED gpio (default: 16, ACT) (int)
parm:           mode:Switch mode: 0-push button, 1-switch (default: push button) (int)

Use
Code: Select all | TOGGLE FULL SIZE
$ sudo modprobe rpi_power_switch gpio_pin=22 mode=0
$ dmesg | tail -1
[  585.497778] Adafruit Industries' power switch driver v1.7

Make it permanent
Add to /etc/modules
Code: Select all | TOGGLE FULL SIZE
rpi_power_switch gpio_pin=22 mode=0
notro
 
Posts: 88
Joined: Tue Sep 11, 2012 9:59 am

Re: PiTFT Plug'n Play image, testers needed

by metro6audio on Mon Mar 24, 2014 1:46 pm

Notro, after our previous discussions on my troubles with I2C and touch, I downloaded and installed your image. Display draws correctly, but still no touch (no I2C adapter connected or or any changes to your image, just flash, let it reboot and startx). I've ordered another PiTFT in hopes that I just crossed a line somewhere earlier in development and destroyed the touch chip. I do have access to a scope (mentioned in one of your other forum posts), but not a lot of experience using it. What should I be checking for when scoping during a touch action?

Results from a scope test will take a long time, I'm about to leave on vacation, but can do it after the first of next month. :)
metro6audio
 
Posts: 9
Joined: Mon Mar 17, 2014 1:37 pm

Re: PiTFT Plug'n Play image, testers needed

by notro on Mon Mar 24, 2014 1:59 pm

What should I be checking for when scoping during a touch action?
When touch suddenly stops working, it would helpful to know for sure that the touch controller has stopped generating interrupts, to rule out the possibility that Linux stops responding to those interrupts.
GPIO24 should have LOW going pulses when touching the panel.
notro
 
Posts: 88
Joined: Tue Sep 11, 2012 9:59 am

Re: PiTFT Plug'n Play image, testers needed

by metro6audio on Mon Mar 24, 2014 2:10 pm

Ok, I'll look at that next week. The interrupt count in /proc does NOT increment, but like you said, could be the module or the actual hardware. I'll report back when I have some data.
metro6audio
 
Posts: 9
Joined: Mon Mar 17, 2014 1:37 pm

Re: PiTFT Plug'n Play image, testers needed

by turk on Tue Mar 25, 2014 4:25 pm

Perfect!
I installed the module and it works perfectly.

Now I have to figure out how to configure these:
# 23 => Cursor up
# 22 => Enter
# 21 => Cursor down

Another thing, it's possible assign at a key a double feature?
Let me explain:
If I press #18 for 1 second => turn off the backlight
If I press #18 for 3 seconds => Shout down the Raspberry

Thank you very much!!

turk
 
Posts: 14
Joined: Sat Jan 25, 2014 10:05 am