Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

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

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by tobetter »

tkcmd wrote:
Sat May 08, 2021 8:56 pm
Hello, I'm in need of some help here.
After doing an update & rebooting my desktop environment was showing serious graphic corruption to not working state.
dmesg is showing this mali related messages

Odroid N2 (non plus)

Code: Select all

Linux focal 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~focal (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
Anyone else experiencing the same issue and knows how to work around it ?
What do you have with this command?

Code: Select all

lsmod | grep panfrost

tkcmd
Posts: 8
Joined: Fri Aug 14, 2020 5:50 am
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by tkcmd »

Complete blank.

Code: Select all

odroid@focal:~$ lsmod | grep panfrost
odroid@focal:~$
tobetter wrote:
Sat May 08, 2021 9:21 pm
tkcmd wrote:
Sat May 08, 2021 8:56 pm
Hello, I'm in need of some help here.
After doing an update & rebooting my desktop environment was showing serious graphic corruption to not working state.
dmesg is showing this mali related messages

Odroid N2 (non plus)

Code: Select all

Linux focal 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~focal (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
Anyone else experiencing the same issue and knows how to work around it ?
What do you have with this command?

Code: Select all

lsmod | grep panfrost

tkcmd
Posts: 8
Joined: Fri Aug 14, 2020 5:50 am
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by tkcmd »

ok fixed it by reinstalling mali-bifrost using

sudo apt install --reinstall mali-bifrost-dkms

don't have any idea what caused the original issue...
tkcmd wrote:
Sat May 08, 2021 10:11 pm
Complete blank.

Code: Select all

odroid@focal:~$ lsmod | grep panfrost
odroid@focal:~$
tobetter wrote:
Sat May 08, 2021 9:21 pm
tkcmd wrote:
Sat May 08, 2021 8:56 pm
Hello, I'm in need of some help here.
After doing an update & rebooting my desktop environment was showing serious graphic corruption to not working state.
dmesg is showing this mali related messages

Odroid N2 (non plus)

Code: Select all

Linux focal 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~focal (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
Anyone else experiencing the same issue and knows how to work around it ?
What do you have with this command?

Code: Select all

lsmod | grep panfrost

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

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by tobetter »

20210801
  • The default kernel version is switched to 5.13 from 5.11

Code: Select all

$ uname -a
Linux ubuntu 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202107302210~focal (2021-07-30) aarch64 aarch64 aarch64 GNU/Linux
  • mali-bifrost-wayland-driver and odroid-alsa will be installed by default when you Ubuntu 20.04 is installed using the Netboot Installer
  • The default audio output device will be set to HDMI by default on Ubuntu Gnome Desktop
These users thanked the author tobetter for the post (total 3):
brad (Sun Aug 01, 2021 2:36 pm) • odroid (Mon Aug 02, 2021 9:27 am) • bright_plastik (Mon Aug 30, 2021 6:20 am)

rmorales8303
Posts: 15
Joined: Fri Jan 17, 2020 2:05 am
languages_spoken: english
ODROIDs: Odroid XU4
Odroid N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by rmorales8303 »

tobetter wrote:
Sun Aug 01, 2021 1:20 pm
20210801
  • The default kernel version is switched to 5.13 from 5.11

Code: Select all

$ uname -a
Linux ubuntu 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202107302210~focal (2021-07-30) aarch64 aarch64 aarch64 GNU/Linux
  • mali-bifrost-wayland-driver and odroid-alsa will be installed by default when you Ubuntu 20.04 is installed using the Netboot Installer
  • The default audio output device will be set to HDMI by default on Ubuntu Gnome Desktop
Hello and thanks for your efforts.
I have a couple of days trying to setup the Ubuntu 20.04.3 LTS for an Odroid N2. I'm trying to solve an issue with the usb ports, the issue is posted in this link viewtopic.php?f=181&t=35459&p=333518#p333518. I was suggested to upgrade the kernel and see if that solves the issue. For the testing I need the WiringPI, but I have not been able to make it work.

I tried to compile the example in the wiki page for the odroid, and I'm getting this error:

/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/libwiringPi.so: undefined reference to `gpiod_line_find'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/libwiringPi.so: undefined reference to `gpiod_line_set_value'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/libwiringPi.so: undefined reference to `gpiod_line_bias'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/libwiringPi.so: undefined reference to `gpiod_line_get_value'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/libwiringPi.so: undefined reference to `gpiod_line_request'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/libwiringPi.so: undefined reference to `gpiod_line_release'


If a run the command gpio -v I got this output
gpio version: 3.10
Copyright (c) 2012-2017 Gordon Henderson, 2017-2021 Hardkernel Co., Ltd.
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

ODROID Board Details:
Type: ODROID-N2/N2Plus, Revision: 01, Memory: 4096MB
Maker: Hardkernel, Chip-Vendor: AMLogic
* Current devices' kernel version: 5.11.0-odroid-arm64
* Device tree is enabled.
*--> Hardkernel ODROID-N2
* gpiod mode is enabled.
*--> Currently not all the functions working on gpiod mode.
*--> If the implemented functions are not working well, check the installed libgpiod version.
*--> Required libgpiod-dev version: 1.6.2


I can see the libgpiod-dev required version is 1.6.2. If I run the command sudo apt-get install libgpiod-dev I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgpiod-dev is already the newest version (5:1.6.2-1+202105111348~focal).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


I can see that the version is 1.6.2-1+202105111348~focal do you know is this version is valid for the required version 1.6.2? or ¿do you know why compiling with WiringPi is showing errors like undefined reference to `gpiod_line_find'

I would really appreciate any help.

odroidn2user
Posts: 408
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 115 times
Been thanked: 107 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by odroidn2user »

OK, after a little adventure with Manjaro ARM, I decided to give tobetters awesome image another go.
Finding the correct download links in this thread is difficult, but tobetter has an awesome docs site:

You can download (minimal) images here:
http://docs.linuxfactory.or.kr/install/ ... image.html

It seems the Odroid N2+ images work on the N2 as well.

The problem with the image is, is that you can't really set the root settings in Gnome. So, installing languages for example is broken, setting timezone is a no go.
There are command prompt solutions, but... yeah...

I then tried finding the excellent installer images, to install Ubuntu 20.04 to emmc. But there isn't actually a link for downloading installer images anywhere on the docs site I could find.
So, using the bitly link with an additional + gives an idea on where to look, I found downloadable installer images here:
http://ppa.linuxfactory.or.kr/installer/ODROID-N2/

The problem however then is, that the most recent installer doesn't actually work:
focal-odroid-n2_202107261508_arm64_netinst.img
So don't get that one, it doesn't load. Also, I notice it is larger than the previous ones, so perhaps something is wrong there.

The good news is that the previous installer does work, so at the time of writing, use that one:
focal-odroid-n2_202010171508_arm64_netinst.img

You can flash the image to an SD card. You can set the .ini file what you want.
I opted for an Ubuntu Gnome desktop and set my username.
And the thing loaded well and downloaded and installed the Ubuntu Gnome desktop and created the user.
And the result actually loaded and the user is configurable, as in I could install languages, set timezones, etc. Yes!!
The installer is excellent stuff, I can't mention enough just how amazingly good the installer is.

OK, the terminal thing, it is documented here:
http://docs.linuxfactory.or.kr/troubles ... ening.html

This is still an issue, and it doesn't say how you edit the file without a working terminal.
I switched to a command prompt with Ctrl + Alt + F1 and F2 and such. And edited it there. You can switch between the Ubuntu desktop session and the command prompt.
The Alt F1 / F2 / F3 thing works. And you can edit the file there.

And it does not come with the ARM Mali Wayland drivers by default.
So, you have to do that yourself / manually, as described here:
http://docs.linuxfactory.or.kr/guides/gpu_bifrost.html
That works right. Remember to log in using Gnome Wayland after the install.
Gnome on X11 is no more.

Also there are visual glitches in Firefox with checkboxes and buttons that have a black line, and also tabs have a black line that appears and disappears.
Any idea how to repair that?

The gnome extensions available with apt/apt-get don't seem to actually work.
So you have to use site: https://extensions.gnome.org/
You have to installed the Firefox add-on, as well as apt install the chrome-gnome-shell package.
Oh, and install the gnome-tweak package, to be able to use them.
I like this one: https://extensions.gnome.org/extension/ ... -to-panel/ as it normalizes gnome into something usable.

Also, I like a fresh Libreoffice, and version 6 is not version 7.
You can use this ppa: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa
That works as described, and you get a fresh Libreoffice 7.

Then... Music maestro!?
I have a network share with some MP3s, and it appears I am the only user in the world who has mp3s on a network share.
Rhythmbox doesn't handle that well. Lollypop neither. Elisa does, but is very very KDE, so that's a no on Ubuntu.
So... Clementine. That usually works (like on Manjaro), but... Not here....

QT support is broken. Badly.

Code: Select all

__logging_message__19:01:43.554 WARN  unknown                          Could not find the Qt platform plugin "wayland" in ""
__logging_message__19:01:44.493 WARN  unknown                          libpng warning: iCCP: known incorrect sRGB profile
Segmentatiefout (geheugendump gemaakt)
Any idea how to fix this?

Update: OK, an install of the qtwayland5 package makes it go.

Code: Select all

sudo apt install qtwayland5
But then it is ugly, and doesn't integrate in the Gnome environment in anyway. Which means: ugliness all around for QT.
And no integration with gnome, means no access to my share.
Which means... Clementine is useless.
Playing MP3s with VLC... ?

Update 2: No VLC either. Doesn't work. It depends, of course, on QT. Which doesn't work right.

Code: Select all

main libvlc: Vlc draait met de standaardinterface. Gebruik 'cvlc' om vlc zonder interface te gebruiken.
Segmentatiefout (geheugendump gemaakt)
So, playing mp3 on a share is just not supported. So no music...
Really??? Come on... Hmm... This doesn't look good.
These users thanked the author odroidn2user for the post:
istanbulls (Wed Sep 15, 2021 5:12 am)

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

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by istanbulls »

Thanks again for a great explanation and good information. :)
There are many variants of Linux OS for N2 but what @tobetter does is always top priority for me. And I know these OSes will always get updates and evolve.
Why don't you install 21.04, it gives me better experience than 20.04.
odroidn2user wrote:
Wed Sep 15, 2021 2:02 am
Also there are visual glitches in Firefox with checkboxes and buttons that have a black line, and also tabs have a black line that appears and disappears.
Any idea how to repair that?
'sudo apt install gnome' might work for this issue, you should try it.
I installed extra Yaru, I think I have a more stable desktop experience.

Code: Select all

sudo apt install git meson sassc libglib2.0-dev libxml2-utils
git clone https://github.com/ubuntu/yaru
cd half
meson build
sudo ninja -C build install

User avatar
mad_ady
Posts: 9681
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: 609 times
Been thanked: 721 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by mad_ady »

I have a network share with some MP3s, and it appears I am the only user in the world who has mp3s on a network share.
Rhythmbox doesn't handle that well. Lollypop neither. Elisa does, but is very very KDE, so that's a no on Ubuntu.
You're not the only one with mp3s on a network share :) But most prefer mounting their shares and all players access the files as if they are local. I recommend autofs for the job, since it mounts shares on demand.

odroidn2user
Posts: 408
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 115 times
Been thanked: 107 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by odroidn2user »

OK, tried out the 21.04 Hisute installer, that works a lot better.
I downloaded and flashed to SD card this image: hirsute-odroid-n2_20210408171508_arm64_netinst.img
From here: http://ppa.linuxfactory.or.kr/installer/ODROID-N2/

Did the .ini settings after flashing it. Booted it in the Odroid N2+. And that installer worked perfectly!
I got a wonderful 21.04 Ubuntu Gnome Desktop environment. And Panfrost with Wayland seems to work at least as good as Mali Bifrost with Wayland. So that is a big plus!
QT apps worked out of the box, I tested both Clementine and VLC, with integration, so correct window decoration, file open dialogues, etc.

I tried the autofs solution, I found this guide:
https://externalmem.wordpress.com/2021/ ... ba-shares/
And that works largely as described, except for the mentions of ${HOME} and ${USER}, I had to use the actual home folder and user.
And with Clementine going, the autofs thing working, I got access to my music.

But then the audio. I use a dongle, Sound Card Adapter 3 x Aux USB Orico SKT3.
Like this one: https://alnect.net/images/20200503081519.jpg (Purely for illustration, I did not buy it there.)
And with that plugged in, audio is completely broken. Nothing is found in Gnome.
While on Manjaro ARM it works and on other X86 linux it works as well.

Hmm. It seems that if I boot without it, then plug it in, it works? Strange.

Strange enough, the apt install gnome extensions still not work on 21.04. Seems extensions of an older gnome?
Still have to use the gnome extensions website. But then: it works. The dash-to-panel does the trick.

So, big improvements.
Even though I like my LTS, the 21.04 Hirsute is indeed a big improvement.

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

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by istanbulls »

I am using the HDMI audio output connected to the AVR. I have a voice controlled air mouse-remote, I lost the sound with an update last month. And then I realized that when the remote control is plugged in, the hdmi sound goes out and the microphone of the remote is activated.
I struggled for 1 week because of this problem, I installed many new OS. :)
Now when I start the system, I remove the receiver of the remote control, plug it in after the system boots up.

Maybe it can give an idea for the sound problem.

odroidn2user
Posts: 408
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 115 times
Been thanked: 107 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by odroidn2user »

Yeah, so, outside of the audio issue with the usb device, and some minor drawing glitches (black bars) mostly in Firefox, this thing rocks!
Even Lollypop decided to actually start working all of a sudden. Nice!

A fresh netinstall of Hirsute, installed the Ubuntu Gnome Desktop to my emmc. Came with Panfrost graphics driver by default. And it actually seems to reboot reliably!
Repaired the terminal. Set language packs and timezone, which worked normally! It even seems like there is a little swapfile to augment the 4G memory, a wonderful detail.
Managed to get a normal taskbar (I kinda like that thing) with the dash-to-panel gnome extension. Default colors in the terminal actually make things readable!

Used autofs to mount my music share. Got Clementine working for audio, but then Lollypop somehow finally decided to kick in, so now I got two!
Got Thunderbird. Installed Vivaldi (ARM64) as browser alternative to Firefox. LibreOffice 7 got installed automatically. Added the usual Gimp, Filezilla, youtube-dl via pip3.
The default screenshot tool works and is usable, and got an AppImage RSS reader I prefer working. All good.

MPV works, but with Wayland the user interface is a little ugly. Celluloid really seems to work well here.
Still need to get my VPN stuff working, but that's a job for another day.

All wonderful stuff. Do have to use my hdmi-to-displayport dongle to work around the hdmi-driver bug. But...
Congrats on a job well done!

odroidn2user
Posts: 408
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 115 times
Been thanked: 107 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by odroidn2user »

This is weird, does anyone else have this?
Today the normal Yaru theme shows white fonts on white backgrounds in all kinds of places.
Swapped to the Yaru-dark theme, but.... yeah.

What happens here? Anyone a clue? Why does Yaru break all of a sudden?

Strange: now the Yaru light theme works again. I switched a couple of times, no change. Then later I tried again, and it is correct again.
Hmm.

odroidn2user
Posts: 408
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 115 times
Been thanked: 107 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by odroidn2user »

OK, OpenVPN works as usual, with the default network setup that comes with the installer.
Nice!

I found out there is a hibernate option, in Gnome.
How do I get out of hibernation?

It goes into hibernation smoothly, but how do I wake the N2 up? There is no power button, obviously.

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by m_ueberall »

odroidn2user wrote:
Sun Sep 19, 2021 3:04 am
I found out there is a hibernate option, in Gnome.
How do I get out of hibernation?

It goes into hibernation smoothly, but how do I wake the N2 up? There is no power button, obviously.
I wonder… does wake-on-lan work?

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

Re: Debian/Ubuntu Netboot Installer (Feat. Ubuntu Gnome Desktop with Wayland)

Post by tobetter »

m_ueberall wrote:
Sun Sep 19, 2021 4:33 pm
odroidn2user wrote:
Sun Sep 19, 2021 3:04 am
I found out there is a hibernate option, in Gnome.
How do I get out of hibernation?

It goes into hibernation smoothly, but how do I wake the N2 up? There is no power button, obviously.
I wonder… does wake-on-lan work?
Not yet.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 14 guests