Any plan for basic mainline linux support?

Post Reply
RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

tobetter wrote:
Thu Jan 07, 2021 7:59 am
What's the kernel version of it, please let me have the output of uname -a.
That the right question - I switched to your Panforst kernel on C4, but forgot to do this so N2+ (running Ubuntu 20.10 image, by the way). After switch to Panfrost kernel on N2+ most of issues I mentioned above (including the one you see on the screenshot) did go away (besides cursor flicker and panfrost gpu sched timeout errors in dmesg that is still possible to reproduce in Gnome Shell overview if Firefox running with layers.acceleration.force-enabled=1 and for example playback video from YouTube). It's good to know that Panfrost is already in good shape on Mali-G52. There is probably some other problems, but at least current state is something that worth time I could spend on testing and reporting issues, when pinky grey issue will be resolved.

However, since pinky grey issue is not resolved I still have to try to get usable system based on Linux 4.9. Currently I trying to get your mali-bifrost-dkms installed on Armbian legacy image, but all available releases fail in different ways.

What exactly you changed in your kernel releases to make mali kernel module build without errors?

User avatar
istanbulls
Posts: 492
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 310 times
Been thanked: 78 times
Contact:

Re: Any plan for basic mainline linux support?

Post by istanbulls »

RussianNeuroMancer wrote:
Thu Jan 07, 2021 4:07 pm
tobetter wrote:
Thu Jan 07, 2021 7:59 am
What's the kernel version of it, please let me have the output of uname -a.
That the right question - I switched to your Panforst kernel on C4, but forgot to do this so N2+ (running Ubuntu 20.10 image, by the way). After switch to Panfrost kernel on N2+ most of issues I mentioned above (including the one you see on the screenshot) did go away (besides cursor flicker and panfrost gpu sched timeout errors in dmesg that is still possible to reproduce in Gnome Shell overview if Firefox running with layers.acceleration.force-enabled=1 and for example playback video from YouTube). It's good to know that Panfrost is already in good shape on Mali-G52. There is probably some other problems, but at least current state is something that worth time I could spend on testing and reporting issues, when pinky grey issue will be resolved.

However, since pinky grey issue is not resolved I still have to try to get usable system based on Linux 4.9. Currently I trying to get your mali-bifrost-dkms installed on Armbian legacy image, but all available releases fail in different ways.

What exactly you changed in your kernel releases to make mali kernel module build without errors?
Have you tried Ubuntu-Wayland 20.04.1LTS 5.10.4? It works stable and fast on both N2+ and C4.
More stable for me than Panfrost and 20.10.

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

istanbulls wrote:
Thu Jan 07, 2021 5:24 pm
Have you tried Ubuntu-Wayland 20.04.1LTS 5.10.4? It works stable and fast on both N2+ and C4.
More stable for me than Panfrost and 20.10.
There is pinky grey issue (discussed on the previous page of this topic) on 5.x kernels, so it's not an option for now.

User avatar
istanbulls
Posts: 492
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 310 times
Been thanked: 78 times
Contact:

Re: Any plan for basic mainline linux support?

Post by istanbulls »

@RussianNeuroMancer
I know about the problem. I didn't know you had this problem either. There is no color issue for me. The splash screen is not completely black, it looks like very dark green yes, a color closer to black. but while the system was running I haven't noticed a problem yet.

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

RussianNeuroMancer wrote:
Thu Jan 07, 2021 4:07 pm
tobetter wrote:
Thu Jan 07, 2021 7:59 am
What's the kernel version of it, please let me have the output of uname -a.
That the right question - I switched to your Panforst kernel on C4, but forgot to do this so N2+ (running Ubuntu 20.10 image, by the way). After switch to Panfrost kernel on N2+ most of issues I mentioned above (including the one you see on the screenshot) did go away (besides cursor flicker and panfrost gpu sched timeout errors in dmesg that is still possible to reproduce in Gnome Shell overview if Firefox running with layers.acceleration.force-enabled=1 and for example playback video from YouTube). It's good to know that Panfrost is already in good shape on Mali-G52. There is probably some other problems, but at least current state is something that worth time I could spend on testing and reporting issues, when pinky grey issue will be resolved.

