3.5 inch touch screen on XU4 - Kali linux

Moderators: mdrjr, odroid

3.5 inch touch screen on XU4 - Kali linux

Unread postby maximus » Fri Nov 03, 2017 6:02 am

Hi,
I just wanted to run 3.5 inch touch screen on my XU4. I use Kali linux, but no way I can set the screen on.
Do I need to change something on shifter shield? Do it depend what voltage I use? I have just plugged in 40-pin connection, but do I need to plug in the other 5pins too?

When I try to execute the script it throws an error, it can't find some file in directory.
It can't do the
"mv etc/x11/x.org.conf.d/exynos.conf etc/x11/exynos.conf"
command, because I have no exynos.conf file there.

I updated the linux too, so I don't know what to do. I have tried the guide on odroid wiki, but it sucks at this thing:
"$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
$ sudo rm -fr /etc/X11/xorg.conf.d/exynos.conf"
And also here:
/dev/fb2
I have only fb0 when I execute LS.

Could you please somebody send me better guide what I can follow, or explain exactly what to do.... I mean do it with script or try again step-by-step.

Another thing with "/media/boot/exynos5422-odroidxu3.dtb", I dont have boot folder, its called root, is that okay?

It would be huge if someone could help. :D :D {later I can provide you exactly what is the problem!}
Sorry for bad English and little bit shaky informations.
maximus
 
Posts: 5
Joined: Fri Nov 03, 2017 5:04 am
languages_spoken: english, hungarian, slovak, czech
ODROIDs: XU4

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby odroid » Fri Nov 03, 2017 10:52 am

Did you load fbtft_device & flexfb driver?
https://wiki.odroid.com/accessory/displ ... lcd_shield
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby maximus » Sat Nov 04, 2017 2:37 am

Hi,
I took it like if there is ODROID-C1/C2 it's not for XU, so I just skipped that step.
Was that the mistake?
maximus
 
Posts: 5
Joined: Fri Nov 03, 2017 5:04 am
languages_spoken: english, hungarian, slovak, czech
ODROIDs: XU4

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby maximus » Sat Nov 04, 2017 6:28 am

Hi,
I have tried to do the steps again and I have noticed something.
I don't have "/media/boot/exynos5422-odroidxu3.dtb" this, but "/media/root/60A4-E7DE/exynos5422-odroidxu3.dtb" this.
Another thing, when I type something like this:

cp /media/root/60A4-E7DE/exynos5422-odroidxu3.dtb /media/root/60A4-E7DE/exynos5422-odroidxu3.dtb.old
and
fdtput -t s /media/root/60A4-E7DE/exynos5422-odroidxu3.dtb /hsi2c@12CB0000/sx865x@49 status "okay"

After I reboot and type:
modprobe fbtft_device name=flexpfb rotate=270
modprobe flexfb chip=ili9488

I've got this:
ls /dev/fb*
/dev/fb0
bash: /dev/fb2: No such file or directory

and when I type:
root@kali:~# /dev/fb0
bash: /dev/fb0: Permission denied

Also I don't have xorg.conf, but it can be, because something is wrong with previous steps.
maximus
 
Posts: 5
Joined: Fri Nov 03, 2017 5:04 am
languages_spoken: english, hungarian, slovak, czech
ODROIDs: XU4

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby odroid » Sat Nov 04, 2017 10:00 am

It is really hard to know what's wrong in Kali Linux since I don't use it.
Anyway, show us "lsmod" output to narrow down root causes.
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby maximus » Sat Nov 04, 2017 6:49 pm

Hi,
here it is:
Code: Select all
root@kali:~# lsmod
Module                  Size  Used by
joydev                  9106  0
r8152                  54549  0
rt2800usb              17834  0
rt2800lib              75883  1 rt2800usb
rt2x00usb              10885  1 rt2800usb
rt2x00lib              44640  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              502945  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              451372  2 mac80211,rt2x00lib
rfkill                 13112  3 cfg80211
ip_tables              11674  0
autofs4                23472  2
root@kali:~#
maximus
 
Posts: 5
Joined: Fri Nov 03, 2017 5:04 am
languages_spoken: english, hungarian, slovak, czech
ODROIDs: XU4

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby odroid » Sun Nov 05, 2017 2:59 pm

What happens if run following two commands? Check lsmod output again.
Code: Select all
$ sudo modprobe fbtft_device name=flexpfb rotate=270
$ sudo modprobe flexfb chip=ili9488
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby maximus » Wed Nov 29, 2017 1:56 am

odroid wrote:What happens if run following two commands? Check lsmod output again.
Code: Select all
$ sudo modprobe fbtft_device name=flexpfb rotate=270
$ sudo modprobe flexfb chip=ili9488


Hi, sorry for late response, I had work to do.
Code: Select all
root@kali:~# lsmod
Module                  Size  Used by
flexfb                 16191  0
fbtft_device           38563  0
fbtft                  34729  2 flexfb,fbtft_device
syscopyarea             3053  1 fbtft
sysfillrect             3434  1 fbtft
sysimgblt               2159  1 fbtft
fb_sys_fops             1336  1 fbtft
nls_cp437               5115  1
vfat                    9829  1
fat                    54741  1 vfat
joydev                  9106  0
r8152                  54549  0
rt2800usb              17834  0
rt2800lib              75883  1 rt2800usb
rt2x00usb              10885  1 rt2800usb
rt2x00lib              44640  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              502945  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              451372  2 mac80211,rt2x00lib
rfkill                 13112  3 cfg80211
ip_tables              11674  0
autofs4                23472  2
maximus
 
Posts: 5
Joined: Fri Nov 03, 2017 5:04 am
languages_spoken: english, hungarian, slovak, czech
ODROIDs: XU4

Re: 3.5 inch touch screen on XU4 - Kali linux

Unread postby odroid » Wed Nov 29, 2017 9:56 am

Drivers seem to be loaded well if "/dev/fb0" doesn't exist before loading the drivers.
What is the kernel version? We've supported the 3.5inch LCD on Kernel 4.9 and 4.14.

Try this official Ubuntu image to test your hardware configuration.
https://wiki.odroid.com/odroid-xu4/os_i ... 9/20171025
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to 3.5inch LCD Shield

Who is online

Users browsing this forum: No registered users and 1 guest