VIM3 with Ubuntu bionic + Touch screen TS050

How about the LCD Driver for TS050 on Vim3 ?

Please check here:

1 Like

Hello Dear,
Thank you for the Links.
I have gone through the Touchscreen Link and it looks like I can add it to the kernel and the dts.

But the LCD one is little complicated for me to understand with my limit knowledge of kernel development. The reason is there is a separate amlogic directory maintained in your BSP which differs from the mainline directories.

I am not sure about the following files and the changed you have done to them. As these files are not present in the mainline and also no such directory is there.

  • aml_bl.h
  • aml_bl.c
  • lcd_vout.h
  • lcd_vout.c
  • lcd_common.h
  • lcd_common.c

If someone can advice me on how to add these to the mainline kernel then I can try it myself. I have forked @balbes150 git branch as we have mostly everything working on that built.

Yes, the LCD can only work on Amlogic 4.9 kernel.

There is no MIPI DSI support on mainline kernel for current stage.

You can check here: http://linux-meson.com/doku.php#wip

Ok. Do you have any rom with full ts050 support for Vim3 ?

Only single display for current stage.

Android: https://dl.khadas.com/Firmware/VIM3/Android/VIM3_Pie_V191101.7z

Ubuntu: https://dl.khadas.com/Firmware/VIM3/Ubuntu/EMMC/VIM3_Ubuntu-server-bionic_Linux-4.9_arm64_EMMC_V20190830.7z

And update to latest kernel:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sync
$ sudo reboot

Note: Remove the HDMI cable, if you want to use the panel.

1 Like

This didnt help with display or touch screen.

This did but still not usable. As the screen is scattered and torn.
Will upload a video to better understanding.

Please check this.

Seems not… @Terry is working on the Android Dual display now… will release new image when it is OK.

Can you try the V190830 image without any update ? V20190830 image already support the screen.

You can check here:

EDIT:

I checked https://dl.khadas.com/Firmware/VIM3/Ubuntu/EMMC/VIM3_Ubuntu-xfce-bionic_Linux-4.9_arm64_EMMC_V20190830.7z , the screen and TP works.

EDIT again

When I do apt-get update && apt-get upgrade based on V190830, the screen also works.

You need to remove the HDMI cable, if you want to use the screen.

I didn’t use hdmi cable when i connect ts050. So i think there is some problem with the screen.

The screen with ubuntu without update just shows me khadas logo stretched and nothing else. I also tried the white cable as well as the black one.
I don’t know what is the problem then.

Make sure, you flash the right image: https://dl.khadas.com/Firmware/VIM3/Ubuntu/EMMC/VIM3_Ubuntu-xfce-bionic_Linux-4.9_arm64_EMMC_V20190830.7z

After flash the image, please try the following things, remove the SD card and USB storage, make sure it boots from the eMMC.

Provide the information to me:

  • dmesg kernel log
  • cat /etc/fenix-release

Thanks.

@numbqq
Here is the uart log from Android.
Pastebin There might be somethings missing in this as the audit keeps spamming.
The above is when I connect only TS050 to Vim3.

Here is Linux 4.9 without the update on TS050 without hdmi connecting.
Pastebin

From the log, I don’t think you use the right image.

Your kernel information, It’s NOT V190830 release.

[    0.000000] Linux version 4.9.186 (khadas@d27a8e5af0df) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #12 SMP PREEMPT Tue Aug 13 11:06:23 CST 2019

The correct kernel information should be:

[    0.000000@0] Linux version 4.9.190 (khadas@d27a8e5af0df) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #51 SMP PREEMPT Fri Aug 30 11:44:18 CST 2019

And the release information:

root@Khadas:~# cat /etc/fenix-release 
# PLEASE DO NOT EDIT THIS FILE
BOARD=VIM3
VENDOR=Amlogic
VERSION=0.7
ARCH=arm64
INITRD_ARCH=arm64
INSTALL_TYPE=EMMC
IMAGE_RELEASE_VERSION=V20190830

Can you try the right image ?

https://dl.khadas.com/Firmware/VIM3/Ubuntu/EMMC/VIM3_Ubuntu-xfce-bionic_Linux-4.9_arm64_EMMC_V20190830.7z

Sure trying this tonight. What about the Android pie V191101 logs I shared above which doesn’t respond at all on ts050.

I will try and get back to you. Thanks for the support

Ignore this version, there is no LCD support. Will release the dual screen image next time for Android.

2 Likes

Hey. Thanks for the correct version.

Its working fine now. I will test it and then try to port the drivers to mainline, If I can.
Just to inform you. I tried to run kodi on ts050 and it doesnt seem to display anything can just see the blurred cursor. Also is there anyway to rotate the display and use it in landscape?

1 Like

Kodi can’t work with the LCD, seems related to the resolution…

It’s very easy for mainline kernel to rotate the display. But for 4.9, I haven’t find a way to do this for Desktop…(no drm support)

The Android Firmware support the TS050 now.

2 Likes

Can I assume that VIM3/VIM3L will never support the TS050 on mainline ? Amlogic doesn’t seem to be in a hurry to upgrade from the ancient 4.9 kernel (which doesn’t support .NET Core 3.X on ARM64 Linux - only from 4.14 onwards) and the mainline work on the Amlogic support doesn’t even plan MIPI-DSI support (probably to do with licensing issues imposed by the MIPI consortium). So, unless Amlogic gives us an updated kernel, we’re stuck. Correct ?

Bottom line for us : with the Khadas LCD not working on anything > 4.9 and the HDMI output locked to 1920x1080 without any view on how to change that (even after hours reading in forums) which rules out every small HDMI LCD display, we can throw the VIM3L in the bin while it was our first choice to build an embedded device around. .NET Core 3 support is indispensible though for our use case.

I have the impression that all companies bringing new SBCs to the market just quote the hardware specs without even considering if there will ever be decent software support to enable those wonderful specs so they can support the true use case of SBCs : embedded devices. Nobody is counting on these boards to be a full desktop replacement. => HTPC is the only real use case that makes sense… Just my 2 cents…

I can’t deny this but as it says it is a DIY device for the users to get things working as per their requirements.

If you see any other SBC they’re all using legacy kernel and not using mainline. Mainline is only maintained by the community users.

I was planning on looking into porting lcd from 4.9 to 5.4 but been very busy lately. And also I don’t have a strong knowledge of kernel development. So it will be a very slow process. If you have good knowledge in kernel development then you can help me with it.

Exactly they’re not ready to be desktop replacement as not all components have a working Linux driver, but it is getting there.

I’d love to help and I do have proper low level C development skills, but what I understood from the mainline development is that, even when looking at the roadmaps of the Amlogic support in mainline up to 5.5, DSI is mentioned as ‘not supported’. As DSI is not standardised and the specs for Amlogic are most likely only available under NDA, it’s virtually impossible for an individual to engage on this alone. I’ve done such projects in my professional carreer and it’s literally manyears of work. So, at best we can hope for 5.6 support, but as 5.4 is just out, I think we’re talking about at best 1-2 years out…
I think I’m going to revert to R-Pi, or maybe to a custum i.MX8 implementation as at least the last one has a strong backing company spending lots of money supporting their chipsets.
Problem with Amlogic, AllWinner and similar low cost SoC providers is that they really target the phone and tablet mass markets, with these SBCs being very low on the priority list to do anything with. Very understandable, but unfortunate for those hoping to build something with a relative low volume on these wonderful devices.

1 Like