Ubuntu 24.04, kernel 6.6 for N2/N2L

Post Reply
mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Hello everyone!

This is Ubuntu 24.04 with Kernel 6.6 for ODROID-N2/N2Plus/N2L
Mate images runs with Panfrost GPU acceleration!

Download links: https://odroid.in/ubuntu_24.04lts/

Its known that in some cases after first boot it won't resize the filesystem by itself.
It happens to you, run this command:
sudo /bin/bash -c "$(curl -sL https:/deb.odroid.in/resize.sh)"
Screenshot at 2024-06-18 16-53-41.png
Screenshot at 2024-06-18 16-53-41.png (2.14 MiB) Viewed 808 times
These users thanked the author mdrjr for the post (total 3):
odroid (Wed Jun 19, 2024 9:17 am) • zyssai (Sun Jun 23, 2024 10:52 pm) • gychoi (Tue Jul 23, 2024 8:54 am)

User avatar
odroid
Site Admin
Posts: 42659
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3758 times
Been thanked: 2123 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by odroid »

Great!
Are you using this branch for the Linux kernel sources?
https://github.com/hardkernel/linux/com ... oid-6.6.y/

I have one more question. How long does it take to boot from power on until the Mate desktop GUI comes up?
I would like to know the boot time based on disabling Petitboot and using eMMC as a boot media.

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Yes, that's the correct place for the kernel sources.

First boot is ~90 seconds to desktop.

Normal boot time ~50 seconds to desktop.

usual user
Posts: 143
Joined: Sat Sep 10, 2022 10:47 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 55 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by usual user »

odroid wrote:
Wed Jun 19, 2024 9:27 am
How long does it take to boot from power on until the Mate desktop GUI comes up?
Sorry, can't really compete, see
boot-analyze-odroid-n2+.pdf
(23.4 KiB) Downloaded 15 times
for reference.
Was too lazy to set up the firewalld properly, it slows down the startup significantly, and I'm running on micro-SD.

User avatar
odroid
Site Admin
Posts: 42659
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3758 times
Been thanked: 2123 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by odroid »

mdrjr wrote:
Wed Jun 19, 2024 10:44 am
Normal boot time ~50 seconds to desktop.
A boot time of about 50 seconds seems to be acceptable for embedded system applications such as kiosks and control equipment.
However, it would be great if you could reduce it to about 30 seconds later when you have time.

jwilson
Posts: 85
Joined: Tue Feb 27, 2018 2:00 pm
languages_spoken: english
ODROIDs: C2, XU4, N2, N2+
Has thanked: 4 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by jwilson »

Is Panfrost GPU acceleration supported for Gnome desktop? If I setup minimal 24.04, then

Code: Select all

apt install ubuntu-desktop
will the resulting desktop environment utilize Panfrost GPU acceleration automatically? Thanks.

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

Hi!

Don't know if I've done something wrong, I have no space left error on a 32gb emmc after first boot, while trying to apt update && apt upgrade.

Code: Select all

root@odroid:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           361M  1.4M  360M   1% /run
/dev/mmcblk0p2  6.6G  6.6G   12K 100% /
tmpfs           1.8G     0  1.8G   0% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
/dev/mmcblk0p1  128M   21M  108M  16% /media/boot
tmpfs           361M  164K  361M   1% /run/user/119
tmpfs           361M  156K  361M   1% /run/user/0
Also, there's a strange fdisk -l

Code: Select all

