Closed adevrieswrs closed 9 years ago
The kernel messages looks fine, but the driver isn't equipped to check if there is actually a controller connected. A white display means it's not initialized. If you use the pitft display, then it should be name=pitft. Adafruit has forked FBTFT and they use another name. I added that FBTFT entry when the display was referrred to as pitft That adafruit28 entry in another Adafruit 2.8" display, and yes it seems to mislead people.
Loopback testing the SPI interface: http://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md#troubleshooting
Closing issue since there has been no activity for more than 2 months. Reopen if needed.
I'm having a hard time displaying anything on my Adafruit 2.8" display on an Intel Galileo gen 2 with a 3.4 kernel. I just get get a blank white screen.
I can't quite see where my problem is, since I don't know what healthy output is. It could be that my SPI bus isn't setup properly.
Any ideas? Here's some details. Thanks!
Driver:
I built fbtft 1061645ce7b39b2b187b0db9be630822db22eb38 . I made three changes:
Here's what I'm doing to get it running:
I'm using the script at the bottom of this page to enable spidev:
https://communities.intel.com/message/256211
It complains that for pins 72 and 74 that /sys/class/gpio/gpio74/direction don't exist, but /sys/kernel/debug/gpio show that they're both marked "out lo". I think this is all okay and that /dev/spidev1.0 is setup properly.
To load the driver, I'm using: insmod fbtft/fbtft_device.ko name=adafruit28 gpios=dc:4 speed=16000000 debug=7 busnum=1
Here's what I get:
[ 365.694050] fbtft_device: SPI devices registered: [ 365.698992] fbtft_device: adc1x8s102 spi0.0 16667kHz 8 bits mode=0x03 [ 365.706089] fbtft_device: spidev spi1.0 50000kHz 8 bits mode=0x00 [ 365.712773] fbtft_device: 'fb' Platform devices registered: [ 365.718614] fbtft_device: Deleting spi1.0 [ 365.780902] fbtft_device: GPIOS used by 'adafruit28': [ 365.786087] fbtft_device: 'dc' = GPIO4 [ 365.790299] fbtft_device: SPI devices registered: [ 365.795169] fbtft_device: adc1x8s102 spi0.0 16667kHz 8 bits mode=0x03 [ 365.802232] fbtft_device: fb_ili9341 spi1.0 16000kHz 8 bits mode=0x00
I can't quite recognize if this is indicative of healthy configuration.
Then: insmod fbtft/fbtft_ili9341.ko
It gives me output like this (trimmed for space): [ 811.745807] fb_ili9341 spi1.0: fbtft_gamma_parse_str() str= [ 811.751633] fb_ili9341 spi1.0: 1F 1A 18 0A 0F 06 45 87 32 0A 07 02 07 05 00 [ 811.751662] 00 25 27 05 10 09 3A 78 4D 05 18 0D 38 3A 1F [ 811.766829] fb_ili9341 spi1.0: fbtft_request_gpios_match('dc') [ 811.772911] fb_ili9341 spi1.0: fbtft_request_gpios: 'dc' = GPIO4 [ 811.778983] fb_ili9341 spi1.0: fbtft_verify_gpios() [ 811.784054] fb_ili9341 spi1.0: init_display() [ 811.788479] fb_ili9341 spi1.0: fbtft_write_reg8_bus8: 01 ... [ 813.053196] fb_ili9341 spi1.0: fbtft_write_spi(len=6144): 00 00 00 00 00 00 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 813.087330] fb_ili9341 spi1.0: Display update: 211 kB/s (705.724 ms), fps=0 ( 0.000 ms) [ 813.095467] fb_ili9341 spi1.0: set_gamma() [ 813.099638] fb_ili9341 spi1.0: fbtft_write_reg8_bus8: e0 1f 1a 18 0a 0f 06 45 87 32 0a 07 02 07 05 00 [ 813.109089] fb_ili9341 spi1.0: fbtft_write_spi(len=1): e0 [ 813.123060] fb_ili9341 spi1.0: fbtft_write_spi(len=15): 1f 1a 18 0a 0f 06 45 87 32 0a 07 02 07 05 00 [ 813.134909] fb_ili9341 spi1.0: fbtft_write_reg8_bus8: e1 00 25 27 05 10 09 3a 78 4d 05 18 0d 38 3a 1f [ 813.144379] fb_ili9341 spi1.0: fbtft_write_spi(len=1): e1 [ 813.154551] fb_ili9341 spi1.0: fbtft_write_spi(len=15): 00 25 27 05 10 09 3a 78 4d 05 18 0d 38 3a 1f [ 813.204533] graphics fb0: fb_ili9341 frame buffer, 240x320, 150 KiB video mem ory, 16 KiB buffer memory, fps=20, spi1.0 at 16 MHz
It does create /dev/fb0 which is encouraging.
When I do this: cat smallfile > /dev/fb0
It displays nothing. The console looks something like this (again, trimmed for space):
[ 1145.480651] fb_ili9341 spi1.0: fbtft_write_vmem16_bus8(offset=0, len=153120) [ 1145.488238] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 21 23 62 2f 6e 69 62 2f 73 61 20 68 65 2d 20 20 23 0a 76 20 6f 30 30 64 63 6f 69 68 64 6c 20 20 ... [ 1145.557143] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1145.620813] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1145.684368] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1145.747942] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1145.811693] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1145.874978] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1145.944499] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1146.008036] fb_ili9341 spi1.0: fbtft_write_spi(len=16384): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1146.071615] fb_ili9341 spi1.0: fbtft_write_spi(len=5664): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... [ 1146.104543] fb_ili9341 spi1.0: Display update: 211 kB/s (704.267 ms), fps=0 (27709.973 ms)
Any ideas?