{"action":"created","issue":{"url":"https://api.github.com/repos/notro/fbtft/issues/231","labels_url":"https://api.github.com/repos/notro/fbtft/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/notro/fbtft/issues/231/comments","events_url":"https://api.github.com/repos/notro/fbtft/issues/231/events","html_url":"https://github.com/notro/fbtft/issues/231","id":54800938,"number":231,"title":"Blank screen on Adafruit 2.8\" LCD on Intel Galileo Gen 2","user":{"login":"adevrieswrs","id":6004208,"avatar_url":"https://avatars.githubusercontent.com/u/6004208?v=3","gravatar_id":"","url":"https://api.github.com/users/adevrieswrs","html_url":"https://github.com/adevrieswrs","followers_url":"https://api.github.com/users/adevrieswrs/followers","following_url":"https://api.github.com/users/adevrieswrs/following{/other_user}","gists_url":"https://api.github.com/users/adevrieswrs/gists{/gist_id}","starred_url":"https://api.github.com/users/adevrieswrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adevrieswrs/subscriptions","organizations_url":"https://api.github.com/users/adevrieswrs/orgs","repos_url":"https://api.github.com/users/adevrieswrs/repos","events_url":"https://api.github.com/users/adevrieswrs/events{/privacy}","received_events_url":"https://api.github.com/users/adevrieswrs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-19T19:08:43Z","updated_at":"2015-03-29T18:31:21Z","closed_at":"2015-03-29T18:31:21Z","body":"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.\r\n\r\nI 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.\r\n\r\nAny ideas? Here's some details. Thanks!\r\n\r\nDriver: \r\n\r\nI built fbtft 1061645ce7b39b2b187b0db9be630822db22eb38 . I made three changes:\r\n- disable dma and enable cansleep ( https://github.com/wallacezq/fbtft-yocto-recipe/tree/master/recipe/fbtft-driver/files )\r\n- reverse devm_gpio_request_one patch (because this is 3.4). This reverses 9644cef2ccd50c727ccb4562b2209a10217c0447\r\n\r\n\r\nHere's what I'm doing to get it running:\r\n\r\n1. Enable GPIOs:\r\n\r\nI'm using the script at the bottom of this page to enable spidev:\r\n\r\nhttps://communities.intel.com/message/256211\r\n\r\nIt 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.\r\n\r\n2. Load fbtft kernel module\r\n\r\n\r\nTo load the driver, I'm using:\r\ninsmod fbtft/fbtft_device.ko name=adafruit28 gpios=dc:4 speed=16000000 debug=7 busnum=1\r\n\r\nHere's what I get:\r\n\r\n[  365.694050] fbtft_device:  SPI devices registered:\r\n[  365.698992] fbtft_device:      adc1x8s102 spi0.0 16667kHz 8 bits mode=0x03\r\n[  365.706089] fbtft_device:      spidev spi1.0 50000kHz 8 bits mode=0x00\r\n[  365.712773] fbtft_device:  'fb' Platform devices registered:\r\n[  365.718614] fbtft_device: Deleting spi1.0\r\n[  365.780902] fbtft_device:  GPIOS used by 'adafruit28':\r\n[  365.786087] fbtft_device:    'dc' = GPIO4\r\n[  365.790299] fbtft_device:  SPI devices registered:\r\n[  365.795169] fbtft_device:      adc1x8s102 spi0.0 16667kHz 8 bits mode=0x03\r\n[  365.802232] fbtft_device:      fb_ili9341 spi1.0 16000kHz 8 bits mode=0x00\r\n\r\nI can't quite recognize if this is indicative of healthy configuration. \r\n\r\nThen:\r\ninsmod fbtft/fbtft_ili9341.ko\r\n\r\nIt gives me output like this (trimmed for space):\r\n[  811.745807] fb_ili9341 spi1.0: fbtft_gamma_parse_str() str=\r\n[  811.751633] fb_ili9341 spi1.0: 1F 1A 18 0A 0F 06 45 87 32 0A 07 02 07 05 00\r\n[  811.751662] 00 25 27 05 10 09 3A 78 4D 05 18 0D 38 3A 1F\r\n[  811.766829] fb_ili9341 spi1.0: fbtft_request_gpios_match('dc')\r\n[  811.772911] fb_ili9341 spi1.0: fbtft_request_gpios: 'dc' = GPIO4\r\n[  811.778983] fb_ili9341 spi1.0: fbtft_verify_gpios()\r\n[  811.784054] fb_ili9341 spi1.0: init_display()\r\n[  811.788479] fb_ili9341 spi1.0: fbtft_write_reg8_bus8: 01\r\n...\r\n[  813.053196] fb_ili9341 spi1.0: fbtft_write_spi(len=6144): 00 00 00 00 00 00 0\r\n0 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 ...\r\n[  813.087330] fb_ili9341 spi1.0: Display update: 211 kB/s (705.724 ms), fps=0 (\r\n0.000 ms)\r\n[  813.095467] fb_ili9341 spi1.0: set_gamma()\r\n[  813.099638] fb_ili9341 spi1.0: fbtft_write_reg8_bus8: e0 1f 1a 18 0a 0f 06 45\r\n 87 32 0a 07 02 07 05 00\r\n[  813.109089] fb_ili9341 spi1.0: fbtft_write_spi(len=1): e0\r\n[  813.123060] fb_ili9341 spi1.0: fbtft_write_spi(len=15): 1f 1a 18 0a 0f 06 45\r\n87 32 0a 07 02 07 05 00\r\n[  813.134909] fb_ili9341 spi1.0: fbtft_write_reg8_bus8: e1 00 25 27 05 10 09 3a\r\n 78 4d 05 18 0d 38 3a 1f\r\n[  813.144379] fb_ili9341 spi1.0: fbtft_write_spi(len=1): e1\r\n[  813.154551] fb_ili9341 spi1.0: fbtft_write_spi(len=15): 00 25 27 05 10 09 3a \r\n78 4d 05 18 0d 38 3a 1f\r\n[  813.204533] graphics fb0: fb_ili9341 frame buffer, 240x320, 150 KiB video mem\r\nory, 16 KiB buffer memory, fps=20, spi1.0 at 16 MHz\r\n\r\nIt does create /dev/fb0 which is encouraging.\r\n\r\n3. Try to display something\r\n\r\nWhen I do this:\r\ncat smallfile > /dev/fb0\r\n\r\nIt displays nothing. The console looks something like this (again, trimmed for space):\r\n\r\n[ 1145.480651] fb_ili9341 spi1.0: fbtft_write_vmem16_bus8(offset=0, len=153120)\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 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 ...\r\n[ 1146.104543] fb_ili9341 spi1.0: Display update: 211 kB/s (704.267 ms), fps=0 (27709.973 ms)\r\n\r\nAny ideas?\r\n\r\n- A"},"comment":{"url":"https://api.github.com/repos/notro/fbtft/issues/comments/87453967","html_url":"https://github.com/notro/fbtft/issues/231#issuecomment-87453967","issue_url":"https://api.github.com/repos/notro/fbtft/issues/231","id":87453967,"user":{"login":"notro","id":530887,"avatar_url":"https://avatars.githubusercontent.com/u/530887?v=3","gravatar_id":"","url":"https://api.github.com/users/notro","html_url":"https://github.com/notro","followers_url":"https://api.github.com/users/notro/followers","following_url":"https://api.github.com/users/notro/following{/other_user}","gists_url":"https://api.github.com/users/notro/gists{/gist_id}","starred_url":"https://api.github.com/users/notro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notro/subscriptions","organizations_url":"https://api.github.com/users/notro/orgs","repos_url":"https://api.github.com/users/notro/repos","events_url":"https://api.github.com/users/notro/events{/privacy}","received_events_url":"https://api.github.com/users/notro/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T18:31:21Z","updated_at":"2015-03-29T18:31:21Z","body":"Closing issue since there has been no activity for more than 2 months. Reopen if needed.\r\n"}}