Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post Reply
User avatar
tobetter
Posts: 7749
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Wed Feb 24, 2021 1:36 am
tobetter wrote:
Wed Feb 24, 2021 1:09 am
[20210223] New kernel 5.11 is coming

New kernel 5.11 is uploaded and default kernel will be switched on coming weekend hopefully.

** BUT DO NOT UPDATE WITH THE NEW KERNEL 5.11 IF YOU ARE RUNNING DESKTOP WITH PANFROST DRIVER **
It's because we had bad experience of broken UI issue about 10 days ago and desktop UI had many issues, therefore old version of Mesa package had been uploaded that works with Linux kernel 5.10.16 today. New kernel 5.11 also requires another compatible Mesa package which is not incompatible with 5.10 kernel, this makes us keep using 5.11+ kernel once new mesa package is uploaded for Linux kernel 5.11, this would be ok if 5.11 kernel does not make critical issues.

In case if you like to install new kernel 5.11 with new packages, please do follow up the commands below at your own risk.

Code: Select all

$ echo "deb http://ppa.linuxfactory.or.kr groovy testing" | sudo tee -a /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
$ sudo apt update
$ sudo apt dist-upgrade
$ sudo sed -i "/testing/d" /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
$ sudo reboot
You added odroid-homecloud-display.
sudo apt dist-upgrade ended with error.

Code: Select all

mali-bifrost-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
You should not try this if you are using Mali ARM Bifrost driver... :(
It has another issue with 5.11 which I am fixing for non-Panfrost users.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

oops, I tried.
What do you think I should do?

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

tobetter wrote:
Wed Feb 24, 2021 1:09 am
[20210223] New kernel 5.11 is coming

** BUT DO NOT UPDATE WITH THE NEW KERNEL 5.11 IF YOU ARE RUNNING DESKTOP WITH PANFROST DRIVER **
Did I get this wrong!?

Code: Select all

n2p@odroid:~$ sudo dpkg -l |grep linux-image
ii  linux-image-5.10.0-odroid-arm64            5.10.16-202102191318~groovy         arm64        Linux 5.10 for 64-bit ARMv8 machines
ii  linux-image-5.11.0-odroid-arm64            5.11.0-202102232224~groovy          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-image-generic                        5:2021.02-1+202102240043~groovy     arm64        Generic Linux kernel image
n2p@odroid:~$ 

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Wed Feb 24, 2021 1:58 am
tobetter wrote:
Wed Feb 24, 2021 1:09 am
[20210223] New kernel 5.11 is coming

** BUT DO NOT UPDATE WITH THE NEW KERNEL 5.11 IF YOU ARE RUNNING DESKTOP WITH PANFROST DRIVER **
Did I get this wrong!?

Code: Select all

n2p@odroid:~$ sudo dpkg -l |grep linux-image
ii  linux-image-5.10.0-odroid-arm64            5.10.16-202102191318~groovy         arm64        Linux 5.10 for 64-bit ARMv8 machines
ii  linux-image-5.11.0-odroid-arm64            5.11.0-202102232224~groovy          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-image-generic                        5:2021.02-1+202102240043~groovy     arm64        Generic Linux kernel image
n2p@odroid:~$ 
I don't know what you are expecting me to tell you about this. 5.11 kernel is installed...so...aren't you able to boot with 5.11 or what issue do you have?

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

tobetter wrote:
Wed Feb 24, 2021 2:11 am

what you are expecting me to tell you about this. 5.11 kernel is installed...so...aren't you able to boot with 5.11 or what issue do you have?
I asked this question for this answer.

You should not try this if you are using Mali ARM Bifrost driver... :(
It has another issue with 5.11 which I am fixing for non-Panfrost users.
I am also getting a lot of bug reports.
I have too many error reports that I cannot write.

I like to use your images.
I want to help everybody a little bit by trying each new image and making feedback. I just don't like being someone who consumes, doesn't produce.
Anyway... thanks for the new version.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Wed Feb 24, 2021 2:36 am
tobetter wrote:
Wed Feb 24, 2021 2:11 am

what you are expecting me to tell you about this. 5.11 kernel is installed...so...aren't you able to boot with 5.11 or what issue do you have?
I asked this question for this answer.

You should not try this if you are using Mali ARM Bifrost driver... :(
It has another issue with 5.11 which I am fixing for non-Panfrost users.
I am also getting a lot of bug reports.
I have too many error reports that I cannot write.
I have no idea how you are getting bug reports and how many they are. Not able to guess how the bugs are serious if I do not aware of them.
I like to use your images.
I want to help everybody a little bit by trying each new image and making feedback. I just don't like being someone who consumes, doesn't produce.
Anyway... thanks for the new version.
Thank you if you are trying to hlep me and everyone. If you are going to share the bugs or errors, please share the logs whatever you can get from screen or log files, sometimes logs, error message or screen picture is more clear than several lines of explains.

Also literally this thread is started to test Panfrost on Ubuntu 20.10, not Bifrost. Obvisouly, I cannot stop using Bifrost with 20.10 and I will update another thread for Ubuntu 20.04 with Netboot Installer when Bifrost can be available with 5.11.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

I got back to my clone yesterday, sorry.
I can install the 5.11 version again if it helps.

Code: Select all

n2p@odroid:~$ uname -a
Linux odroid 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.16-202102191318~groovy (2021-02-19) aarch64 aarch64 aarch64 GNU/Linux
n2p@odroid:~$ sudo dpkg -l |grep linux-image
ii  linux-image-5.10.0-odroid-arm64            5.10.16-202102191318~groovy         arm64        Linux 5.10 for 64-bit ARMv8 machines
ii  linux-image-generic                        5:2020.12-1+202012241958~groovy     arm64        Generic Linux kernel image
n2p@odroid:~$ 

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

mali-bifrost-dkms just turned up after sudo apt update. Should I upgrade?

Code: Select all

$ apt list --upgradable
Listing... Done
linux-libc-dev/stable 5.11.1-202102241828~groovy arm64 [upgradable from: 5.11.0-202102232224~groovy]
mali-bifrost-dkms/stable 24.0+202102241825~groovy arm64 [upgradable from: 24.0+202102182345~groovy]
$ uname -a
Linux n2plus 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.16-202102191318~groovy (2021-02-19) aarch64 aarch64 aarch64 GNU/Linux

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Feb 24, 2021 10:59 pm
mali-bifrost-dkms just turned up after sudo apt update. Should I upgrade?

Code: Select all

$ apt list --upgradable
Listing... Done
linux-libc-dev/stable 5.11.1-202102241828~groovy arm64 [upgradable from: 5.11.0-202102232224~groovy]
mali-bifrost-dkms/stable 24.0+202102241825~groovy arm64 [upgradable from: 24.0+202102182345~groovy]
$ uname -a
Linux n2plus 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.16-202102191318~groovy (2021-02-19) aarch64 aarch64 aarch64 GNU/Linux
Ah...you also use Bifrost on Ubuntu 20.10....
It's worth upgrade to new version 24.0+202102241825~groovy that's what I am fixing for 5.11 if you will update newer version later.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Feb 24, 2021 11:06 pm
amirul wrote:
Wed Feb 24, 2021 10:59 pm
mali-bifrost-dkms just turned up after sudo apt update. Should I upgrade?

Code: Select all

$ apt list --upgradable
Listing... Done
linux-libc-dev/stable 5.11.1-202102241828~groovy arm64 [upgradable from: 5.11.0-202102232224~groovy]
mali-bifrost-dkms/stable 24.0+202102241825~groovy arm64 [upgradable from: 24.0+202102182345~groovy]
$ uname -a
Linux n2plus 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.16-202102191318~groovy (2021-02-19) aarch64 aarch64 aarch64 GNU/Linux
Ah...you also use Bifrost on Ubuntu 20.10....
It's worth upgrade to new version 24.0+202102241825~groovy that's what I am fixing for 5.11 if you will update newer version later.
Upgraded with no ill-effects :D
These users thanked the author amirul for the post:
tobetter (Wed Feb 24, 2021 11:44 pm)

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

[20210301] New kernel 5.11 is uploaded...

As mentioned several days ago, new kernel (v5.11.1) has been switched to the default kernel.

Please do run these commands in order to update your new kernel.

Code: Select all

$ sudo apt update
$ sudo apt dist-upgrade
If you are willing to flash new image, please visit the link to download the image with 5.11 kernel pre-installed.
ODROID-N2/N2Plus
ODROID-C4
ODROID-HC4

Nox997
Posts: 22
Joined: Sat Nov 23, 2019 5:30 am
languages_spoken: english
ODROIDs: ODROID-HC2, ODROID-C4, ODROID-HC4, ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by Nox997 »

Hello @tobetter,

thank you for bringing 5.11 kernel!

I ran the apt update and apt dist-upgrade commands, but my C4 thinks it's still up to date...
Am I doing anything wrong?

Thank you very much in advance!

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

Nox997 wrote:
Tue Mar 02, 2021 12:12 am
Hello @tobetter,

thank you for bringing 5.11 kernel!

I ran the apt update and apt dist-upgrade commands, but my C4 thinks it's still up to date...
Am I doing anything wrong?

Thank you very much in advance!
Are you running Ubuntu 20.10?
Can you share the output of this command?

Code: Select all

$ dpkg -l | grep linux
$ uname -a

Nox997
Posts: 22
Joined: Sat Nov 23, 2019 5:30 am
languages_spoken: english
ODROIDs: ODROID-HC2, ODROID-C4, ODROID-HC4, ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by Nox997 »

Hello!

yes, I am running groovy - my installation was with the 20201218 Linux 5.10 image.
Before I saw your reply, I have done the following commands that resulted in 5.11 kernel being installed:

Code: Select all

133  sudo apt remove linux-image-5.10.0-odroid-arm64
134  sudo apt install linux-image-odroidc4
Could it be that linux-image-odroidc4 is some kind of "meta" package? And that the linux-image-5.10.0 was *explicitly* installed in the 20201218 groovy image?
(I do not know apt / dpkg really well as I usually use arch on my pcs :D )

For completeness, this is the result of the commands requested *now* on my machine:

Code: Select all

odroid@groovy-server:~$ dpkg -l | grep linux
ii  binutils-aarch64-linux-gnu      2.35.1-1ubuntu1                   arm64        GNU binary utilities, for aarch64-linux-gnu target
ii  console-setup-linux             1.195ubuntu2                      all          Linux specific part of console-setup
ii  libselinux1:arm64               3.1-2                             arm64        SELinux runtime shared libraries
ii  linux-base                      4.5ubuntu4                        all          Linux image base package
rc  linux-image-5.10.0-odroid-arm64 5.10.16-202102191318~groovy       arm64        Linux 5.10 for 64-bit ARMv8 machines
ii  linux-image-5.11.0-odroid-arm64 5.11.1-202102250221~groovy        arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-image-odroidc4            5:2021.02-1+202103011352~groovy   arm64        Kernel package for ODROID-C4
ii  linux-libc-dev:arm64            5.11.1-202102250221~groovy        arm64        Linux support headers for userspace development
ii  util-linux                      2.36-3ubuntu1                     arm64        miscellaneous system utilities
and

Code: Select all

odroid@groovy-server:~$ uname -a
Linux groovy-server 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.1-202102250221~groovy (2021-02-24) aarch64 aarch64 aarch64 GNU/Linux
Last edited by Nox997 on Tue Mar 02, 2021 3:27 pm, edited 1 time in total.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

Nox997 wrote:
Tue Mar 02, 2021 3:23 pm
Hello!

yes, I am running groovy - my installation was with the 20201218 Linux 5.10 image.
Before I saw your reply, I have done the following commands that resulted in 5.11 kernel being installed:


133 sudo apt remove linux-image-5.10.0-odroid-arm64
134 sudo apt install linux-image-odroidc4


Could it be that linux-image-odroidc4 is some kind of "meta" package? And that the linux-image-5.10.0 was *explicitly* installed in the 20201218 groovy image?
(I do not know apt / dpkg really well as I usually use arch on my pcs :D )

For completeness, this is the result of the command requested *now* on my machine:


odroid@groovy-server:~$ dpkg -l | grep linux
ii binutils-aarch64-linux-gnu 2.35.1-1ubuntu1 arm64 GNU binary utilities, for aarch64-linux-gnu target
ii console-setup-linux 1.195ubuntu2 all Linux specific part of console-setup
ii libselinux1:arm64 3.1-2 arm64 SELinux runtime shared libraries
ii linux-base 4.5ubuntu4 all Linux image base package
rc linux-image-5.10.0-odroid-arm64 5.10.16-202102191318~groovy arm64 Linux 5.10 for 64-bit ARMv8 machines
ii linux-image-5.11.0-odroid-arm64 5.11.1-202102250221~groovy arm64 Linux 5.11 for 64-bit ARMv8 machines
ii linux-image-odroidc4 5:2021.02-1+202103011352~groovy arm64 Kernel package for ODROID-C4
ii linux-libc-dev:arm64 5.11.1-202102250221~groovy arm64 Linux support headers for userspace development
ii util-linux 2.36-3ubuntu1 arm64 miscellaneous system utilities
Yes, linux-image-odroidc4 is "meta" package for ODROID-C4 but no need to consider this. I found you package does not have linux-image-generic which is also a meta package for the default kernel. So...you will need to run sudo apt install linux-image-generic for further update but this time it won't do anything since you already install linux-image-5.11.0-odroid-arm64. :)

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

I upgraded my system to 5.11.3, it works. (Thanks for you effort of bringing 5.11+panfrost to 20.10.)

One thing that's really a small annoyance is that custom kernels are net compressed:

Code: Select all

$ file /boot/vmlinuz-*
/boot/vmlinuz-5.11.0-odroid-arm64: gzip compressed data, max compression, from Unix, original size modulo 2^32 27025416
/boot/vmlinuz-5.11.3-odroid-arm64: gzip compressed data, was "vmlinuz-5.11.3-odroid-arm64", last modified: Fri Mar  5 20:33:48 2021, from Unix, original size modulo 2^32 24735752
(I manually gzipped the kernel and replaced the original vmlinuz with the vmlinuz.gz and fortunately it boots.)

Would you happen to know where I need to search for the part of the script responsible for producing a vmlinuz?
I tried ./arch/arm64/boot/install.sh, /sbin/installkernel and /etc/kernel/postinst.d/zz-flash-kernel but those yield an uncompressed kernel (and with that the boot partition gets filled really fast).

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

specs wrote:
Sat Mar 06, 2021 10:06 pm
I upgraded my system to 5.11.3, it works. (Thanks for you effort of bringing 5.11+panfrost to 20.10.)

One thing that's really a small annoyance is that custom kernels are net compressed:

Code: Select all

$ file /boot/vmlinuz-*
/boot/vmlinuz-5.11.0-odroid-arm64: gzip compressed data, max compression, from Unix, original size modulo 2^32 27025416
/boot/vmlinuz-5.11.3-odroid-arm64: gzip compressed data, was "vmlinuz-5.11.3-odroid-arm64", last modified: Fri Mar  5 20:33:48 2021, from Unix, original size modulo 2^32 24735752
(I manually gzipped the kernel and replaced the original vmlinuz with the vmlinuz.gz and fortunately it boots.)

Would you happen to know where I need to search for the part of the script responsible for producing a vmlinuz?
I tried ./arch/arm64/boot/install.sh, /sbin/installkernel and /etc/kernel/postinst.d/zz-flash-kernel but those yield an uncompressed kernel (and with that the boot partition gets filled really fast).
Kernel compression happen when the kernel package is built in the server and installed as-is when you update it, so nothing involved locally. This happens since 5.10...if I remember correctly. Can you please clarify what make you annoying with the compressed image?

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

When building my own kernel and making some effort to make the kernel a little smaller I get this when executing make install:

Code: Select all

# file vmlinuz*arm64 
vmlinuz-5.11.0-odroid-arm64: gzip compressed data, max compression, from Unix, original size modulo 2^32 27025416
vmlinuz-5.11.3-odroid-arm64: data
# ls -al vmlinuz*arm64
-rw-r--r-- 1 root root 11237423 Mar  4 09:29 vmlinuz-5.11.0-odroid-arm64
-rw-r--r-- 1 root root 24735752 Mar  5 21:33 vmlinuz-5.11.3-odroid-arm64
This means I'm forced to clean up after every kernel upgrade unless I want to see a failed upgrade since the partition is filled to the max.

After an gzip command this becomes:

Code: Select all

 file vmlinuz*arm64
vmlinuz-5.11.0-odroid-arm64: gzip compressed data, max compression, from Unix, original size modulo 2^32 27025416
vmlinuz-5.11.3-odroid-arm64: gzip compressed data, was "vmlinuz-5.11.3-odroid-arm64", last modified: Fri Mar  5 20:33:48 2021, from Unix, original size modulo 2^32 24735752
# ls -al vmlinuz*arm64
-rw-r--r-- 1 root root 11237423 Mar  4 09:29 vmlinuz-5.11.0-odroid-arm64
-rw-r--r-- 1 root root 10467297 Mar  6 21:12 vmlinuz-5.11.3-odroid-arm64
The behaviour I expect is the below listing, but without having to gzip the file manually.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

specs wrote:
Sun Mar 07, 2021 5:26 am
When building my own kernel and making some effort to make the kernel a little smaller I get this when executing make install:

Code: Select all

# file vmlinuz*arm64 
vmlinuz-5.11.0-odroid-arm64: gzip compressed data, max compression, from Unix, original size modulo 2^32 27025416
vmlinuz-5.11.3-odroid-arm64: data
# ls -al vmlinuz*arm64
-rw-r--r-- 1 root root 11237423 Mar  4 09:29 vmlinuz-5.11.0-odroid-arm64
-rw-r--r-- 1 root root 24735752 Mar  5 21:33 vmlinuz-5.11.3-odroid-arm64
This means I'm forced to clean up after every kernel upgrade unless I want to see a failed upgrade since the partition is filled to the max.

After an gzip command this becomes:

Code: Select all

 file vmlinuz*arm64
vmlinuz-5.11.0-odroid-arm64: gzip compressed data, max compression, from Unix, original size modulo 2^32 27025416
vmlinuz-5.11.3-odroid-arm64: gzip compressed data, was "vmlinuz-5.11.3-odroid-arm64", last modified: Fri Mar  5 20:33:48 2021, from Unix, original size modulo 2^32 24735752
# ls -al vmlinuz*arm64
-rw-r--r-- 1 root root 11237423 Mar  4 09:29 vmlinuz-5.11.0-odroid-arm64
-rw-r--r-- 1 root root 10467297 Mar  6 21:12 vmlinuz-5.11.3-odroid-arm64
The behaviour I expect is the below listing, but without having to gzip the file manually.
Have you tried to run make Image.gz and copy arch/arm64/boot/Image.gz to /boot partition?

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

tobetter wrote:
Sun Mar 07, 2021 11:38 am
Have you tried to run make Image.gz and copy arch/arm64/boot/Image.gz to /boot partition?
It does look like make install copies the Image instead of Image.gz (the sizes fit).
Copying the Image.gz solves the direct problem, leaving unsolved why the install does not work correctly (minor issue).

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

Minor optimizations in the kernel config, use when you think it is applicable

Code: Select all

# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_PCI is not set
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
# CONFIG_AX88796B_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_AT803X_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
# CONFIG_DEVMEM is not set
It seems the current odroidn2-arm64 image is still build to be compatible with the N1.
As far as I know there is no PCI-bus present.
Using /dev/mem is generally bad for security, although I could image you would want to enable it for testing GPIO functions.

As for the network devices, I don't think anyone uses them next to the onboard DWMAC.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

Panfrost. GPU speed not 800 Mhz on boot

Code: Select all

$ cat /etc/udev/rules.d/50-odroid-gpu-mali.rules
# ARM Mali GPU device

# Bifrost
ACTION=="add", KERNEL=="mali0", DEVPATH=="/devices/platform/soc/ffe40000.gpu/misc/mali0", RUN+="/bin/sh -c '. /etc/default/gpufrequtils; echo $GOVERNOR > /sys$env{DEVPATH}/device/devfreq/ffe40000.gpu/governor; echo $MIN_FREQ > /sys$env{DEVPATH}/device/devfreq/ffe40000.gpu/min_freq; echo $MAX_FREQ> /sys$env{DEVPATH}/device/devfreq/ffe40000.gpu/max_freq'"

# Panfrost
ACTION=="add", DEVPATH=="/devices/platform/soc/ffe40000.gpu", RUN+="/bin/sh -c '. /etc/default/gpufrequtils; echo $GOVERNOR > /sys$env{DEVPATH}/devfreq/ffe40000.gpu/governor; echo $MIN_FREQ > /sys$env{DEVPATH}/devfreq/ffe40000.gpu/min_freq; echo $MAX_FREQ > /sys$env{DEVPATH}/devfreq/ffe40000.gpu/max_freq'"

$ cat /etc/default/gpufrequtils 
# GOVERNORS:    [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
#                499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=799999987

$ sudo journalctl -b |grep '50-odroid-gpu-mali.rules'
Mar 08 12:12:14 n2plus-pf systemd-udevd[1675]: /etc/udev/rules.d/50-odroid-gpu-mali.rules:4 Invalid value "/bin/sh -c '. /etc/default/gpufrequtils; echo $GOVERNOR > /sys$env{DEVPATH}/device/devfreq/ffe40000.gpu/governor; echo $MIN_FREQ > /sys$env{DEVPATH}/device/devfreq/ffe40000.gpu/min_freq; echo $MAX_FREQ> /sys$env{DEVPATH}/device/devfreq/ffe40000.gpu/max_freq'" for RUN (char 47: invalid substitution type), ignoring, but please fix it.
Mar 08 12:12:14 n2plus-pf systemd-udevd[1675]: /etc/udev/rules.d/50-odroid-gpu-mali.rules:7 Invalid value "/bin/sh -c '. /etc/default/gpufrequtils; echo $GOVERNOR > /sys$env{DEVPATH}/devfreq/ffe40000.gpu/governor; echo $MIN_FREQ > /sys$env{DEVPATH}/devfreq/ffe40000.gpu/min_freq; echo $MAX_FREQ > /sys$env{DEVPATH}/devfreq/ffe40000.gpu/max_freq'" for RUN (char 47: invalid substitution type), ignoring, but please fix it.

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

Even if the rule doesn't work the gpu-frequency is still 800MHz and the governor is still "performance" by default ;)

Try changing the rules in the udev file:

Code: Select all

# Panfrost
ACTION=="add", ENV{DEVPATH}=="/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/", RUN+="/bin/sh -c '. /etc/default/gpufrequtils; echo ${GOVERNOR} >  $ENV{DEVPATH}/governor; echo ${MIN_FREQ} > $ENV{DEVPATH}/min_freq; echo ${MAX_FREQ} > $ENV{DEVPATH}/max_freq'"
(Mali rule should be changes similarly, but I can't test it.)

Note the difference between the UDEV environment variables "$ENV{..}" and the shell variables "${..}". All variables from /etc/default/gpufrequtils therefore ${..}.
These users thanked the author specs for the post (total 2):
tobetter (Mon Mar 08, 2021 8:35 pm) • amirul (Tue Mar 09, 2021 12:19 am)

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

Code: Select all

$ cat /etc/udev/rules.d/50-odroid-gpu-mali.rules
# Panfrost
ACTION=="add", ENV{DEVPATH}=="/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/", RUN+="/bin/sh -c '. /etc/default/gpufrequtils; echo ${GOVERNOR} >  $ENV{DEVPATH}/governor; echo ${MIN_FREQ} > $ENV{DEVPATH}/min_freq; echo ${MAX_FREQ} > $ENV{DEVPATH}/max_freq'"
$ sudo journalctl -b |grep '50-odroid-gpu-mali.rules'
Mar 08 23:04:24 n2plus-pf systemd-udevd[1672]: /etc/udev/rules.d/50-odroid-gpu-mali.rules:2 Invalid value "/bin/sh -c '. /etc/default/gpufrequtils; echo ${GOVERNOR} >  $ENV{DEVPATH}/governor; echo ${MIN_FREQ} > $ENV{DEVPATH}/min_freq; echo ${MAX_FREQ} > $ENV{DEVPATH}/max_freq'" for RUN (char 47: invalid substitution type), ignoring, but please fix it.
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/governor 
simple_ondemand
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq 
999999984
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/min_freq 
124999998
Not quite happening as planned

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

specs wrote:
Sun Mar 07, 2021 8:59 pm
Minor optimizations in the kernel config, use when you think it is applicable

Code: Select all

# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_PCI is not set
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
# CONFIG_AX88796B_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_AT803X_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
# CONFIG_DEVMEM is not set
It seems the current odroidn2-arm64 image is still build to be compatible with the N1.
As far as I know there is no PCI-bus present.
Using /dev/mem is generally bad for security, although I could image you would want to enable it for testing GPIO functions.

As for the network devices, I don't think anyone uses them next to the onboard DWMAC.
Thanks, @specs.
The kernel image is from the universal package for ODROID-N2/N2Plus/C4/HC4, so 'CONFIG_PCI' is enabled for HC4. Also, 'CONFIG_ARCH_ROCKCHIP' is for other RockChip based ODROID boards. 'CONFIG_DEVMEM' is enabled for GPIO functions with WiringPi and I also dislike the feature, but will be removed later. Other flags would be applicable. :)

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

Thanks for the odroid-homecloud-display update.
For those who want to replace their current Oled screenshot.

Code: Select all

sudo nano /lib/python3.8/dist-packages/odroid_homecloud_display/clock.py

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

Kernel update

Code: Select all

$ uname -a
Linux n2plus-pf 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.6-202103181356~groovy (2021-03-18) aarch64 aarch64 aarch64 GNU/Linux

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by trwn2p »

I've enjoyed the 20.10 tobetter gnome...but....21.04 is out now! I must have the shiny new thing.
Goin for a sudo do-release-upgrade -d
Updating repository information Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.

To continue please press enter

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

trwn2p wrote:
Sat Apr 03, 2021 12:01 pm
I've enjoyed the 20.10 tobetter gnome...but....21.04 is out now! I must have the shiny new thing.
Goin for a sudo do-release-upgrade -d
Updating repository information Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.

To continue please press enter
My repository server has the packages customized for ODROID and they will be updated flawlessly hopefully. I planned to share this late today or tomorrow. :)

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by trwn2p »

Upgrade command worked however my main user is now not in the sudoers file. Can login and use the OS but no su- or sudo su works atm.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

trwn2p wrote:
Sat Apr 03, 2021 1:53 pm
Upgrade command worked however my main user is now not in the sudoers file. Can login and use the OS but no su- or sudo su works atm.
"sudo -" does not work?

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by trwn2p »

sudo - [sudo] password for odroid: odroid is not in the sudoers file. This incident will be reported.
same problem for sudo su and plain su -

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

trwn2p wrote:
Sat Apr 03, 2021 2:20 pm
sudo - [sudo] password for odroid: odroid is not in the sudoers file. This incident will be reported.
same problem for sudo su and plain su -
sudo -s works for me to get root permission.
Are you able to try to add odroid to sudoers from another Linux machine?

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by trwn2p »

Yeah I'll chroot it later and see.
Other issue Deb 11 sudo apt-update/upgrade gives this error:
sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpam-modules : PreDepends: libpam-modules-bin (= 1.4.0-4) but 1.4.0-7 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

Have you tried the commands below or something similar? (untested)

Code: Select all

apt --fix-broken install
apt --mark-auto install libpam-runtime libpam-modules libpam-systemd libpam0g
With libpam there is hardly any problem if the package is switched to "manually installed". But the "--mark-auto" option should prevent the marking as "manual".
In Debian 10 you probably can't use the "--mark-auto" feature.

Also, if there is a dependency still requiring 1.4.0-4 it should be visible with the above work-around.
But most probable the problems will be bulldozed away with the commands mentioned.

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by trwn2p »

For some unknown reason I had a few openmediavault PAM config modules from 2017 in my /etc/pam.d dir. I removed them and the upgrade worked. rebooted. A bigger upgrade was waiting so I did that and all seems ok atm.
@tobetter you may want to see if your deb-bullseye netboot installer has those old files in it.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

trwn2p wrote:
Sun Apr 04, 2021 1:20 pm
For some unknown reason I had a few openmediavault PAM config modules from 2017 in my /etc/pam.d dir. I removed them and the upgrade worked. rebooted. A bigger upgrade was waiting so I did that and all seems ok atm.
@tobetter you may want to see if your deb-bullseye netboot installer has those old files in it.
Let me look into it, Which files are removed in /etc/pam.d, all?

trwn2p
Posts: 46
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 8 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by trwn2p »

file names? Didnt notice I just knew they didn't belong in a stock deb 11 install.

On the other issue of Ubu Hirsute:

Code: Select all

 Ign:13 http://archive.ubuntu.com/ubuntu hirsute/restricted arm64 Packages
Err:7 http://archive.ubuntu.com/ubuntu hirsute/main arm64 Packages
  404  Not Found [IP: 91.189.88.152 80]
Ign:13 http://archive.ubuntu.com/ubuntu hirsute/restricted arm64 Packages
Fetched 269 kB in 2s (122 kB/s)
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead. 
I disabled (#) last few repos "binary-arm64" repo directory does not exist in above failed to fetch message.
I now get All packages are up to date. Me being first to try hirsute upgrade I'd say it went well apart from above issue.

specs
Posts: 77
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 24 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by specs »

It might be just me, but as far as I can see "restricted" mainly contains NVidia drivers and some Raspberry firmware.
https://ubuntu.pkgs.org/20.10/ubuntu-restricted-arm64/?
The restricted section for 21.04 is still empty and the restricted section of 20.04 contains half the items.

It seems irrelevant for Odroid since sound and graphic drivers are included in the mainstream kernel.

One thing to look out for is for example the wifi firmwares (atheros, broadcom, ralink, ...).
I hope they are provided somewhere else (I did not have any issues with my wifi adapter).

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

specs wrote:
Sun Apr 04, 2021 6:05 pm
It might be just me, but as far as I can see "restricted" mainly contains NVidia drivers and some Raspberry firmware.
https://ubuntu.pkgs.org/20.10/ubuntu-restricted-arm64/?
The restricted section for 21.04 is still empty and the restricted section of 20.04 contains half the items.

It seems irrelevant for Odroid since sound and graphic drivers are included in the mainstream kernel.

One thing to look out for is for example the wifi firmwares (atheros, broadcom, ralink, ...).
I hope they are provided somewhere else (I did not have any issues with my wifi adapter).
Have you installed the package linux-firmware fro Wifi devices?

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by brad »

If anybody is interested in trying GPU with Chromium please try the following steps

Code: Select all

sudo add-apt-repository ppa:saiarcot895/chromium-beta
sudo apt-get update
sudo apt-get install chromium-browser chromium-codecs-ffmpeg-extra
If using an X11 based display manager then start normally with

Code: Select all

chromium-browser
If using wayland then

Code: Select all

chromium-browser --enable-features=UseOzonePlatform --ozone-platform=wayland
My testing on C4 with gnome / wayland / panfrost shows a better user experience than firefox. Be advised that hardware video decoding is not supported but software encoding on C4 can achieve 1080p (30fps) with minimal frame drops in most cases.

Happy Browsing
These users thanked the author brad for the post (total 2):
istanbulls (Sun Apr 11, 2021 6:05 pm) • odroid (Mon Apr 12, 2021 8:52 am)

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by odroid »

@brad,
Thank you for the good news.
Can you tell me your current OpenGL and Mesa version on your C4?

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by brad »

odroid wrote:
Mon Apr 12, 2021 8:55 am
@brad,
Thank you for the good news.
Can you tell me your current OpenGL and Mesa version on your C4?
Sure here are the relevant details

- Linux groovy-server 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.9-202103301142~groovy (2021-03-30) aarch64 aarch64 aarch64 GNU/Linux
- Chrome/90.0.4430.30

Under Gnome / wayland / panfrost (starting with "chromium-browser --enable-features=UseOzonePlatform --ozone-platform=wayland")
GL_VENDOR Panfrost
GL_RENDERER Mali G31 (Panfrost)
GL_VERSION OpenGL ES 3.0 Mesa 21.1.0-devel (git-14b2dc0013)

In x11 modes (this on wayland using xwayland or using kde plasma x11)
GL_VENDOR Google Inc. (Panfrost)
GL_RENDERER ANGLE (Panfrost, Mali G31 (Panfrost), OpenGL 3.1 Mesa 21.1.0-devel (git-14b2dc0013))
GL_VERSION OpenGL ES 2.0.0 (ANGLE 2.1.0 git hash: unknown hash)
Screenshot from 2021-04-12 02-00-54.png
Screenshot from 2021-04-12 02-00-54.png (202.22 KiB) Viewed 691 times
Effectively the ubuntu ppa I listed provides a chromium beta package that is not a sandboxed snapd application but normal deb allowing chromium to utilise the GPU. It works best with wayland from my testing. It may also work with libMali but I have not tested. I do hear reports that vulkan support is coming to panfrost as well.

We can also enable hardware Rasterization easily but I found some unwanted artifacts and no real increase in performance at this stage.

If people can provide feedback that it works ok I will restart my work to try to provide a stable chromium package with hardware video decoder support for Odroids.

Edit: interestingly for X11 results are best using ozone platform backend in x11 mode without angle. Start with

chromium-browser --enable-features=UseOzonePlatform --ozone-platform=x11

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by brad »

On another topic, working to enable odroid hifi shield 2 overlay for 5.11 (@tobetter - Thanks for adding overlay support :))

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by odroid »

Thank you for the detail information. :D

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

Hello @brad, it's good to see you around here again. We miss :)

Thanks for Chromium, I'm using version 87.0.4280.66 for Google Sync. Handicap for me to change the chromium 87 version.
Is it possible to adapt to this version?

It provided a visible improvement but not perfect, with little minimal stuttering in between.

It would be perfect if we could adapt it to docker-chromium-armhf for Netflix. The dream of smooth 1080p netfilix is not going out of my eyes. :D
https://github.com/monkaBlyat/docker-chromium-armhf

If we can make a difference on Netflix, it will be a very exciting development indeed.

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by brad »

istanbulls wrote:
Mon Apr 12, 2021 4:05 pm
Hello @brad, it's good to see you around here again. We miss :)

Thanks for Chromium, I'm using version 87.0.4280.66 for Google Sync. Handicap for me to change the chromium 87 version.
Is it possible to adapt to this version?

It provided a visible improvement but not perfect, with little minimal stuttering in between.

It would be perfect if we could adapt it to docker-chromium-armhf for Netflix. The dream of smooth 1080p netfilix is not going out of my eyes. :D
https://github.com/monkaBlyat/docker-chromium-armhf

If we can make a difference on Netflix, it will be a very exciting development indeed.
Thanks :) I have been busy with work and other things over the past few months

The ubuntu packages above are not my work but from Saikrishna Arcot who produces Ubuntu deb packages for chromium which support GPU usage on linux.

For protected content such as netflix proprietary widevine library blobs from Google are required. As Google does not provide chrome for arm64 on linux the binary blobs are not available.

Unfortunately the docker image you have linked above looks a bit suspect to me, they appear to be providing a propriety google owned library (I suspect extracted from Google's proprietary Chromeos operating system which is armhf) with no licence details and from my understanding not free unless you purchase chromeos hardware. I would not be prepared to do something like this for fear of Google knocking on my door and asking for millions of dollars in compensation for breaching their licence.

If Google ever release a version of Chrome for arm64 linux (not arm64 windows) then there might be some options to provide instructions for download and do it yourself build but still would not be able to provide it via a package or docker image unfortunately due to licencing restrictions.
These users thanked the author brad for the post:
istanbulls (Mon Apr 12, 2021 6:40 pm)

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

Ubuntu 21.04 is ready to install and run, Ubuntu 20.10 can be upgraded to 21.04.
viewtopic.php?p=326161#p326161

Run this command to start the upgrade.

Code: Select all

$ sudo do-release-upgrade -d
If this command does not make any change, you should try manually.

Code: Select all

$ sudo sed -i "s/groovy/hirsute/g" /etc/apt/sources.list /etc/apt/sources.list.d/*.list
$ sudo apt update
$ sudo apt dist-upgrade
These users thanked the author tobetter for the post (total 2):
istanbulls (Wed Apr 21, 2021 5:15 am) • brad (Wed Apr 21, 2021 7:56 am)

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

Thanks @tobetter,
I use it with love,
Is there any improvement for homecloud-display.

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

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: mctom and 1 guest