Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by tobetter » Thu Apr 23, 2020 5:25 pm

Ubuntu 20.04 (Focal Fossa) Minimal Image with Linux kernel 5.x is ready to download...

Latest prebuilt image: 20200501 - Korean Labour day edition
Netboot Installer: 20200502

Ubuntu 20.04 Focal Fossa Minimal image for ODROID-C4

Known issues:
  • Audio is not supported. - Resolved but only to HDMI
  • Video acceleration (VPU) is not supported. - partially supported
  • ODROID-C4 may not boot from SD card or failure to run with it. Strongly recommend using eMMC.
  • Many unknown issues
Please note that this image is not officially supported by Hardkernel but will keep updating if new fix is contributed.
Buy me a coffee if you like my efforts and keep moving forward.
Last edited by tobetter on Mon May 04, 2020 6:47 pm, edited 6 times in total.
These users thanked the author tobetter for the post (total 4):
mad_ady (Thu Apr 23, 2020 9:15 pm) • elatllat (Fri Apr 24, 2020 7:51 am) • odroidn2user (Sun May 03, 2020 3:04 am) • hominoid (Tue May 05, 2020 9:26 am)

miskol
Posts: 244
Joined: Wed Jan 15, 2014 2:58 am
languages_spoken: english,slovak
Has thanked: 0
Been thanked: 12 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by miskol » Fri Apr 24, 2020 5:51 am

how gnome is working?
is it GPU accelerated or llvmpipe ?

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by tobetter » Fri Apr 24, 2020 8:02 am

miskol wrote:
Fri Apr 24, 2020 5:51 am
how gnome is working?
is it GPU accelerated or llvmpipe ?
I've packaged to use ARM Mali G31 Wayland driver that from Amlogic instead of llvmpipe which is the default method.

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by meadrocks » Wed Apr 29, 2020 3:10 am

So is there a GUI dist, or just the minimal dist?
This appears to be the only dist for the C4.

Despite the fact they advertise dists available, I dont see any 20.04 dist available from the Downloads link from the hardkernel.com web site.
https://wiki.odroid.com/getting_started ... _odroid-c4

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by tobetter » Wed Apr 29, 2020 3:52 am

meadrocks wrote:
Wed Apr 29, 2020 3:10 am
So is there a GUI dist, or just the minimal dist?
This appears to be the only dist for the C4.

Despite the fact they advertise dists available, I dont see any 20.04 dist available from the Downloads link from the hardkernel.com web site.
https://wiki.odroid.com/getting_started ... _odroid-c4
There is no GUI/Desktop image, minimal/server dist only and you can set up Desktop with it as following the instruction you've watched the video.

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by meadrocks » Wed Apr 29, 2020 3:56 am

tobetter wrote:
Wed Apr 29, 2020 3:52 am
meadrocks wrote:
Wed Apr 29, 2020 3:10 am
So is there a GUI dist, or just the minimal dist?
This appears to be the only dist for the C4.

Despite the fact they advertise dists available, I dont see any 20.04 dist available from the Downloads link from the hardkernel.com web site.
https://wiki.odroid.com/getting_started ... _odroid-c4
There is no GUI/Desktop image, minimal/server dist only and you can set up Desktop with it as following the instruction you've watched the video.
What video? Can you provide the link?

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by tobetter » Wed Apr 29, 2020 4:00 am

meadrocks wrote:
Wed Apr 29, 2020 3:56 am
tobetter wrote:
Wed Apr 29, 2020 3:52 am
meadrocks wrote:
Wed Apr 29, 2020 3:10 am
So is there a GUI dist, or just the minimal dist?
This appears to be the only dist for the C4.

Despite the fact they advertise dists available, I dont see any 20.04 dist available from the Downloads link from the hardkernel.com web site.
https://wiki.odroid.com/getting_started ... _odroid-c4
There is no GUI/Desktop image, minimal/server dist only and you can set up Desktop with it as following the instruction you've watched the video.
What video? Can you provide the link?
https://www.youtube.com/watch?v=4MfHMKcHaUc&t=864s

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by meadrocks » Wed Apr 29, 2020 5:41 am

Thanks!!!
Are there other desktops besides GNOME that work with wayland? MATE? KDE? XFCE?

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by tobetter » Wed Apr 29, 2020 5:47 am

meadrocks wrote:
Wed Apr 29, 2020 5:41 am
Thanks!!!
Are there other desktops besides GNOME? MATE? KDE? XFCE?
As of now, Gnome is working smoothly...and Mate..don't know. It may work without acceleration.
KDE, no, KDE Wayland backend is not compatible with ARM Mali driver.
https://www.youtube.com/watch?v=VPASHPQxaYg
XFCE, not tried yet.

Please note that this image is not Hardkernel's official one, but experimentally operating in the forum started for ODROID-N2 and ODROID-C4 can share the same solution. More update is happening in another thread, although the tile is not matched with the thing happening in the thread.
viewtopic.php?f=182&t=37109

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by meadrocks » Wed Apr 29, 2020 5:51 am

I don't see an Official Hardkernel image for C4. Even though they advertise 3 being available nothing is in the ODRIOD-C4 tree.

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by tobetter » Wed Apr 29, 2020 5:53 am

meadrocks wrote:
Wed Apr 29, 2020 5:51 am
I don't see an Official Hardkernel image for C4. Even though they advertise 3 being available nothing is in the ODRIOD-C4 tree.
WIP, resolving a couple of issues internally. Sorry, wait for a couple of days. By the way, what do you mean by "3"?

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by meadrocks » Wed Apr 29, 2020 6:08 am

https://wiki.odroid.com/getting_started ... _odroid-c4
Ubuntu MATE, Ubuntu Minimal, Android 9

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by meadrocks » Wed Apr 29, 2020 6:15 am

I'm currently running Armbian on my C2, is the hardkernel dist more optimized for the C2 than Armbian is? Just looking for the most performance from the device as possible.

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by tobetter » Wed Apr 29, 2020 1:45 pm

meadrocks wrote:
Wed Apr 29, 2020 6:08 am
https://wiki.odroid.com/getting_started ... _odroid-c4
Ubuntu MATE, Ubuntu Minimal, Android 9
Android 9 is available, Ubuntu* are coming.

BrianBeuken
Posts: 31
Joined: Sun Feb 14, 2016 2:16 am
languages_spoken: english
ODROIDs: C1+
C2
XU4
C4
N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Minimal OS image

Post by BrianBeuken » Thu Apr 30, 2020 4:19 am

Confirmed, does not run from SD.

Sadly I didn't spring for an eMMc card so will wait till things are a bit more stable or try Armbian to get things started

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by tobetter » Fri May 01, 2020 2:44 pm

20200501 - Korean Labour day Edition

I've worked to upgrade the image with Linux kernel 5.7-rc3 from 5.4 as per the request of many users and more features are supported for regular users. Please download the image, Ubuntu 20.04 (Focal Fossa), and flash with the Etcher.

Note:
  • The Linux kernel 5.7-rc3 is installed.
  • Ubuntu 20.04 Ubuntu Desktop can be installed.
  • ARM Mali Bifrost kernel driver r24p0 is available.
  • Qt5 using EGL/Wayland is available.
  • HDMI stereo output is available
  • The minimal CPU frequency is set as 1000MHz
  • The default user account and its password is odroid and odroid
For Ubuntu Gnome Desktop users:
You can install Ubuntu Gnome Desktop on this server image.

Code: Select all

$ sudo apt update
$ sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
$ sudo reboot
Last edited by tobetter on Sat May 02, 2020 1:01 am, edited 3 times in total.
These users thanked the author tobetter for the post (total 5):
voodik (Fri May 01, 2020 3:04 pm) • rooted (Fri May 01, 2020 4:22 pm) • odroidn2user (Fri May 01, 2020 10:28 pm) • elatllat (Tue May 05, 2020 12:11 am) • Luke.go (Wed May 06, 2020 10:47 am)

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Fri May 01, 2020 11:52 pm

So, I flashed the 20200501 image to eMMC, booted it up on the C4, installed the Ubuntu desktop and the Wayland driver using the ubuntu apt commands. Reboot and... It all works!

Where are the days of having to stash your new SBCs in the back of the closet for a year (or more) waiting until useful Linux images boot reliably? It just boots up to a full, working GPU accelerated Ubuntu 20.04 Gnome desktop!

Kernel 5.7.0 rc3 hasn't been out a week and Ubuntu 20.04 has been out now for, what, 8 days? And it is all available for the C4, and it works, just like that.
It comes with GPU acceleration on Wayland, and I even see a /dev/video0 indicating that VPU video acceleration is on its way or already there!?

So: It works. It took about an hour from separate parts to booting into a working and accelerated Gnome 3 desktop, with audio over hdmi.

Well, there are a few things that require some attention.
1: After installing the mali-brifrost-wayland-driver package, you HAVE to log in on Wayland. So when you log in, you have to pick "Ubuntu on Wayland" (have to set it once) as session. Otherwise you can't log on.
2: I notice there is a little green-ish line on the screen on the far left of the screen. So, that's probably the RC3 part of the 5.7.0 kernel?
3: The Firefox ubuntu package, by default, comes without Wayland acceleration. You have to enable that by setting 'MOZ_ENABLE_WAYLAND=1' in the environment. I did that by manually adding 'export MOZ_ENABLE_WAYLAND=1' to both ~/.bashrc and ~/.profile at the bottom of the file. Seems to do the trick. Probably one of those will suffice, but I never remember which. Log out, log in. And Firefox uses Wayland.
4: The reboot after the ubuntu-desktop mali-bifrost install didn't work for me. Had to unplug the power cord. Reboot works fine normally.
5: Early on in the boot process, it shows a flash of distortion, before the screen goes black and the login manager shows up.
6: I've had a freeze, during the installation of some plugins on Firefox. Update: and just had another freeze.

There are some applications not working right. VLC just crashes, Calibre doesn't start...? And QT apps are looking out of place on this Ubuntu 20.04 Wayland, when they work. This seems to be a Wayland issue more than anything else? It clearly is not completely smooth sailing. Having only Wayland for accelerated working environment does come with issues to be solved. Gnome apps seem to work as expected! This seems to be the biggest issue now, getting all the apps to work...

But the most important ones are all working well. Firefox, Thunderbird, LibreOffice, Rhythmbox, the whole usual Gnome set work very well, Totem / Gnome Video's, MPV... This has most of my usecases covered! And it all felt surprisingly responsive as well! I installed MPV and some codecs and just watch a bit of video, looked pretty smooth!

For a launch image, a fully working, fully modern desktop, with GPU acceleration... Not next year, maybe, but here and now!
Add to all that, that Panfrost developers are actively developing on the Panfrost driver for Bifrost (the G31 gpu) which will eventually make GPU acceleration a little easier for the C4. Things are looking bright.

This is some next level stuff!
Last edited by odroidn2user on Sat May 02, 2020 2:02 am, edited 15 times in total.
These users thanked the author odroidn2user for the post:
tobetter (Sat May 02, 2020 12:40 am)

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sat May 02, 2020 12:23 am

So, why am I not allowed to change the timezone in the Gnome settings panel. It asks for administrator rights, and the default password: 'odroid' is not accepted?
What is the root password?

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by tobetter » Sat May 02, 2020 12:36 am

odroidn2user wrote:
Sat May 02, 2020 12:23 am
So, why am I not allowed to change the timezone in the Gnome settings panel. It asks for administrator rights, and the default password: 'odroid' is not accepted?
What is the root password?
Odd...it's 'odroid'. I've just tried and same here.

How I figured out is that I did 'sudo -s' in the terminal with the password 'odroid' and did 'passwd root' to give the password 'odroid'. Then it works. Maybe I build the image wrongly for the password of 'root'...
These users thanked the author tobetter for the post:
odroidn2user (Sat May 02, 2020 1:09 am)

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sat May 02, 2020 12:39 am

tobetter wrote:
Sat May 02, 2020 12:36 am
How I figured out is that I did 'sudo -s' in the terminal with the password 'odroid' and did 'passwd root' to give the password 'odroid'. Then it works. Maybe I build the image wrongly for the password of 'root'...
That did the trick! Thanks.

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sat May 02, 2020 12:58 am

Not sure if this is the place, but it is time for a little how-to. I like me some Gnome Shell Extensions!
(Note to moderators, feel free to move this post to another place)

Go the the extensions home page.
https://extensions.gnome.org/

Just install the Firefox add-on linked.
You have to install a package:

Code: Select all

sudo apt-get install chrome-gnome-shell
Then, install Dash-to-panel:
https://extensions.gnome.org/extension/ ... -to-panel/
Flip the switch, click install on the popup and done..!

I also like the arc-menu personally.
https://extensions.gnome.org/extension/1228/arc-menu/
Specifically with the custom icon: /usr/share/icons/hicolor/256x256/apps/ubuntu-logo-icon.png

Mix in some Gnome tweaks:

Code: Select all

sudo apt install gnome-tweak
And done! Desktop computing at its finest! Personalized, just how I like it.
Edit: See screenshot here.

It is amazing what this little SBC can do!

gilray4
Posts: 22
Joined: Wed Mar 20, 2019 8:33 am
languages_spoken: english
ODROIDs: XU-4
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by gilray4 » Sat May 02, 2020 1:29 am

Will this minimul img work on an XU-4 ?

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by tobetter » Sat May 02, 2020 1:34 am

gilray4 wrote:
Sat May 02, 2020 1:29 am
Will this minimul img work on an XU-4 ?
Absolutely not, but you can try my another custom image for XU4.
viewtopic.php?f=184&t=36947&p=276772&hi ... am#p289492

PigLover
Posts: 37
Joined: Wed Nov 15, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, XU4, HC1, MC1
Has thanked: 1 time
Been thanked: 2 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by PigLover » Sat May 02, 2020 2:24 am

@tobetter - might be a bit off topic, but can you outline the benefits of the 5.7 kernel?

User avatar
rooted
Posts: 7640
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 677 times
Been thanked: 183 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by rooted » Sat May 02, 2020 2:39 am

It's 0.3 better than 5.4
These users thanked the author rooted for the post (total 2):
tobetter (Sat May 02, 2020 3:31 am) • mad_ady (Sat May 02, 2020 1:02 pm)

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by tobetter » Sat May 02, 2020 2:51 am

PigLover wrote:
Sat May 02, 2020 2:24 am
@tobetter - might be a bit off topic, but can you outline the benefits of the 5.7 kernel?
Personal opinion:
The upstream kernel has newer OS features but fewer features for the board because of missing drivers for new SoC. Hardkernel's stock kernel is 4.9 but it's very intended to use hardware full features. So you can choose the decent Linux kernel for your project or use. The official kernel version for Ubuntu 20.04 is 5.4 and I've worked with it for ODROID-N2. In the 5.7 branch, many Amlogic specific features are applied and it works well. You can switch to 5.4 with the command sudo apt install linux-image-5.4.0-odroid-arm64 in the same image.

Please note that 5.x upstream kernel is not officially supported by Hardkernel, my intention is to offer options to choose the Linux kernel.
These users thanked the author tobetter for the post:
rooted (Sat May 02, 2020 3:26 pm)

meadrocks
Posts: 7
Joined: Sat Aug 27, 2016 2:39 am
languages_spoken: english
ODROIDs: C2, C4
Location: Long Beach, CA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by meadrocks » Sat May 02, 2020 4:42 am

Kudos to @tobetter, the dist rocks, gnome is working, firefox is browsing, I have a dozen tabs open & still have over a Gig of free RAM.

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sat May 02, 2020 3:09 pm

tobetter wrote:
Sat May 02, 2020 2:51 am
PigLover wrote:
Sat May 02, 2020 2:24 am
@tobetter - might be a bit off topic, but can you outline the benefits of the 5.7 kernel?
Personal opinion:
The upstream kernel has newer OS features but fewer features for the board because of missing drivers for new SoC. Hardkernel's stock kernel is 4.9 but it's very intended to use hardware full features. So you can choose the decent Linux kernel for your project or use. The official kernel version for Ubuntu 20.04 is 5.4 and I've worked with it for ODROID-N2. In the 5.7 branch, many Amlogic specific features are applied and it works well. You can switch to 5.4 with the command sudo apt install linux-image-5.4.0-odroid-arm64 in the same image.

Please note that 5.x upstream kernel is not officially supported by Hardkernel, my intention is to offer options to choose the Linux kernel.
Well, I might be mistaken, but I'm getting the impression (I don't quite know how to check) that MPV on 5.7.0 uses the VPU for decoding video. The V4L2 implementation seems to be released in the 5.7 cycle and one indication that the VPU driver at least partially works is that 5.7.0 now has a /dev/video0. Now, I have to do some more research, but it looks to me a little like MPV actually already uses it.

Also: 4.9 likely will not get Wayland (or Xorg for that matter) GPU acceleration even though it might have VPU support.
And while 5.4 is perhaps more stable than 5.7.0 rc3 (didn't test 5.4 on the C4 yet myself), it does have GPU acceleration for Wayland but it very likely doesn't have (and will not get) VPU acceleration.

So, yeah, you have options and you can choose the kernel you want and need for the project you are working on / requirements you have.
For use my usecases (doing desktop linux), 5.7 is clearly the most complete, most useful.

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by tobetter » Sat May 02, 2020 10:31 pm

20200502 - Netboot Installer
Ubuntu 20.04 Netboot Installer (20200502) is now available, this will help you to install Ubuntu 20.04 on ODROID-C4.

Instructions:
1. Download the Netboot Installer image and flash to eMMC using Etcher.
2. Change the values in the file 'preseed.ini' such as default user account or its password, which type of OS you want to install.
3. Attach the flashed eMMC on the ODROID-C4.
4. Attach USB keyboard and HDMI display and power on, then the Netboot Installer will start.

Known issues:
1. You can not install and run on Ubuntu 20.04 from Micro SD yet since the mainline kernel for ODROID-C4 does not support it.
2. Another couple of commands are required to finish the installation when Ubuntu 20.04 Gnome Desktop is installed. This will enable Wayland ARM Mali driver and audio output to HDMI.

Code: Select all

$ sudo apt update
$ sudo apt install mali-bifrost-wayland-driver ubuntu-desktop
$ sudo reboot
3. If you are not able to open gnome-terminal after installing, you need to add LC_ALL="en_US.UTF-8" in the file /etc/default/local. You can add this after opening a terminal with Ctrl-Alt-F2 or Ctrl-Alt-F3 from Gnome Desktop. This is a known issue and randomly happens at the first fresh installation.
Last edited by tobetter on Sun May 03, 2020 10:03 am, edited 2 times in total.
These users thanked the author tobetter for the post (total 2):
odroidn2user (Sun May 03, 2020 2:51 am) • mad_ady (Wed May 20, 2020 10:11 pm)

User avatar
emk2203
Posts: 55
Joined: Fri Oct 16, 2015 12:29 am
languages_spoken: english, german
ODROIDs: C1+, C2, XU4, HC1, HC2, N2
Has thanked: 15 times
Been thanked: 0
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by emk2203 » Sun May 03, 2020 12:35 am

ubuntu-20.04-minimal-odroidc4-20200421.img.xz works for me on the microSD as well. No problems. But just a apt full-upgrade which installs a new 5.4 and your 5.7 kernel renders the system unbootable. Maybe there's some configuration in your 20200421 kernel version which works for microSD?

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sun May 03, 2020 2:57 am

Awesome! There now is an installer!!

They work so well on the N2, great you found a way to bring them to the C4!

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sun May 03, 2020 5:07 pm

tobetter wrote:
Sat May 02, 2020 10:31 pm
3. If you are not able to open gnome-terminal after installing, you need to add LC_ALL="en_US.UTF-8" in the file /etc/default/local. You can add this after opening a terminal with Ctrl-Alt-F2 or Ctrl-Alt-F3 from Gnome Desktop. This is a known issue and randomly happens at the first fresh installation.
So, I flashed the new installer to the eMMC and used the installer to install 20.04 Ubuntu / Gnome.
I also got bitten by the terminal bug.
There is a way to edit the /etc/default/locale file without the command line thing.

From the Ubuntu desktop, press Alt+F2.
There is a popup 'Run a Command', then enter:

Code: Select all

gedit admin:///etc/default/locale
Yes, that is three slashes in a row there, and it is locale with the e at the end.
It opens the gedit text editor, then asks for your password and then opens de /etc/default/locale file for editing.
Add:

Code: Select all

LC_ALL="en_US.UTF-8"
Press save. Close gedit.
Log out, log in and the terminal app works.
Last edited by odroidn2user on Sun May 03, 2020 6:01 pm, edited 1 time in total.
These users thanked the author odroidn2user for the post:
tobetter (Sun May 03, 2020 5:16 pm)

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by odroidn2user » Sun May 03, 2020 5:26 pm

OK, flashed the installer to eMMC. The defaults here are a minimal install, using username and password 'odroid'.
I edited the preseed.ini on the eMMC to use my username, password and I set a full name (without using spaces). I opted for the minimal install.

Plugged in the eMMC to the C4, added keyboard, hdmi, power. It booted up the installer, then proceeded to install an (almost) fully updated Ubuntu 20.04 image on its own. Did a reboot, and done. A login prompt.
All worked perfectly fine!

I noticed there were a few updates still.

Code: Select all

sudo apt update
sudo apt upgrade
I installed ubuntu-desktop (without the wayland thing at first), using:

Code: Select all

sudo apt install ubuntu-desktop
Worked fine as well. Took a while (I have slow internet, downloads about 750 mb) but a fully up-to-date Ubuntu desktop (Gnome 3 with ubuntu theming) got installed. A 'sudo reboot' after the installation completed and it booted into GDM3 de ubuntu login manager. I even spotted the ubuntu bootsplash during the boot. Nice, the bootup looking all fancy!!

Gnome 3 worked, all nicely themed. Not very fast / responsive.
I noticed the terminal didn't load. So fixed that, as described in the previous post.
Proceeded to install the Wayland 3D GPU driver.

Code: Select all

sudo apt install mali-bifrost-wayland-driver
It completed its work. Did the reboot. And ... it didn't reboot.
Had to pull the power cord, plugged it back in. It booted into the GDM graphical login.
Clicked on my name (nice, that preseed.ini thing really works wonders), chose the Ubuntu Wayland session using circle-icon bottom right of screen.
It loaded to a hardware accelerated desktop, with smooth animations and all. Awesome!!

Now, still need to do the MOZ_ENABLE_WAYLAND thing to get Firefox to use Wayland. That's however normal for Firefox on Wayland.
I enabled it by adding 'export MOZ_ENABLE_WAYLAND=1' both ~/.bashrc and ~/.profile at the bottom of the file. Still have to find out which of the two I really need to edit.
Strange enough Firefox seems to have regressed a little, as it takes another second for it to slot into its Wayland frame. That is a nice new (or rather: old) Firefox bug.

Also, I could without any issues use the settings app to correct the timezone now, and the installation of languages worked correctly now.
The installer solves some configuration issues from the '20200501 - Korean Labour day Edition' image.

And you can install the Ubuntu/Gnome Software Center using:

Code: Select all

sudo apt install gnome-software
Be aware that the Software Center now favors snap packages, which are a bit of a mixed bag.

MPV plays video quite nicely!

And QT apps (I tested Clementine) now show with the right window decoration and pretty decent theming.
First time you open it, it takes a little while to load. Not sure why.

This installer seems to be working on pure magic! Resulting in a wonderful Ubuntu 20.04 installation, with a pretty awesome Gnome 3 setup.
That's my experience, I hope my sharing it helps someone get started.

Now, extensions...!
These users thanked the author odroidn2user for the post:
mad_ady (Sun May 03, 2020 7:08 pm)

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.4 Headless OS image

Post by tobetter » Mon May 04, 2020 6:39 pm

Linux kernel 5.7.0-rc4 is uploaded.
https://github.com/tobetter/linux/tree/odroid-5.7.y

Code: Select all

$ sudo apt update
$ sudo apt upgrade
$ sudo reboot
EDIT: When you install the Ubuntu 20.04 image for the first time, Netboot Installer is strongly recommended instead of a prebuilt image.

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by odroidn2user » Tue May 05, 2020 4:44 am

The update went through smooth for me!

hominoid
Posts: 416
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 34 times
Been thanked: 109 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by hominoid » Tue May 05, 2020 9:23 am

Thank you @tobetter for the image. FYI, I'm trying to get OpenCL running and get some strange errors using the mali-bifrost-fbdev-driver and mali-fbdev-driver-dev.
clinfo can see the gpu but is having trouble querying device info.

Code: Select all

hominoid@odroid-c4:[/usr/lib/aarch64-linux-gnu]: clinfo
Number of platforms                               1
  Platform Name                                   ARM Platform
  Platform Vendor                                 ARM
  Platform Version                                OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory
  Platform Extensions function suffix             ARM

  Platform Name                                   ARM Platform
Number of devices                                 1
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Device Name                                     <printDeviceInfo:0: get CL_DEVICE_NAME size : error -6>
  Device Vendor                                   ARM
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Device Vendor ID                                <printDeviceInfo:2: get CL_DEVICE_VENDOR_ID : error -6>
  Device Version                                  OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Driver Version                                  2.0
  Device OpenCL C Version                         OpenCL C 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max compute units                               <printDeviceInfo:17: get CL_DEVICE_MAX_COMPUTE_UNITS : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max clock frequency                             <printDeviceInfo:21: get CL_DEVICE_MAX_CLOCK_FREQUENCY : error -6>
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max work item sizes                             <printDeviceInfo:36: get number of CL_DEVICE_MAX_WORK_ITEM_SIZES : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max work group size                             <printDeviceInfo:37: get CL_DEVICE_MAX_WORK_GROUP_SIZE : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Preferred work group size multiple              <getWGsizes:1171: create context : error -6>
  Preferred / native vector sizes                 
    char                                                16 / 4       
    short                                                8 / 2       
    int                                                  4 / 1       
    long                                                 2 / 1       
    half                                                 8 / 2        (cl_khr_fp16)
    float                                                4 / 1       
    double                                               0 / 0        (n/a)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Global memory size                              <printDeviceInfo:77: get CL_DEVICE_GLOBAL_MEM_SIZE : error -6>
  Error Correction support                        No
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max memory allocation                           <printDeviceInfo:83: get CL_DEVICE_MAX_MEM_ALLOC_SIZE : error -6>
  Unified memory for Host and Device              Yes
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Shared Virtual Memory (SVM) capabilities        <printDeviceInfo:86: get CL_DEVICE_SVM_CAPABILITIES : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Shared Virtual Memory (SVM) capabilities (ARM)  <printDeviceInfo:87: get CL_DEVICE_SVM_CAPABILITIES_ARM : error -6>
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             0
  Global Memory cache type                        Read/Write
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Global Memory cache size                        <printDeviceInfo:100: get CL_DEVICE_GLOBAL_MEM_CACHE_SIZE : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Global Memory cache line size                   <printDeviceInfo:101: get CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE : error -6>
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            65536 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   32 bytes
    Pitch alignment for 2D image buffers          64 pixels
    Max 2D image size                             65536x65536 pixels
    Max 3D image size                             65536x65536x65536 pixels
    Max number of read image args                 128
    Max number of write image args                64
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    1
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max number of constant args                     8
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                2097152 (2MiB)
    Max size                                      16777216 (16MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    No
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Profiling timer resolution                      <printDeviceInfo:148: get CL_DEVICE_PROFILING_TIMER_RESOLUTION : error -6>
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  ARM Platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [ARM]
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContext(NULL, ...) [default]            <checkNullCtx:2758: create context with device from default platform : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  <checkNullCtxFromType:2809: create context from type CL_DEVICE_TYPE_DEFAULT : error -6>
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  <checkNullCtxFromType:2809: create context from type CL_DEVICE_TYPE_GPU : error -6>
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  <checkNullCtxFromType:2809: create context from type CL_DEVICE_TYPE_ALL : error -6>

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1
To rule out the icd_loader I replaced the repository version with a fresh build of the latest KhronosGroup OpenCL-ICD-Loader, same errors. I believe the problem is likely the mali driver. Going to look around for a different version of mali driver, any insight or suggestions? Could this be a kernel config issue?
These users thanked the author hominoid for the post:
alansrobotlab (Tue May 12, 2020 5:07 am)

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by tobetter » Tue May 05, 2020 5:35 pm

hominoid wrote:
Tue May 05, 2020 9:23 am
Thank you @tobetter for the image. FYI, I'm trying to get OpenCL running and get some strange errors using the mali-bifrost-fbdev-driver and mali-fbdev-driver-dev.
clinfo can see the gpu but is having trouble querying device info.

Code: Select all

hominoid@odroid-c4:[/usr/lib/aarch64-linux-gnu]: clinfo
Number of platforms                               1
  Platform Name                                   ARM Platform
  Platform Vendor                                 ARM
  Platform Version                                OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory
  Platform Extensions function suffix             ARM

  Platform Name                                   ARM Platform
Number of devices                                 1
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Device Name                                     <printDeviceInfo:0: get CL_DEVICE_NAME size : error -6>
  Device Vendor                                   ARM
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Device Vendor ID                                <printDeviceInfo:2: get CL_DEVICE_VENDOR_ID : error -6>
  Device Version                                  OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Driver Version                                  2.0
  Device OpenCL C Version                         OpenCL C 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max compute units                               <printDeviceInfo:17: get CL_DEVICE_MAX_COMPUTE_UNITS : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max clock frequency                             <printDeviceInfo:21: get CL_DEVICE_MAX_CLOCK_FREQUENCY : error -6>
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max work item sizes                             <printDeviceInfo:36: get number of CL_DEVICE_MAX_WORK_ITEM_SIZES : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max work group size                             <printDeviceInfo:37: get CL_DEVICE_MAX_WORK_GROUP_SIZE : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Preferred work group size multiple              <getWGsizes:1171: create context : error -6>
  Preferred / native vector sizes                 
    char                                                16 / 4       
    short                                                8 / 2       
    int                                                  4 / 1       
    long                                                 2 / 1       
    half                                                 8 / 2        (cl_khr_fp16)
    float                                                4 / 1       
    double                                               0 / 0        (n/a)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Global memory size                              <printDeviceInfo:77: get CL_DEVICE_GLOBAL_MEM_SIZE : error -6>
  Error Correction support                        No
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Max memory allocation                           <printDeviceInfo:83: get CL_DEVICE_MAX_MEM_ALLOC_SIZE : error -6>
  Unified memory for Host and Device              Yes
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Shared Virtual Memory (SVM) capabilities        <printDeviceInfo:86: get CL_DEVICE_SVM_CAPABILITIES : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Shared Virtual Memory (SVM) capabilities (ARM)  <printDeviceInfo:87: get CL_DEVICE_SVM_CAPABILITIES_ARM : error -6>
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             0
  Global Memory cache type                        Read/Write
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Global Memory cache size                        <printDeviceInfo:100: get CL_DEVICE_GLOBAL_MEM_CACHE_SIZE : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Global Memory cache line size                   <printDeviceInfo:101: get CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE : error -6>
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            65536 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   32 bytes
    Pitch alignment for 2D image buffers          64 pixels
    Max 2D image size                             65536x65536 pixels
    Max 3D image size                             65536x65536x65536 pixels
    Max number of read image args                 128
    Max number of write image args                64
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    1
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max number of constant args                     8
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                2097152 (2MiB)
    Max size                                      16777216 (16MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    No
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  Profiling timer resolution                      <printDeviceInfo:148: get CL_DEVICE_PROFILING_TIMER_RESOLUTION : error -6>
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  ARM Platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [ARM]
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContext(NULL, ...) [default]            <checkNullCtx:2758: create context with device from default platform : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  <checkNullCtxFromType:2809: create context from type CL_DEVICE_TYPE_DEFAULT : error -6>
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  <checkNullCtxFromType:2809: create context from type CL_DEVICE_TYPE_GPU : error -6>
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  <checkNullCtxFromType:2809: create context from type CL_DEVICE_TYPE_ALL : error -6>

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1
To rule out the icd_loader I replaced the repository version with a fresh build of the latest KhronosGroup OpenCL-ICD-Loader, same errors. I believe the problem is likely the mali driver. Going to look around for a different version of mali driver, any insight or suggestions? Could this be a kernel config issue?
I've not looked into OpenCL yet, will try sometime soon.
By the way, where did you get the package mali-bifrost-fbdev-driver? From my repository?
Also what I am wondering is that the Mali driver must be based on fbdev rather than Wayland or GBM?
These users thanked the author tobetter for the post:
alansrobotlab (Tue May 12, 2020 5:07 am)

User avatar
Faradn
Posts: 50
Joined: Sun Feb 10, 2019 2:19 am
languages_spoken: english
ODROIDs: XU4 N2 C4
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by Faradn » Wed May 06, 2020 1:14 am

OS image: ubuntu-20.04-server-odroidc4-20200501 w/Mate' DE.

Got past the authentication issue.

Issues:
1. Software & Updates: Dialog box pops up - "Internal Error", app won't run.
Cannot check repos.

2. Software Updater: Dialog box pops up - "You stopped the check for updates."
Pressed [Check Again] - Nothing happens, dialog box re-paints.
Pressed [OK] - dialog box closes.

3. gnome tweak tool: Cannot install, "no installation candidate"
gnome-software -+-
synaptic: -+-
aptitude: -+-
dconf-editor -+-
chrome-gnome-shell -+-

3. gnome extensions: Added Firefox addon but extensions.gnome.org says no connector installed.
Cannot add any extensions.

HDMI only possible?

OTT very impressive.

/Faradn

hominoid
Posts: 416
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 34 times
Been thanked: 109 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by hominoid » Wed May 06, 2020 4:29 am

tobetter wrote:
Tue May 05, 2020 5:35 pm
I've not looked into OpenCL yet, will try sometime soon.
By the way, where did you get the package mali-bifrost-fbdev-driver? From my repository?
From the repository.

Code: Select all

hominoid@odroid-c4:[/usr/lib/aarch64-linux-gnu]: sudo apt list mali*
Listing... Done
mali-bifrost-dkms/stable 24.0+202005011205~focal arm64
mali-bifrost-fbdev-driver/stable 5:0.1-5+202004131528~focal arm64
mali-bifrost-wayland-driver/stable 5:0.1-5+202004131528~focal arm64
mali-fbdev-driver-dev/stable,now 5:0.1-5+202004131528~focal arm64 [installed]
mali-midgard-dkms/focal 16.0+pristine-4 all
mali-midgard-wayland-driver/stable 5:0.1-5+202004131528~focal arm64
mali-utgard-fbdev-driver/stable 5:0.1-5+202004131528~focal arm64
mali-wayland-driver-dev/stable 5:0.1-5+202004131528~focal arm64
maliit-dbus-activation/focal 0.99.1+git20151118+62bd54b-0ubuntu26 all
maliit-framework-dbg/focal 0.99.1+git20151118+62bd54b-0ubuntu26 arm64
maliit-framework-dev/focal 0.99.1+git20151118+62bd54b-0ubuntu26 arm64
maliit-framework/focal 0.99.1+git20151118+62bd54b-0ubuntu26 arm64
maliit-inputcontext-gtk2/focal 0.99.1-0ubuntu2 arm64
maliit-inputcontext-gtk3/focal 0.99.1-0ubuntu2 arm64
maliit-inputcontext-qt4/focal 0.99.1+git20151118+62bd54b-0ubuntu26 all
tobetter wrote:
Tue May 05, 2020 5:35 pm
Also what I am wondering is that the Mali driver must be based on fbdev rather than Wayland or GBM?
I tried mali-bifrost-fbdev-driver because it had libMali.so and mali-fbdev-driver-dev didn't seem to have a user space driver.

User avatar
Faradn
Posts: 50
Joined: Sun Feb 10, 2019 2:19 am
languages_spoken: english
ODROIDs: XU4 N2 C4
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by Faradn » Wed May 06, 2020 4:48 am

Faradn wrote:
Wed May 06, 2020 1:14 am
OS image: ubuntu-20.04-server-odroidc4-20200501 w/Mate' DE.

Got past the authentication issue.

Issues:
1. Software & Updates: Dialog box pops up - "Internal Error", app won't run.
Cannot check repos.

2. Software Updater: Dialog box pops up - "You stopped the check for updates."
Pressed [Check Again] - Nothing happens, dialog box re-paints.
Pressed [OK] - dialog box closes.

3. gnome tweak tool: Cannot install, "no installation candidate"
gnome-software -+-
synaptic: -+-
aptitude: -+-
dconf-editor -+-
chrome-gnome-shell -+-

3. gnome extensions: Added Firefox addon but extensions.gnome.org says no connector installed.
Cannot add any extensions.

HDMI only possible?

OTT very impressive.

/Faradn
Never mind....
I installed the latest netinstall release and so far so good.
Software Settings is still acting up.
It locks up.

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by tobetter » Wed May 06, 2020 8:41 am


hominoid wrote:
tobetter wrote:
Tue May 05, 2020 5:35 pm
I've not looked into OpenCL yet, will try sometime soon.
By the way, where did you get the package mali-bifrost-fbdev-driver? From my repository?
From the repository.

Code: Select all

hominoid@odroid-c4:[/usr/lib/aarch64-linux-gnu]: sudo apt list mali*
Listing... Done
mali-bifrost-dkms/stable 24.0+202005011205~focal arm64
mali-bifrost-fbdev-driver/stable 5:0.1-5+202004131528~focal arm64
mali-bifrost-wayland-driver/stable 5:0.1-5+202004131528~focal arm64
mali-fbdev-driver-dev/stable,now 5:0.1-5+202004131528~focal arm64 [installed]
mali-midgard-dkms/focal 16.0+pristine-4 all
mali-midgard-wayland-driver/stable 5:0.1-5+202004131528~focal arm64
mali-utgard-fbdev-driver/stable 5:0.1-5+202004131528~focal arm64
mali-wayland-driver-dev/stable 5:0.1-5+202004131528~focal arm64
maliit-dbus-activation/focal 0.99.1+git20151118+62bd54b-0ubuntu26 all
maliit-framework-dbg/focal 0.99.1+git20151118+62bd54b-0ubuntu26 arm64
maliit-framework-dev/focal 0.99.1+git20151118+62bd54b-0ubuntu26 arm64
maliit-framework/focal 0.99.1+git20151118+62bd54b-0ubuntu26 arm64
maliit-inputcontext-gtk2/focal 0.99.1-0ubuntu2 arm64
maliit-inputcontext-gtk3/focal 0.99.1-0ubuntu2 arm64
maliit-inputcontext-qt4/focal 0.99.1+git20151118+62bd54b-0ubuntu26 all
tobetter wrote:
Tue May 05, 2020 5:35 pm
Also what I am wondering is that the Mali driver must be based on fbdev rather than Wayland or GBM?
I tried mali-bifrost-fbdev-driver because it had libMali.so and mali-fbdev-driver-dev didn't seem to have a user space driver.
If you use the Mali package from my repository, please use mali-bifrost-wayland-driver that has the recent version. Since Amlogic does not update fbdev driver anymore, its version is based on r12p0 while Wayland/GBM is based on r16p0. Wayland driver also works on headless server setup.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post (total 3):
hominoid (Wed May 06, 2020 9:05 am) • rooted (Wed May 06, 2020 11:34 am) • emk2203 (Sun May 10, 2020 6:18 am)

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by tobetter » Fri May 08, 2020 1:13 pm

New review of Ubuntu 20.04 Desktop by ETA PRIME.
These users thanked the author tobetter for the post (total 3):
odroid (Fri May 08, 2020 1:30 pm) • Luke.go (Fri May 08, 2020 2:39 pm) • brad (Sat May 09, 2020 12:32 am)

odroidn2user
Posts: 212
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by odroidn2user » Fri May 08, 2020 10:40 pm

tobetter wrote:
Fri May 08, 2020 1:13 pm
New review of Ubuntu 20.04 Desktop by ETA PRIME.
Good review, positive! Congrats!

I like the part where ETA wants to play 1080p 60fps. Seriously!? That's what you test?

For anyone reading: use the Firefox addon 'h264ify', and disable 60fps video. You can then play 1080p youtube video just fine.
It really is amazing that 720p60 works, but 1080p60 just isn't going to happen on any of these boards.
These users thanked the author odroidn2user for the post:
tobetter (Fri May 08, 2020 10:50 pm)

User avatar
rooted
Posts: 7640
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 677 times
Been thanked: 183 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by rooted » Fri May 08, 2020 10:51 pm

He has unreal expectations, just like always trying to test Big Buck Bunny 4K @ 60fps h264 which none of these devices supports then saying it can't play 4K @ 60fps....

User avatar
cdu13a
Posts: 290
Joined: Tue Jan 20, 2015 3:33 pm
languages_spoken: english
ODROIDs: C1, C2, XU4, HC1, N2
Has thanked: 10 times
Been thanked: 76 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by cdu13a » Fri May 08, 2020 11:10 pm

It's a great review, but as I have said before it would be great if somebody did reviews of SBC with the same level of detail and know how as Gamer Nexus does for PC.
These users thanked the author cdu13a for the post:
skreeves (Sat May 09, 2020 6:27 pm)

skreeves
Posts: 3
Joined: Thu Apr 17, 2014 8:30 pm
languages_spoken: english
ODROIDs: U3, C1, N2, C4
Location: Arizona, USA
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by skreeves » Sat May 09, 2020 6:23 pm

After booting the 20200502 netboot installer and installing ubuntu-desktop, how do you enable the RTC shield? The method described in the wiki doesn't work, even after adjusting the location of the dtb file.

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by tobetter » Sat May 09, 2020 6:28 pm

The instruction in the Wiki is based on the kernel 4.9 that is Hardkernel's stock kernel for ODROID-N2/C4. The Ubuntu you have installed is based on 5.7-rc*, the instruction would not work. I've worked to support the peripherals on 5.4 kernel, but moved to 5.7 recently as unfinished. Keep adding more features to 5.7 if requested.

"Tapatalk wishes you to have fun with ODROID"


User avatar
CoolGames
Posts: 55
Joined: Sun Nov 24, 2019 3:07 am
languages_spoken: english
ODROIDs: Dec 25 N2
Has thanked: 5 times
Been thanked: 2 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by CoolGames » Sun May 10, 2020 3:21 am

tobetter wrote:
Sat May 09, 2020 6:28 pm
The instruction in the Wiki is based on the kernel 4.9 that is Hardkernel's stock kernel for ODROID-N2/C4. The Ubuntu you have installed is based on 5.7-rc*, the instruction would not work. I've worked to support the peripherals on 5.4 kernel, but moved to 5.7 recently as unfinished. Keep adding more features to 5.7 if requested.

"Tapatalk wishes you to have fun with ODROID"
I'll cover my eyes to protect them from the blinding flash from installation !!!

Code: Select all

$ sudo apt install mali-bifrost-wayland-driver
...

...
$ sudo apt install ubuntustudio-desktop
...


...
0 upgraded, 1390 newly installed, 0 to remove and 0 not upgraded.
Need to get 741 MB of archives.
After this operation, 3341 MB of additional disk space will be used.
Do you want to continue? [Y/n] 


Image

I'm reading "the Book"

By The Way as always I really like your work !!!
Last edited by CoolGames on Sun May 10, 2020 5:22 am, edited 1 time in total.

User avatar
CoolGames
Posts: 55
Joined: Sun Nov 24, 2019 3:07 am
languages_spoken: english
ODROIDs: Dec 25 N2
Has thanked: 5 times
Been thanked: 2 times
Contact:

Silent Studio - Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by CoolGames » Sun May 10, 2020 5:13 am

It's Working !!!

Next is the audio issues that are worked around with cheap
refurbished USB gaming headphones from Turtle Beach !!!


Image is from Bionic Ubuntu Studio wallpapers 1604_SimpleUS_AdamTuba.png with text added with Inkscape and scaled 50% from 1920 by 1080 with Gimp.

Odroid_N2_HDMI_US.20.04.5.lts.png
It's working !!!
Odroid_N2_HDMI_US.20.04.5.lts.png (546.78 KiB) Viewed 1619 times

User avatar
tobetter
Posts: 5101
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 160 times
Been thanked: 493 times
Contact:

Re: Ubuntu 20.04 (Focal Fossa) + Linux 5.x Headless OS image

Post by tobetter » Sun May 10, 2020 5:39 am

@CoolGames, well...I would try to run Ubuntu Studio sometime soon. It looks a bit new for me...Are you trying to use Ubuntu Studio on ODROID-C4 and ODROID-N2 both?

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: specs and 0 guests