root@odroid:~# fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mmcblk0: 28.91 GiB, 31037849600 bytes, 60620800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x03823826

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        2048   264191   262144  128M  c W95 FAT32 (LB/dev/mmcblk0p2      264192 14579711 14315520  6.8G 83 Linux


Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 122096646 sectors
Disk model: USB 3.0 device
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 268431360 bytes
Disklabel type: dos
Disk identifier: 0x627a1fea

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1         256 122096645 122096390 465.8G  7 HPFS/NTFS/exFAT

Disk /dev/loop0: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 69.22 MiB, 72581120 bytes, 141760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 246.07 MiB, 258023424 bytes, 503952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 91.69 MiB, 96141312 bytes, 187776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 483.33 MiB, 506810368 bytes, 989864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 33.71 MiB, 35344384 bytes, 69032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Is it because I flashed with balenaetcher using petitboot ums /dev/mmcblk0 ?

Any help appreciated.
Last edited by zyssai on Mon Jun 24, 2024 3:16 am, edited 1 time in total.

User avatar
joerg
Posts: 2125
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4, M1, M1S
Location: Germany
Has thanked: 222 times
Been thanked: 492 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by joerg »

I think /dev/mmcblk0p2 6.6G needs to be resized?

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

joerg wrote:
Mon Jun 24, 2024 3:14 am
I think /dev/mmcblk0p2 6.6G needs to be resized?
Thanks, I tried with cli gparted but seems I cannot expand.

User avatar
joerg
Posts: 2125
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4, M1, M1S
Location: Germany
Has thanked: 222 times
Been thanked: 492 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by joerg »

Where you have tried it. On the N2 itself, or removed from N2 on your host pc?

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

joerg wrote:
Mon Jun 24, 2024 3:19 am
Where you have tried it. On the N2 itself, or removed from N2 on your host pc?
From N2 itself with ssh, will try while removing emmc tomorrow.

Actually ending with this:

Code: Select all

root@odroid:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           361M   34M  327M  10% /run
/dev/mmcblk0p2  6.6G  6.6G     0 100% /
tmpfs           1.8G     0  1.8G   0% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
/dev/mmcblk0p1  128M   21M  108M  16% /media/boot
tmpfs           361M  156K  361M   1% /run/user/0
root@odroid:~# sudo parted /dev/mmcblk0p2
GNU Parted 3.6
Using /dev/mmcblk0p2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Unknown (unknown)
Disk /dev/mmcblk0p2: 29.9GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  29.9GB  29.9GB  ext4
I managed to expand to 30Gb with parted but does not seems applied.

Edit: oh I'm crazy, trying to resize a partition in use :D

Moan
Posts: 157
Joined: Fri Feb 01, 2019 11:51 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 26 times
Been thanked: 7 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by Moan »

Out of curiosity, is this version with kernel 6.6 stable when it comes to USB devices?
I'm referring to: viewtopic.php?p=386492#p386492

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

So I resolved by flashing again from scratch and expand with gparted before rebooting N2, sorry for notice some weird issues when the problem is between the chair and the keyboard :D

Code: Select all

root@odroid:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           361M  1.4M  360M   1% /run
/dev/mmcblk0p2   29G  6.0G   23G  22% /
tmpfs           1.8G     0  1.8G   0% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
/dev/mmcblk0p1  128M   21M  108M  16% /media/boot
tmpfs           361M  164K  361M   1% /run/user/119
tmpfs           361M  156K  361M   1% /run/user/0
That's just a different behavior as official Ubuntu expand partition automatically at first start.

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Its a known issue at this time that auto-resize isn't working.
I will provide updated images to address that and also a small script to do that if you already flashed.
Expect the script to be released on this thread today.
These users thanked the author mdrjr for the post:
zyssai (Tue Jun 25, 2024 4:00 am)

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Updated op with instructions.
The resize can be done running:
sudo /bin/bash -c "$(curl -sL https:/deb.odroid.in/resize.sh)"
No need to reboot as it uses the kernel online resize feature.
These users thanked the author mdrjr for the post (total 2):
odroid (Tue Jun 25, 2024 9:25 am) • zyssai (Tue Jun 25, 2024 8:45 pm)

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

Thanks for your support.

While trying to get working a docker container, I am facing this issue.

Code: Select all

modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/6.6.32-109
ip6tables v1.8.10 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
Warning: Extension CONNMARK is not supported, missing kernel module?
It seems it worked before with 4.9.
Is this a normal behavior?

Edit: oh after switching back to 4.9 problem still occurs.

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Take a read here: https://github.com/tailscale/tailscale/issues/3996
Does that help you?

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

Thanks.
Unfortunately that doesn't help, I did not found what to do at the end of this page.
I tried a lot of things from my Google search but cannot get ride of this.

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Can you provide steps for me to reproduce it?
I will try to find a fix.

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

Thank you mdrjr.

After more investigation it appears that it is not especially related to this Ubuntu image as I have this problem also with official and armbian so I will keep searching.

I have partially resolved it by mounting /lib/modules to container.

But now I am facing DNS failure :lol:

I'm trying to get working binhex/arch-qbittorrentvpn with wireguard.

I will keep searching tomorrow.

EDIT:

- this is definitely not related to this Ubuntu release.
I opened a new post.

- Your script is working perfectly, thanks!

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

Hi!

Can you please give it a try?

Code: Select all

root@odroid:~# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
ERROR: problem running ufw-init
Warning: Extension limit revision 0 not supported, missing kernel module?
iptables-restore v1.8.10 (nf_tables):
line 63: RULE_APPEND failed (No such file or directory): rule in chain ufw-not-local
Warning: Extension LOG revision 0 not supported, missing kernel module?
Warning: Extension limit revision 0 not supported, missing kernel module?
iptables-restore v1.8.10 (nf_tables):
line 25: RULE_APPEND failed (No such file or directory): rule in chain ufw-after-logging-input
line 26: RULE_APPEND failed (No such file or directory): rule in chain ufw-after-logging-forward
line 27: RULE_INSERT failed (No such file or directory): rule in chain ufw-logging-deny
line 28: RULE_APPEND failed (No such file or directory): rule in chain ufw-logging-deny
line 29: RULE_APPEND failed (No such file or directory): rule in chain ufw-logging-allow
Warning: Extension rt revision 0 not supported, missing kernel module?
Warning: Extension hl revision 0 not supported, missing kernel module?
ip6tables-restore v1.8.10 (nf_tables):
line 24: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 25: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-forward
line 26: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-output
line 50: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 51: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 52: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 53: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 55: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 57: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 67: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 69: RULE_APPEND failed (No such file or directory): rule in chain ufw6-before-input
line 111: RULE_APPEND failed (No such fi
Warning: Extension LOG revision 0 not supported, missing kernel module?
Warning: Extension limit revision 0 not supported, missing kernel module?
ip6tables-restore v1.8.10 (nf_tables):
line 25: RULE_APPEND failed (No such file or directory): rule in chain ufw6-after-logging-input
line 26: RULE_APPEND failed (No such file or directory): rule in chain ufw6-after-logging-forward
line 27: RULE_INSERT failed (No such file or directory): rule in chain ufw6-logging-deny
line 28: RULE_APPEND failed (No such file or directory): rule in chain ufw6-logging-deny
line 29: RULE_APPEND failed (No such file or directory): rule in chain ufw6-logging-allow

Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/user.rules'
Problem running '/etc/ufw/before6.rules'
Problem running '/etc/ufw/user6.rules'

root@odroid:~#
Don't know if I broke something.
Thanks in advance :)

Edit: I resolved it, thanks tho!

jwilson
Posts: 85
Joined: Tue Feb 27, 2018 2:00 pm
languages_spoken: english
ODROIDs: C2, XU4, N2, N2+
Has thanked: 4 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by jwilson »

Hi, I downloaded the minimal image from

Code: Select all

https://odroid.in/ubuntu_24.04lts/N2_N2Plus/
and wrote it on an external nvme drive. I then attached the nvme drive (via USB) to an N2+, booted via Petitboot, then resized the root partition, followed by an

Code: Select all

apt update && apt upgrade -y
Rebooted, then ran

Code: Select all

apt install ubuntu-desktop-minimal
The installation went through fine until right at the end, it crapped out with the following error:

Code: Select all

Processing triggers for flash-kernel (3.107ubuntu8) ...
Using DTB: amlogic/meson-g12b-odroid-n2-plus.dtb
Couldn't find DTB meson-g12b-odroid-n2-plus.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image- /lib/firmware//device-tree/
Installing  into /boot/dtbs//amlogic/meson-g12b-odroid-n2-plus.dtb
cp: cannot stat '': No such file or directory
dpkg: error processing package flash-kernel (--configure):
 installed flash-kernel package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 flash-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I fix this error?

viraniac
Posts: 3
Joined: Sat Jul 20, 2024 5:44 pm
languages_spoken: english
ODROIDs: Odroid N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by viraniac »

I want to try the linux-odroid kernel used in this image on ubuntu noble installed using petitboot. I added the deb.odroid.in/aml repository and tried installing the kernel, but it seems kernel package is dependent on the odroid-platform package. However no repository seems to provide that package. Could you please upload the odroid-platform package to the repository as well?

Also are there any build scripts that were used for creating the minimal image? If yes, could you please share the same as it would help to create custom images based on this kernel?

St0ss
Posts: 2
Joined: Sun Jul 21, 2024 7:38 pm
languages_spoken: english, french
ODROIDs: N2+
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by St0ss »

Hi,

Just want to thank you, I installed Ubuntu 24.04 yesterday on my N2+ and it works pretty fine.

Also want to precise some helping details for such begginer that I am:
- I flashed the EMMC from PC with USB on-the-go connexion and Balena software, Ubuntu minimal 24.04 - kernel 6.6.
- I had to FIRST resize partition using the script from MDRJR 👍
- I had to create new account with user/passwd BEFORE installing the desktop, following this topic https://www.server-world.info/en/note?o ... l_conf&f=1

Once logged on the desktop interface of Ubuntu, in the beginning I experienced some nasty hangs when clicking on settings icon, requiering a hard reboot each time. After some time (app installation...), the problem went away on its own, I hope it will not come back!

About hardware accelerration, (the reason why I moved from 22.04 kernel 4 to 24.04 kernel 6.6):
- Youtube 1080p is playing flawlessly in the pre-installed Firefox app, it was not the case in 22.04!
- VLC is still NOT ABLE to correctly play H265 video, any advise on this point will be appreciated ;)
- I installed celluloid video player

Code: Select all

sudo apt install celluloid
and HOURA! H265 videos are now playing perfectly without any problem, lags, artefact, image and framerate are PERFECT.
- Also quickly tried to play with KODI and it seems to do the trick!

After some time being not so happy about my N2+, I'm now touching the performance level I expected it to reach, hope this Ubuntu release will be adopted by most of the N2 users :D


Have a good day!
Seb

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Thanks for the feedback! :) We will keep improving!

ASword
Posts: 250
Joined: Fri Aug 04, 2017 12:48 pm
languages_spoken: english
ODROIDs: XU4, HC1, 2x N2, 2x N2+
Has thanked: 25 times
Been thanked: 8 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by ASword »

Will this OS release become "official" at some point (hopefully soon)?

viraniac
Posts: 3
Joined: Sat Jul 20, 2024 5:44 pm
languages_spoken: english
ODROIDs: Odroid N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by viraniac »

@mdrjr

I found the odroid-platform package. Turns out its present in deb.odroid.in repository but only for jammy. Its missing in the package list of noble. Maybe you guys will like to add it there as the linux-odroid package in noble depends on it.

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by zyssai »

Hi!

I'm unable to have working sound with a USB DAC. This DAC is working for years with an Android TV box.
It is directly connected to N2 USB port, without hub.

I tried many things, installed pulseaudio but it's the same, I have nothing into hardware output panel.

Code: Select all

root@odroid:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 008: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC
Bus 001 Device 022: ID 20b1:0008 XMOS Ltd XMOS Clover AUDIO	<------
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
Bus 002 Device 003: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge

Code: Select all

root@odroid:/home/odroid# lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 001: Dev 030, If 0, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 001: Dev 030, If 1, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 001: Dev 030, If 2, Class=Application Specific Interface, Driver=[none], 480M
        |__ Port 004: Dev 008, If 0, Class=Wireless, Driver=btusb, 480M
        |__ Port 004: Dev 008, If 1, Class=Wireless, Driver=btusb, 480M
        |__ Port 004: Dev 008, If 2, Class=Vendor Specific Class, Driver=rtl8821cu, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 003: Dev 003, If 0, Class=Mass Storage, Driver=uas, 5000M

Code: Select all

root@odroid:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: G12BODROIDN2 [G12B-ODROID-N2], device 0: fe.dai-link-0 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: G12BODROIDN2 [G12B-ODROID-N2], device 1: fe.dai-link-1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: G12BODROIDN2 [G12B-ODROID-N2], device 2: fe.dai-link-2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: AUDIO [XMOS Clover AUDIO], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Did I missed something?
Any help appreciated :)

Edit: I can ear sound with these:

Code: Select all

root@odroid:/home/odroid# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=G12BODROIDN2,DEV=0
    G12B-ODROID-N2,
    Direct hardware device without any conversions
hw:CARD=G12BODROIDN2,DEV=1
    G12B-ODROID-N2,
    Direct hardware device without any conversions
hw:CARD=G12BODROIDN2,DEV=2
    G12B-ODROID-N2,
    Direct hardware device without any conversions
plughw:CARD=G12BODROIDN2,DEV=0
    G12B-ODROID-N2,
    Hardware device with all software conversions
plughw:CARD=G12BODROIDN2,DEV=1
    G12B-ODROID-N2,
    Hardware device with all software conversions
plughw:CARD=G12BODROIDN2,DEV=2
    G12B-ODROID-N2,
    Hardware device with all software conversions
sysdefault:CARD=G12BODROIDN2
    G12B-ODROID-N2,
    Default Audio Device
dmix:CARD=G12BODROIDN2,DEV=0
    G12B-ODROID-N2,
    Direct sample mixing device
dmix:CARD=G12BODROIDN2,DEV=1
    G12B-ODROID-N2,
    Direct sample mixing device
dmix:CARD=G12BODROIDN2,DEV=2
    G12B-ODROID-N2,
    Direct sample mixing device
usbstream:CARD=G12BODROIDN2
    G12B-ODROID-N2
    USB Stream Output
hw:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    Direct hardware device without any conversions
plughw:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    Hardware device with all software conversions
sysdefault:CARD=AUDIO
    XMOS Clover AUDIO, USB Audio
    Default Audio Device
front:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    Front output / input
surround21:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=AUDIO,DEV=0
    XMOS Clover AUDIO, USB Audio
    Direct sample mixing device
usbstream:CARD=AUDIO
    XMOS Clover AUDIO
    USB Stream Output

Code: Select all

root@odroid:/home/odroid# aplay -D plughw:CARD=AUDIO,DEV=0 police_s.wav
So now just don't know how to fix this default output.

mdrjr
Site Admin
Posts: 12148
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 11 times
Been thanked: 170 times
Contact:

Re: Ubuntu 24.04, kernel 6.6 for N2/N2L

Post by mdrjr »

Check /etc/asound.conf
It may help you change the default card :)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests