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

Post Reply
User avatar
tobetter
Posts: 8561
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 498 times
Been thanked: 1368 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: 8561
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 498 times
Been thanked: 1368 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: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 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: 600
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 365 times
Been thanked: 99 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: 9936
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: 629 times
Been thanked: 770 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: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 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: 600
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 365 times
Been thanked: 99 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: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 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: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 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: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 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: 47 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: 8561
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 498 times
Been thanked: 1368 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.

nrpetonr
Posts: 2
Joined: Thu Oct 07, 2021 1:14 am
languages_spoken: english
ODROIDs: n2
Has thanked: 1 time
Been thanked: 0
Contact:

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

Post by nrpetonr »

@tobetter, any chance that apparmor can be enabled? i am not an expert, but seems to be not cooked into the kernel. i am getting following when trying to enable it.

cat /sys/module/apparmor/parameters/enabled
N

odroid@bullseye:~$ sudo systemctl status apparmor.service
[sudo] password for odroid:
● apparmor.service - Load AppArmor profiles
Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Tue 2021-10-05 17:05:49 EDT; 20h ago
└─ ConditionSecurity=apparmor was not met
Docs: man:apparmor(7)
https://gitlab.com/apparmor/apparmor/wikis/home/

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

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

Post by tobetter »

nrpetonr wrote:
Thu Oct 07, 2021 2:13 am
@tobetter, any chance that apparmor can be enabled? i am not an expert, but seems to be not cooked into the kernel. i am getting following when trying to enable it.

cat /sys/module/apparmor/parameters/enabled
N

odroid@bullseye:~$ sudo systemctl status apparmor.service
[sudo] password for odroid:
● apparmor.service - Load AppArmor profiles
Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Tue 2021-10-05 17:05:49 EDT; 20h ago
└─ ConditionSecurity=apparmor was not met
Docs: man:apparmor(7)
https://gitlab.com/apparmor/apparmor/wikis/home/
I believe AppArmor is already included in your Linux kernel, please checked this for sure. If not, please let me know the output uname -a.

Code: Select all

$ zcat /proc/config.gz | grep APPARMOR
CONFIG_SECURITY_APPARMOR=y
CONFIG_SECURITY_APPARMOR_HASH=y
CONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y
# CONFIG_SECURITY_APPARMOR_DEBUG is not set
# CONFIG_DEFAULT_SECURITY_APPARMOR is not set
Since AppArmor is not default security module now, you can add security=apparmor to LINUX_KERNEL_CMDLINE in /etc/default/flash-kernel. It would be like this.

Code: Select all

$ cat /etc/default/flash-kernel
LINUX_KERNEL_CMDLINE="root=UUID=4fd6c2e1-2a5c-4e0b-acf0-7963b1669fa7 rootwait ro quiet splash security=apparmor"
LINUX_KERNEL_CMDLINE_DEFAULTS=""
In order to apply the change, boot script needs to be changed and requires to reboot.

Code: Select all

$ sudo update-bootscript
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.
$ sudo reboot
After this, I am able to see the AppArmor is active.

Code: Select all

$ cat /sys/module/apparmor/parameters/enabled 
Y
$ sudo systemctl status apparmor.service
[sudo] password for odroid: 
● apparmor.service - Load AppArmor profiles
     Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
     Active: active (exited) since Thu 2021-10-07 11:21:44 KST; 7min ago
       Docs: man:apparmor(7)
             https://gitlab.com/apparmor/apparmor/wikis/home/
    Process: 1214 ExecStart=/lib/apparmor/apparmor.systemd reload (code=exited, status=0/SUCCESS)
   Main PID: 1214 (code=exited, status=0/SUCCESS)
        CPU: 39.404s

