Ubuntu 21.10 for ODROID-N2/HC4

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by istanbulls »

tobetter wrote:
Wed Jan 12, 2022 11:44 pm
New kernel package linux-image-5.16.0-odroid-arm64 is uploaded. I've done minimal testing and basically it works ok, however the default kernel version for Ubuntu 21.10 is 5.14 and will be switched to new one when major issue is not discovered. :)

Code: Select all

sudo apt update
sudo apt install linux-image-5.16.0-odroid-arm64
Also, new Mesa/Panfrost package has been uploaded. I think this would be the last update for Ubuntu 21.10 while Mesa have tons of updates, since it requires other dependent packages to be upgraded with the version which will delivered for Ubuntu 22.04.

Code: Select all

ii  libegl-mesa0:arm64                         5:22.0.0-devel+202201121635~impish   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgl1-mesa-dri:arm64                      5:22.0.0-devel+202201121635~impish   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:22.0.0-devel+202201121635~impish   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:22.0.0-devel+202201121635~impish   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  mesa-vulkan-drivers:arm64                  5:22.0.0-devel+202201121635~impish   arm64        Mesa Vulkan graphics drivers
Thanks for 5.16.

I tried 5.16 now, no sound.
I tried apt install --reinstall odroid-alsa and apt install --reinstall odroid-base but nothing changed, still no sound.

Code: Select all

n2p@odroid:~$ uname -a
Linux odroid 5.16.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.16.0-202201120754~impish (2022-01-11) aarch64 aarch64 aarch64 GNU/Linux
n2p@odroid:~$ dpkg -l | grep linux-image-5
ii  linux-image-5.14.0-odroid-arm64            5.14.18-202111170300~impish                arm64        Linux 5.14 for 64-bit ARMv8 machines
ii  linux-image-5.15.0-odroid-arm64            5.15.7-202112090258~impish                 arm64        Linux 5.15 for 64-bit ARMv8 machines
ii  linux-image-5.15.5-odroid-n2-plus-arm64    5.15.5-odroid-n2-plus-arm64-1              arm64        Linux kernel, version 5.15.5-odroid-n2-plus-arm64
ii  linux-image-5.16.0-odroid-arm64            5.16.0-202201120754~impish                 arm64        Linux 5.16 for 64-bit ARMv8 machines
n2p@odroid:~$ dpkg -l | grep -e mesa -e drm -e linux-image-5 | sort
ii  libdrm2:arm64                              2.4.109+202201121418~impish                arm64        Userspace interface to kernel DRM services -- runtime
ii  libdrm-amdgpu1:arm64                       2.4.109+202201121418~impish                arm64        Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii  libdrm-common                              2.4.109+202201121418~impish                arm64        Userspace interface to kernel DRM services -- common files
ii  libdrm-nouveau2:arm64                      2.4.109+202201121418~impish                arm64        Userspace interface to nouveau-specific kernel DRM services -- runtime
ii  libdrm-radeon1:arm64                       2.4.109+202201121418~impish                arm64        Userspace interface to radeon-specific kernel DRM services -- runtime
ii  libegl-mesa0:arm64                         5:22.0.0-devel+202201121635~impish         arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgl1-mesa-dri:arm64                      5:22.0.0-devel+202201121635~impish         arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:22.0.0-devel+202201121635~impish         arm64        free implementation of the GL API -- shared library
ii  libglu1-mesa:arm64                         9.0.1-1build1                              arm64        Mesa OpenGL utility library (GLU)
ii  libglx-mesa0:arm64                         5:22.0.0-devel+202201121635~impish         arm64        free implementation of the OpenGL API -- GLX vendor library
ii  libosmesa6:arm64                           5:22.0.0-devel+202201121635~impish         arm64        Mesa Off-screen rendering extension
ii  libva-drm2:arm64                           2.12.0-2                                   arm64        Video Acceleration (VA) API for Linux -- DRM runtime
ii  linux-image-5.14.0-odroid-arm64            5.14.18-202111170300~impish                arm64        Linux 5.14 for 64-bit ARMv8 machines
ii  linux-image-5.15.0-odroid-arm64            5.15.7-202112090258~impish                 arm64        Linux 5.15 for 64-bit ARMv8 machines
ii  linux-image-5.15.5-odroid-n2-plus-arm64    5.15.5-odroid-n2-plus-arm64-1              arm64        Linux kernel, version 5.15.5-odroid-n2-plus-arm64
ii  linux-image-5.16.0-odroid-arm64            5.16.0-202201120754~impish                 arm64        Linux 5.16 for 64-bit ARMv8 machines
ii  mesa-utils                                 8.4.0-1build1                              arm64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:arm64                      5:22.0.0-devel+202201121635~impish         arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:22.0.0-devel+202201121635~impish         arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:22.0.0-devel+202201121635~impish         arm64        Mesa Vulkan graphics drivers
n2p@odroid:~$ 

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tobetter »

@istanbulls, I would seriously consider to release new version after testing with you. :D

Do you have an audio after switching to 5.14 kernel with the same desktop? By the way, which Desktop did you test today?? :)

Can you try this with 5.16 kernel?

Code: Select all

sudo rm -f /var/lib/alsa/asound.state
sudo reboot
sudo dpkg-reconfigure odroid-alsa
I wonder who gave you "linux-image-5.15.5-odroid-n2-plus-arm64" package? You have another supplier since my package always introduce new bug? :lol:
These users thanked the author tobetter for the post:
istanbulls (Thu Jan 13, 2022 4:14 pm)

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by istanbulls »

tobetter wrote:
Thu Jan 13, 2022 4:41 am
@istanbulls, I would seriously consider to release new version after testing with you. :D
absolutely... i agree :D
tobetter wrote:
Thu Jan 13, 2022 4:41 am
Do you have an audio after switching to 5.14 kernel with the same desktop? By the way, which Desktop did you test today?? :)
How do I revert to 5.14.
I'm testing android tv this time :) it seems like there is nothing new on the linux side. the last thing new was 5.16, the result is as you can see :D
tobetter wrote:
Thu Jan 13, 2022 4:41 am
Can you try this with 5.16 kernel?

Code: Select all

sudo rm -f /var/lib/alsa/asound.state
sudo reboot
sudo dpkg-reconfigure odroid-alsa
I tried this but still no sound
tobetter wrote:
Thu Jan 13, 2022 4:41 am
I wonder who gave you "linux-image-5.15.5-odroid-n2-plus-arm64" package? You have another supplier since my package always introduce new bug? :lol:
I don't think I did it on purpose myself. I thought it was installed with software updater. :)
you are definitely my only and best supplier :) I try the innovations I see in you without thinking, it's a feeling like I have to try it. :lol:

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tobetter »

istanbulls wrote:
Thu Jan 13, 2022 4:29 pm
tobetter wrote:
Thu Jan 13, 2022 4:41 am
Do you have an audio after switching to 5.14 kernel with the same desktop? By the way, which Desktop did you test today?? :)
How do I revert to 5.14.
I'm testing android tv this time :) it seems like there is nothing new on the linux side. the last thing new was 5.16, the result is as you can see :D
You can switch to 5.14 after this command if 5.14 kernel package is still installed.

Code: Select all

sudo flash-kernel --force 5.14.0-odroid-arm64
sudo reboot
tobetter wrote:
Thu Jan 13, 2022 4:41 am
Can you try this with 5.16 kernel?

Code: Select all

sudo rm -f /var/lib/alsa/asound.state
sudo reboot
sudo dpkg-reconfigure odroid-alsa
It's strange why you often audio error when installing new image.

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by istanbulls »

yes this is really interesting. :)
There was a similar issue when we upgraded to 5.10. The voice-controlled remote control was the source of the problem and that problem still persists.
I take out the remote control while the system is booting.

edit:
I went back to 5.14 and the audio is working

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tobetter »

istanbulls wrote:
Thu Jan 13, 2022 6:02 pm
yes this is really interesting. :)
There was a similar issue when we upgraded to 5.10. The voice-controlled remote control was the source of the problem and that problem still persists.
I take out the remote control while the system is booting.
What's the model of your remote?
edit:
I went back to 5.14 and the audio is working
Glad to know it's back. :D

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by istanbulls »

tobetter wrote:
Thu Jan 13, 2022 7:02 pm
istanbulls wrote:
Thu Jan 13, 2022 6:02 pm
yes this is really interesting. :)
There was a similar issue when we upgraded to 5.10. The voice-controlled remote control was the source of the problem and that problem still persists.
I take out the remote control while the system is booting.
What's the model of your remote?
edit:
I went back to 5.14 and the audio is working
Glad to know it's back. :D
Thanks :) <3

VONTAR G30S

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by alpe »

Can I upgrade to it directly from 20.10 minimal?
How? Changing all sources from groovy to impish and running update/upgrade/dist-upgrade is enough?
Thanks.

User avatar
wallyz21
Posts: 309
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Has thanked: 17 times
Been thanked: 32 times
Contact:

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by wallyz21 »

Yep, yep, yep.

I have the sticky (laggy) mouse issue.

I have had this since 21.04 and still have this after the 21.10 release upgrade.

I had no issues with the upgrade and all my devices including sound work.

The sticky mouse is not a deal breaker, just a bit annoying.

Has anyone managed to find out what the cause and fix are?

WallyZ
Walter Zambotti
N2 - HK 18.04 Ubuntu Mate Desktop
N2+ - 21.04 Ubuntu Mate Desktop (Panfrost)

tolszak
Posts: 42
Joined: Fri Dec 30, 2016 6:24 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tolszak »

tobetter wrote:
Wed Jan 12, 2022 11:44 pm
New kernel package linux-image-5.16.0-odroid-arm64 is uploaded. I've done minimal testing and basically it works ok, however the default kernel version for Ubuntu 21.10 is 5.14 and will be switched to new one when major issue is not discovered. :)
There is still easy to reproduce issue with panfrost. High magnification in opengl using vertices distance do "scale" texture instead of interpolating it correctly in fragment shared shows a bug(https://gitlab.freedesktop.org/mesa/mesa/-/issues/5605). @tobetter as I understand you are Harkernel developer right? Could you please help me with information how to fix this issue. We've ordered a few hundreds of Odroid N2+ and plan to order thousand more but this one is a blocker...
Noone in mesa want's to look at it. Does Hardkernel have impact on it? Or perhaps it is possible to have mali drivers with X11 or eglfs, with yocto.

tolszak
Posts: 42
Joined: Fri Dec 30, 2016 6:24 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tolszak »

@odroid Could you please look at above? ^

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tobetter »

tolszak wrote:
Thu Jan 20, 2022 10:47 pm
tobetter wrote:
Wed Jan 12, 2022 11:44 pm
New kernel package linux-image-5.16.0-odroid-arm64 is uploaded. I've done minimal testing and basically it works ok, however the default kernel version for Ubuntu 21.10 is 5.14 and will be switched to new one when major issue is not discovered. :)
There is still easy to reproduce issue with panfrost. High magnification in opengl using vertices distance do "scale" texture instead of interpolating it correctly in fragment shared shows a bug(https://gitlab.freedesktop.org/mesa/mesa/-/issues/5605). @tobetter as I understand you are Harkernel developer right? Could you please help me with information how to fix this issue. We've ordered a few hundreds of Odroid N2+ and plan to order thousand more but this one is a blocker...
Noone in mesa want's to look at it. Does Hardkernel have impact on it? Or perhaps it is possible to have mali drivers with X11 or eglfs, with yocto.
Hey, yes I am from Hardkernel and I've read the bug report several times as you have shared the link in this forum already. Problem is that I am not so familiar with a code of Panfrost to help the issue, I can test a patch and debug but the issue what you shared would be a different level I think. Don't know why Panfrost members are not looking into the issue and I have no connection with them. Probably you can share the bug with Panfrost developers in iRC channel?

What about to try Ubuntu 20.04 instead of 21.10? Ubuntu 20.04 have a Mali driver from ARM/Amlogic, not Panfrost, it's ARM Mali driver support EGL/GBM as well. It also provide customized Qt to working with ARM Mali drivers. I think you can test this version and check if the bug happens.
[youtube]https://youtu.be/J9EuXwxVik0?t=171[/youtube]

This is the link of Ubuntu 20.04 thread, you would share your experience of Ubuntu 20.04.
viewtopic.php?p=275140#p275140

tolszak
Posts: 42
Joined: Fri Dec 30, 2016 6:24 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tolszak »

Thanks for reply!

The problem is that our software bases on yocto, and switching it to something else is not so easy and would be custom only for this particular device. Also as I understand Ubuntu 20.04 doesn't have X11 hw acceleration right as mali doesn't provide such drivers anymore right?

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

Re: Ubuntu 21.10 for ODROID-N2/HC4

Post by tobetter »

tolszak wrote:
Thu Jan 20, 2022 11:54 pm
Thanks for reply!

The problem is that our software bases on yocto, and switching it to something else is not so easy and would be custom only for this particular device. Also as I understand Ubuntu 20.04 doesn't have X11 hw acceleration right as mali doesn't provide such drivers anymore right?
True, there is no X11 H/W acceleration for ARM Mali Bifrost and we only have Fbdev and Wayland driver. Alternatively, you would be able to use XWayland on top of Wayland for X11. You can test it with Ubuntu 20.04 as well. IMHO, you need to try Ubuntu 20.04 and test your application or test case if it has the same problem.
https://wayland.freedesktop.org/xserver.html

Since the issue what you are facing is not related to Ubuntu 21.10, please do open a new thread or let me know if you already have one. So we can keep discussion if necessary.

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 3 guests