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

Jhonny14
Posts: 58
Joined: Sat Nov 14, 2020 11:29 pm
languages_spoken: english, italian
ODROIDs: odroid c4
Has thanked: 2 times
Been thanked: 0
Contact:

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

Post by Jhonny14 »

happy Christmas

wkozaczuk
Posts: 4
Joined: Thu Dec 31, 2020 3:51 am
languages_spoken: english
ODROIDs: Odroid N2 Plus
Has thanked: 0
Been thanked: 0
Contact:

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

Post by wkozaczuk »

Hi,

I have recently purchased Odroid N2 Plus board. The board is by default set up to boot from SPI with Petiboot and then jump to Ubuntu on my external Samsung SSD connected via this USB-to-SATA board - https://www.hardkernel.com/shop/usb3-0- ... oard-plus/.

Even though my setup works and I have been struggling to fully upgrade to Groovy with the latest kernel 5.10. So here is what I have done:

1) Wrote the odroid minimal image with Ubuntu 20.04 to the SSD - https://odroid.in/ubuntu_20.04lts/n2/ub ... 715.img.xz - the latest one from Hardkernel.
2) Set Petiboot to boot from my SSD.
3) Update focal to latest:
sudo apt update
sudo apt dist-upgrade
4) Added linuxfactory repo to apt list as such:
cat /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
deb http://ppa.linuxfactory.or.kr groovy main
deb http://ppa.linuxfactory.or.kr groovy non-free
deb http://ppa.linuxfactory.or.kr groovy contrib
5) Upgraded to groovy after changing focal to groovy in /atc/apt/*list files and running this:
sudo apt update
sudo apt dist-upgrade
6) Installed latest kernel
apt install linux-image-generic linux-headers-generic
7) After the final reboot I got this:

Code: Select all

Welcome to Ubuntu 20.10 (GNU/Linux 4.9.236-106 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
 _   _               _ _                        _ 
| | | | __ _ _ __ __| | | _____ _ __ _ __   ___| |
| |_| |/ _` | '__/ _` | |/ / _ \ '__| '_ \ / _ \ |
|  _  | (_| | | | (_| |   <  __/ |  | | | |  __/ |
|_| |_|\__,_|_|  \__,_|_|\_\___|_|  |_| |_|\___|_|
                                                  
  ___  ____  ____   ___ ___ ____        _   _ ____  ____  _           
 / _ \|  _ \|  _ \ / _ \_ _|  _ \      | \ | |___ \|  _ \| |_   _ ___ 
| | | | | | | |_) | | | | || | | |_____|  \| | __) | |_) | | | | / __|
| |_| | |_| |  _ <| |_| | || |_| |_____| |\  |/ __/|  __/| | |_| \__ \
 \___/|____/|_| \_\\___/___|____/      |_| \_|_____|_|   |_|\__,_|___/
                                                                      

Welcome to Ubuntu 20.10
Wednesday, 30 December 2020, 02:20:43 PM
Up time:     0 days, 02:36:15
Free memory: 3354756 / 3801532 kB
As you can see I am on groovy bu my kernel is still old - 4.9.236-106 - I believe the original from Hardkernel image.

This is not surprising to me given as I understand Petiboot jumps to the 1st partition on my SSD - sda1 - which still has old boot.ini and Image.gz.

Code: Select all

df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           372M  1.2M  371M   1% /run
/dev/sda2       229G  5.5G  222G   3% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/sda1       128M   22M  107M  17% /media/boot
tmpfs           372M  4.0K  372M   1% /run/user/1000

Code: Select all

ls -l /media/boot/
total 20798
-rwx------ 1 root root  9334904 Dec 29 18:14 Image.gz
drwx------ 3 root root     2048 Jul  7 16:30 amlogic
-rwx------ 1 root root     2588 Dec 30 11:43 boot.ini
-rwx------ 1 root root     2588 Dec 30 01:18 boot.ini.BACKUP
-rwx------ 1 root root     2440 Dec 29 18:14 boot.ini.old
-rwx------ 1 root root     3498 Dec 29 18:14 config.ini
-rwx------ 1 root root     3438 Dec 29 18:14 config.ini.old
-rwx------ 1 root root 11935938 Dec 29 18:14 uInitrd
The new kernel files are on the second partition sda2:

//boot/

Code: Select all

total 144480
-rw-r--r-- 1 root root  9334904 Dec  2 17:04 Image.gz
-rw-r--r-- 1 root root  5278865 Dec 15 05:06 System.map-5.10.0-odroid-arm64
drwxr-xr-x 3 root root     4096 Dec 29 18:14 amlogic
-rw-r--r-- 1 root root     2661 Dec 30 10:57 boot.scr
-rw-r--r-- 1 root root     2661 Dec 30 00:48 boot.scr.bak
-rw-r--r-- 1 root root   211547 Dec 15 05:06 config-5.10.0-odroid-arm64
lrwxrwxrwx 1 root root       58 Dec 30 10:57 dtb -> dtbs/5.10.0-odroid-arm64/amlogic/meson64_odroidn2_plus.dtb
lrwxrwxrwx 1 root root       58 Dec 30 10:57 dtb-5.10.0-odroid-arm64 -> dtbs/5.10.0-odroid-arm64/amlogic/meson64_odroidn2_plus.dtb
drwxr-xr-x 3 root root     4096 Dec 30 00:48 dtbs
lrwxrwxrwx 1 root root       30 Dec 29 19:38 initrd.img -> initrd.img-5.10.0-odroid-arm64
-rw-r--r-- 1 root root 11722639 Jul 13 21:33 initrd.img-4.9.230-87
-rw-r--r-- 1 root root 11722581 Jul 13 23:54 initrd.img-4.9.230-88
-rw-r--r-- 1 root root  7877415 Dec 29 18:14 initrd.img-4.9.230-89
-rw-r--r-- 1 root root 11651374 Dec 29 18:28 initrd.img-4.9.236-106
-rw-r--r-- 1 root root 15892926 Dec 30 10:57 initrd.img-5.10.0-odroid-arm64
lrwxrwxrwx 1 root root       30 Dec 29 19:38 initrd.img.old -> initrd.img-5.10.0-odroid-arm64
-rw-r--r-- 1 root root 11722703 Jul 13 21:33 uInitrd-4.9.230-87
-rw-r--r-- 1 root root 11722645 Jul 13 23:54 uInitrd-4.9.230-88
-rw-r--r-- 1 root root 11722947 Jul 14 09:36 uInitrd-4.9.230-89
-rw-r--r-- 1 root root 11935938 Dec 29 18:14 uInitrd-4.9.236-106
lrwxrwxrwx 1 root root       27 Dec 29 19:38 vmlinuz -> vmlinuz-5.10.0-odroid-arm64
-rw-r--r-- 1 root root 27099144 Dec 15 05:06 vmlinuz-5.10.0-odroid-arm64
lrwxrwxrwx 1 root root       27 Dec 29 19:38 vmlinuz.old -> vmlinuz-5.10.0-odroid-arm64
So what should I do to fix my problem and make Petiboot use the kernel 5.10 from sda2? I doubt I should update /media/boot/boot.ini to point to vmlinuz, initrd.img, etc on sda2 instead of sda1, should I? The boot.ini file seems to rely on a different type of Linux kernel - Image.gz - rather than vmlinuz. The same goes for uInitrd vs initrd.img I think.

Is my setup flawed? What is the right solution? Shall I copy vmlinuz and initrd.img manually to sda1 along image.gz and than change boot.ini accordingly. Or shall I also copy boot.scr and remove (rename) boot.ini?

Any help would be appreciated. Thanks in advance,
Waldek

mad_ady
Posts: 9067
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: 596 times
Been thanked: 578 times
Contact:

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

Post by mad_ady »

It's unorthodox to mix Hardkernel's ubuntu 20.04 with tobetter's 20.10, but if you got so far... here's what I'd try.
Tobetter's image has a 256MB partition mounted at /boot (I think). Check that the package for kernel 5.10 is installed, then try the following:

Code: Select all

mkdir /boot.legacy
rsync -avhtXx /media/boot/* /boot.legacy
rm -rf /media/boot/*
rsync -avhtXx /boot/* /media/boot/
mv /boot /boot.old
ln -s /boot /media/boot
Next check the uuids for rootfs and boot and adjust them in:
/boot/boot.scr (it needs to be regenerated)
/etc/fstab

If the system becomes unbootable, you can restore /media/boot from /boot.legacy

wkozaczuk
Posts: 4
Joined: Thu Dec 31, 2020 3:51 am
languages_spoken: english
ODROIDs: Odroid N2 Plus
Has thanked: 0
Been thanked: 0
Contact:

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

Post by wkozaczuk »

Thanks for your quick response. Indeed it looks like my setup is quite unorthodox. I do not mind restarting from scratch. I did try to use this latest ubuntu 20.10 server image - http://ppa.linuxfactory.or.kr/images/ra ... 218.img.xz. But when I write to my SSD with Etcher, my odroid hangs while booting - more specifically the petiboot shows up but after I select the SSD media to jump to, it never shows anything on my monitor. BTW I wonder if I have to enable console somewhere in petiboot to see where it gets stuck. What could I be doing wrong?

But I wonder if those images from http://ppa.linuxfactory.or.kr/images/raw/arm64/groovy are going to work with SSD or maybe they are preconfigured for eMMC or SD card type of boot?

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

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

Post by tobetter »

wkozaczuk wrote:
Thu Dec 31, 2020 5:23 am
Thanks for your quick response. Indeed it looks like my setup is quite unorthodox. I do not mind restarting from scratch. I did try to use this latest ubuntu 20.10 server image - http://ppa.linuxfactory.or.kr/images/ra ... 218.img.xz. But when I write to my SSD with Etcher, my odroid hangs while booting - more specifically the petiboot shows up but after I select the SSD media to jump to, it never shows anything on my monitor. BTW I wonder if I have to enable console somewhere in petiboot to see where it gets stuck. What could I be doing wrong?

But I wonder if those images from http://ppa.linuxfactory.or.kr/images/raw/arm64/groovy are going to work with SSD or maybe they are preconfigured for eMMC or SD card type of boot?
The image will work from SSD if you use the Petitboot, it's not intented to boot from eMMC or SD card. Can you let me know what display device you use with?

wkozaczuk
Posts: 4
Joined: Thu Dec 31, 2020 3:51 am
languages_spoken: english
ODROIDs: Odroid N2 Plus
Has thanked: 0
Been thanked: 0
Contact:

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

Post by wkozaczuk »

@tobetter I flashed my SSD with this image - ubuntu-20.10-server-odroidn2plus-20201218.img.xz. I verified I can mount and see both partitions on my other desktop.

I tried to boot 1st time and again same effect - nothing on my display device after Petitboot wrote 'booting in 1s ..'.

When I tried again it worked. It grabbed new IP and everything was OK.

But then I rebooted and again back to the same behavior in my 1st attempt. I tried many more times - same thing.

My display device is Philips Brilliance 272P7VUBNB. I did disconnect it in one of my booting attempts and it did not help.

Is there a way to pass an option to the kernel on SSD from Petiboot to make it display all boot messaging (aka what goes to dmesg) to the console? Shall I use another image? I think I tried ubuntu-20.10-server-odroidn2plus-20201120.img.xz befor and got same behavior.

BTW I never had any booting problems like that with the Ubuntu 20.04 minimal image from Hardkernel.

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

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

Post by tobetter »

wkozaczuk wrote:
Thu Dec 31, 2020 3:28 pm
@tobetter I flashed my SSD with this image - ubuntu-20.10-server-odroidn2plus-20201218.img.xz. I verified I can mount and see both partitions on my other desktop.

I tried to boot 1st time and again same effect - nothing on my display device after Petitboot wrote 'booting in 1s ..'.

When I tried again it worked. It grabbed new IP and everything was OK.

But then I rebooted and again back to the same behavior in my 1st attempt. I tried many more times - same thing.

My display device is Philips Brilliance 272P7VUBNB. I did disconnect it in one of my booting attempts and it did not help.

Is there a way to pass an option to the kernel on SSD from Petiboot to make it display all boot messaging (aka what goes to dmesg) to the console? Shall I use another image? I think I tried ubuntu-20.10-server-odroidn2plus-20201120.img.xz befor and got same behavior.

BTW I never had any booting problems like that with the Ubuntu 20.04 minimal image from Hardkernel.
I guess it's the compatible issue of the mainline kernel. The Debian/Ubuntu image from my server is based on 5.x kernel whilist Hardkernel's stock Ubuntu image is based on 4.9, they are not the same kernel.

I believe that the your N2Plus must be able to access with SSH although it shows the black screen, please check the blue LED if it's blinking. In case you are able to access your N2Plus, please follow up the instruction in the link which will set the resolution as 1920x1080 and try to reboot your N2Plus.
https://docs.linuxfactory.or.kr/guides/kmsdrm.html

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

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

Post by istanbulls »

Off Topic:
I had a huge accident the day before. My car is no longer usable, but I'm miraculously very good. a few minor bruises and pain is all. :D

There will be very few people who love 2020, all our hope is in 2021 :D
It is very nice to be alive despite everything.

I wish you a Happy Healthy New Year. <3

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

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

Post by tobetter »

istanbulls wrote:
Thu Dec 31, 2020 4:21 pm
Off Topic:
I had a huge accident the day before. My car is no longer usable, but I'm miraculously very good. a few minor bruises and pain is all. :D

There will be very few people who love 2020, all our hope is in 2021 :D
It is very nice to be alive despite everything.

I wish you a Happy Healthy New Year. <3

Glad to hear you are not seriously injured. There is a word 액땜 in Korean, which means a sort of misfortune.
https://www.hapskorea.com/10-second-korean-aekttaem/

Car accident always brings side effect on your body, so check your body and take care of yourself.

Happy New Year!!

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

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

Post by istanbulls »

Thenks, :)

I guess I can say this word for 2020. 액땜 2020 :D

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

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

Post by tobetter »

Notice

I found one bug recently regarding to the performance, the default maximum CPU frequency is not set properly. In case if the file /etc/default/cpufrequtils has like this, your N2 won't run at its maximum performance.

Code: Select all

$ cat /etc/default/cpufrequtils
GOVERNOR="performance"
MIN_SPEED="1000MHz"
MAX_SPEED="1000MHz"
In case you have "1000MHz" for MAX_SPEED, please do run these commands and check the same file if it's changed or not.

Code: Select all

$ sudo rm /etc/default/cpufrequtils
$ sudo dpkg-reconfigure odroid-base
$ sudo service cpufrequtils restart

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

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

Post by istanbulls »

has been in this situation for a few weeks. and I manually changed the MAX_SPEED value to 2400. (I have a fan)
Do I have a problem?

mad_ady
Posts: 9067
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: 596 times
Been thanked: 578 times
Contact:

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

Post by mad_ady »

@Istanbulls - glad to hear you're ok. Let's continue that discussion here: viewtopic.php?t=30973
These users thanked the author mad_ady for the post:
istanbulls (Thu Dec 31, 2020 9:08 pm)

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

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

Post by tobetter »

istanbulls wrote:
Thu Dec 31, 2020 9:00 pm
has been in this situation for a few weeks. and I manually changed the MAX_SPEED value to 2400. (I have a fan)
Do I have a problem?
Nope
These users thanked the author tobetter for the post:
istanbulls (Thu Dec 31, 2020 9:08 pm)

wkozaczuk
Posts: 4
Joined: Thu Dec 31, 2020 3:51 am
languages_spoken: english
ODROIDs: Odroid N2 Plus
Has thanked: 0
Been thanked: 0
Contact:

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

Post by wkozaczuk »

@tobetter

I have experimented with my problem a bit more. I decided to use the slightly older image - ubuntu-20.10-server-odroidn2plus-20201120.img.xz - which I think does not make much difference.

So I have discovered that I can boot occasionally but most of the time the kernel from SSD hangs somewhere - in those cases, I cannot even ping it as I can not see it grab any IP from my DHCP server. I do not think it has anything to do with the display device.

One time when I was able to boot I actually updated the resolution per https://docs.linuxfactory.or.kr/guides/kmsdrm.html and it did not help with my booting problem.

By accident, I found another interesting behavior. Most of the time (but not always) when I mount the same SSD on my other Ubuntu desktop and delete some file like /var/log/dmesg or others in this directory on 2nd partition, unmount it and plug it back into my N2 and boot it, it boots successfully. But not always.

I also tried to look at dmesg after the last failed boot but I do not see anything interesting as I am guessing it never writes anything to it because possibly it never gets the point it successfully mounts the filesystem on the second partition.

So the whole situation is quite flaky. I guess I can keep my N2 up all the time and hope it boots next time after I do not trick with mounting on my desktop. Is there any better way to debug a problem? Shall I use this method - http://docs.linuxfactory.or.kr/guides/kernel_log.html?

I also wonder if that issue has to be with sata-usb adapter or SSD I am using - Samsung SSD 860 EVO and https://www.hardkernel.com/shop/usb3-0- ... oard-plus/.

I could also go back to the hardkernel image but the kernel 4.9 is pretty old and it does not have a compiled in KVM module is a must for my virtualization experiments. I guess I could recompile it with enabled KVM per https://wiki.odroid.com/odroid-n2/softw ... ing_kernel.

Thanks for all the help and Happy New Year!
Waldek

BTW. The httpserver at ppa.linuxfactory.or.kr seems to be down.

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

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

Post by tobetter »

wkozaczuk wrote:
Fri Jan 01, 2021 5:06 am
@tobetter

I have experimented with my problem a bit more. I decided to use the slightly older image - ubuntu-20.10-server-odroidn2plus-20201120.img.xz - which I think does not make much difference.

So I have discovered that I can boot occasionally but most of the time the kernel from SSD hangs somewhere - in those cases, I cannot even ping it as I can not see it grab any IP from my DHCP server. I do not think it has anything to do with the display device.

One time when I was able to boot I actually updated the resolution per https://docs.linuxfactory.or.kr/guides/kmsdrm.html and it did not help with my booting problem.
If you are not able ping to your N2, it must be booting failure other than display. Hard to tell what it's caused if UART log is missing.
By accident, I found another interesting behavior. Most of the time (but not always) when I mount the same SSD on my other Ubuntu desktop and delete some file like /var/log/dmesg or others in this directory on 2nd partition, unmount it and plug it back into my N2 and boot it, it boots successfully. But not always.
In case your N2 can boot up, please do follow the instruction and see if you can get the boot log though HDMI display.
https://docs.linuxfactory.or.kr/guides/ ... light=uart
I also tried to look at dmesg after the last failed boot but I do not see anything interesting as I am guessing it never writes anything to it because possibly it never gets the point it successfully mounts the filesystem on the second partition.

So the whole situation is quite flaky. I guess I can keep my N2 up all the time and hope it boots next time after I do not trick with mounting on my desktop. Is there any better way to debug a problem? Shall I use this method - http://docs.linuxfactory.or.kr/guides/kernel_log.html?
It would be helpful if you can share the logs.
I also wonder if that issue has to be with sata-usb adapter or SSD I am using - Samsung SSD 860 EVO and https://www.hardkernel.com/shop/usb3-0- ... oard-plus/.
I usually use EVO 860 with the same USB SATA storage, but never had an issue yet. But I only use it for testing and debugging, so problem did not happen to me.
I could also go back to the hardkernel image but the kernel 4.9 is pretty old and it does not have a compiled in KVM module is a must for my virtualization experiments. I guess I could recompile it with enabled KVM per https://wiki.odroid.com/odroid-n2/softw ... ing_kernel.
If the mainline kernel could cause you the problem and 4.9 works, back to 4.9 is also good idea. But still you have to test with it.
Thanks for all the help and Happy New Year!
Waldek
Thank you, you too Happy New Year!!
BTW. The httpserver at ppa.linuxfactory.or.kr seems to be down.
I realize that the server is down last night and I am just coming after 100km driving to reboot the server. So the server is now available.

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 »

After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC

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

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

Post by superpowter77 »

MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.

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

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

Post by tobetter »

superpowter77 wrote:
Mon Jan 04, 2021 8:21 pm
MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.
Do you also have the same greenish screen issue? Can you share the photo of it?

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

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

Post by istanbulls »

I had no problems with the Panfrost 20.10 updates.
Ubuntu-Wayland 20.04 has a problem for me. There is no green screen. Initially, the ubuntu script hangs for a few minutes and then the screen goes black. In the solo above the screen, the dash cursor remains fixed and the system is locked.

I went back to the backup OS and updated it over and over again, I had the same problem.
These users thanked the author istanbulls for the post:
superpowter77 (Mon Jan 04, 2021 11:30 pm)

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

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

Post by superpowter77 »

tobetter wrote:
Mon Jan 04, 2021 8:52 pm
superpowter77 wrote:
Mon Jan 04, 2021 8:21 pm
MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.
Do you also have the same greenish screen issue? Can you share the photo of it?
Yes, I do the same greenish screen issue.

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

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

Post by tobetter »

superpowter77 wrote:
Mon Jan 04, 2021 11:31 pm
tobetter wrote:
Mon Jan 04, 2021 8:52 pm
superpowter77 wrote:
Mon Jan 04, 2021 8:21 pm
MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.
Do you also have the same greenish screen issue? Can you share the photo of it?
Yes, I do the same greenish screen issue.
Is the screen totally green and no characters on it? Or can see some character or images?

EDIT:
Can you try the package below and see if still green screen issue persist?
http://ppa.linuxfactory.or.kr/pool/test ... _arm64.deb
http://ppa.linuxfactory.or.kr/pool/test ... _arm64.deb

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

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

Post by superpowter77 »

tobetter wrote:
Mon Jan 04, 2021 11:45 pm
superpowter77 wrote:
Mon Jan 04, 2021 11:31 pm
tobetter wrote:
Mon Jan 04, 2021 8:52 pm
superpowter77 wrote:
Mon Jan 04, 2021 8:21 pm
MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.
Do you also have the same greenish screen issue? Can you share the photo of it?
Yes, I do the same greenish screen issue.
Is the screen totally green and no characters on it? Or can see some character or images?

EDIT:
Can you try the package below and see if still green screen issue persist?
http://ppa.linuxfactory.or.kr/pool/test ... _arm64.deb
http://ppa.linuxfactory.or.kr/pool/test ... _arm64.deb
Screen is totally green without any characters on it and system is locked, I cannot even login in because the login screen is missing. I cannot access via SSH either.

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

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

Post by superpowter77 »

tobetter wrote:
Mon Jan 04, 2021 8:52 pm
superpowter77 wrote:
Mon Jan 04, 2021 8:21 pm
MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.
Do you also have the same greenish screen issue? Can you share the photo of it?
20210104_100440.jpg
20210104_100440.jpg (405.55 KiB) Viewed 323 times
It stays like this for a few minutes and then screen turns black with a blinking cursor

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

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

Post by istanbulls »

I replaced the 254mb first partition (boot) with my old backup, the problem is fixed. For your information.

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

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

Post by tobetter »

superpowter77 wrote:
Tue Jan 05, 2021 12:08 am
tobetter wrote:
Mon Jan 04, 2021 8:52 pm
superpowter77 wrote:
Mon Jan 04, 2021 8:21 pm
MamkinHacker wrote:
Sun Jan 03, 2021 12:59 am
After latest kernel update to 5.10.4 with bifrost proprietary driver my system broke. It didn't boot and all I had was greenish unresponsive terminal. Via ssh I tried reinstalling mali-bifrost-dkms mali-bifrost-wayland-driver and it didn't work. So I switched back to 5.10.0 kernel and system boots up properly without any reinstallations. Here's dmesg from broken kernel.
https://pastebin.com/Y8Te6wMC
Got exactly the same issue but running from 20.04 LTS w/ 5.10.0 kernel on N2+. 5.10.4 kernel update totally broke my system. Will wait for my 64Gb eMMC modules before reinstalling via netboot_default.
Do you also have the same greenish screen issue? Can you share the photo of it?
20210104_100440.jpg

It stays like this for a few minutes and then screen turns black with a blinking cursor
Thanks....this helps me a lot.

Another request, can you copy files - dpkg.log/syslog/kernel.log from /var/log?
Are you able to ssh when the green screen happens?

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

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

Post by tobetter »

istanbulls wrote:
Tue Jan 05, 2021 12:18 am
I replaced the 254mb first partition (boot) with my old backup, the problem is fixed. For your information.
What's the kernel version of your old backup? Plase let me know the output uname -a.
Are you able to update again?

Code: Select all

$ sudo apt update
$ sudo apt dist-upgrade
$ sudo reboot
$ sudo apt install --reinstall mali-bifrost-dkms
$ sudo reboot
And share the output of these commands.

Code: Select all

$ dpkg -l | grep linux-image
$ uname -a

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

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

Post by superpowter77 »

tobetter wrote:
Tue Jan 05, 2021 12:33 am
istanbulls wrote:
Tue Jan 05, 2021 12:18 am
I replaced the 254mb first partition (boot) with my old backup, the problem is fixed. For your information.
What's the kernel version of your old backup? Plase let me know the output uname -a.
Are you able to update again?

Code: Select all

$ sudo apt update
$ sudo apt dist-upgrade
$ sudo reboot
$ sudo apt install --reinstall mali-bifrost-dkms
$ sudo reboot
And share the output of these commands.

Code: Select all

$ dpkg -l | grep linux-image
$ uname -a
Thanks but It's reinstalling from scratch already.

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

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

Post by istanbulls »

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

n2p@ubuntu:~$ dpkg -l | grep linux-image
ii linux-image-5.10.0-odroid-arm64 5.10.4-202012311803~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

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 can share my old logs if you need, groovy btw.

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

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

Post by tobetter »

MamkinHacker wrote:
Tue Jan 05, 2021 12:54 am
I can share my old logs if you need, groovy btw.
You already share the kernel logs which is helpful, any logs are welcome...
By any chance, are you able to capture the logs with apt install --reinstall mali-bifrost-dkms after booting the new kernel 5.10.4?

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 »


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

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

Post by tobetter »

MamkinHacker wrote:
Tue Jan 05, 2021 1:17 am
You mean apt logs?
https://pastebin.com/6xPV95uG
Do you have this log with sudo apt install --reinstall mali-bifrost-dkms?

Code: Select all

Good news! Module version r24p0-01rel0 for mali_kbase.ko
exactly matches what is already found in kernel 5.10.0-odroid-arm64.
DKMS will not replace this module.
You may override by specifying --force.

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

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

Post by superpowter77 »

I reinstalled 20.04 LTS via netboot_default and now my ubuntu desktop has a slightly greenish color. Wayland GPU blob driver is not working despite a few attempts to reinstall mali-bifrost-dkms with:
sudo apt install --reinstall mali-bifrost-dkms
kernel is: 5.10.0-odroid-arm64

joseph@gospa:~/Desktop$ dpkg -l | grep linux-image
ii linux-image-5.10.0-odroid-arm64 5.10.4-202012311803~focal arm64 Linux 5.10 for 64-bit ARMv8 machines
ii linux-image-generic 5:2020.12-1+202012241958~focal arm64 Generic Linux kernel image

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 »

Yeah, I posted it on pastebin in previous post. A dump of sys/kern/dpkg logs
https://drive.google.com/file/d/1lZjlIH ... sp=sharing

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

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

Post by tobetter »

superpowter77 wrote:
Tue Jan 05, 2021 1:24 am
I reinstalled 20.04 LTS via netboot_default and now my ubuntu desktop has a slightly greenish color. Wayland GPU blob driver is not working despite a few attempts to reinstall mali-bifrost-dkms with:
sudo apt install --reinstall mali-bifrost-dkms
kernel is: 5.10.0-odroid-arm64

joseph@gospa:~/Desktop$ dpkg -l | grep linux-image
ii linux-image-5.10.0-odroid-arm64 5.10.4-202012311803~focal arm64 Linux 5.10 for 64-bit ARMv8 machines
ii linux-image-generic 5:2020.12-1+202012241958~focal arm64 Generic Linux kernel image
What's the output of uname -a and lsmod -l | grep kbase?

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

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

Post by tobetter »

MamkinHacker wrote:
Tue Jan 05, 2021 1:26 am
Yeah, I posted it on pastebin in previous post. A dump of sys/kern/dpkg logs
https://drive.google.com/file/d/1lZjlIH ... sp=sharing
If the log comes with sudo apt install --reinstall mali-bifrost-dkms, I think the driver is not built with new kernel. Techinally, it should be built without an issue but seem not. So...I wish you could try to boot with new kernel 5.10.4 and run sudo apt install --reinstall mali-bifrost-dkms. In order to run Mali Bifrost driver, at least you have to ensure if mali_kbase module is loaded or not. You can check with lsmod | grep kbase.

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

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

Post by superpowter77 »

tobetter wrote:
Tue Jan 05, 2021 1:38 am
superpowter77 wrote:
Tue Jan 05, 2021 1:24 am
I reinstalled 20.04 LTS via netboot_default and now my ubuntu desktop has a slightly greenish color. Wayland GPU blob driver is not working despite a few attempts to reinstall mali-bifrost-dkms with:
sudo apt install --reinstall mali-bifrost-dkms
kernel is: 5.10.0-odroid-arm64

joseph@gospa:~/Desktop$ dpkg -l | grep linux-image
ii linux-image-5.10.0-odroid-arm64 5.10.4-202012311803~focal arm64 Linux 5.10 for 64-bit ARMv8 machines
ii linux-image-generic 5:2020.12-1+202012241958~focal arm64 Generic Linux kernel image
What's the output of uname -a and lsmod -l | grep kbase?
joseph@gospa:~/Desktop$ uname -a
Linux gospa 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.4-202012311803~focal (2020-12-31) aarch64 aarch64 aarch64 GNU/Linux

joseph@gospa:~/Desktop$ lsmod | grep kbase
mali_kbase 548864 0

joseph@gospa:~/Desktop$ lsmod -l | grep kbase
Usage: lsmod

joseph@gospa:~/Desktop$ modprobe mali_kbase
no results


Seems like mali_kbase is not loaded at all.

JRS

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

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

Post by tobetter »

superpowter77 wrote:
Tue Jan 05, 2021 1:48 am
tobetter wrote:
Tue Jan 05, 2021 1:38 am
superpowter77 wrote:
Tue Jan 05, 2021 1:24 am
I reinstalled 20.04 LTS via netboot_default and now my ubuntu desktop has a slightly greenish color. Wayland GPU blob driver is not working despite a few attempts to reinstall mali-bifrost-dkms with:
sudo apt install --reinstall mali-bifrost-dkms
kernel is: 5.10.0-odroid-arm64

joseph@gospa:~/Desktop$ dpkg -l | grep linux-image
ii linux-image-5.10.0-odroid-arm64 5.10.4-202012311803~focal arm64 Linux 5.10 for 64-bit ARMv8 machines
ii linux-image-generic 5:2020.12-1+202012241958~focal arm64 Generic Linux kernel image
What's the output of uname -a and lsmod -l | grep kbase?
joseph@gospa:~/Desktop$ uname -a
Linux gospa 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.4-202012311803~focal (2020-12-31) aarch64 aarch64 aarch64 GNU/Linux

joseph@gospa:~/Desktop$ lsmod | grep kbase
mali_kbase 548864 0

joseph@gospa:~/Desktop$ lsmod -l | grep kbase
Usage: lsmod

joseph@gospa:~/Desktop$ modprobe mali_kbase
no results


Seems like mali_kbase is not loaded at all.

JRS
mali_kbase is loaded, sorry I gave you wrong command lsmod -l...confused with dpkg -l.

Code: Select all

joseph@gospa:~/Desktop$ lsmod | grep kbase
mali_kbase            548864  0
Maybe do you have panfrost driver is loaded? 'mali_kbase' and 'panfrost', both driver should not be loaded at the same time.

Code: Select all

lsmod | grep panfrost
Don't you have /etc/modprobe.d/panfrost.conf or /etc/modprobe.d/blacklist-gpu.conf?

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

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

Post by superpowter77 »

tobetter wrote:
Tue Jan 05, 2021 1:52 am
superpowter77 wrote:
Tue Jan 05, 2021 1:48 am
tobetter wrote:
Tue Jan 05, 2021 1:38 am
superpowter77 wrote:
Tue Jan 05, 2021 1:24 am
I reinstalled 20.04 LTS via netboot_default and now my ubuntu desktop has a slightly greenish color. Wayland GPU blob driver is not working despite a few attempts to reinstall mali-bifrost-dkms with:
sudo apt install --reinstall mali-bifrost-dkms
kernel is: 5.10.0-odroid-arm64

joseph@gospa:~/Desktop$ dpkg -l | grep linux-image
ii linux-image-5.10.0-odroid-arm64 5.10.4-202012311803~focal arm64 Linux 5.10 for 64-bit ARMv8 machines
ii linux-image-generic 5:2020.12-1+202012241958~focal arm64 Generic Linux kernel image
What's the output of uname -a and lsmod -l | grep kbase?
joseph@gospa:~/Desktop$ uname -a
Linux gospa 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.4-202012311803~focal (2020-12-31) aarch64 aarch64 aarch64 GNU/Linux

joseph@gospa:~/Desktop$ lsmod | grep kbase
mali_kbase 548864 0

joseph@gospa:~/Desktop$ lsmod -l | grep kbase
Usage: lsmod

joseph@gospa:~/Desktop$ modprobe mali_kbase
no results


Seems like mali_kbase is not loaded at all.

JRS
mali_kbase is loaded, sorry I gave you wrong command lsmod -l...confused with dpkg -l.

Code: Select all

joseph@gospa:~/Desktop$ lsmod | grep kbase
mali_kbase            548864  0
Maybe do you have panfrost driver is loaded? 'mali_kbase' and 'panfrost', both driver should not be loaded at the same time.

Code: Select all

lsmod | grep panfrost
Don't you have /etc/modprobe.d/panfrost.conf or /etc/modprobe.d/blacklist-gpu.conf?
/etc/modprobe.d/blacklist-gpu.conf is Present
/etc/modprobe.d/panfrost.conf is NOT present

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

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

Post by tobetter »

superpowter77 wrote:
Tue Jan 05, 2021 2:01 am
mali_kbase is loaded, sorry I gave you wrong command lsmod -l...confused with dpkg -l.

Code: Select all

joseph@gospa:~/Desktop$ lsmod | grep kbase
mali_kbase            548864  0
Maybe do you have panfrost driver is loaded? 'mali_kbase' and 'panfrost', both driver should not be loaded at the same time.

Code: Select all

lsmod | grep panfrost
Don't you have /etc/modprobe.d/panfrost.conf or /etc/modprobe.d/blacklist-gpu.conf?
/etc/modprobe.d/blacklist-gpu.conf is Present
/etc/modprobe.d/panfrost.conf is NOT present
[/quote]

This is correct with the latest packages. You must have panfrost in /etc/modprobe.d/blacklist-gpu.conf.
I'm installing new Focal Fossa through Netboot Installer to ODROID-N2Plus. I already did this 3 times on ODROID-N2 and 2 times on ODROID-HC4 today...but 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 »

Some sick mobile hacking right here :D
Kernel error when ubuntu image changes to black-green terminal
Image

Apt logs
ImageImageImage

Module is present
Image

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

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

Post by tobetter »

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... :(

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

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

Post by istanbulls »

n2p@
Odroid-N2Plus

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

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

Post by superpowter77 »

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.

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

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

Post by tobetter »

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

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

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

Post by superpowter77 »

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.

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

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

Post by tobetter »

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.

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

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

Post by istanbulls »

tobetter wrote:
Tue Jan 05, 2021 4:17 am

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

Code: Select all

$ sudo vi /usr/include/linux/version.h  <-- Change "328777" to "330244" at the first line and save/exit
I changed it to 330244 values with sudo nano. The command you gave did not work or I could not.

Code: Select all

#define LINUX_VERSION_CODE 3304244
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)

Code: Select all

$ sudo dpkg --force-depends -r mali-bifrost-dkms
mali-bifrost-dkms has been removed.

Code: Select all

n2p@ubuntu:~$ sudo apt install --reinstall mali-bifrost-wayalnd-driver
Password for [sudo] n2p:
Reading the packing lists ... Done
Creating an addiction tree
Reading status information ... Done
E: mali-bifrost-wayalnd-driver package not found
n2p@ubuntu:~$
I translated it from Turkish to English, there might be differences in terms of translation, but I thought you will understand what is going on.
that is, it cannot install the mali-bifrost-wayalnd package.

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

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

Post by tobetter »

istanbulls wrote:
Tue Jan 05, 2021 4:44 am

Code: Select all

n2p@ubuntu:~$ sudo apt install --reinstall mali-bifrost-wayalnd-driver
TYPO

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 2 guests