WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Issues with Adafruit PiTFT display on picore 15  (Read 80 times)

Offline segfault

  • Newbie
  • *
  • Posts: 23
Issues with Adafruit PiTFT display on picore 15
« on: Today at 02:35:03 PM »
Hi.

TL:DR; My display is not working and I think it might be because there is no: libgbm.so.1 on my picore 15?!

I've installed picore 15 and everything works fine on HDMI. Now Im trying to get SPI working.
Machine:
Adafruit PiTFT 3.5" 320 x 480 TFT w/ touch screen for raspberry pi model b+
Raspberry Pi Model B v1.1
I think the display is based on the HX8357D controller.

Code: [Select]
$ uname -m
armv7l
$ uname -r
6.6.47-piCore-v7

So I check the kernel config and see that CONFIG_TINYDRM_HX8357D and FIG_FB_TFT_HX8357D is =m (so it should be included in the kernel): http://tinycorelinux.net/15.x/armhf/releases/RPi/src/kernel/6.6.34-piCore-v7l_.config

So far so good... so to /mnt/mmcblk0p1/config.txt I added:
Code: [Select]
dtparam=spi=on
dtoverlay=pitft35-resistive,rotate=0,speed=16000000,fps=20

When machine starts display is white, then turns black when desktop is loaded.

Code: [Select]
$ dmesg | grep spi
[    4.157773] stmpe-spi spi0.1: stmpe610 detected, chip id: 0x811
[   28.619373] SPI driver fb_hx8357d has no spi_device_id for himax,hx8357d

Code: [Select]
$ ls /mnt/overlays
-rwxr-xr-x 1 root root   3213 Aug 31 20:01 pitft35-resistive.dtbo

Ok... so hx8357d seems to be built into the kernel, the pitft35 overlay is there and SPI driver tried so load, but something doesnt work.

Code: [Select]
$ cat /var/log/Xorg.0.log | grep EE
[    36.497] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgbm.so.1: cannot      open shared object file: No such file or directory
[    36.497] (EE) Failed to load module "modesetting" (loader failed, 0

I look for libgbm.so.1 but can not find it:
Code: [Select]
$ ls /usr/local/lib/libgbm*
ls: cannot access '/usr/local/lib/libgbm*': No such file or directory

    [Edit]: Added code tags.  Rich
« Last Edit: Today at 04:30:25 PM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14760
Re: Issues with Adafruit PiTFT display on picore 15
« Reply #1 on: Today at 02:40:59 PM »
Is libEGL loaded?

Offline segfault

  • Newbie
  • *
  • Posts: 23
Re: Issues with Adafruit PiTFT display on picore 15
« Reply #2 on: Today at 02:59:54 PM »
Dont think so. I couldnt find it. So I did
Code: [Select]
tce-load -wi libEGL
tce-load -wi libGLES
sudo reboot

And where I before had nothing, I now get this:
Code: [Select]
tc@box:~$ ls /usr/local/lib/libEGL*
/usr/local/lib/libEGL.so  /usr/local/lib/libEGL.so.1  /usr/local/lib/libEGL.so.1.0.0

But the display is still black.

    [Edit]: Added code tags.  Rich
« Last Edit: Today at 04:30:41 PM by Rich »

Offline segfault

  • Newbie
  • *
  • Posts: 23
Re: Issues with Adafruit PiTFT display on picore 15
« Reply #3 on: Today at 03:01:19 PM »
Ah... but now I get:
Code: [Select]
tc@box:~$ cat /var/log/Xorg.0.log | grep EE
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    36.475] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgallium-24.2.5.so: cannot open shared object file: No such file or directory

So seems there have been some progress. :D

EDIT:
Code: [Select]
tc@box:~$ ls /usr/local/lib/libgallium*
ls: cannot access '/usr/local/lib/libgallium*': No such file or directory

    [Edit]: Added code tags.  Rich
« Last Edit: Today at 04:30:59 PM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14760
Re: Issues with Adafruit PiTFT display on picore 15
« Reply #4 on: Today at 03:52:23 PM »
libgallium is in mesa - mesa was updated today, have you checked for updates?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11530
Re: Issues with Adafruit PiTFT display on picore 15
« Reply #5 on: Today at 04:32:13 PM »
Hi segfault
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 701
Re: Issues with Adafruit PiTFT display on picore 15
« Reply #6 on: Today at 04:59:33 PM »
Make it easy for you and begin with raspberryos, and get it working with your display.
And then transfer all logic and knowledge to diet picore.