However, since pinky grey issue is not resolved I still have to try to get usable system based on Linux 4.9. Currently I trying to get your mali-bifrost-dkms installed on Armbian legacy image, but all available releases fail in different ways.

What exactly you changed in your kernel releases to make mali kernel module build without errors?
For the pinky green issue, are you able to install new kernel package with your N2 with you display device?

Add one line with testing to /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list and install new kernel package for testing.

Code: Select all

$ cat /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
deb http://ppa.linuxfactory.or.kr groovy main
deb http://ppa.linuxfactory.or.kr groovy non-free
deb http://ppa.linuxfactory.or.kr groovy contrib
deb http://ppa.linuxfactory.or.kr groovy testing
$ sudo apt update
$ sudo apt install linux-image-5.10.0-142-odroid-arm64 linux-headers-5.10.0-142-odroid-arm64
I've tested with two display and they gave me better grey with less reddish tone. I've not applied the change to the Panfrost kernel package yet.

EDIT: I've provided the fix to @jgmdev to test on ALARM and he confirms it works. So I guess...the Pinky Grey will be fixed with new kernel package - 5.10.5 - what I am testing.

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

tobetter wrote:
Fri Jan 08, 2021 6:08 am
RussianNeuroMancer wrote:
Thu Jan 07, 2021 4:07 pm
tobetter wrote:
Thu Jan 07, 2021 7:59 am
What's the kernel version of it, please let me have the output of uname -a.
That the right question - I switched to your Panforst kernel on C4, but forgot to do this so N2+ (running Ubuntu 20.10 image, by the way). After switch to Panfrost kernel on N2+ most of issues I mentioned above (including the one you see on the screenshot) did go away (besides cursor flicker and panfrost gpu sched timeout errors in dmesg that is still possible to reproduce in Gnome Shell overview if Firefox running with layers.acceleration.force-enabled=1 and for example playback video from YouTube). It's good to know that Panfrost is already in good shape on Mali-G52. There is probably some other problems, but at least current state is something that worth time I could spend on testing and reporting issues, when pinky grey issue will be resolved.

However, since pinky grey issue is not resolved I still have to try to get usable system based on Linux 4.9. Currently I trying to get your mali-bifrost-dkms installed on Armbian legacy image, but all available releases fail in different ways.

What exactly you changed in your kernel releases to make mali kernel module build without errors?
For the pinky green issue, are you able to install new kernel package with your N2 with you display device?

Add one line with testing to /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list and install new kernel package for testing.

Code: Select all

$ cat /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
deb http://ppa.linuxfactory.or.kr groovy main
deb http://ppa.linuxfactory.or.kr groovy non-free
deb http://ppa.linuxfactory.or.kr groovy contrib
deb http://ppa.linuxfactory.or.kr groovy testing
$ sudo apt update
$ sudo apt install linux-image-5.10.0-142-odroid linux-headers-5.10.0-142-odroid
I've tested with two display and they gave me better grey with less reddish tone. I've not applied the change to the Panfrost kernel package yet.

EDIT: I've provided the fix to @jgmdev to test on ALARM and he confirms it works. So I guess...the Pinky Grey will be fixed with new kernel package - 5.10.5 - what I am testing.
amirul@n2plus:~$ cat /etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list
deb http://ppa.linuxfactory.or.kr groovy main non-free
deb-src http://ppa.linuxfactory.or.kr groovy main non-free
deb http://ppa.linuxfactory.or.kr groovy contrib
deb http://ppa.linuxfactory.or.kr groovy testing
amirul@n2plus:~$ sudo apt update
amirul@n2plus:~$ sudo apt install linux-image-5.10.0-142-odroid linux-headers-5.10.0-142-odroid
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-5.10.0-142-odroid
E: Couldn't find any package by glob 'linux-image-5.10.0-142-odroid'
E: Unable to locate package linux-headers-5.10.0-142-odroid
E: Couldn't find any package by glob 'linux-headers-5.10.0-142-odroid'

Help??

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

amirul wrote:
Fri Jan 08, 2021 8:21 am
amirul@n2plus:~$ cat /etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list
deb http://ppa.linuxfactory.or.kr groovy main non-free
deb-src http://ppa.linuxfactory.or.kr groovy main non-free
deb http://ppa.linuxfactory.or.kr groovy contrib
deb http://ppa.linuxfactory.or.kr groovy testing
amirul@n2plus:~$ sudo apt update
amirul@n2plus:~$ sudo apt install linux-image-5.10.0-142-odroid linux-headers-5.10.0-142-odroid
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-5.10.0-142-odroid
E: Couldn't find any package by glob 'linux-image-5.10.0-142-odroid'
E: Unable to locate package linux-headers-5.10.0-142-odroid
E: Couldn't find any package by glob 'linux-headers-5.10.0-142-odroid'

Help??
Sorry, I gave you wrong command so please use this.

Code: Select all

$ sudo apt install linux-image-5.10.0-142-odroid-arm64 linux-headers-5.10.0-142-odroid-arm64
Also, run another command if the kernel version is not switched to 5.10.0-142 after rebooting.

Code: Select all

$ sudo flash-kernel --force 5.10.0-142-odroid-arm64

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

Sorry, I gave you wrong command so please use this.

Code: Select all

$ sudo apt install linux-image-5.10.0-142-odroid-arm64 linux-headers-5.10.0-142-odroid-arm64
Also, run another command if the kernel version is not switched to 5.10.0-142 after rebooting.

Code: Select all

$ sudo flash-kernel --force 5.10.0-142-odroid-arm64
amirul@n2plus:~$ sudo apt install linux-image-5.10.0-142-odroid-arm64 linux-headers-5.10.0-142-odroid-arm64
amirul@n2plus:~$ sudo flash-kernel --force 5.10.0-142-odroid-arm64

Sorry, ubuntu wayland failed to start.

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

amirul wrote:
Fri Jan 08, 2021 9:06 am
Sorry, I gave you wrong command so please use this.

Code: Select all

$ sudo apt install linux-image-5.10.0-142-odroid-arm64 linux-headers-5.10.0-142-odroid-arm64
Also, run another command if the kernel version is not switched to 5.10.0-142 after rebooting.

Code: Select all

$ sudo flash-kernel --force 5.10.0-142-odroid-arm64
amirul@n2plus:~$ sudo apt install linux-image-5.10.0-142-odroid-arm64 linux-headers-5.10.0-142-odroid-arm64
amirul@n2plus:~$ sudo flash-kernel --force 5.10.0-142-odroid-arm64

Sorry, ubuntu wayland failed to start.
Hmmm...maybe Bifrost driver building is failed. Will you run this script?
http://ppa.linuxfactory.or.kr/band-aid/ ... st_dkms.sh

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

tobetter wrote:
Fri Jan 08, 2021 9:08 am
Hmmm...maybe Bifrost driver building is failed. Will you run this script?
http://ppa.linuxfactory.or.kr/band-aid/ ... st_dkms.sh
amirul@n2plus:~$ sudo ./rebuild_bifrost_dkms.sh
E: failed to download Linux header packages - :5.10.5-202101080343~groovy

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

