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

Post Reply
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 »

Code: Select all

#define LINUX_VERSION_CODE 3304244
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)
I entered the value incorrectly (3304244) should have been 330244. I'll fix it now and try again.
Sorry,

superpowter77
Posts: 366
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: N2(x2),N2+,C4,HC4
Has thanked: 131 times
Been thanked: 39 times
Contact:

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

Post by superpowter77 »

tobetter wrote:
Tue Jan 05, 2021 4:38 am
superpowter77 wrote:
Tue Jan 05, 2021 4:27 am
tobetter wrote:
Tue Jan 05, 2021 4:17 am
superpowter77 wrote:
Tue Jan 05, 2021 4:05 am
tobetter wrote:
Tue Jan 05, 2021 3:42 am
I can see that @MamkinHaker is running with ODROID-N2.
What about you @superpowter77 and @istanbulls? Are you running and installing to ODROID-N2 or ODROID-N2Plus?

Very weird thing just now happened that DKMS build is failed on ODROID-N2 with same OS image due to GCC internal issue, it looks like a memory issue ATM. Not sure yet... :(
N2Plus for me.
Can you do me a favor? Please do these commands on your N2Plus.

Code: Select all

$ sudo vi /usr/include/linux/version.h  <-- Change "328777" to "330244" at the first line and save/exit
$ sudo dpkg --force-depends -r mali-bifrost-dkms
$ sudo apt install --reinstall mali-bifrost-wayalnd-driver
$ sudo reboot
I just successfully installed mali-bifrost-wayland-driver on my N2Plus. I don't want to risk breaking my system again. Took me 3 hours this time to get back to how it was before. I need to get me another N2Plus. Thanks for all your help.
So...now ARM Bifrost Wayland works?
If so...I found the reason and I need to fix the kernel package for the change.

Thank you for your testing.
It's working now. It installed it with:
sudo apt install mali-bifrost-wayland-driver

mali-bifrost-dkms didn't work for me.

A full Greenish screen it's still present(instead of a black screen) right before showing login screen. Also, colors on desktop are slightly greenish too. Regarding colors being a bit off, It wasn't like this before, that I can assure you. I'd send you screenshots but kazam doesn't work on Wayland and crashes on LLVMpipe and my cellphone camera is not going to do the trick(accurate) with a simple photo shot.

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

superpowter77 wrote:
Tue Jan 05, 2021 5:15 am
It's working now. It installed it with:
sudo apt install mali-bifrost-wayland-driver

mali-bifrost-dkms didn't work for me.
Are you sure? Because mali-bifrost-wayland-driver is already installed and --reinstall did not help a bit.

superpowter77
Posts: 366
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: N2(x2),N2+,C4,HC4
Has thanked: 131 times
Been thanked: 39 times
Contact:

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

Post by superpowter77 »

MamkinHacker wrote:
Tue Jan 05, 2021 5:45 am
superpowter77 wrote:
Tue Jan 05, 2021 5:15 am
It's working now. It installed it with:
sudo apt install mali-bifrost-wayland-driver

mali-bifrost-dkms didn't work for me.
Are you sure? Because mali-bifrost-wayland-driver is already installed and --reinstall did not help a bit.
Yes, I am. In my case mali-bifrost-wayland-driver wasn't installed.

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

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

Post by tobetter »

@MankinHacker, I've updated new kernel packages and updated the same in the original thread for Ubuntu 20.04.
viewtopic.php?p=317409#p317409

It would be nice if you can try and share if it works for you. Thank you for providing me the logs, that helped me a lot. :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 »

tobetter wrote:
Tue Jan 05, 2021 4:20 pm
@MankinHacker, I've updated new kernel packages and updated the same in the original thread for Ubuntu 20.04.
viewtopic.php?p=317409#p317409

It would be nice if you can try and share if it works for you. Thank you for providing me the logs, that helped me a lot. :D
After the update the old problem came back. black screen and the cursor at the top left is fixed.

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

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

Post by tobetter »

istanbulls wrote:
Tue Jan 05, 2021 5:24 pm
tobetter wrote:
Tue Jan 05, 2021 4:20 pm
@MankinHacker, I've updated new kernel packages and updated the same in the original thread for Ubuntu 20.04.
viewtopic.php?p=317409#p317409

It would be nice if you can try and share if it works for you. Thank you for providing me the logs, that helped me a lot. :D
After the update the old problem came back. black screen and the cursor at the top left is fixed.
please share the log of dmesg and /usr/include/linux/version.h.

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:
Tue Jan 05, 2021 5:26 pm
istanbulls wrote:
Tue Jan 05, 2021 5:24 pm
tobetter wrote:
Tue Jan 05, 2021 4:20 pm
@MankinHacker, I've updated new kernel packages and updated the same in the original thread for Ubuntu 20.04.
viewtopic.php?p=317409#p317409

It would be nice if you can try and share if it works for you. Thank you for providing me the logs, that helped me a lot. :D
After the update the old problem came back. black screen and the cursor at the top left is fixed.
please share the log of dmesg and /usr/include/linux/version.h.
I found many files on dmesg. I share the two of them.
Attachments
version.zip
(276 Bytes) Downloaded 16 times
dmesg var-log.zip
(12.7 KiB) Downloaded 17 times
dmesg usr-bin.zip
(28.7 KiB) Downloaded 12 times

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

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

Post by tobetter »

istanbulls wrote:
Tue Jan 05, 2021 5:41 pm
tobetter wrote:
Tue Jan 05, 2021 5:26 pm
istanbulls wrote:
Tue Jan 05, 2021 5:24 pm
tobetter wrote:
Tue Jan 05, 2021 4:20 pm
@MankinHacker, I've updated new kernel packages and updated the same in the original thread for Ubuntu 20.04.
viewtopic.php?p=317409#p317409

It would be nice if you can try and share if it works for you. Thank you for providing me the logs, that helped me a lot. :D
After the update the old problem came back. black screen and the cursor at the top left is fixed.
please share the log of dmesg and /usr/include/linux/version.h.
I found many files on dmesg. I share the two of them.
Thanks, I can see the #define LINUX_VERSION_CODE 330244 but Mali driver loaded currently is not matching with the installed Linux kernel version. You may need to run these commands again.

Code: Select all

$ sudo dpkg --force-depends -r mali-bifrost-dkms
$ sudo apt install --reinstall mali-bifrost-wayalnd-driver
$ sudo reboot
Did you install Ubuntu Desktop package from the Netboot Installer or installed later from console?

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 restored the first episode I backed up on December 2nd.
Now I'm on the desktop, undecided if I should do the new updates. :)

edit:

Code: Select all

$ sudo dpkg --force-depends -r mali-bifrost-dkms
$ sudo apt install --reinstall mali-bifrost-wayalnd-driver
$ sudo reboot
sudo apt update

Code: Select all

n2p@ubuntu:~$ dpkg -l | grep linux-image
ii  linux-image-5.10.0-odroid-arm64            5.10.4-202101051123~focal                 arm64        Linux 5.10 for 64-bit ARMv8 machines
ii  linux-image-5.9.0-odroid-arm64             5.9.16-202012232304~focal                 arm64        Linux 5.9 for 64-bit ARMv8 machines
ii  linux-image-generic                        5:2020.12-1+202012241958~focal            arm64        Generic Linux kernel image
n2p@ubuntu:~$ 

Code: Select all

n2p@ubuntu:~$ uname -a
Linux ubuntu 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.0-202011251754~focal (2020-11-25) aarch64 aarch64 aarch64 GNU/Linux
Attachments
boot.jpeg
boot.jpeg (75.46 KiB) Viewed 2106 times

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

Updated and did these commans because yours had broken dependencies

Code: Select all

$ sudo dpkg --force-depends -r mali-bifrost-dkms
$ sudo apt install --reinstall mali-bifrost-wayland-driver mali-bifrost-dkms
$ sudo reboot
Sadly that didn't help, same green console

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

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

Post by tobetter »

MamkinHacker wrote:
Tue Jan 05, 2021 10:20 pm
Updated and did these commans because yours had broken dependencies

Code: Select all

$ sudo dpkg --force-depends -r mali-bifrost-dkms
$ sudo apt install --reinstall mali-bifrost-wayland-driver mali-bifrost-dkms
$ sudo reboot
Sadly that didn't help, same green console
Do you see the same error on "dmesg"?

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »


MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

Since my gnome bifrost is waiting for further instructions, I use panfrost kde. After today's update the loading "kubuntu" screen became green (just like bifrost), sddm seems greener and tty session is also green. After login desktop seems fine, but tty is still green.
Image

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

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

Post by tobetter »

MamkinHacker wrote:
Wed Jan 06, 2021 5:48 am
Since my gnome bifrost is waiting for further instructions, I use panfrost kde. After today's update the loading "kubuntu" screen green (just like bifrost), sddm seems greener and tty session is also green. After login desktop seems fine, but tty is still green.
Image
For the Bifrost issue, will you download this script and run on the command line? This script will install missing packages for the running kernel and rebuild Bifrost DKMS and install it. New Bifrost driver will applied on the next boot.
http://ppa.linuxfactory.or.kr/band-aid/ ... st_dkms.sh

For the green screen, I've changed the color space last week for the issue a.k.a Pinky Grey so the screen looks like a bit green while the red is reduced. I am still debugging the issue and will listen if the current greenish color is ok or not. If everybody is not happy or Pinky Grey issue cannot be fixed, the patch I made will be reverted.

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

Yes, gonna try this script right now.
Last edited by MamkinHacker on Thu Jan 07, 2021 9:54 am, edited 1 time in total.

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

The script didn't help
https://pastebin.com/tzU5Nimw

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

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

Post by tobetter »

MamkinHacker wrote:
Wed Jan 06, 2021 6:28 am
The script didn't help
https://pastebin.com/tzU5Nimw
Sorry, I think you have reinstall mali-bifrost-dkms package since it already has an error of missing mali-dkms.conf in the log file. Can you please try again?

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

So I have to

Code: Select all

sudo apt install --reinstall mali-bifrost-dkms
And then execute the script?

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

So I did that, and there is still dkms.conf error
https://pastebin.com/L3Z0Na6P

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

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

Post by tobetter »

MamkinHacker wrote:
Wed Jan 06, 2021 6:55 am
So I did that, and there is still dkms.conf error
https://pastebin.com/L3Z0Na6P
You didn't have such error yesterday? And not having even you tried to remove and install with this?
$ sudo dpkg --force-depends -r mali-bifrost-dkms
$ sudo apt install --reinstall mali-bifrost-wayland-driver

Can you remove "/var/lib/dkms/mali-bifrost" and try again?

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

I had this error yesterday
Just removed the folder and did these commands, there still dkms.conf error

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

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

Post by tobetter »

MamkinHacker wrote:
Wed Jan 06, 2021 7:56 am
I had this error yesterday
Just removed the folder and did these commands, there still dkms.conf error
Are you able to make me access your N2 through network? Like teamviewer or VPN?

MamkinHacker
Posts: 36
Joined: Wed Aug 19, 2020 8:56 pm
languages_spoken: english
ODROIDs: N2 4gb
Has thanked: 0
Been thanked: 1 time
Contact:

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

Post by MamkinHacker »

I've got windows machine with TeamViewer

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

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

Post by tobetter »

MamkinHacker wrote:
Wed Jan 06, 2021 8:03 am
I've got windows machine with TeamViewer
I have teamviewer. If you can let me have your remote credential through PM, I can access yours.

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

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

Post by tobetter »

tobetter wrote:
Wed Jan 06, 2021 8:12 am
MamkinHacker wrote:
Wed Jan 06, 2021 8:03 am
I've got windows machine with TeamViewer
I have teamviewer. If you can let me have your remote credential through PM, I can access yours.
So...finally one problem is resolved...thank you for helping me out. I've posted the command what I run.
viewtopic.php?p=317533#p317533

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 »

OK, today I installed groovy with panfrost.
The short summary, some major improvements, some minor issues and some major problems.

First the major improvemens (I believe they were your work unlike the major problems):
The erratic behaviour of Wayland with mpv is nowhere to be found :D

Than the minor issues:
My monitor is a running issue. Booting with SPI I get no screen, but booting without SPI I can manage.

Finally the major issue (caused by Ubuntu, not by Hardkernel or tobetter, you guys made giant steps forward):
Ubuntu Groovy won't boot with manual set network settings.
I need one system to startup with a network using a VLAN and a second system to work offline.
Both won't start?

(For some systems this won't be an issue...)

If anyone has some hint I very much appreciate it, but basically it is an ubuntu problem.

edit:
The biggest pain is gone after edditing /etc/netplan/01-netcfg.yml
I only need a solution to get a working nameserver, since /etc/resolv.conf gets overwritten at boot.
I never got the default setting to work with my nameserver (and why do I need a special service when the DNS is standing right beside the pc).

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 »

Solved the resolv.conf issue (I will never be a systemd fan).

There is another minor issue:

Code: Select all

$ cat /etc/default/cpufrequtils 
GOVERNOR=ondemand
MIN_SPEED="1000MHZ"
MAX_SPEED="2208MHZ"
Shouldn't there be 2 settings for max?
Since the A53 and the A73 have a different upper limit.

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 »

Now I am thinking of gradually moving to Ubuntu 20.10-Panfrost.
After the last updates and improvements, Panfrost got ahead of Waylant by a small margin. It plays 4K videos a little stuttering but it does. 1080p videos seem more fluid.

odroid-homecloud-display still doesn't play.
@tobetter what can you do please. :)

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 »

specs wrote:
Sat Jan 16, 2021 5:40 am
Than the minor issues:
My monitor is a running issue. Booting with SPI I get no screen, but booting without SPI I can manage.
...
I need one system to startup with a network using a VLAN and a second system to work offline.
Rereading the message I found out why I could not update the SPI-boot before installing Ubuntu 20.10.
The update-command doesn't work with VLAN's (duh).

This means the system not booting with spi-boot, was completely my mistake.
After updating to version 20201222 it works...

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 »

Immediately after installing Ubuntu focal 20.04.1,
I ran sudo apt update and sudo apt install odroid-homecloud-display, Oled-Display worked.
I have completed the Ubuntu Groovy 20.10 and Panfrost installation.
Oled-Display is now running. :)

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 found the instructions for compiling the kernel for 5.10.0-odroid-arm64.

From github I can choose from different versions of the 5.10 kernel. What are the different versions?
They might have been test-kernels once, but some are still updated.

I see:

Code: Select all

odroid-5.10.y-panfrost
odroid-5.10.y-panfrost2
odroid-5.10.0-panfrost
odroid-5.10.y
odroid-5.10.y-rt
Can I read this as "you should use odroid-5.10.y, unless there is a specific problem to solve"?

Related question: if I install a prebuild kernel, should I choose the linux-image-5.10.0-odroid-arm64 or linux-image-5.10.0-odroid-panfrost-arm64?
I don't expect you to keep updating all of them.

And the last question on this subject: the 5.10-kernel seems to be the next LTS kernel.
Are you going to keep maintaining this kernel next to the 5.11-kernels and newer? (At least for a while...)

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

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

Post by tobetter »

specs wrote:
Wed Jan 27, 2021 7:38 pm
I found the instructions for compiling the kernel for 5.10.0-odroid-arm64.

From github I can choose from different versions of the 5.10 kernel. What are the different versions?
They might have been test-kernels once, but some are still updated.

I see:

Code: Select all

odroid-5.10.y-panfrost
odroid-5.10.y-panfrost2
odroid-5.10.0-panfrost
odroid-5.10.y
odroid-5.10.y-rt
Can I read this as "you should use odroid-5.10.y, unless there is a specific problem to solve"?
If you need to use Panfrost driver, use the branch odroid-5.10.y-panfrost, otherwise please use odroid-5.10.y. odroid-5.10.y-rt is to manage RT featured kernel and the rest two branches are for testing which need to be removed.
Related question: if I install a prebuild kernel, should I choose the linux-image-5.10.0-odroid-arm64 or linux-image-5.10.0-odroid-panfrost-arm64?
I don't expect you to keep updating all of them.
Same here, if you will use the Panfrost driver, please use linux-image-5.10.0-odroid-panfrost-arm64. The default kernel with Netboot Installer or prebuilt image will use linux-image-5.10.0-odroid-arm64, this package is for generic server and for ARM Mali Bifrost driver.
And the last question on this subject: the 5.10-kernel seems to be the next LTS kernel.
Are you going to keep maintaining this kernel next to the 5.11-kernels and newer? (At least for a while...)
As long as there is demand and my server is actively accessed to download from many users, I would keep updating the branch with new package server. Since I am managing the all packages and prebuilt images for development and testing alone, I am only able to help the higher demand, kernel version and its configuration will be updated as per user request.
5.11 kernel is already running in my build queue but not released yet, I guess it would be available when we have 5.11-rc6 or 5.11-rc7 in 3 weeks. But switching the default kernel to 5.11 kernel from 5.10 is a bit different story, will be discussed later.
https://github.com/tobetter/linux/tree/odroid-5.11.y
These users thanked the author tobetter for the post:
specs (Thu Jan 28, 2021 12:07 am)

wallyz21
Posts: 228
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 12 times
Been thanked: 19 times
Contact:

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

Post by wallyz21 »

Hi all.

After reading through all this thread I found it was hard to distinguish between instructions/suggestions relevant to setting up for mali or panfrost.
I found that I was attempting fixes for one that were meant for the other! So I screwed things up.

So I'm about to start from scratch, again.

I think the panfrost setup sounds like the most promising so I will go with that.

What I am going to do is:

1. Netboot install of Focal fossa
2. Edit the *.list files replacing focal with groovy
3. $ sudo apt update
4. $ sudo apt dist-upgrade
5. $ sudo apt autoremove
6. $ sudo reboot
7. $ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64 (does this need any special headers or modules?)
8. $ sudo reboot
9. Install a desktop. (For me it will be mate or mate-wayland)

Does this look about right?
Walter Zambotti
N2 - Ubuntu Mate Desktop

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

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

Post by tobetter »

wallyz21 wrote:
Thu Jan 28, 2021 12:58 pm
Hi all.

After reading through all this thread I found it was hard to distinguish between instructions/suggestions relevant to setting up for mali or panfrost.
I found that I was attempting fixes for one that were meant for the other! So I screwed things up.

So I'm about to start from scratch, again.

I think the panfrost setup sounds like the most promising so I will go with that.

What I am going to do is:

1. Netboot install of Focal fossa
2. Edit the *.list files replacing focal with groovy
3. $ sudo apt update
4. $ sudo apt dist-upgrade
5. $ sudo apt autoremove
6. $ sudo reboot
7. $ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64 (does this need any special headers or modules?)
8. $ sudo reboot
9. Install a desktop. (For me it will be mate or mate-wayland)

Does this look about right?
It looks correct to me. The step 7 is also correct, Panfrost does not require to install header files since it does not need to build the driver like Mali Bifrost driver. Also the step 7 can be before 6 so that you can only reboot once.

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 »

wallyz21 wrote:
Thu Jan 28, 2021 12:58 pm
Hi all.

After reading through all this thread I found it was hard to distinguish between instructions/suggestions relevant to setting up for mali or panfrost.
I found that I was attempting fixes for one that were meant for the other! So I screwed things up.

So I'm about to start from scratch, again.

I think the panfrost setup sounds like the most promising so I will go with that.

What I am going to do is:

1. Netboot install of Focal fossa
2. Edit the *.list files replacing focal with groovy
3. $ sudo apt update
4. $ sudo apt dist-upgrade
5. $ sudo apt autoremove
6. $ sudo reboot
7. $ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64 (does this need any special headers or modules?)
8. $ sudo reboot
9. Install a desktop. (For me it will be mate or mate-wayland)

Does this look about right?
This is exactly the path I followed. :)

After the desktop is installed, additionally.

for the network:

Code: Select all

sudo nano /etc/netplan/50-cloud-init.yaml

Code: Select all

network:
  renderer: NetworkManager
  ethernets:
    eth0:
      dhcp4: true
  version: 2

Code: Select all

sudo netplan apply

User avatar
mad_ady
Posts: 9402
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: 664 times
Contact:

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

Post by mad_ady »

Perhaps it should be added to tobetter's wiki?

wallyz21
Posts: 228
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 12 times
Been thanked: 19 times
Contact:

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

Post by wallyz21 »

istanbulls wrote:
Thu Jan 28, 2021 3:57 pm
wallyz21 wrote:
Thu Jan 28, 2021 12:58 pm
Hi all.

After reading through all this thread I found it was hard to distinguish between instructions/suggestions relevant to setting up for mali or panfrost.
I found that I was attempting fixes for one that were meant for the other! So I screwed things up.

So I'm about to start from scratch, again.

I think the panfrost setup sounds like the most promising so I will go with that.

What I am going to do is:

1. Netboot install of Focal fossa
2. Edit the *.list files replacing focal with groovy
3. $ sudo apt update
4. $ sudo apt dist-upgrade
5. $ sudo apt autoremove
6. $ sudo reboot
7. $ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64 (does this need any special headers or modules?)
8. $ sudo reboot
9. Install a desktop. (For me it will be mate or mate-wayland)

Does this look about right?
This is exactly the path I followed. :)

After the desktop is installed, additionally.

for the network:

Code: Select all

sudo nano /etc/netplan/50-cloud-init.yaml

Code: Select all

network:
  renderer: NetworkManager
  ethernets:
    eth0:
      dhcp4: true
  version: 2

Code: Select all

sudo netplan apply
What does the cloud stuff do/provide/fix?
Walter Zambotti
N2 - Ubuntu Mate Desktop

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

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

Post by tobetter »

mad_ady wrote:
Thu Jan 28, 2021 4:19 pm
Perhaps it should be added to tobetter's wiki?
Already...https://docs.linuxfactory.or.kr/trouble ... naged.html

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 »

wallyz21 wrote:
Thu Jan 28, 2021 4:56 pm
istanbulls wrote:
Thu Jan 28, 2021 3:57 pm
wallyz21 wrote:
Thu Jan 28, 2021 12:58 pm
Hi all.

After reading through all this thread I found it was hard to distinguish between instructions/suggestions relevant to setting up for mali or panfrost.
I found that I was attempting fixes for one that were meant for the other! So I screwed things up.

So I'm about to start from scratch, again.

I think the panfrost setup sounds like the most promising so I will go with that.

What I am going to do is:

1. Netboot install of Focal fossa
2. Edit the *.list files replacing focal with groovy
3. $ sudo apt update
4. $ sudo apt dist-upgrade
5. $ sudo apt autoremove
6. $ sudo reboot
7. $ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64 (does this need any special headers or modules?)
8. $ sudo reboot
9. Install a desktop. (For me it will be mate or mate-wayland)

Does this look about right?
This is exactly the path I followed. :)

After the desktop is installed, additionally.

for the network:

Code: Select all

sudo nano /etc/netplan/50-cloud-init.yaml

Code: Select all

network:
  renderer: NetworkManager
  ethernets:
    eth0:
      dhcp4: true
  version: 2

Code: Select all

sudo netplan apply
What does the cloud stuff do/provide/fix?
There is a network but no network icon.
Discover does not update or download programs.

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

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

Post by tobetter »

@wallyz21, I am curious for long time, are you one of Ubuntu Mate Desktop maintainer? :)

wallyz21
Posts: 228
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 12 times
Been thanked: 19 times
Contact:

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

Post by wallyz21 »

tobetter wrote:
Thu Jan 28, 2021 6:20 pm
@wallyz21, I am curious for long time, are you one of Ubuntu Mate Desktop maintainer? :)
Do you mean how long have I been using Mate desktop?

In general I use it on all my Ubuntu installations. I have many! Intel and Arm.

How long I have been using MATE on tobetters 20.10 + panfrost kernel?

I am only trying to get that going now.

The standard MATE desktop works well with the mali version of the kernel but is not accelerated (as far I could tell).
So now I'm trying the panfrost kernel.

I intend to try/test the standard mate desktop and the mate-wayland desktop.
Walter Zambotti
N2 - Ubuntu Mate Desktop

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

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

Post by tobetter »

wallyz21 wrote:
Fri Jan 29, 2021 10:27 am
tobetter wrote:
Thu Jan 28, 2021 6:20 pm
@wallyz21, I am curious for long time, are you one of Ubuntu Mate Desktop maintainer? :)
Do you mean how long have I been using Mate desktop?

In general I use it on all my Ubuntu installations. I have many! Intel and Arm.

How long I have been using MATE on tobetters 20.10 + panfrost kernel?

I am only trying to get that going now.

The standard MATE desktop works well with the mali version of the kernel but is not accelerated (as far I could tell).
So now I'm trying the panfrost kernel.

I intend to try/test the standard mate desktop and the mate-wayland desktop.
Sorry. my question could make you confusing. What I was curious is if you are a Mate Desktop maintainer, since your signature presents me you are a member of Mate Desktop team or relative, not just a generic user. :)
I've tested non-Wayland based desktop version with Panfrost, it becomes very stable with recent updates.

Thanks.

superpowter77
Posts: 366
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: N2(x2),N2+,C4,HC4
Has thanked: 131 times
Been thanked: 39 times
Contact:

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

Post by superpowter77 »

Trying again on both of my N2's(Not N2Plus), it got stuck at hardkernel logo after:

$ sudo apt update
$ sudo apt dist-upgrade
$ sudo reboot
$ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64
$ sudo reboot

And got stuck there. No blue light coming up.
Both were booting directly without SPI(Petiboot)
Both were tested them using 16Gb eMMC modules.
Both were using ubuntu-20.10-server-odroidn2plus-20201120.img.xz server image

JRST
Last edited by superpowter77 on Sun Jan 31, 2021 8:18 pm, edited 1 time in total.

wallyz21
Posts: 228
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 12 times
Been thanked: 19 times
Contact:

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

Post by wallyz21 »

Reporting back on my MATE with panfrost install experience.

Everything went smoothly and is now going very well.

Glmark2 score for mate on panfrost kernel with N2 (not plus) is 420. This was with the marco adaptive compositor. With the compositor off it was worse 402, so better on. I will test on my N2+ later.

Aquarium WebGL sample on firefox was 10FPS even with one fish so I expect there must be some firefox options I need to enable?!?!?
Walter Zambotti
N2 - Ubuntu Mate Desktop

wallyz21
Posts: 228
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 12 times
Been thanked: 19 times
Contact:

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

Post by wallyz21 »

tobetter wrote:
Fri Jan 29, 2021 10:44 am
...

Sorry. my question could make you confusing. What I was curious is if you are a Mate Desktop maintainer, since your signature presents me you are a member of Mate Desktop team or relative, not just a generic user. :)
I've tested non-Wayland based desktop version with Panfrost, it becomes very stable with recent updates.

Thanks.
No I'm not a MATE maintainer.
Walter Zambotti
N2 - Ubuntu Mate Desktop

wallyz21
Posts: 228
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 12 times
Been thanked: 19 times
Contact:

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

Post by wallyz21 »

Looking at my firefox settings

Compositing OpenGL
WebGL 1 Driver Renderer Panfrost -- Mali G52 (Panfrost)
WebGL 1 Driver Version 3.1 Mesa 21.1.0-devel (git-84a38ec133)
WebGL 2 Driver Renderer WebGL creation failed:
* tryNativeGL
* Exhausted GL driver options.
WebGL 2 Driver Version -

So there is no WebGL2 detected!
Walter Zambotti
N2 - Ubuntu Mate Desktop

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

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

Post by alpe »

tobetter wrote:
Wed Nov 04, 2020 12:06 am
Github links:

Linux kernel 5.8 : https://github.com/tobetter/linux/tree/odroid-5.8.y
Linux kernel 5.9 : https://github.com/tobetter/linux/tree/odroid-5.9.y
Linux kernel 5.10 : https://github.com/tobetter/linux/tree/odroid-5.10.y

If you are interesting to build the kernels natively on ODROID, please refer to the link.
https://docs.linuxfactory.or.kr/guides/ ... ernel.html
Can I use this 5.10 kernel on official odroid Ubuntu 20.04? (Not your image)
Or maybe even better: is there any way to dist-upgrade from official ubuntu to your images?
Thanks.

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 »

Since you probably only want to switch once a new installation is less work.
The implementation of the boot is slightly different between the stock distribution and the tobetter distribution. The same difference is going to bite you if you try to build a 5.x.y kernel for the stock distribution (the DTB's are different).

Just for 5.10.y you can just use the petitboot option with the 20.04 tobetter ubuntu distribution.
Only for 5.10.y with panfrost you might prefer an upgrade to 20.10 from the tobetter 20.04.

I would make and installed package list ("apt list --installed" or "dpkg --get-selections") and an easily accessible partial backup from /etc/ and /home/. (And besides that I'd still make a complete system backup, but that should be optional).
These users thanked the author specs for the post (total 2):
tobetter (Wed Feb 10, 2021 10:47 pm) • alpe (Thu Feb 11, 2021 12:49 am)

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

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

Post by alpe »

specs wrote:
Wed Feb 10, 2021 10:40 pm
Since you probably only want to switch once a new installation is less work.
The implementation of the boot is slightly different between the stock distribution and the tobetter distribution. The same difference is going to bite you if you try to build a 5.x.y kernel for the stock distribution (the DTB's are different).

Just for 5.10.y you can just use the petitboot option with the 20.04 tobetter ubuntu distribution.
Only for 5.10.y with panfrost you might prefer an upgrade to 20.10 from the tobetter 20.04.

I would make and installed package list ("apt list --installed" or "dpkg --get-selections") and an easily accessible partial backup from /etc/ and /home/. (And besides that I'd still make a complete system backup, but that should be optional).
Thanks. I decided to start new again.
/ded/watchdog is disabled on this kernel, right?
How can I enable it? CONFIG_WATCHDOG=y and CONFIG_WATCHDOG_CORE=y ? Is it safe to do so?
Last edited by alpe on Thu Feb 11, 2021 3:24 am, edited 1 time in total.

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 3 guests