piTFT not working after Raspbian update

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

piTFT not working after Raspbian update

Post by evharten »

[ 14.439841] fbtft_device: SPI devices registered:
[ 14.448556] fbtft_device: 'fb' Platform devices registered:
[ 14.456037] fbtft_device: bcm2708_fb id=-1 pdata? no
[ 14.544219] stmpe-spi spi0.1: stmpe610 detected, chip id: 0x811
[ 14.559719] gpiochip_find_base: cannot find free range
[ 14.573771] gpiochip_add: gpios -1..4 (stmpe) failed to register
[ 14.581470] stmpe-gpio stmpe-gpio.0: unable to add gpiochip: -28
[ 14.598216] stmpe-gpio: probe of stmpe-gpio.0 failed with error -28
[ 14.614094] fbtft_device: GPIOS used by 'adafruitts':
[ 14.620903] fbtft_device: 'dc' = GPIO25
[ 14.643758] fbtft_device: SPI devices registered:
[ 14.650184] fbtft_device: stmpe610 spi0.1 500kHz 8 bits mode=0x00
[ 14.666306] fbtft_device: fb_ili9340 spi0.0 32000kHz 8 bits mode=0x00
[ 14.705833] input: stmpe-ts as /devices/platform/bcm2708_spi.0/spi_master/spi0/spi0.1/stmpe-ts.0/input/input0
It seems that after an raspbian update: apt-get update && apt-get upgrade && apt-get dist-upgrade
The piTFT is not working anymore , well more specific, the GPIO's are not working anymore.
aka it is unable to initialize the backlight, touchscreen works.

I've try'd also the beta .deb but no luck sadly, anyone having an idea ? before im going to reinstall.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

Updating the OS replaces the kernel wholesale. All the kernel modules you installed before upgrading disappear.

The PiTFT is distributed as a system that can be installed on top of a standard kernel though. You'll have to reinstall the PiTFT pieces from scratch, but at least it's possible to do that.

evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

Re: piTFT not working after Raspbian update

Post by evharten »

Thats what i said ;)

i used the beta .deb's also, doesnt work (gpio's) after reinstall of those debs.

Screen works fine, touchscreen works fine.
But you cannot control the backlight.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

Did you reinstall the kernel modules for GPIO?


evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

Re: piTFT not working after Raspbian update

Post by evharten »

[ 61.131643] ------------[ cut here ]------------
[ 61.131706] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x30/0x44()
[ 61.131718] invalid GPIO 252
[ 61.131727] Modules linked in: evdev joydev stmpe_ts fb_ili9340 fbtft_device fbtft syscopyarea sysfillrect sysimgblt fb_sys_fops spi_bcm2708 snd_bcm2835 snd_pcm snd_page_alloc snd_seq snd_seq_device snd_timer snd leds_gpio led_class
[ 61.131815] CPU: 0 PID: 2292 Comm: bash Not tainted 3.10.32+ #3
[ 61.131875] [<c0013990>] (unwind_backtrace+0x0/0xf0) from [<c0010d18>] (show_stack+0x10/0x14)
[ 61.131912] [<c0010d18>] (show_stack+0x10/0x14) from [<c001e610>] (warn_slowpath_common+0x4c/0x68)
[ 61.131944] [<c001e610>] (warn_slowpath_common+0x4c/0x68) from [<c001e6c0>] (warn_slowpath_fmt+0x30/0x40)
[ 61.131971] [<c001e6c0>] (warn_slowpath_fmt+0x30/0x40) from [<c0224674>] (gpio_to_desc+0x30/0x44)
[ 61.132000] [<c0224674>] (gpio_to_desc+0x30/0x44) from [<c0226040>] (export_store+0x2c/0xc4)
[ 61.132033] [<c0226040>] (export_store+0x2c/0xc4) from [<c025f768>] (class_attr_store+0x18/0x24)
[ 61.132077] [<c025f768>] (class_attr_store+0x18/0x24) from [<c012d998>] (sysfs_write_file+0xfc/0x180)
[ 61.132116] [<c012d998>] (sysfs_write_file+0xfc/0x180) from [<c00ce4e0>] (vfs_write+0xbc/0x1bc)
[ 61.132145] [<c00ce4e0>] (vfs_write+0xbc/0x1bc) from [<c00ce96c>] (SyS_write+0x40/0x68)
[ 61.132172] [<c00ce96c>] (SyS_write+0x40/0x68) from [<c000d9e0>] (ret_fast_syscall+0x0/0x30)
[ 61.132188] ---[ end trace d7fcf2c17e3f1e5b ]---
[ 13.594182] stmpe-spi spi0.1: stmpe610 detected, chip id: 0x811
[ 13.609693] gpiochip_find_base: cannot find free range
[ 13.623690] gpiochip_add: gpios -1..4 (stmpe) failed to register
[ 13.631399] stmpe-gpio stmpe-gpio.0: unable to add gpiochip: -28
[ 13.648320] stmpe-gpio: probe of stmpe-gpio.0 failed with error -28
[ 13.663977] fbtft_device: GPIOS used by 'adafruitts':
[ 13.670770] fbtft_device: 'dc' = GPIO25
It sees the chip, but it does not connect the GPIO's it seems.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

Hmm.. I'll have to talk to the folks who worked on the kernel overlay to see how they handled the GPIO configuration.

What version of Raspbian are you currently running?

evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

Re: piTFT not working after Raspbian update

Post by evharten »

root@wiGuest:/home/evharten# cat /etc/debian_version
7.4

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

Thank you. I'll see if the development team have any ideas.

evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

Re: piTFT not working after Raspbian update

Post by evharten »

Just did a clean install with raspbian 07-01-2014:
[ 14.092286] fbtft_device: SPI devices registered:
[ 14.109038] fbtft_device: 'fb' Platform devices registered:
[ 14.124084] fbtft_device: bcm2708_fb id=-1 pdata? no
[ 14.221446] stmpe-spi spi0.1: stmpe610 detected, chip id: 0x811
[ 14.236579] gpiochip_find_base: cannot find free range
[ 14.250964] gpiochip_add: gpios -1..4 (stmpe) failed to register
[ 14.258288] stmpe-gpio stmpe-gpio.0: unable to add gpiochip: -28
[ 14.273989] stmpe-gpio: probe of stmpe-gpio.0 failed with error -28
[ 14.291248] fbtft_device: GPIOS used by 'adafruitts':
[ 14.297734] fbtft_device: 'dc' = GPIO25
[ 14.310946] fbtft_device: SPI devices registered:
[ 14.317032] fbtft_device: stmpe610 spi0.1 500kHz 8 bits mode=0x00
[ 14.339583] fbtft_device: fb_ili9340 spi0.0 32000kHz 8 bits mode=0x00
[ 14.358981] input: stmpe-ts as /devices/platform/bcm2708_spi.0/spi_master/spi0/spi0.1/stmpe-ts.0/input/input0

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

Is the TFT working after that install or are you still having the same problems?

evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

Re: piTFT not working after Raspbian update

Post by evharten »

The same problems, tft works, touchscreen works, but no GPIO's

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

I haven't been able to find anything that would wxplain what's going wrong.

Try a fresh install, and configure the GPIO without any of the PiTFT packages. Let's make sure the pins will respond at all.

evharten
 
Posts: 14
Joined: Wed May 02, 2012 12:50 am

Re: piTFT not working after Raspbian update

Post by evharten »

Will do once my new display is in, i revert to an older Raspbian version now where it does work.

Which also answers your question, the pins DO work everything works with an older Raspbian, the newer kernel brings problems with the drivers.
As soon as the new one is in i can give you an SSH login, so that the developers can test and compile on it.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: piTFT not working after Raspbian update

Post by adafruit_support_mike »

A login probably wouldn't help as much as an SD image. We could compare that to an image that's known to work, test it on multiple devices, duplicate it to test various possible fixes, etc.

Depending on how comfortable you are copying devices you can image a card manually, or there are tools that will take care of the details.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”