Ubuntu 21.04 for ODROID-N2/C4/HC4

Post Reply
User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

I'm starting to think this is even impossible to run Weston on tty2 with different resolution than "system wide" dictated back at the grub level..
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Sigh...

Just guys let you know that my build firm have an issue and need to maintain it, so there would be a no changes in Kernel or other packages for several days but you guys could have many notice about new version of packages. The package will not help to improve anything your system.

What's happening is that my build firm which is on my desk close to window looks like a bit overheated, fortunately no board is burned or damaged while lost two eMMC and one 3.5" disk need to be restored. I need to recover them and set up the build queue so some package will be rebuilt for no change and be uploaded....

Package server ppa.linuxfactory.or.kr is alive anyway, so new installation will work.

So...do not excited so much when you got many pakcage updates.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Oh, crap :( Terribly sorry to hear about your material and intellectual losses.

Thanks for letting us know, the linuxfactory server will have a hard time serving everyone with a ton of updates.

I guess that N2+ fan wasn't the worst investment after all, even if it never turns on in my climate.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Wed Jul 28, 2021 5:54 am
Oh, crap :( Terribly sorry to hear about your material and intellectual losses.

Thanks for letting us know, the linuxfactory server will have a hard time serving everyone with a ton of updates.

I guess that N2+ fan wasn't the worst investment after all, even if it never turns on in my climate.
Thanks...the package file server is fine...it's in somewhere else...
Funny thing is that N2 w/o fan works fine, but HDD and Gigabit behind the rig made a problem...and one HDD is too old. :)
Anyway, it will be fine this week...money and time can resolve the issue. :D

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

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

Post by specs »

tobetter wrote:
Wed Jul 28, 2021 6:13 am
Funny thing is that N2 w/o fan works fine, but HDD and Gigabit behind the rig made a problem...and one HDD is too old. :)
With enough air circulating the fan might not add anything.
If the air is not refreshed (inside a case or cupboard) perhaps because the air can't leave at the top the fan only adds fuel to the fire :D

Have you tried if positioning the N2 vertical works positive (since the heated air should rise more easy)?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

I believe he said N2 works fine. ;)

In my case, it's mounted on the bottom side of my desk and works great. Usual temperature is 37 degrees.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

albanibr
Posts: 43
Joined: Fri Aug 07, 2015 1:58 am
languages_spoken: english, portuguese
ODROIDs: C2 / N2 4gb
Location: Brazil
Has thanked: 6 times
Been thanked: 1 time
Contact:

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

Post by albanibr »

the ISO links are off?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Works here. Try again!
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

albanibr
Posts: 43
Joined: Fri Aug 07, 2015 1:58 am
languages_spoken: english, portuguese
ODROIDs: C2 / N2 4gb
Location: Brazil
Has thanked: 6 times
Been thanked: 1 time
Contact:

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

Post by albanibr »

my mistake! my browser block, but jdownloader caught it.

thanks for the quick response

mekong89
Posts: 9
Joined: Thu Apr 06, 2017 1:41 pm
languages_spoken: english
ODROIDs: c0, c1, c2, xu4
Has thanked: 2 times
Been thanked: 0
Contact:

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

Post by mekong89 »

I get this error, look like server down again!

sudo apt install mali-bifrost-wayland-driver
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mali-bifrost-wayland-driver

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

mekong89 wrote:
Fri Jul 30, 2021 12:26 am
sudo apt install mali-bifrost-wayland-driver
tobetter wrote:
Tue Apr 06, 2021 7:16 pm
  • Panfrost is the default GPU driver, Mali Bifrost driver won't be supported.
Tell the people there's a problem with packages, and all of the sudden they blame all their problems on it. ;)
These users thanked the author mctom for the post:
mekong89 (Fri Jul 30, 2021 3:50 pm)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mekong89 wrote:
Fri Jul 30, 2021 12:26 am
I get this error, look like server down again!

sudo apt install mali-bifrost-wayland-driver
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mali-bifrost-wayland-driver
In addition, if you like to use ARM Mali Wayland driver, you have to install Ubuntu 20.04.
viewtopic.php?f=182&t=37109

Ubuntu 21.04 only support Panfrost driver since it's becoming stable.
These users thanked the author tobetter for the post:
mekong89 (Fri Jul 30, 2021 3:51 pm)

hanguofu
Posts: 14
Joined: Fri Sep 28, 2018 2:35 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

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

Post by hanguofu »

I am going to write a simple GPIO-driver to control a light bulb with Odroid-C4. Just wonder if any of you can give me an example to control a On-Off GPIO pin at this Ubuntu 21.04 distro. ? Sorry for this off-topic post for I donot know where to post it ~~~~

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

hanguofu wrote:
Fri Jul 30, 2021 6:54 am
I am going to write a simple GPIO-driver to control a light bulb with Odroid-C4. Just wonder if any of you can give me an example to control a On-Off GPIO pin at this Ubuntu 21.04 distro. ? Sorry for this off-topic post for I donot know where to post it ~~~~
No worries...

I think you can use gpiod.

Code: Select all

sudo apt update
sudo apt install gpiod
For your reference:
https://www.ics.com/blog/gpio-programmi ... od-library
https://github.com/starnight/libgpiod-example

wallyz21
Posts: 293
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Has thanked: 15 times
Been thanked: 32 times
Contact:

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

Post by wallyz21 »

I've noticed some canonical Vulcan driver updates/upgrades been pushed out. Does this mean Vulcan may work with Panfrost?
Walter Zambotti
N2 - HK 18.04 Ubuntu Mate Desktop
N2+ - 21.04 Ubuntu Mate Desktop (Panfrost)

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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

tobetter wrote:
Wed Jul 28, 2021 5:31 am
Sigh...

Just guys let you know that my build firm have an issue and need to maintain it, so there would be a no changes in Kernel or other packages for several days but you guys could have many notice about new version of packages. The package will not help to improve anything your system.

What's happening is that my build firm which is on my desk close to window looks like a bit overheated, fortunately no board is burned or damaged while lost two eMMC and one 3.5" disk need to be restored. I need to recover them and set up the build queue so some package will be rebuilt for no change and be uploaded....

Package server ppa.linuxfactory.or.kr is alive anyway, so new installation will work.

So...do not excited so much when you got many pakcage updates.
I hope you get through with the least damage, get well soon.

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Fri Jul 30, 2021 4:32 pm
I hope you get through with the least damage, get well soon.
Thanks...looks like everything is being back to normal... ^^;
These users thanked the author tobetter for the post (total 2):
mctom (Fri Jul 30, 2021 5:20 pm) • istanbulls (Fri Jul 30, 2021 5:53 pm)

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

hanguofu wrote:
Fri Jul 30, 2021 6:54 am
I am going to write a simple GPIO-driver to control a light bulb with Odroid-C4. Just wonder if any of you can give me an example to control a On-Off GPIO pin at this Ubuntu 21.04 distro. ? Sorry for this off-topic post for I donot know where to post it ~~~~
IF you're interested in very low level GPIO driving, you may get inspiration from my pistackmon project - it doesn't use any libraries.
https://github.com/tomek-szczesny/pista ... d.cpp#L339

It is however advanced stuff, and your program will have to run as root. If you are interested with this approach, drop me a PM, or start a new thread.
These users thanked the author mctom for the post:
tobetter (Fri Jul 30, 2021 7:03 pm)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

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

Post by rooted »

mctom wrote:
hanguofu wrote:
Fri Jul 30, 2021 6:54 am
I am going to write a simple GPIO-driver to control a light bulb with Odroid-C4. Just wonder if any of you can give me an example to control a On-Off GPIO pin at this Ubuntu 21.04 distro. ? Sorry for this off-topic post for I donot know where to post it ~~~~
IF you're interested in very low level GPIO driving, you may get inspiration from my pistackmon project - it doesn't use any libraries.
https://github.com/tomek-szczesny/pista ... d.cpp#L339

It is however advanced stuff, and your program will have to run as root. If you are interested with this approach, drop me a PM, or start a new thread.
That's an interesting project. Looking at the code I don't see anything that will allow you to turn the power off or on?

Also does it only need to be ran as root because it writes to /dev/mem? If that's the case wouldn't a device driver be a better option?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

rooted wrote:
Fri Jul 30, 2021 7:26 pm
That's an interesting project. Looking at the code I don't see anything that will allow you to turn the power off or on?

Also does it only need to be ran as root because it writes to /dev/mem? If that's the case wouldn't a device driver be a better option?
Thanks. I probably should add a picture of my stack sporting a few of these boards to the GitHub page.

The "power switch" for an underlying SBC is a 2.54mm jumper next to the electrolytic cap. I didn't foresee any power cut-off feature because one still would need physical access to SBC to turn it on again.

Perhaps there are much better ways to write that daemon - sadly I'm not a coder, just an EE, and I did it the easiest and most efficient way I knew. I don't see much problem with running daemon as root. It WAS a problem when it had a bug and entered a 15 minutes loop at startup. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

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

Post by amirul »

$ uname -a
Linux n2plus-pf 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202107302031~hirsute (2021-07-30) aarch64 aarch64 aarch64 GNU/Linux
$ glmark2-es2-wayland
=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: Panfrost
GL_RENDERER: Mali G52 (Panfrost)
GL_VERSION: OpenGL ES 3.1 Mesa 21.2.0-devel (git-d29c086fb9)
=======================================================
...
=======================================================
glmark2 Score: 1315
=======================================================

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

20210801: Upgrades...

I had spent several days to fix my build firm issue caused hot weather, fortunately everything is turning to normal and temperature is getting a bit lower. :)

While maintaining the build firm, several things are upgraded as well.
  • The default kernel is switched to 5.13, looks stable enough for me.
  • odroid-alsa package will be installed by default when new OS is installed using the Netboot Installer.
  • Ubuntu 21.10 is ready to upgrade or for fresh installation and new thread is started.
Stay safe & have fun with ODROID.
These users thanked the author tobetter for the post (total 3):
hilton8r (Sun Aug 01, 2021 2:53 pm) • istanbulls (Sun Aug 01, 2021 6:49 pm) • Nuts_ (Wed Aug 04, 2021 5:46 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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

No sound after last update in 21.04 gnome-desktop. I tried in 2 different gnome-desktop, after the update the sound disappears.

How can I go back to before the update? It was the OS I used daily, it worked best with the SSD, I don't want to lose it, is there a way to undo the updates?

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Mon Aug 02, 2021 5:18 pm
No sound after last update in 21.04 gnome-desktop. I tried in 2 different gnome-desktop, after the update the sound disappears.

How can I go back to before the update? It was the OS I used daily, it worked best with the SSD, I don't want to lose it, is there a way to undo the updates?
What's the output?

Code: Select all

dpkg -l | grep odroid
Did you try to run sudo dpkg-reconfigure odroid-alsa and reboot?

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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

tobetter wrote:
Mon Aug 02, 2021 5:24 pm
istanbulls wrote:
Mon Aug 02, 2021 5:18 pm
No sound after last update in 21.04 gnome-desktop. I tried in 2 different gnome-desktop, after the update the sound disappears.

How can I go back to before the update? It was the OS I used daily, it worked best with the SSD, I don't want to lose it, is there a way to undo the updates?
What's the output?

Code: Select all

dpkg -l | grep odroid
Did you try to run sudo dpkg-reconfigure odroid-alsa and reboot?
20210802_130113.jpg
20210802_130113.jpg (387.78 KiB) Viewed 1090 times
I struggled with alsa all day and night yesterday.
I've tried a lot of things, tried everything, uninstalled alsa, reinstalled and a lot of other things.
There was never any sound.
There are 3 ubuntu os on the SSD, 1 21.10 gnome-desktop, 1 21.04 gnome-desktop that I use for experiments and 1 21.04 gnome-desktop that I use daily.
There was no sound in any of them yesterday I spent too much time and finally gave up. I switched to android and htpc win-10.

I saw @tobetterin message today, I opened ubuntu-desktop to get the output "dpkg -l | grep odroid" he asked me, the sound is back, and the sound is back on other 2 OSes.
Very interesting, is my n2+ breaking down? Is there a hardware problem, I started to question :)

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Dude, put something on before you post your pictures. :D

Well judging from the temperatures in your apartment maybe your hardware is failing. Which sound output do you use, the audio jack or HDMI audio output?
Perhaps it was only a matter of settings in Config tab of pavucontrol, as Odroid has more than one sound output and it's hard to tell which one is default.
These users thanked the author mctom for the post:
istanbulls (Mon Aug 02, 2021 8:25 pm)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

mctom wrote:
Mon Aug 02, 2021 7:58 pm
Dude, put something on before you post your pictures. :D

Well judging from the temperatures in your apartment maybe your hardware is failing. Which sound output do you use, the audio jack or HDMI audio output?
Perhaps it was only a matter of settings in Config tab of pavucontrol, as Odroid has more than one sound output and it's hard to tell which one is default.
Thanks for the warning :) my old eyes didn't notice the reflection of the screen, but I'm not completely naked thank goodness :D
Istanbul is very hot, Turkey is already burning, there are forest fires everywhere.

I'm trying to get the sound over HDMI.
I bought a new TV, formerly Odroid-N2 and all other devices were connected to AVR, now all devices are connected to the TV as AVR does not support 4K. Maybe the TV did not send an audio signal and that's why the sound was not active. I need to think about it, I guess I should try to reproduce this problem, then I can identify the source of the problem.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Well that sucks. I live on the coast of Baltic sea, here the temperatures were crazy this year as well. Up to 35 degrees or so. My persian cat was melting. :(
I'm really worried food prices will go up this year. My girlfriend planted a few random plants on our balcony, only chili peppers survived. ;)

Anyway, if you changed your setup recently this is the most probable reason. Either pavucontrol was set up incorrectly and put the sound out to jack, or your TV was muted or whatever.
That's the downside of using HDMI as a sound output, my monitor needs to be on when I want to keep listening on the headphones and do something else.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

hilton8r
Posts: 116
Joined: Tue Oct 27, 2015 10:43 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 12 times
Been thanked: 2 times
Contact:

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

Post by hilton8r »

tobetter wrote:
Fri Jul 16, 2021 2:51 am
FYI, I found an issue with Wifi driver on 5.13 kernel and fixing the issue. So...please let me have a bit more time complete it.
Thank you.

EDIT: New wifi driver for Hardkernel's Wifi 5B is uploaded, please do update with this commands.

Code: Select all

sudo apt update
sudo apt install rtl8821au-dkms linux-firmware
sudo reboot
We use the EDUP EP-AC1607 WiFi Module https://ameridroid.com/products/edup-ep ... 4d1c&_ss=r

It was a real pain getting it to work on the xu4 18.04 image, but it worked out of the box on the 20.04 image I started working on before taking a crack at the n2+.

I tried to install the 8811AU chipset driver from edup's website, and it failed. https://www.szedup.com/support/driver-d ... 07-driver/ I don't see that kernel 5.* kernel is even supported. I was really hoping that this wifi dongle would not be an issue since we have so many on hand. I planned to work on this today, but now my image is immediately jumping from the gdm to a black screen with flashing cursor. I was shelled in when I tried to install the driver. I don't think the driver bricked anything, but I managed to grab a screenshot of the message that flashes on the screen... Image I recall seeing an selinux error pop up and quickly disappear around the time I was having trouble installing packages.

The only other think I did was install the linux-firmware as mentioned previously. I'll need to come back to the wifi dongle after I figure out what broke my image. If this wifi dongle can't be used, is there a recommended wifi dongle? We are in an enclosure, so an antenna is preferred. Any thoughts?

I was going to ask the best way to get my 21.04 image to 21.10, but I don't want to make the problem worse. Can it be done without wiping out any of the other changes I've done, or does it need to be a fresh install?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

tobetter wrote:
Mon Jul 12, 2021 10:05 pm
New package BOX64 uploaded. I've tested a couple of simple x86_64 binary and it looks run, could not test other intersting games in many Youtube regarding to BOX64 since I do not have such binaries at the moment. Maybe some of you can try and share how it works.
I tried two old 32-bit Windows binaries (winski and winwar2), and what is probably another 32-bit binary, an ltspice simulator installer. All of them perform like this:

Code: Select all

mctom@Tomusiomat-ARM:~$ box64 /tmp/LTspiceXVII.exe 
Box64 with Dynarec v0.1.3 81a7eca built on Jul 12 2021 06:07:13
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 48 Env var
Looking for /tmp/LTspiceXVII.exe
Error: /tmp/LTspiceXVII.exe is not an executable file
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9689
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mad_ady »

What does file /tmp/LTspiceXVII.exe say? Also can you move it outsideof /tmp? It may be mounted with noexec, though I don't know if it matters

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

I kept the other two exe files in my /home, so it shouldn't matter.

Code: Select all

mctom@Tomusiomat-ARM:/tmp$ file LTspiceXVII.exe
LTspiceXVII.exe: PE32 executable (GUI) Intel 80386, for MS Windows
Now I'm thinking, all three executables are indeed Windows binaries. Will it run without Wine? Does Wine run on ARM? ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

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

Post by amirul »

fwupd-signed turns up for apt list --upgradable, but sudo apt upgrade does not upgrade. Anyone know why?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

@tobetter is this something that could be changed in future kernels?

Code: Select all

mctom@Tomusiomat-ARM:~$ zcat /proc/config.gz | grep CONFIG_THERMAL_WRITABLE_TRIPS
# CONFIG_THERMAL_WRITABLE_TRIPS is not set
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Aug 04, 2021 9:20 am
fwupd-signed turns up for apt list --upgradable, but sudo apt upgrade does not upgrade. Anyone know why?
Do you have this or similar?

Code: Select all

$ apt list --upgradable
Listing... Done
fwupd-signed/hirsute-updates 1.38.1+1.5.11-0ubuntu1~21.04.1 arm64 [upgradable from: 1.38+1.5.8-0ubuntu1]
N: There is 1 additional version. Please use the '-a' switch to see it
$ sudo apt install fwupd-signed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fwupd-signed : Depends: fwupd (= 1.5.11-0ubuntu1~21.04.1) but 1.5.8-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
I was able to install them with this commnad.

Code: Select all

sudo apt install fwupd=1.5.11-0ubuntu1~21.04.1 libfwupd2=1.5.11-0ubuntu1~21.04.1 libfwupdplugin1=1.5.11-0ubuntu1~21.04.1

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Does anyone here have a network issue after latest kernel 5.13 update?

Code: Select all

$ uname -a
Linux ubuntu 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202108050550~hirsute (2021-08-04) aarch64 aarch64 aarch64 GNU/Linux
I've reported the error from ODROID-HC4 users and wonder if it happens on N2/N2Plus as well.
viewtopic.php?f=207&t=42979

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

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

Post by specs »

The only problems I run into:
- I need to remove one route, but it might be less work to do that by hand.
- the wireless device is hard to remember and I should look into where exactly to change it.

But there is no real problem.

Code: Select all

root@n2plus:~# uname -a
Linux n2plus 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202108050550~hirsute (2021-08-04) aarch64 aarch64 aarch64 GNU/Linux
root@n2plus:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         router          0.0.0.0         UG    0      0        0 eth0.11
192.168.xx.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.10
192.168.yy.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.zzz.0   0.0.0.0         255.255.255.0   U     600    0        0 wlx200aaabbbccc

User avatar
tobetter
Posts: 8391
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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

specs wrote:
Sat Aug 07, 2021 3:25 pm
The only problems I run into:
- I need to remove one route, but it might be less work to do that by hand.
- the wireless device is hard to remember and I should look into where exactly to change it.

But there is no real problem.

Code: Select all

root@n2plus:~# uname -a
Linux n2plus 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202108050550~hirsute (2021-08-04) aarch64 aarch64 aarch64 GNU/Linux
root@n2plus:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         router          0.0.0.0         UG    0      0        0 eth0.11
192.168.xx.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.10
192.168.yy.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.zzz.0   0.0.0.0         255.255.255.0   U     600    0        0 wlx200aaabbbccc
For the wireless device, please try this if you like to use wlan0 rather than wlx200aaabbbccc.

1. Open /usr/share/flash-kernel/ubootenv.d/upstream/90-misc with an editor in root permission.
2. Add one line setenv bootargs "${bootargs} ifnames=0" at the end of the file.
3. Exit from an editor.
4. run sudo update-bootscript.
5. Reboot.

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

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

Post by specs »

Been there, done that...

Code: Select all

root@n2plus:~# uname -a
Linux n2plus 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202108050550~hirsute (2021-08-04) aarch64 aarch64 aarch64 GNU/Linux
root@n2plus:~# cat /proc/cmdline 
root=/dev/mmcblk0p2 rootwait ro quiet splash console=tty1 cma=800M clk_ignore_unused ifnames=0 console=ttyS0,115200n8 
root@n2plus:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _router         0.0.0.0         UG    0      0        0 eth0.10
default         _router         0.0.0.0         UG    600    0        0 wlx7cdddeeefff
default         _gateway        0.0.0.0         UG    601    0        0 wlx200aaabbbccc
192.168.xx.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.10
192.168.xx.0    0.0.0.0         255.255.255.0   U     600    0        0 wlx7cdddeeefff
192.168.yy.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.zzz.0   0.0.0.0         255.255.255.0   U     601    0        0 wlx200aaabbbccc

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

mctom wrote:
Tue Aug 03, 2021 4:29 am
tobetter wrote: ↑
Mon Jul 12, 2021 3:05 pm
New package BOX64 uploaded. I've tested a couple of simple x86_64 binary and it looks run, could not test other intersting games in many Youtube regarding to BOX64 since I do not have such binaries at the moment. Maybe some of you can try and share how it works.

I tried two old 32-bit Windows binaries (winski and winwar2), and what is probably another 32-bit binary, an ltspice simulator installer. All of them perform like this:
https://github.com/ptitSeb/box86 wrote:Also note that, even if there is a Box64, this one is only be able to run x86_64 binaries on 64-bit platforms. You still need Box86 (and a 32-bit chroot) to run x86 binaries (in fact, the same is the case on actual x86_64 Linux).
Uh, bummer. I guess box64 cannot run 32-bit programs after all. That's strange, x64 was supposed to be fully backwards compatible.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Okay, I've got a serious problem here. After a few quiet months I got a PCB design contracted and oops, kicad doesn't work. :/
I mean, it does work for a while, but after a few minutes of tinkering on a schematic, the wayland session freezes completely. Sometimes the kicad window stays the way it was, sometimes it disappears just before this thing happens.
The only way to recover is to ssh to the machine, and kill sway process. The computer is idle at this point, just GUI is completely stuck. I can't even do ctrl+alt+F2.

I'm pretty sure I used kicad normally on Sway at the beginning of this year. What could have changed?

Anyway, if I could ask anyone to try out Kicad and see if it behaves suspiciously I'd deeply appreciate your effort.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Well, I think I found a solution. The fact that I didn't use kicad for months was deceptive, but in fact I don't think it had anything to do with my problem.

This is weird. Recently I added a few lines to my rc.local to tune my CPU.
For some reason I get dmesg flooded with messages that "PLL did not lock", that often resulted in a few seconds freeze, and in case of kicad, the infinite freeze, I guess.

Code: Select all

echo 2016000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
echo 2400000 > /sys/devices/system/cpu/cpufreq/policy2/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy2/scaling_governor
It seems the problem lies in "ondemand" governor.
PLL is a mechanism for generating clock signal. It's a "Phase locked loop" that doesn't work if it did not lock properly. So I assumed this means that clock frequency transition didn't work as expected. so I ended up with default, performance governor for now.

No more troubles for me, and I guess I'll have to live with wasted precious watts heating up my knees.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

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

Post by specs »

First: the ondemand governer is configurable, therefore there is little reason for the governor not to work.
Second, you could try to use the conservative governor.
While ondemand in principle works like "if there is anything to do scale max, otherwise scale min", the conservative governor works like "if there is a lot of work we scale up the frequency one step, if there is not much to do we scale down one step". This approach might just work for the PLL since there should allways be some activity, therefore almost never the lowest speed.
Performance just sets the clock to max (likewise powersave just sets the clock to min).

The configurable part of the ondemand governor means you can tweak the thressholds for scaling up and scaling down. In theory you could have the ondemand governor with the same behaviour as the conservative governor.
https://wiki.archlinux.org/title/CPU_fr ... d_governor

Then you could try to push all the activiry to one core (which should then be clock higher, unfortunately there are only 2 clocks). No idea if it fits best to either use a A53 or a A73 for that, that's something you'll have to find out.
rooted wrote:
Sun Dec 15, 2019 9:10 pm
Then you can use taskset to launch applications pinned to the desired core. I add this to my ~/.bash_aliases then run a task like "big htop" to run on the fast cores.

Code: Select all

alias big='taskset -c 0-1 $f'
alias little='taskset -c 2-5 $f'
And finally you could start the program with a script which raises the minimum speed before starting (and put the default back when stopping).
If you can run multiple instances don't forget some PID-file to prevent scaling back when one instance stops, program escape sequences, etc..

Long story short: you should be able to tweak the cpu frequencies to get behaviour that better fits your needs.
These users thanked the author specs for the post:
tobetter (Sun Aug 08, 2021 6:26 am)

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

Hey, thanks. I think I was aware of all that and that's why I chose ondemand governor, as it was usual to stay ~75% of the time on the lowest frequency in my daily use.

I believe I didn't state my assumptions clearly. There is no problem with governor itself, it does want to change CPU frequency when needed. The problem is that the PLL reconfiguration apparently fails, and the system either feezes for a few seconds (!) or hangs completely. I tried that with frequencies from "overclock" range and within nominal range.
I'm not entirely sure what goes wrong, is it the hardware issue or maybe Sway, or other piece of software getting confused.

Perhaps the problem is that ondemand tries to make aggressive changes to clock frequency? I don't know, never built a PLL loop just yet. ;)

Anyway I'll try the conservative fella and see how it works.

EDIT: Yup, I turned on the conservative one, set thresholds to 10 and 50% and appears to work pretty nice, but my dmesg start showing the same things again:

Code: Select all

[46829.025792] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 4032000000
[46955.619233] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 4032000000
[47119.049244] hrtimer: interrupt took 490146 ns
[47250.138291] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3216000000
These rates are odd, what are these numbers? Looks like 2x2016MHz and 2x1608MHz.

I'll try increasing the sampling rate and see if it helps.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

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

Post by specs »

I think there are 2 seperate issues.
The lock seems to be dealt with with a different governor.

The PLL lock seems to be Wayland only.
I only found a post from brad (2019) on this forum so it might be an old problem that resurfaced.
viewtopic.php?p=275997#p275997

I'm not running Wayland myself, so unfortunately no help from me.

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

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

Post by specs »

A bump of an old message:
tobetter wrote:
Tue May 11, 2021 6:50 am
Use the command apt-mark unhold with package names as an arguments to unhold them. Then next apt update will update with new version.

In case you like to use old version which has less rendering issue with X11 and Wayland, use this commands. This command seriese will download and install old packages (version 21.1.0-devel+202104231552), you can update with the lastest package later with sudo apt update && sudo apt upgrade.

Code: Select all

$ mkdir mesa
$ cd mesa
$ wget http://ppa.linuxfactory.or.kr/band-aid/install-mesa-packages.sh
$ sh ./install-mesa-packages.sh
$ sudo dpkg -i `ls *.deb`
$ sudo reboot
I tried removing the hold on the mesa packages and I got a partial success.
The system boots without problems, X works, Mate works, the terminals work.

Unfortunately some application depending on wxgtk-3.0.5 does not work, so I'm back to the 202104231552-version.
Both the native github version and the prebuild flatpak version of OpenCPN have problems with blank popup-screens and currently everything points to the combination of wxgtk and the mesa drivers.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

specs wrote:
Sun Aug 08, 2021 5:50 pm
I think there are 2 seperate issues.
The lock seems to be dealt with with a different governor.

The PLL lock seems to be Wayland only.
I only found a post from brad (2019) on this forum so it might be an old problem that resurfaced.
viewtopic.php?p=275997#p275997

I'm not running Wayland myself, so unfortunately no help from me.
PLL is a hardware thing sitting in SoC that generates clock signals, this has little to do with Wayland. It can be reconfigured to change clock frequency.

I think I solved the issue by increasing sampling rate from 10ms to 100ms. According to the kernel documentation, it should be 750-1000 times bigger than transition latency (which is reported as 50us by cpufreq-info).
So the default 10ms is definitely not enough, but with 50ms I still got "pll did not lock" at least once.
Right now I force governor to work hard through watch -n 6 timeout 3s stress -c 4
And no problems so far, but I'll let it run for a few hours to be sure.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

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

Post by rooted »

You can tweak the powersave governor to behave mostly like ondemand through the exposed sysfs entries.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

For now it seems the issue is just one and it's not the governor. It's a bad default value of governor's sampling rate. In another words, it tried to change CPU frequency too often, something that hardware couldn't do.
Also, I'm pretty happy with conservative governor. My n2+ currently has 33 degrees as I work on KiCad and browse forums. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

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

Post by mctom »

I have established that sampling rate / change rate limit of 75ms is not safe enough, in last 24 hours I had 2 PLL incidents during normal use. Not great, not terrible. I'm sure 100ms will be enough, but will edit if anything happens.

I switched to schedutil governor which is fantastic. Much smoother user experience than ondemand or conservative, although switches CPU frequency virtually all the time. It accepts only one parameter, which is rate_limit_us.
The CPU is cool and responds as if it was performance. I'm yet to discover why it's not the default option!
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 0 guests