Oct 07 11:21:17 ubuntu systemd[1]: Starting Load AppArmor profiles...
Oct 07 11:21:17 ubuntu apparmor.systemd[1214]: Restarting AppArmor
Oct 07 11:21:17 ubuntu apparmor.systemd[1214]: Reloading AppArmor profiles
Oct 07 11:21:17 ubuntu apparmor.systemd[1238]: Skipping profile in /etc/apparmor.d/disable: usr.bin.f>
Oct 07 11:21:18 ubuntu apparmor.systemd[1252]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.>
Oct 07 11:21:18 ubuntu apparmor.systemd[1253]: Warning: found usr.sbin.sssd in /etc/apparmor.d/force->
Oct 07 11:21:18 ubuntu apparmor.systemd[1253]: Warning from /etc/apparmor.d (/etc/apparmor.d/usr.sbin>
Oct 07 11:21:44 ubuntu systemd[1]: Finished Load AppArmor profiles.
Please do the commands and let me know if it works.
These users thanked the author tobetter for the post (total 2):
nrpetonr (Fri Oct 08, 2021 2:37 am) • odroid (Fri Oct 08, 2021 9:36 am)

nrpetonr
Posts: 2
Joined: Thu Oct 07, 2021 1:14 am
languages_spoken: english
ODROIDs: n2
Has thanked: 1 time
Been thanked: 0
Contact:

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

Post by nrpetonr »

@tobetter, working now, just like whole debian bullsyey netinstall image. thx a lot.

penguinist
Posts: 35
Joined: Mon Mar 14, 2016 12:05 pm
languages_spoken: english, german, spanish
ODROIDs: odroid-n2+,n2,c4,c2
Has thanked: 2 times
Been thanked: 0
Contact:

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

Post by penguinist »

Question: I am doing some special purpose routing so I am needing to manually configure networking. What I'm finding though is that we have no yaml files in /etc/netplan/* and
netplan generate
does not create default configurations. Does anyone have an idea about what's going on with netplan, and maybe a tip on how to do manual networking on this OS image?

P.S. Nice work on a solid OS image. I'm using it going forward on my three n2+ units.

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

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

Post by tobetter »

penguinist wrote:
Sat Oct 23, 2021 3:39 am
Question: I am doing some special purpose routing so I am needing to manually configure networking. What I'm finding though is that we have no yaml files in /etc/netplan/* and
netplan generate
does not create default configurations. Does anyone have an idea about what's going on with netplan, and maybe a tip on how to do manual networking on this OS image?

P.S. Nice work on a solid OS image. I'm using it going forward on my three n2+ units.
You can create /etc/netplan/*.yaml manually to use static/dynamic address, then run netplan apply to use the configuration.
These users thanked the author tobetter for the post:
penguinist (Sat Oct 23, 2021 6:45 am)

penguinist
Posts: 35
Joined: Mon Mar 14, 2016 12:05 pm
languages_spoken: english, german, spanish
ODROIDs: odroid-n2+,n2,c4,c2
Has thanked: 2 times
Been thanked: 0
Contact:

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

Post by penguinist »

Just ignore 'netplan generate' and make your own yaml. Yes that works perfectly. Thanks for the tip!

odroidn2user
Posts: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 times
Contact:

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

Post by odroidn2user »

Just a quick post, for tobetter and anyone who has helped developing the ubuntu netboot installer images and kernel stuff...
I really enjoy using the N2 these days.
Wayland and Gnome using panfrost work fine. There are issues remaining, clearly, but most of them are workaroundable.
The result is a very usable and pleasurable experience.
The images of tobetter really seem to be the best.
Finally using the N2 as daily driver for normal home activities, and liking it!
Many, many thanks to everyone involved.

(And I even accidentally found a monitor that is actually supported right!)
These users thanked the author odroidn2user for the post (total 2):
odroid (Fri Nov 05, 2021 9:57 am) • istanbulls (Fri Nov 05, 2021 5:32 pm)

LiveMeatbag
Posts: 10
Joined: Thu May 21, 2020 2:52 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 2 times
Been thanked: 0
Contact:

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

Post by LiveMeatbag »

I have a USB 3.0 Wi-Fi dongle that uses a Realtek RTL8812AU chipset, and it's not working in Ubuntu. Fiddling around with the additional drivers section gives no results. I have a USB 2.0 dongle that uses a Ralink RT5572N chipset, and that works.

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

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

Post by specs »

@odoidn2user: I have some questions about your running system, but let me try to get the information together first:
odroidn2user wrote:
Wed Sep 15, 2021 6:34 pm
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/
..
So, big improvements.
Even though I like my LTS, the 21.04 Hirsute is indeed a big improvement.
odroidn2user wrote:
Fri Sep 17, 2021 3:21 pm
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.
odroidn2user wrote:
Fri Nov 05, 2021 1:05 am
Just a quick post, for tobetter and anyone who has helped developing the ubuntu netboot installer images and kernel stuff...
I really enjoy using the N2 these days.
Wayland and Gnome using panfrost work fine. There are issues remaining, clearly, but most of them are workaroundable.
The result is a very usable and pleasurable experience.
The images of tobetter really seem to be the best.
Finally using the N2 as daily driver for normal home activities, and liking it
Do I wrap it up correctly if I state you are running 21.04 with wayland and you solved the white-on-white issue?
Or are you currently using different programs for the same functionality?

That would imply that using the latest Ubuntu image with panfrost would result in a working system.
Currently I think that might involve using some different programs and perhaps recompiling a few problematic binaries to adapt.
Am I correct?

odroidn2user
Posts: 419
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 117 times
Been thanked: 111 times
Contact:

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

Post by odroidn2user »

specs wrote:
Sat Nov 20, 2021 4:43 pm
Do I wrap it up correctly if I state you are running 21.04 with wayland and you solved the white-on-white issue?
Or are you currently using different programs for the same functionality?

That would imply that using the latest Ubuntu image with panfrost would result in a working system.
Currently I think that might involve using some different programs and perhaps recompiling a few problematic binaries to adapt.
Am I correct?
Well, that white-on-white problem isn't solved as far as I know.
I'm running the Tobetter Ubuntu and Manjaro ARM on an N2+ and an N2 respectively.
Both have it, and with different themes.

Seems to me to be a font renderer bug, as the problem seems to go away after a reboot.
But then, it sometimes shows up quickly again, so some software seems to be leaking memory badly somewhere.
Also, it seems to me it isn't just a white color, it seems to me that text just fail to render completely, but could be wrong on that.

And some themes seem to have it worse, and theme switching makes it worse as well, to the point of not seeing much anything text.

Running the N2 with Tobetters Ubuntu 21.04 (Hirsute), Gnome Wayland, using the Yaru-dark themes seems to kinda work well for me.
Is a workable solution. And Tobetter Ubuntu is really quite a bit ahead of Manjaro, N2-support wise, it works smoother on the N2.

Using Vivaldi (Firefox has weird issues with webpage buttons having black bars), LibreOffice, Lollypop and Thunderbird mostly.
(Also using Gimp, Celluloid and VLC, they really work fine as well!)

Anyway you turn, you probably to want to reboot the N2 often, if you're using it for desktop uses.
Usage seems to degrade over time, generating visual disruptions first and finally freezing. With Manjaro more so than with Tobetter's image though.
I do get some fullscreen white flashes on Tobetter's image though, not sure what that is. It's slightly annoying, but not a deal breaker.

Have not tested KDE or XFCE recently. Or X11 for that matter.
These users thanked the author odroidn2user for the post:
specs (Sat Nov 27, 2021 4:11 am)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests