Ubuntu 21.04 for ODROID-N2/C4/HC4

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

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

Post by rooted »


mctom wrote: The CPU is cool and responds as if it was performance. I'm yet to discover why it's not the default option!
Because it causes issues in certain circumstances such as gaming and it's relatively new.

User avatar
mctom
Posts: 438
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 »

Planned back in 2016, indeed. Also keeps CPU at top speed whenever there is any RT or DL task. PiStackMon daemon is an RT task :roll:
I guess I'll just make a toggle button for performance mode on my sweet waybar, then.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

Post by tobetter »

mctom wrote:
Wed Aug 11, 2021 2:34 am
Planned back in 2016, indeed. Also keeps CPU at top speed whenever there is any RT or DL task. PiStackMon daemon is an RT task :roll:
I guess I'll just make a toggle button for performance mode on my sweet waybar, then.
Are we going to have this? :D
Image
These users thanked the author tobetter for the post:
odroid (Wed Aug 11, 2021 10:04 am)

User avatar
mctom
Posts: 438
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 »

That's a great idea!!
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

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

Post by rooted »

It's funny how some applications were specific to the the clockspeed and the turbo button would make them run faster than designed, it was hilarious.

User avatar
mctom
Posts: 438
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 »

Many DOS games checked the clock speed at the start to adjust themselves to the CPU. It was possible to speed up or slow down a game with a turbo button, depending on a button state when the game started. Results varied. :D
I tried to shoot Mad Dog McCree this way but it didn't work. :(
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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 »

rooted wrote:
Tue Aug 10, 2021 4:52 am
mctom wrote: The CPU is cool and responds as if it was performance. I'm yet to discover why it's not the default option!
Because it causes issues in certain circumstances such as gaming and it's relatively new.
Why is the "Interactive" performance option not available as it is under HK's 18.04? this option provides low frequencies plus fast freq ramp up when required.
Walter Zambotti
N2 - HK 18.04 Ubuntu Mate Desktop
N2+ - 21.04 Ubuntu Mate Desktop (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: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

wallyz21 wrote:
Thu Aug 12, 2021 10:14 am
rooted wrote:
Tue Aug 10, 2021 4:52 am
mctom wrote: The CPU is cool and responds as if it was performance. I'm yet to discover why it's not the default option!
Because it causes issues in certain circumstances such as gaming and it's relatively new.
Why is the "Interactive" performance option not available as it is under HK's 18.04? this option provides low frequencies plus fast freq ramp up when required.
What's the kernel version with 18.04? It does look like Interactive governor driver is in the kernel blob if the recent kernel config is correct. Probably you can check with "zcat /proc/config.gz | grep CPU_FREQ" .

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 »

tobetter wrote:
Thu Aug 12, 2021 10:19 am
wallyz21 wrote:
Thu Aug 12, 2021 10:14 am
rooted wrote:
Tue Aug 10, 2021 4:52 am
mctom wrote: The CPU is cool and responds as if it was performance. I'm yet to discover why it's not the default option!
Because it causes issues in certain circumstances such as gaming and it's relatively new.
Why is the "Interactive" performance option not available as it is under HK's 18.04? this option provides low frequencies plus fast freq ramp up when required.
What's the kernel version with 18.04? It does look like Interactive governor driver is in the kernel blob if the recent kernel config is correct. Probably you can check with "zcat /proc/config.gz | grep CPU_FREQ" .
Here is my setup and the output from the zcat:

Code: Select all

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Code: Select all

uname -a
Linux odroid-n2 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202108071753~hirsute (2021-08-07) aarch64 aarch64 aarch64 GNU/Linux

Code: Select all

zcat /proc/config.gz | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
CONFIG_CPU_FREQ_THERMAL=y
And here is the zcat output from my 18.04 system:

Code: Select all

zcat /proc/config.gz | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
CONFIG_CPU_FREQ_TIMES=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
Walter Zambotti
N2 - HK 18.04 Ubuntu Mate Desktop
N2+ - 21.04 Ubuntu Mate Desktop (Panfrost)

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 »

$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports hirsute InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports hirsute-updates InRelease
Get:3 http://deb.debian.org/debian stable InRelease [113 kB]
N: Repository 'http://deb.debian.org/debian stable InRelease' changed its 'Version' value from '10.10' to '11.0'
E: Repository 'http://deb.debian.org/debian stable InRelease' changed its 'Codename' value from 'buster' to 'bullseye'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]

Should I?

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

Post by tobetter »

amirul wrote:
Tue Aug 17, 2021 12:09 am
$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports hirsute InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports hirsute-updates InRelease
Get:3 http://deb.debian.org/debian stable InRelease [113 kB]
N: Repository 'http://deb.debian.org/debian stable InRelease' changed its 'Version' value from '10.10' to '11.0'
E: Repository 'http://deb.debian.org/debian stable InRelease' changed its 'Codename' value from 'buster' to 'bullseye'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]

Should I?
You should not, why do you have both different repositorys for Ubuntu 21.04 and Debian?

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

Hi guys,

I'm trying to overclock HC4 as documented here https://docs.linuxfactory.or.kr/guides/overclock.html, but it it is not working. The /sys/devices/system/cpu/cpufreq/ folder is just empty.

Code: Select all

$ ls -l /sys/devices/system/cpu/cpufreq/
total 0
I'm on Ubuntu 21.04 via netinstall and the kernel is odroid 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.5-202108071753~hirsute (2021-08-07) aarch64 aarch64 aarch64 GNU/Linux

What can be wrong? :?:

tobetter wrote:
Sat May 08, 2021 12:39 am
@mctom, can you check the values? Also, if GPU governor is set with performance, ignore it's frequency. You would better to test with Gnome or Weston what I am testing.

Code: Select all

tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq 
2016000
tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 
performance
tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_cur_freq 
2400000
tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_governor 
performance
tobetter@hirsute:~$ cat /sys/class/devfreq/ffe40000.gpu/cur_freq 
999999984
tobetter@hirsute:~$ cat /sys/class/devfreq/ffe40000.gpu/governor 
performance

User avatar
mctom
Posts: 438
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 »

That's bizarre, there should be at least one policy to govern HC4 CPU.

Try cpufreq-info and post the result.

Also, you sure it's empty? "total 0" seems to be the correct response, but doesn't tell the whole story. ;)

Code: Select all

mctom@Tomusiomat-ARM:/sys/devices/system/cpu/cpufreq$ ls -l
razem 0
drwxr-xr-x 3 root root 0 sie 19 14:02 policy0
drwxr-xr-x 3 root root 0 sie 19 14:02 policy2
mctom@Tomusiomat-ARM:/sys/devices/system/cpu/cpufreq$ ls -alh
razem 0
drwxr-xr-x  4 root root 0 sie 19 14:02 .
drwxr-xr-x 14 root root 0 sty  1  1970 ..
drwxr-xr-x  3 root root 0 sie 19 14:02 policy0
drwxr-xr-x  3 root root 0 sie 19 14:02 policy2
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

Yes, it is empty.
I can try:

Code: Select all

$ ls /sys/devices/system/cpu/cpufreq/policy*
ls: cannot access '/sys/devices/system/cpu/cpufreq/policy*': No such file or directory
On contrary the GPU thing is there:

Code: Select all

$ ls /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/
available_frequencies  available_governors  cur_freq  device  governor  max_freq  min_freq  name  polling_interval  power  subsystem  target_freq  timer  trans_stat  uevent
And cpufreq-info gives:

Code: Select all

$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 2:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 3:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.

User avatar
mctom
Posts: 438
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 think you'll have to wait for someone smarter than me to get your answers, but I've got one more idea.
If you were able to run cpufreq-info then you must have cpufrequtils installed. If you installed that just now to run this command, try rebooting your machine and see if anything changed.

Oh, you may also want to check dmesg | grep cpufreq

for the record, the cpufreq-info result should look like this (ran on N2+):

Code: Select all

mctom@Tomusiomat-ARM:~$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 50.0 us.
  hardware limits: 1000 MHz - 2.02 GHz
  available frequency steps: 1000 MHz, 1.20 GHz, 1.40 GHz, 1.51 GHz, 1.61 GHz, 1.70 GHz, 1.80 GHz, 1.91 GHz, 2.02 GHz
  available cpufreq governors: powersave, conservative, ondemand, userspace, performance, schedutil
  current policy: frequency should be within 1000 MHz and 2.02 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.02 GHz.
  cpufreq stats: 1000 MHz:0,00%, 1.20 GHz:0,00%, 1.40 GHz:0,00%, 1.51 GHz:0,00%, 1.61 GHz:0,00%, 1.70 GHz:0,00%, 1.80 GHz:0,00%, 1.91 GHz:0,00%, 2.02 GHz:100,00%
analyzing CPU 1:

(repeats for another 5 cores)
The transition latency of >4s is nonsense, and looks like ~ 2^32 ns.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

No, cpufrequtils were installed already and dmesg does not show any cpufreq

But I found this, maybe it is related?

Code: Select all

[    1.428211] cpu cpu0: _opp_is_duplicate: duplicate OPPs detected. Existing: freq: 1500000000, volt: 800000, enabled: 1. New: freq: 1500000000, volt: 880000, enabled: 1
[    1.428245] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -17
[    1.428556] cpu cpu0: OPP table can't be empty
I probably miss some or all overlays. I haven't found out, how to use the overlays with this netinstall without SD card. I can add kernel parameters in /etc/default/flash-kernel and then run sudo flash-kernel. But overlays I don't know. In the SD card install it was in /media/boot/config.ini, but now with netinstall what to do? :?:

Code: Select all

$ dmesg -l err
[    1.186606] kvm: pmu event creation failed -2
[    1.428245] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -17
[    1.428556] cpu cpu0: OPP table can't be empty
[    1.469338] dw-pcie fc000000.pcie: IRQ index 1 not found
[    1.471837] meson-pcie fc000000.pcie: invalid resource
[    1.513279] meson-pcie fc000000.pcie: error: wait linkup timeout
[    6.221593] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
[   96.185992] i2c i2c-0: Failed to register i2c client pcf8563 at 0x51 (-16)
[   96.515164] dyndbg: bad flag-op a, at start of auto
[   96.516897] dyndbg: flags parse failed
EDIT: I have installed the netinstall on HDD, there is /boot but it is just a directory on /dev/sda2, which is ext4. So I don't think the bootloader can read it. I thought kernel is somehow in eMMC and it gets there using flash-kernel.
Do I need FAT partition on my HDD with boot in order to make overlays and dbts to load?

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 »

"cpu cpu0: OPP table can't be empty" looks pretty bad to me.
Have you considered unplugging all devices and reinstall the system on a new SD-card?
That would yield a new system without throwing away all the work you have put into the system untill now.

As far as I have seen the tobetter images have all the high frequencies included standard (where you only need to change /etc/default/cpufrequtils to activate 2.1GHz for the HC4).
There should be no need to screw up the DTS and if the DTS is screwed up by default it would be posting a bugreport.

Last:
I don't know why you are looking for /media/boot/config.ini since most configuration for the tobetter image is found in /boot/config.ini.
The overlays should be available under /boot/dtbs/5.13.0-odroid-arm64.
/media/boot is default for the default hardkernel configuration, tobetter uses a different location.

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

I see the files in /boot/ but they don't seem to work. Where is your /boot located?

I'm using HDD only, completely without SD card. My /boot is just a directory on /dev/sda2, which is ext4 /. And /dev/sda1 is a swap.

Maybe the problem is that the booltloader can't read /boot? But it is still partially working. I suspect the kernel is somewhere else (eMMC?). But from Linux I don't see eMMC at all.

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

Post by tobetter »

@j.fikar, for CPU overclock, I think I made something wrong in the previous package. So please do wait for the next kernel package update with the fix.

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

@tobetter I think it actually never worked since I installed it on May 10.

What about the /boot? Can it be ext4 on sda2? Can the bootloader read it? Or I do something wrong?

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

Post by tobetter »

j.fikar wrote:
Tue Aug 24, 2021 3:28 pm
@tobetter I think it actually never worked since I installed it on May 10.

What about the /boot? Can it be ext4 on sda2? Can the bootloader read it? Or I do something wrong?
I don't see /boot has an issue if you are able to boot to Ubuntu from your HDD. /boot contains the files - kernel/device tree/ramdisk - and OS cannot boot up without such files.

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

I see. I first tried to use btrfs for /, as the netinstall allows it. But it was not working. Then bootloader probably does not read btrfs, right?

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

Post by tobetter »

j.fikar wrote:
Tue Aug 24, 2021 5:40 pm
I see. I first tried to use btrfs for /, as the netinstall allows it. But it was not working. Then bootloader probably does not read btrfs, right?
BTRFS for / (root) file system would be fine, but not for the directory /boot where have Linux kernel image/device tree/ramdisk and boot script.

EDIT: boot.scr must be in the file system with ext2/3/4,vfat/exfat/iso9660 format.

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

OK, all clear now. Thanks.

I'll wait for the new kernel. Is the not working CPU overclocking related to this, or you see it on other boards as well?

Code: Select all

[    1.428211] cpu cpu0: _opp_is_duplicate: duplicate OPPs detected. Existing: freq: 1500000000, volt: 800000, enabled: 1. New: freq: 1500000000, volt: 880000, enabled: 1
[    1.428245] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -17
[    1.428556] cpu cpu0: OPP table can't be empty
And very last thing: in the Hardkernel image in /media/boot/config.ini there is an option to activate WOL (Wake on LAN). I'm not able to find it in your image and WOL seems not to work.

User avatar
mctom
Posts: 438
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 »

No such thing in my dmesg.

Code: Select all

mctom@Tomusiomat-ARM:~$ dmesg | grep cpu
[    0.000000] percpu: Embedded 24 pages/cpu s58200 r8192 d31912 u98304
[    0.000000] pcpu-alloc: s58200 r8192 d31912 u98304 alloc=24*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[    0.051167] cpuidle: using governor menu
[    0.086096] cryptd: max_cpu_qlen set to 1000
[    1.495115] cpufreq: cpufreq_online: CPU2: Running at unlisted initial frequency: 999999 KHz, changing to: 1000000 KHz
[    1.497408] ledtrig-cpu: registered to indicate activity on CPUs
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

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

Post by tobetter »

j.fikar wrote:
Tue Aug 24, 2021 8:57 pm
OK, all clear now. Thanks.

I'll wait for the new kernel. Is the not working CPU overclocking related to this, or you see it on other boards as well?

Code: Select all

[    1.428211] cpu cpu0: _opp_is_duplicate: duplicate OPPs detected. Existing: freq: 1500000000, volt: 800000, enabled: 1. New: freq: 1500000000, volt: 880000, enabled: 1
[    1.428245] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -17
[    1.428556] cpu cpu0: OPP table can't be empty
Yes, this error log makes you not to access /sys/devices/system/cpu/cpufreq and next update will have fix it.
And very last thing: in the Hardkernel image in /media/boot/config.ini there is an option to activate WOL (Wake on LAN). I'm not able to find it in your image and WOL seems not to work.
Currently WOL is not supported with 5.x kernel yet, I've a patch but not tested enough.

By the way, do you have a network problem with your current OS setup?
These users thanked the author tobetter for the post:
j.fikar (Thu Aug 26, 2021 7:54 pm)

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

tobetter wrote:
Tue Aug 24, 2021 9:30 pm
Currently WOL is not supported with 5.x kernel yet, I've a patch but not tested enough.
I can help with testing.
tobetter wrote:
Tue Aug 24, 2021 9:30 pm
By the way, do you have a network problem with your current OS setup?
What kind of problem do you mean? It seems to work OK.

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

Post by tobetter »

j.fikar wrote:
Tue Aug 24, 2021 10:12 pm
tobetter wrote:
Tue Aug 24, 2021 9:30 pm
Currently WOL is not supported with 5.x kernel yet, I've a patch but not tested enough.
I can help with testing.
tobetter wrote:
Tue Aug 24, 2021 9:30 pm
By the way, do you have a network problem with your current OS setup?
What kind of problem do you mean? It seems to work OK.
New kernel package have been uploaded, please do update and check if you can change the CPU freq.

Code: Select all

sudo apt update
sudo apt upgrade
sudo reboot
These users thanked the author tobetter for the post:
j.fikar (Thu Aug 26, 2021 7:55 pm)

j.fikar
Posts: 13
Joined: Tue Dec 08, 2020 9:32 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 0
Contact:

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

Post by j.fikar »

I have it, it is 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.12-202108261237~hirsute (2021-08-26) aarch64 and the frequency scaling and overclocking works! Thanks a lot.

noone2k
Posts: 12
Joined: Wed Mar 09, 2016 12:52 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

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

Post by noone2k »

after the last kernel update, i've a grey/pink issue.
afaik it was already fixed a couple of month ago.

Code: Select all

Linux odroidn2p 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.12-202108261237~hirsute (2021-08-26) aarch64 aarch64 aarch64 GNU/Linux

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

Post by tobetter »

noone2k wrote:
Fri Aug 27, 2021 4:30 am
after the last kernel update, i've a grey/pink issue.
afaik it was already fixed a couple of month ago.

Code: Select all

Linux odroidn2p 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.12-202108261237~hirsute (2021-08-26) aarch64 aarch64 aarch64 GNU/Linux
Sorry, I think I made a mistake dropping the patch while merging upstream kernel. Let me update the kernel package in a couple of days.

noone2k
Posts: 12
Joined: Wed Mar 09, 2016 12:52 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

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

Post by noone2k »

tobetter wrote:
Fri Aug 27, 2021 9:37 am
noone2k wrote:
Fri Aug 27, 2021 4:30 am
after the last kernel update, i've a grey/pink issue.
afaik it was already fixed a couple of month ago.

Code: Select all

Linux odroidn2p 5.13.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.13.12-202108261237~hirsute (2021-08-26) aarch64 aarch64 aarch64 GNU/Linux
Sorry, I think I made a mistake dropping the patch while merging upstream kernel. Let me update the kernel package in a couple of days.
enabled your testing repo ... and everything seems to be fine ... thx

linuxfan
Posts: 20
Joined: Fri Sep 01, 2017 5:56 pm
languages_spoken: english german
ODROIDs: ODROID-C2
Has thanked: 1 time
Been thanked: 0
Contact:

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

Post by linuxfan »

Hello, I want to have a GPU-accelerated Desktop on my ODROID-C4. When I download the server image from post 1 and install a desktop via "tasksel", will the desktop, Firefox, video players, be hardware-accelerated?

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

Post by tobetter »

linuxfan wrote:
Mon Sep 13, 2021 11:28 pm
Hello, I want to have a GPU-accelerated Desktop on my ODROID-C4. When I download the server image from post 1 and install a desktop via "tasksel", will the desktop, Firefox, video players, be hardware-accelerated?
Desktop with wayland will be accelerated definately, but video playing would be not.

User avatar
mctom
Posts: 438
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 »

Are you sure about this? mpv seems to be accelerated, or just lean enough to work without problems.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

salmontuna
Posts: 6
Joined: Sun Mar 14, 2021 1:39 pm
languages_spoken: english
ODROIDs: n2,n2+
Has thanked: 0
Been thanked: 0
Contact:

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

Post by salmontuna »

Hi friends,
I'm a bit in over my head here I think.

I'm trying to migrate from coreelec installation on n2+ to a linux installation running jellyfin media player that communicates with a jellyfin media server backend.

I understand this is the best release for support of HW-accelerated decoding & audio passthrough. I've gotten myself as far as flashing the image, installing a wayland desktop and installing JMP via flatpak. Outside of flashing an image, this is largely new to me and I am feeling a bit overwhelmed trying to read and educate myself on how to use linux. I have wanted to swap from windows for...years.. so I am determined, but I am feeling a bit defeated overcoming the learning curve here.

The problem I am having is that https://github.com/jellyfin/jellyfin-media-player will start, I can log in and browse my server but playback is simply a black screen. The odd thing is that when I ran it the first time, the first video I loaded did show something after I jumped around a bit. I haven't been able to replicate this. I noticed the video was slightly choppy the one time I saw it. Audio works.
It also takes a long time to load into the video, ~2 minutes or so. The video is direct playing. I have tested x265 and x264 with high bitrate and low bitrate encodes. Behavior doesn't change.

I can load video via firefox, which seemingly plays ok. EDIT: actually there's no sound. Didn't realise because I was testing on a computer monitor. Did this:
tobetter wrote:
Tue Apr 06, 2021 7:16 pm
Tips & Tweaks
https://docs.linuxfactory.or.kr/
Installing Chromium browser (dev):

Code: Select all

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
sudo add-apt-repository -S deb http://ppa.launchpad.net/saiarcot895/chromium-beta/ubuntu/ groovy main
sudo apt update
sudo apt-get install chromium-browser chromium-codecs-ffmpeg-extra
Add this line to "cat /etc/chromium-browser/default" for better rendering performance.

Code: Select all

CHROMIUM_FLAGS="--enable-features=UseOzonePlatform --ozone-platform=wayland"
which looked like it worked ok in the terminal but I couldn't find the directory mentioned at the end so probably not.

I am currently reflashing an image and installing ubuntu gnome to start from scratch. I am pretty sure I am running panfrost as it references it on the system start up.

Would anybody be willing to act the good Samaritan and show me the way to set this up correctly? My aim is for a minimal image that loads straight into fullscreen JMP and lets us start watching videos on the TV, and supports audio passthrough to an avr for 5.1. We won't ever ask it to do anything else but stream videos.

Thanks for your time
Tuna

User avatar
mctom
Posts: 438
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 »

Hi!

I admire your noble cause of wanting to learn Linux, but I'm afraid you took a really hard way. ;)
Nevertheless, onto your quest:

I have no experience with Jellyfin stuff, but it seems to use mpv as its actual media player:
"Jellyfin Media Player. Desktop client using jellyfin-web with embedded MPV player."

MPV is known to have some issues with N2+ (It's said somewhere in Wiki). I suspect this is the problem you're experiencing.
If you could make Jellyfin work with mpv instead, this should improve matters significantly. I've spent 20 seconds on Google and there are rsome results for "jellyfin mpv".
I can't do much more for you right now, I'm on vacations myself. Hopefully this advice is going to lead you somewhere. :)

good luck!
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 7 guests