On the other hand xfce4 runs in accelerated X out of the box
amirul@groovy-server:~$ uname -a
Linux groovy-server 5.10.0-odroid-panfrost-arm64 #1 SMP PREEMPT Ubuntu 5.10.4-202101051132~groovy (2021-01-05) aarch64 aarch64 aarch64 GNU/Linux
amirul@groovy-server:~$ grep Panfrost /var/log/Xorg.0.log
[ 1128.373] (II) modeset(0): glamor X acceleration enabled on Mali G52 (Panfrost)
amirul@groovy-server:~$ glxinfo |grep OpenGL
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali G52 (Panfrost)
OpenGL version string: 2.1 Mesa 21.0.0-devel (git-a6bdbd5c0f)
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.0-devel (git-a6bdbd5c0f)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

Only cons: pinky-grey & flashing mouse cursor

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

amirul wrote:
Fri Jan 08, 2021 8:02 pm
On the other hand xfce4 runs in accelerated X out of the box
amirul@groovy-server:~$ uname -a
Linux groovy-server 5.10.0-odroid-panfrost-arm64 #1 SMP PREEMPT Ubuntu 5.10.4-202101051132~groovy (2021-01-05) aarch64 aarch64 aarch64 GNU/Linux
amirul@groovy-server:~$ grep Panfrost /var/log/Xorg.0.log
[ 1128.373] (II) modeset(0): glamor X acceleration enabled on Mali G52 (Panfrost)
amirul@groovy-server:~$ glxinfo |grep OpenGL
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali G52 (Panfrost)
OpenGL version string: 2.1 Mesa 21.0.0-devel (git-a6bdbd5c0f)
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.0-devel (git-a6bdbd5c0f)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

Only cons: pinky-grey & flashing mouse cursor
The Pinky-Grey issue will be resolved with new kernel package update and still I am testing the changes before uploading which will be happen in 12 hours hopefully. :)
These users thanked the author tobetter for the post (total 2):
amirul (Fri Jan 08, 2021 9:52 pm) • jgmdev (Sat Jan 09, 2021 4:44 am)

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

tobetter wrote:
Fri Jan 08, 2021 8:31 pm
The Pinky-Grey issue will be resolved with new kernel package update and still I am testing the changes before uploading which will be happen in 12 hours hopefully. :)
That's awesome news. Thank you for your effort :D

mad_ady
Posts: 9247
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 620 times
Contact:

Re: Any plan for basic mainline linux support?

Post by mad_ady »

Regarding mouse cursor flicker - I think it was present on xu4 too and needed HW cursor to be disabled in xorg.conf...

jgmdev
Posts: 322
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 130 times
Been thanked: 234 times
Contact:

Re: Any plan for basic mainline linux support?

Post by jgmdev »

I have upgraded the archlinux linux-amlogic-panfrost-510 package to include tobetter fix for pinky grays, so far is working perfectly in all the displays I have :D!
These users thanked the author jgmdev for the post:
tobetter (Sat Jan 09, 2021 4:55 am)

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

amirul@n2plus:~$ uname -a
Linux n2plus 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.5-202101082057~groovy (2021-01-08) aarch64 aarch64 aarch64 GNU/Linux
amirul@n2plus:~$ dkms status
mali-bifrost, 24.0+202101081746~groovy, 5.10.0-odroid-arm64, aarch64: installed

Pinky-grey is gone, great job tobetter :D

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

amirul wrote:
Sat Jan 09, 2021 10:22 am
amirul@n2plus:~$ uname -a
Linux n2plus 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.5-202101082057~groovy (2021-01-08) aarch64 aarch64 aarch64 GNU/Linux
amirul@n2plus:~$ dkms status
mali-bifrost, 24.0+202101081746~groovy, 5.10.0-odroid-arm64, aarch64: installed

Pinky-grey is gone, great job tobetter :D
Thank you to know it works...and glad to know Mali Bifrost driver is successfully updated with 5.10.5 kernel.
These users thanked the author tobetter for the post:
amirul (Sat Jan 09, 2021 12:00 pm)

amirul
Posts: 50
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by amirul »

Panfrost wayland was working great too after the update, no pinky-grey & mouse cursor flicker. Then I got tired of the keyring unlock dialog, deleted all my keys, now having trouble getting to the desktop :lol:
Guess I'll stick with bifrost for now.

EDIT: It's all good, the desktop is at Alt-F8 not F7
amirul@groovy-server:~$ uname -a
Linux groovy-server 5.10.0-odroid-panfrost-arm64 #1 SMP PREEMPT Ubuntu 5.10.5-202101090637~groovy (2021-01-08) aarch64 aarch64 aarch64 GNU/Linux

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

tobetter wrote:
Fri Jan 08, 2021 6:08 am
For the pinky green issue, are you able to install new kernel package with your N2 with you display device?
With 5.10.5 pinky grey issue indeed go away, thanks! :)

I tried to apply same fix on Armbian, but this isn't succeed so far.

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

RussianNeuroMancer wrote:
Mon Jan 11, 2021 3:07 pm
tobetter wrote:
Fri Jan 08, 2021 6:08 am
For the pinky green issue, are you able to install new kernel package with your N2 with you display device?
With 5.10.5 pinky grey issue indeed go away, thanks! :)

I tried to apply same fix on Armbian, but this isn't succeed so far.
Thank you for confirmation...it's more pinky, likely red...

Sav
Posts: 255
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 81 times
Been thanked: 26 times
Contact:

Re: Any plan for basic mainline linux support?

Post by Sav »

jgmdev wrote:
Sat Jan 09, 2021 4:44 am
I have upgraded the archlinux linux-amlogic-panfrost-510 package to include tobetter fix for pinky grays, so far is working perfectly in all the displays I have :D!
I can confirm the same.
These users thanked the author Sav for the post:
jgmdev (Tue Jan 12, 2021 1:25 pm)

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

tobetter wrote:
Mon Jan 11, 2021 3:28 pm
it's more pinky, likely red...
I tried to remove all own Armbian patches and this didn't help. Now I trying to build their kernel with your config, so result should be identical to your branch (assuming all changed between upstream and your build is listed at the top of the list). But if this won't help, maybe you have an idea what could cause such as difference between behavior of your kernel on your image and behaviour of Armbian kernel on Armbian build? Maybe it have something to do with uboot version? I just not sure what else could cause this.

What uboot version you use for your images? Is it upstream or there is some specific patches?

In case of Armbian it's a uboot 2020.10 and a few patches that shouldn't affect anything related to HDMI, as I understand.

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

RussianNeuroMancer wrote:
Tue Jan 12, 2021 1:01 pm
tobetter wrote:
Mon Jan 11, 2021 3:28 pm
it's more pinky, likely red...
I tried to remove all own Armbian patches and this didn't help. Now I trying to build their kernel with your config, so result should be identical to your branch (assuming all changed between upstream and your build is listed at the top of the list). But if this won't help, maybe you have an idea what could cause such as difference between behavior of your kernel on your image and behaviour of Armbian kernel on Armbian build? Maybe it have something to do with uboot version? I just not sure what else could cause this.

What uboot version you use for your images? Is it upstream or there is some specific patches?

In case of Armbian it's a uboot 2020.10 and a few patches that shouldn't affect anything related to HDMI, as I understand.
I use Hardkernel stock LEGACY U-boot only, never tried to boot with the update version yet. What I can tell you based on Amlogic magic code experience, even it could behave differently when you show the logo or not from U-boot. And kernel config would not be the matter since the fix I made is not dependent to any other module except HDMI driver.

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

tobetter wrote:
Tue Jan 12, 2021 1:16 pm
I use Hardkernel stock LEGACY U-boot only, never tried to boot with the update version yet.
odroidg12-v2015.01 branch, or some other?
tobetter wrote:
Tue Jan 12, 2021 1:16 pm
What I can tell you based on Amlogic magic code experience, even it could behave differently when you show the logo or not from U-boot. And kernel config would not be the matter since the fix I made is not dependent to any other module except HDMI driver.
I see. If .config didn't workout I will try to put some variables from this file into this one, and maybe make some changes here.

By the way, did you contacted Neil about this pinky-grey issue and your workaround?

chewitt
Posts: 83
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Any plan for basic mainline linux support?

Post by chewitt »

Amlogic/vendor u-boot sets a lot of DRM properties that are not currently supported or are partially supported in Linux which leads to corner cases where weird colours can show up. One of the reasons to consider using mainline u-boot with mainline kernel images is eliminating these differences. As mainline u-boot doesn't support any DRM capabilities the mainline kernel cannot handle, you don't see the colour problems. It's more of a workaround than a fix, but it works.

FWIW, I use mainline u-boot (currently 2021.01-rc4) with all the Odroid boards I use for testing (N2/N2+/C4/C2/XU4) :)

branch: https://github.com/chewitt/u-boot/commi ... ic-2021.01
These users thanked the author chewitt for the post:
jgmdev (Tue Jan 12, 2021 7:38 pm)

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

chewitt wrote:
Tue Jan 12, 2021 4:25 pm
Amlogic/vendor u-boot sets a lot of DRM properties that are not currently supported or are partially supported in Linux which leads to corner cases where weird colours can show up. One of the reasons to consider using mainline u-boot with mainline kernel images is eliminating these differences. As mainline u-boot doesn't support any DRM capabilities the mainline kernel cannot handle, you don't see the colour problems. It's more of a workaround than a fix, but it works.
I see, but I not quite understand how exactly it's related to observed issue (besides the fact that I obviously should try some other uboot branch - either legacy or yours) since:
1. Pinky grey issue reproducible with vendor uboot on tobetter image and with mainline uboot on Armbian, so it's not causes by difference described in your message, I suppose?
2. Weird colors on the photos is what I getting with mainline uboot (right now in Armbian there is no convenient way to use legacy uboot on ODROID-C4). So it's looks like tobetter workaround somehow rely on legacy uboot behavior?
chewitt wrote:
Tue Jan 12, 2021 4:25 pm
FWIW, I use mainline u-boot (currently 2021.01-rc4) with all the Odroid boards I use for testing (N2/N2+/C4/C2/XU4) :)

branch: https://github.com/chewitt/u-boot/commi ... ic-2021.01
Is tobetter workaround works for you on your 2021.01 branch?

alpe
Posts: 129
Joined: Sat Apr 12, 2014 1:21 pm
languages_spoken: portuguese, english
ODROIDs: C1, N2 4GB
Location: Rio de Janeiro, Brazil
Has thanked: 46 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by alpe »

I use Ubuntu Minimal 20.04.
Is there any kernel 5+ considered stable?
If so, how to install it?

I want to have btrfs features that aren't available on 4.9.

User avatar
odroid
Site Admin
Posts: 36922
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1594 times
Been thanked: 1069 times
Contact:

Re: Any plan for basic mainline linux support?

Post by odroid »

@alpe,
Try @tobetter's Debian/Ubuntu Netboot Installer which supports Kernel 5.10.
viewtopic.php?f=182&t=37109
These users thanked the author odroid for the post:
alpe (Tue Feb 09, 2021 9:38 pm)

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

@odroid I wonder if you was able to reproduce any issues mentioned in this topic?

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

RussianNeuroMancer wrote:
Tue Feb 09, 2021 2:47 pm
@odroid I wonder if you was able to reproduce any issues mentioned in this topic?
Can you clarify the issues?

alpe
Posts: 129
Joined: Sat Apr 12, 2014 1:21 pm
languages_spoken: portuguese, english
ODROIDs: C1, N2 4GB
Location: Rio de Janeiro, Brazil
Has thanked: 46 times
Been thanked: 9 times
Contact:

Re: Any plan for basic mainline linux support?

Post by alpe »

odroid wrote:
Tue Feb 09, 2021 1:22 pm
@alpe,
Try @tobetter's Debian/Ubuntu Netboot Installer which supports Kernel 5.10.
viewtopic.php?f=182&t=37109
Can't I install 5.10 on my current official Ubuntu 20.04?
It would take me many hours to start clean and configure everything.
Update to tobetter's version using dist-upgrade would be fine too.

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

tobetter wrote:
Tue Feb 09, 2021 3:20 pm
RussianNeuroMancer wrote:
Tue Feb 09, 2021 2:47 pm
@odroid I wonder if you was able to reproduce any issues mentioned in this topic?
Can you clarify the issues?
I am sorry, forgot to paste the link:

viewtopic.php?f=181&t=41136

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

RussianNeuroMancer wrote:
Wed Feb 10, 2021 4:18 am
tobetter wrote:
Tue Feb 09, 2021 3:20 pm
RussianNeuroMancer wrote:
Tue Feb 09, 2021 2:47 pm
@odroid I wonder if you was able to reproduce any issues mentioned in this topic?
Can you clarify the issues?
I am sorry, forgot to paste the link:

viewtopic.php?f=181&t=41136
Thanks, so...Pinky-Grey issue resolved...and...I am a bit lost about Black Flickering issue, have you tried with the latest Panfrost update on Ubuntu 20.10 or ArchLinux from @jgmdev?

odroidn2user
Posts: 374
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 112 times
Been thanked: 101 times
Contact:

Re: Any plan for basic mainline linux support?

Post by odroidn2user »

Is anyone working on solving the display driver support on mainline N2, the bug causing the image compression / image processing alike artifacts around bright colors?

RussianNeuroMancer
Posts: 61
Joined: Sat Mar 30, 2019 1:43 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Any plan for basic mainline linux support?

Post by RussianNeuroMancer »

tobetter wrote:
Wed Feb 10, 2021 4:34 am
Thanks, so...Pinky-Grey issue resolved...
In upstream?
If this issue is not fixed in upstream yet, could you please answer to my question about Neil in this message, if possible?
tobetter wrote:
Wed Feb 10, 2021 4:34 am
and...I am a bit lost about Black Flickering issue, have you tried with the latest Panfrost update on Ubuntu 20.10
Unfortunately, since I wasn't able to get pinky grey workaround working in combination with upstream uboot and upstream kernel on Armbian running on ODROID-C4 I postoponed all tasks related to ODROID-C4 and N2, so honestly I don't remember details right now (in particular - I don't remember if it was reproducible on Groovy-based images; I not tested Arch-based images).

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: Any plan for basic mainline linux support?

Post by tobetter »

RussianNeuroMancer wrote:
Wed Feb 10, 2021 11:48 pm
tobetter wrote:
Wed Feb 10, 2021 4:34 am
Thanks, so...Pinky-Grey issue resolved...
In upstream?
If this issue is not fixed in upstream yet, could you please answer to my question about Neil in this message, if possible?
I use odroidg12-v2015.01 branch only for U-boot, I've mailed Neil once about the issue and he had not seen this yet. The code I remove for the Pinky grey issue was copied from 4.9 branch, according to him, I've not submit the patch yet since the issue could be happen to mainline U-boot which I don't work with and had no chance to try it so far. So the fix is in my kernel repository only, and I believe ArchLinux fro @jgmdev use it and no idea who else use the fix.
tobetter wrote:
Wed Feb 10, 2021 4:34 am
and...I am a bit lost about Black Flickering issue, have you tried with the latest Panfrost update on Ubuntu 20.10
Unfortunately, since I wasn't able to get pinky grey workaround working in combination with upstream uboot and upstream kernel on Armbian running on ODROID-C4 I postoponed all tasks related to ODROID-C4 and N2, so honestly I don't remember details right now (in particular - I don't remember if it was reproducible on Groovy-based images; I not tested Arch-based images).
As I said I don't work with mainline U-boot which is not my intention to use so don't know if the Pinky-Grey issue or what ever colour issue happens with mainline U-boot. Probably @chewitt would know better than me since his LibeElec use the mainline U-boot.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests