Hello,
I've set up the kernel modules for automated loading, but dmesg tells me they don't get registered;
[ 5.071986] fbtft_device: SPI devices registered:
[ 5.072016] fbtft_device: 'fb' Platform devices registered:
[ 5.072038] fbtft_device: bcm2708_fb id=-1 pdata? no
[ 5.145582] fbtft_device: spi_busnum_to_master(0) returned NULL
[ 5.145613] fbtft_device: failed to register SPI device
I can register them manually;
[ 439.447914] bcm2708_spi bcm2708_spi.0: DMA channel 4 at address 0xf2007400 with irq 20
[ 439.447950] bcm2708_spi bcm2708_spi.0: DMA channel 5 at address 0xf2007500 with irq 21
[ 439.452433] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 439.452470] bcm2708_spi bcm2708_spi.0: SPI Controller running in dma mode
[ 450.605954] fbtft_device: SPI devices registered:
[ 450.605995] fbtft_device: 'fb' Platform devices registered:
[ 450.606022] fbtft_device: bcm2708_fb id=-1 pdata? no
[ 450.683538] stmpe-spi spi0.1: stmpe610 detected, chip id: 0x811
[ 450.690005] gpiochip_find_base: cannot find free range
[ 450.690034] gpiochip_add: gpios -1..4 (stmpe) failed to register
[ 450.690059] stmpe-gpio stmpe-gpio.0: unable to add gpiochip: -28
[ 450.690457] stmpe-gpio: probe of stmpe-gpio.0 failed with error -28
[ 450.690828] fbtft_device: GPIOS used by 'adafruitts':
[ 450.690848] fbtft_device: 'dc' = GPIO25
[ 450.690858] fbtft_device: SPI devices registered:
[ 450.690875] fbtft_device: stmpe610 spi0.1 500kHz 8 bits mode=0x00
[ 450.690889] fbtft_device: fb_ili9340 spi0.0 64000kHz 8 bits mode=0x00
[ 450.790392] input: stmpe-ts as /devices/platform/bcm2708_spi.0/spi_master/spi0/spi0.1/stmpe-ts.0/input/input0
[ 451.012534] graphics fb1: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=100, spi0.0 at 64 MHz
Any ideas? I'd very much like to see kernel messages go by at boot time and it is hard without this.
Failed to register SPI device (TFT Raspbian lastest)
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Sat Mar 15, 2014 4:59 pm
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Failed to register SPI device (TFT Raspbian lastest)
In January 2014, the RasPi Foundation switched the default framebuffer in Raspbian to one that can handle hardware acceleration for the HDMI output. It doesn't like the PiTFT.
The old framebuffer is still there, and the tutorial has a note about changing Raspbian back to that one:
The old framebuffer is still there, and the tutorial has a note about changing Raspbian back to that one:
If you have a version of Raspbian more recent than Sept. 2013, you'll need to turn off the accelerated X framebuffer here, run "sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~" to remove the accelerated X buffer and save it in your home directory
-
- Posts: 2
- Joined: Sat Mar 15, 2014 4:59 pm
Re: Failed to register SPI device (TFT Raspbian lastest)
Thanks for the info. I think I saw that note, but for some reason I didn't think it applied to my Pi. I guess I was wrong.
Please be positive and constructive with your questions and comments.