Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

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

Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

20240317: Ubuntu 24.04 (Noble Numbat) is ready.

New Ubuntu 24.04 (Noble Numbat) will be released after 5-6 weeks, now we have preview version to download and run on ODROID-N2/N2Plus/C4/M1/M1S. Linux kernel 6.6 is coming with this release, probably it will be switched to the version of Linux kernel 6.8 as announced the official version of Ubuntu 24.04, but maybe keep running Linux kernel 6.6 that is a LTS version of upstream. Also note that I am thinking of managing the device tree overlays in an independent package from Linux kernel 6.6, but it's not completed yet. Therefore, new image with Ubuntu 24.04 won't work any device tree overlay support yet.

Download links. Welcome your feedback. :D
Attachments
Screenshot from 2024-03-17 11-09-17.png
Screenshot from 2024-03-17 11-09-17.png (775.69 KiB) Viewed 2059 times
These users thanked the author tobetter for the post:
odroid (Mon Mar 18, 2024 11:38 am)

User avatar
mad_ady
Posts: 12102
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by mad_ady »

Perfect! I will try to dist-upgrade my 23.10 M1 to this... when I have time....

specs
Posts: 198
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: Odroid N2/N2+/M1/M1S
Has thanked: 47 times
Been thanked: 27 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by specs »

Since I had a bit of time, I'd though to test with the M1S.
Only result I had however was solid red + solid blue ledlights.

Test setup:
- Booting from SD
- the internal eMMC contains the factory Ubuntu (not used)
- the NVMe was detached to prevent interference
- power use was approximately 1.25W from which I expect the startup was not completed.
- Wireless LAN (8192) and Wireless keyboard were plugged in.

Sometimes the system won't start without ethernet plugged in, but I hope it is not the case in this early stage.
Does the M1S on boot with the image at your place?

Code: Select all

$ md5sum Downloads/ubuntu-24.04-server-odroidm1s-20240313.img.xz 
ac5e08d0e89969b77645ea5e271dafc7  Downloads/ubuntu-24.04-server-odroidm1s-20240313.img.xz
$ sha256sum Downloads/ubuntu-24.04-server-odroidm1s-20240313.img.xz 
7c598bb00bc0dea8d8d70c7db878f30bcc3ba7f9ab4ea682947ffc67b732bf2e  Downloads/ubuntu-24.04-server-odroidm1s-20240313.img.xz

Code: Select all

# !xz
xz -cd Downloads/ubuntu-24.04-server-odroidm1s-20240313.img.xz | dd of=/dev/sda status=progress
2450039296 bytes (2.5 GB, 2.3 GiB) copied, 684 s, 3.6 MB/s 
4791218+0 records in
4791218+0 records out
2453103616 bytes (2.5 GB, 2.3 GiB) copied, 688.646 s, 3.6 MB/s

specs
Posts: 198
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: Odroid N2/N2+/M1/M1S
Has thanked: 47 times
Been thanked: 27 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by specs »

Next I tried with a N2plus.

Here also I bypassed the eMMC and installed from SD.
The installation process is weird, normally you install and then you have an image on your disk.
Here you download a large diskimage and then you start you get a fairly minimal installation.

The next step

Code: Select all

$ sudo apt update && sudo apt upgrade
Gives you the normal installation, with keyboard, language, etc..
But the installation is still cripled,

Code: Select all

$ sudo apt update && sudo apt dist-upgrade
is needed to complete the installation.

After the basic updates the window/session manager still needs to be installed. That proved hard. For lxde dependencies are missing. I managed to install xfce.
I believe installation of the ubuntu-session was hanging due to a cups dependency.

I see some information onscreen flashing.
According to the logfiles lightdm and Xorg should be working, but I'm looking at a black screen.
Via ssh I can login. Hardly a usable system.

Code: Select all

$ uname -a
Linux server 6.6.0-odroid-arm64 #1 SMP PREEMPT Wed, 21 Feb 2024 07:17:12 +0000 aarch64 aarch64 aarch64 GNU/Linux
$ cat /proc/version 
Linux version 6.6.0-odroid-arm64 (tobetter@gmail.com) (gcc-12 (Ubuntu 12.3.0-14ubuntu1) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #1 SMP PREEMPT Wed, 21 Feb 2024 07:17:12 +0000
$ cat /proc/device-tree/model 
Hardkernel ODROID-N2Plus
There are still lots of dependency problems upstream. The black screen is also a showstopper.

fvolk
Posts: 945
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C4, H3, M1S
Has thanked: 0
Been thanked: 155 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by fvolk »

we have preview version to download and run on ODROID-N2/N2Plus/C4/M1/M1S. Linux kernel 6.6 is coming with this release
Awesome. I have here a C4 still running 5.13.16-202207222133~focal (don't remember what image I used back then) which is in a pressing need of an upgrade. I thought I wait until 24.04 - when I use one of these images now, will I be just "update+upgrade" to the final 24.04 release?

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

fvolk wrote:
Wed Apr 10, 2024 10:29 pm
we have preview version to download and run on ODROID-N2/N2Plus/C4/M1/M1S. Linux kernel 6.6 is coming with this release
Awesome. I have here a C4 still running 5.13.16-202207222133~focal (don't remember what image I used back then) which is in a pressing need of an upgrade. I thought I wait until 24.04 - when I use one of these images now, will I be just "update+upgrade" to the final 24.04 release?
You could be able to upgrade to newer version with the command sudo do-release-upgrade -d and need more manual package update from ppa.linuxfactory.or.kr since /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list is not renamed not to update package from the server.

fvolk
Posts: 945
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C4, H3, M1S
Has thanked: 0
Been thanked: 155 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by fvolk »

specs wrote:
Mon Apr 01, 2024 8:54 pm
Since I had a bit of time, I'd though to test with the M1S.
Only result I had however was solid red + solid blue ledlights.
Does the M1S on boot with the image at your place?
Also tried ubuntu-24.04-server-odroidm1s-20240313.img on M1S.

Does not boot --> only black screen.

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

fvolk wrote:
Mon Apr 22, 2024 4:37 am
specs wrote:
Mon Apr 01, 2024 8:54 pm
Since I had a bit of time, I'd though to test with the M1S.
Only result I had however was solid red + solid blue ledlights.
Does the M1S on boot with the image at your place?
Also tried ubuntu-24.04-server-odroidm1s-20240313.img on M1S.

Does not boot --> only black screen.
Did you boot from SD or eMMC?
The image have a problem to boot from SD, boot from eMMC is fine.

fvolk
Posts: 945
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C4, H3, M1S
Has thanked: 0
Been thanked: 155 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by fvolk »

tobetter wrote:
Mon Apr 22, 2024 8:48 am
fvolk wrote:
Mon Apr 22, 2024 4:37 am
Also tried ubuntu-24.04-server-odroidm1s-20240313.img on M1S.
Does not boot --> only black screen.
Did you boot from SD or eMMC?
The image have a problem to boot from SD, boot from eMMC is fine.
SD - faster to switch, I'm still undecided what the final system will be.

fvolk
Posts: 945
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C4, H3, M1S
Has thanked: 0
Been thanked: 155 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by fvolk »

Any estimate when a new build will be available, now that 24.04 is officially out?

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

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

fvolk wrote:
Fri May 03, 2024 8:04 am
Any estimate when a new build will be available, now that 24.04 is officially out?
All packages are already uploaded.

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

Is there going to be a download for the N2L soon? The wiki says that due to the differences between the DDR memory the N2 images can’t be used on the N2L boards. Is that still the case here?

specs
Posts: 198
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: Odroid N2/N2+/M1/M1S
Has thanked: 47 times
Been thanked: 27 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by specs »

It seems like the images at the start of this chapter are still the images made in march:
https://ppa.linuxfactory.or.kr/images/raw/arm64/noble/
I'd think the current links in the 1st message are not usable.

Petitboot however uses the images from:
http://ppa.linuxfactory.or.kr/installer ... stall.a64/

The dtb's from m1/m1s/go2/go3n2/n2plus/c4/c2/hc4 are present.
For the N2L the meson-g12b-odroid-n2l.dtb is present, but I'd guess one would need the meson64_odroidn2l.dtb for the installation via petitboot.

However the M1S cannot netboot with petitboot. The N2L might have the same problem since it also has no SPI.

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

specs wrote:
Sun May 05, 2024 11:05 pm
However the M1S cannot netboot with petitboot. The N2L might have the same problem since it also has no SPI.
Thank you for the reply.

It seems like I’ll have to wait a little longer for 24.04. I’ve been waiting several days watching this thread and the Ubuntu N2 forum for a d/l link. It feels like it should drop any day now that 24.04 is officially out, but the wait is killing me. 8-)

It would be even better if there was some way to upgrade from 22.04 to 24.04 without having to reflash my eMMC, but that is probably not going to be possible.

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

Jaweta6176 wrote:
Mon May 06, 2024 4:17 am
It would be even better if there was some way to upgrade from 22.04 to 24.04 without having to reflash my eMMC, but that is probably not going to be possible.
You can upgrade from 22.04 to 24.04 if your OS is being updated through ppa.linuxfactory.or.kr. Replace "jammy" to "noble" in "/etc/apt/sources.list" and "/etc/apt/sources.d/ppa_linuxfactory_or_kr.list" and run these commands.

Code: Select all

sudo apt update
sudo apt upgrade
After reboot, run dpkg -l | grep jammy then share the list if you have any.

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

tobetter wrote:
Mon May 06, 2024 8:55 am
You can upgrade from 22.04 to 24.04 if your OS is being updated through ppa.linuxfactory.or.kr. Replace "jammy" to "noble" in "/etc/apt/sources.list" and "/etc/apt/sources.d/ppa_linuxfactory_or_kr.list" and run these commands.
Unfortunately, I don’t have a ppa_linuxfactory_or_kr.list in /etc/apt/sources.d/
I only have the following:
hardkernel-ubuntu-ppa-focal.list
hardkernel-ubuntu-ppa-focal.list.distUpgrade
mozillateam-ubuntu-ppa-jammy.list
mozillateam-ubuntu-ppa-jammy.list.distUpgrade
odroid.list
odroid.list.distUpgrade
odroid.list.save
saiarcot895-ubuntu-chromium-beta-jammy.list
saiarcot895-ubuntu-chromium-beta-jammy.list.distUpgrade

If you can post the ppa_linuxfactory_or_kr.list for the N2L I could copy it to /etc/apt/sources.d/ and run apt update && apt upgrade.

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

Jaweta6176 wrote:
Mon May 06, 2024 9:25 am
tobetter wrote:
Mon May 06, 2024 8:55 am
You can upgrade from 22.04 to 24.04 if your OS is being updated through ppa.linuxfactory.or.kr. Replace "jammy" to "noble" in "/etc/apt/sources.list" and "/etc/apt/sources.d/ppa_linuxfactory_or_kr.list" and run these commands.
Unfortunately, I don’t have a ppa_linuxfactory_or_kr.list in /etc/apt/sources.d/
I only have the following:
hardkernel-ubuntu-ppa-focal.list
hardkernel-ubuntu-ppa-focal.list.distUpgrade
mozillateam-ubuntu-ppa-jammy.list
mozillateam-ubuntu-ppa-jammy.list.distUpgrade
odroid.list
odroid.list.distUpgrade
odroid.list.save
saiarcot895-ubuntu-chromium-beta-jammy.list
saiarcot895-ubuntu-chromium-beta-jammy.list.distUpgrade

If you can post the ppa_linuxfactory_or_kr.list for the N2L I could copy it to /etc/apt/sources.d/ and run apt update && apt upgrade.
Sorry, your set up is from Hardkernel's official package server while this thread is not from unofficial package server with upstream kernel. You need to reflash your eMMC with new image when it arrives or you can upgrade if you flash unofficial 22.04 image.
https://ppa.linuxfactory.or.kr/images/raw/arm64/jammy/

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

Okay, I’ll flash my eMMC tomorrow and try upgrading that way. Thank you for responding quickly.
Any idea when the new image will arrive?

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

Jaweta6176 wrote:
Mon May 06, 2024 9:35 am
Okay, I’ll flash my eMMC tomorrow and try upgrading that way. Thank you for responding quickly.
Any idea when the new image will arrive?
Maybe I will build one today and can uploaded in a couple of days after testing.

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

tobetter wrote:
Mon May 06, 2024 10:01 am
Maybe I will build one today and can uploaded in a couple of days after testing.
That would be great. Thanks!

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

Jaweta6176 wrote:
Mon May 06, 2024 10:05 am
tobetter wrote:
Mon May 06, 2024 10:01 am
Maybe I will build one today and can uploaded in a couple of days after testing.
That would be great. Thanks!
Server image for ODROID-N2L is uploaded, but please note that the current image is based on Linux kernel v6.1 and v6.6 is still being tested.
https://ppa.linuxfactory.or.kr/images/raw/arm64/noble/

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

tobetter wrote:
Tue May 07, 2024 7:03 pm
Server image for ODROID-N2L is uploaded, but please note that the current image is based on Linux kernel v6.1 and v6.6 is still being tested.
https://ppa.linuxfactory.or.kr/images/raw/arm64/noble/
I tried flashing an older image of 22.04 and upgrading to 24.04 as you suggested earlier. However, I ran into the same problem that specs had with a black screen and a soild blue and red light.

The image you posted above works, but it is extremely minimal. The only way for me to connect to the internet on the n2l is with a wireless router. There are no wireless drivers present in the image. These are the steps I took to get internet in case anyone else wants to try the above image.

Everything you need will have to be downloaded onto a usb drive from another computer.

First you have to determine what driver you will need for your wireless adapter. I’m using a Alfa AWUS036ACH usb dual-band AC1200. I have to compile the 8812au driver for this adapter from source. The source code can be found here:
https://github.com/morrownr/8812au-20210629

The server images is missing the necessary packages to compile the drivers along with a few necessary networking tools. You will need build-essential, dkms, and linux-headers-$(uname -r) for compiling and installing the driver. Note: It is important to use linux-headers-6.1.0-odroid-arm64 and not linux-headers-generic. Generic will install the headers for 6.6 and that is not the kernel this image is running. We are also missing wpasupplicant and isc-dhcp-client.

To find out what needs to be downloaded for each package I run the following code.

Code: Select all

apt-get —print-uris -qq install <package-name> | cut -d\’ -f2 > <package-name>.urls
Where <package-name> is the name of the package. The .urls file will now contain a file with a url on each line for the package and all of its dependencies that need to be downloaded.

I output all of these .urls files for each package that I needed into a separate folder. Then I do the following to get a separate master list:

Code: Select all

cat urls/*.urls | sort | uniq > all.urls
all.urls should contain urls to all packages needed without any duplicates.

You should be able to wget -i all.urls in a separate directory with that list. However the only computer I had available to me with Internet was a Windows computer.

If anyone is stuck in the same situation as me here is what I found works. On the usb drive with the files create a separate folder for all the downloaded files and open a terminal in there. Windows defaults to power shell but the method I found that works uses its old shell.
So type cmd.exe to bring that up then type the following:

Code: Select all

FOR /f “tokens=*” %a in (D:\all.urls) do curl -o %~nxa %a
This assumes that the usb is registered as a “D” drive and the all.urls file is in the root folder.
You can replace what comes after the do with @echo %a to test whether it is reading the urls correctly.

With all the packages downloaded you can transfer the usb drive back to the n2l and run the following code to install all the packages.

Code: Select all

sudo dpkg -Ri path/to/folder
After that I followed the instructions to build and install the wireless driver and rebooted.

ifconfig -a should show wlan0 if the driver is working properly.
Next I bring the wireless device up with sudo ifconfig wlan0 up.
Then I create a .conf file for wpa_supplicant at /etc/wpa_supplicant.conf

Code: Select all

network={
ssid=“your-ap-here”
psk=“your-password”
}
Don’t forget the “” or wpa_supplicant won’t accept the .conf file
Then run the following:

Code: Select all

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Finally run this and you should get internet:

Code: Select all

sudo dhclient
With that I apt update && apt upgrade then I could install the ubuntu-desktop-minimal package with apt the normal way.
Everything seems to be working except hdmi sound which I’ll post about later.

Jaweta6176
Posts: 7
Joined: Sat May 04, 2024 3:23 am
languages_spoken: english
ODROIDs: N2L odroid xu3
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Jaweta6176 »

Continuing from my previous post, after installing ubuntu-desktop-minimal I noticed there was no sound. I checked under Settings->Sound and there was “dummy output” listed.
I checked dmesg logs and found something like this repeated:

Code: Select all

fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
After doing some research it appears that the error is the audio mixer settings are not setup.
I tried installing the odroid-alsa package to see if that would help then I rebooted. Nothing improved.

I then did some more research and found the following commands on another forum.
HDMI

Code: Select all

sudo amixer -c 0 set 'TOHDMITX' 'on'
sudo amixer -c 0 set 'TOHDMITX I2S SRC' 'I2S B'
sudo amixer -c 0 set 'TDMOUT_B SRC SEL' 'IN 0'
sudo amixer -c 0 set 'FRDDR_A SRC 2 EN' 'on'
sudo amixer -c 0 set 'FRDDR_A SINK 1 SEL' 'OUT 0'
sudo amixer -c 0 set 'FRDDR_A SINK 2 SEL' 'OUT 1'
sudo amixer -c 0 set 'FRDDR_A SINK 3 SEL' 'OUT 2'
sudo amixer -c 0 set 'ACODEC' '85%' 
sudo alsactl store
ANALOG

Code: Select all

sudo amixer -c 0 set 'TOACODEC OUT EN' 'on'
sudo amixer -c 0 set 'TOACODEC SRC' 'I2S B'
sudo amixer -c 0 set 'TDMOUT_B SRC SEL' 'IN 0'
sudo amixer -c 0 set 'FRDDR_A SRC 2 EN' 'on'
sudo amixer -c 0 set 'FRDDR_A SINK 1 SEL' 'OUT 0'
sudo amixer -c 0 set 'FRDDR_A SINK 2 SEL' 'OUT 1'
sudo amixer -c 0 set 'FRDDR_A SINK 3 SEL' 'OUT 2'
sudo amixer -c 0 set 'ACODEC' '85%'
sudo alsactl store
After having run all of those commands I needed to reboot. Then the sound came back. :D

That is all the issues I found with the image so far.
These users thanked the author Jaweta6176 for the post (total 2):
tobetter (Thu May 09, 2024 1:54 am) • odroid (Thu May 09, 2024 9:05 am)

back2future
Posts: 349
Joined: Sun Jul 23, 2017 3:19 pm
languages_spoken: english
Has thanked: 16 times
Been thanked: 12 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus

Post by back2future »

Is there a chance not enabling GPU hardware acceleration for the desktop GUI (environment variable, on|off switch, etc.), but having software rendering instead for the windowing/compositing&animation/rendering functionality?
(it is because of a different, unsupported hardware configuration for monitor settings being on USB display driver for the desktop on N2, not supported by mesa) (thx)

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

I just tried thy N2L image just to see it has no Network Manager, no USB NIC support, no bluetooth and no wifi drivers.
At least it did boot up. How am I supposed to get all the updates and missing features?
First thought was to download and compile the wifi driver, but there is no compiler preinstalled.

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

chatplosion wrote:
Sun May 19, 2024 6:42 pm
I just tried thy N2L image just to see it has no Network Manager, no USB NIC support, no bluetooth and no wifi drivers.
At least it did boot up. How am I supposed to get all the updates and missing features?
First thought was to download and compile the wifi driver, but there is no compiler preinstalled.
New image is uploaded, can you try with this?
https://ppa.linuxfactory.or.kr/images/r ... 521.img.xz

By the way, what the VID/PID of your USB NIC device?
These users thanked the author tobetter for the post:
chatplosion (Thu May 23, 2024 4:59 am)

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

@tobetter

I thank you a lot.
Now I can connect finally.
I will directly start with getting started.
My NIC was 0bda:c820

I feel honoured to use Kernel 6.6!
These users thanked the author chatplosion for the post:
tobetter (Thu May 23, 2024 12:29 pm)

Podycust
Posts: 19
Joined: Fri Sep 15, 2023 6:19 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Podycust »

hi how can I create a custom kernel for this build?

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

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

Podycust wrote:
Thu May 23, 2024 7:24 pm
hi how can I create a custom kernel for this build?
You can start from here.
https://docs.linuxfactory.or.kr/guides/ ... ernel.html
These users thanked the author tobetter for the post:
Podycust (Fri May 24, 2024 5:41 pm)

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

Jaweta6176 wrote:
Thu May 09, 2024 1:20 am
Continuing from my previous post, after installing ubuntu-desktop-minimal I noticed there was no sound. I checked under Settings->Sound and there was “dummy output” listed.
I checked dmesg logs and found something like this repeated:

Code: Select all

fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0
fe.dai-link-0: ASoC: error at dpcm_fe_dai_prepare on fe.dai-link-0: -22
After doing some research it appears that the error is the audio mixer settings are not setup.
I tried installing the odroid-alsa package to see if that would help then I rebooted. Nothing improved.

I then did some more research and found the following commands on another forum.
HDMI

Code: Select all

sudo amixer -c 0 set 'TOHDMITX' 'on'
sudo amixer -c 0 set 'TOHDMITX I2S SRC' 'I2S B'
sudo amixer -c 0 set 'TDMOUT_B SRC SEL' 'IN 0'
sudo amixer -c 0 set 'FRDDR_A SRC 2 EN' 'on'
sudo amixer -c 0 set 'FRDDR_A SINK 1 SEL' 'OUT 0'
sudo amixer -c 0 set 'FRDDR_A SINK 2 SEL' 'OUT 1'
sudo amixer -c 0 set 'FRDDR_A SINK 3 SEL' 'OUT 2'
sudo amixer -c 0 set 'ACODEC' '85%' 
sudo alsactl store
ANALOG

Code: Select all

sudo amixer -c 0 set 'TOACODEC OUT EN' 'on'
sudo amixer -c 0 set 'TOACODEC SRC' 'I2S B'
sudo amixer -c 0 set 'TDMOUT_B SRC SEL' 'IN 0'
sudo amixer -c 0 set 'FRDDR_A SRC 2 EN' 'on'
sudo amixer -c 0 set 'FRDDR_A SINK 1 SEL' 'OUT 0'
sudo amixer -c 0 set 'FRDDR_A SINK 2 SEL' 'OUT 1'
sudo amixer -c 0 set 'FRDDR_A SINK 3 SEL' 'OUT 2'
sudo amixer -c 0 set 'ACODEC' '85%'
sudo alsactl store
After having run all of those commands I needed to reboot. Then the sound came back. :D

That is all the issues I found with the image so far.
I did install odroid-alsa directly after the first internet connection and used "sudo apt install ubuntu-desktop^". I had sound.
Installing the package before desktop makes it a lot easier.

@tobetter

Thanks for your investment of work and private time!
These users thanked the author chatplosion for the post:
tobetter (Fri May 24, 2024 5:31 am)

Podycust
Posts: 19
Joined: Fri Sep 15, 2023 6:19 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Ubuntu 24.04 (Preview) for ODROID-N2/N2Plus/M1/M1S

Post by Podycust »

tobetter wrote:
Thu May 23, 2024 7:45 pm
Podycust wrote:
Thu May 23, 2024 7:24 pm
hi how can I create a custom kernel for this build?
You can start from here.
https://docs.linuxfactory.or.kr/guides/ ... ernel.html
Thanks

I’ve not be able to get the fan on the n2 plus to work in this image

I’ve tried enable writable thermal trips in kernel config and setting /sys/devices/virtual/thermal/thermal_zone0/trip_point_4_temp to 20000

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

As I understand now, Ubuntu Desktop uses pipewire with wireplumber which is now working much better than it did with 22.04.
But some mysteries still exist.

This is the terminal output after U-Boot.

Code: Select all

[    0.827810] genirq: Setting trigger mode 3 for irq 21 failed (meson_gpio_irq_set_type+0x0/0x60)
[   16.188148] meson-drm ff900000.vpu: DSI transceiver device is disabled
[   16.729237] panfrost ffe40000.gpu: error -ENODEV: _opp_set_regulators: no regulator (mali) found
[   34.552251]  fe.dai-link-2: ASoC: no backend DAIs enabled for fe.dai-link-2, possibly missing ALSA mixer-based routing or UCM profile
Does someone know how this is caused?

odroid-base and odroid-alsa are installed and the terminal solution of Jaweta6176 is also applied.

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

I tested something with the temperature simulators.
Interesting discovery: the lmsensors show 1rpm if the fan is active regardless of its actual speed.
I did get that the trip_points 3 (active fan) and 4 (full-speed fan) are for the fan activity.
The problem is that the kernel is compiled with fixed trip_points.
Is it really necessary to rewrite the devicetree to bypass it?
Last edited by chatplosion on Fri May 31, 2024 12:19 pm, edited 1 time in total.

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

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

chatplosion wrote:
Fri May 31, 2024 12:07 pm
I tested something with the temperature simulators.
I did get that the trip_points 3 (active fan) and 4 (full-speed fan) are for the fan activity.
The problem is that the kernel is compiled with fixed trip_points.
Is it really necessary to rewrite the devicetree to bypass it?
If you want to change the trip point, you would write the device tree in order to override the stock value and if you made something for your needs, they can be added to package update release.

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

Hello everyone,

I changed all active cooling to 20°C.
Throtteling and emergency deactivation are kept stock.

At this temperature the fan is near to always active as I don't know places for tech that are much cooler.

But I think that all not ethernet parts can be stripped as well.
The N2L doesn't have ethernet connector at all.
20_degree_celsius.zip
(57.72 KiB) Downloaded 5 times
By the way, are there possibilities to boost the fan voltage, if wanted, to 5V-5.5V?
How much voltage can the LPDDR4 take? Maybe a small voltage increase can make the memory controller stable faster.

I know that some changes have to be done in U-Boot as well.

I don't want to roast anything, just pimp it up a bit. Giving the N2L the name Raspberry killer...

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

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by tobetter »

chatplosion wrote:
Fri May 31, 2024 1:44 pm
Hello everyone,

I changed all active cooling to 20°C.
Throtteling and emergency deactivation are kept stock.

At this temperature the fan is near to always active as I don't know places for tech that are much cooler.

But I think that all not ethernet parts can be stripped as well.
The N2L doesn't have ethernet connector at all.
20_degree_celsius.zip
What about to use such device tree overlays instead of changing the main device tree?
https://github.com/tobetter/linux/blob/ ... d-full.dts
https://github.com/tobetter/linux/blob/ ... owtemp.dts

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

I looked up your hyperlinks.
Now I understand the overlays a bit better.
They work as assets that overwrite or add entries of the devicetree.

fanspeed-full overwrites the line 3727 of meson64_odroidn2l.dtb with 4 times 220(16), to keep the fan always on.
pwnfan-lowtemps overwrites the temperatures of the trip points to start the fan if 40°C is reached and at 45°C drives at full speed.

But only the N2 and N2+ have two speed-levels but the N2L has only one.

I will try to copy your overlays from kernel 6.1 to the amlogic folder in boot.

chatplosion
Posts: 77
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC, Odroid-N2L 4GB-RAM
Has thanked: 10 times
Been thanked: 5 times
Contact:

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by chatplosion »

I didn't get the overlays running.

This is what showed up at startup:

Code: Select all

Starting kernel ...

uboot time: 8335367 us
[    0.820334] genirq: Setting trigger mode 3 for irq 18 failed (meson_gpio_irq_set_type+0x0/0x60)
[   16.155148] meson-drm ff900000.vpu: DSI transceiver device is disabled
[   17.091259] panfrost ffe40000.gpu: error -ENODEV: _opp_set_regulators: no regulator (mali) found
[   36.655524] axg-tdm-iface audio-controller-1: ASoC: error at snd_soc_component_set_bias_level on audio-controller-1: -5
[   36.660666] axg-tdm-iface audio-controller-1: ASoC: Failed to prepare bias: -5
[   36.792067]  fe.dai-link-2: ASoC: no backend DAIs enabled for fe.dai-link-2, possibly missing ALSA mixer-based routing or UCM profile

Ubuntu 24.04 LTS server ttyAML0

What is the trigger mode error for the gpio?

My mesa library is dated to 24.2 (git-71d455b 2024-06-01) by oibaf repository.

Do the regulators on the gpu even exist?
And what is the audio-controller error?

There is a lot of work to do. At this time I am not competent enough.

Sp4rKy
Posts: 3
Joined: Sun Jun 30, 2024 5:45 am
languages_spoken: english
ODROIDs: m1,xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 24.04 for ODROID-N2/N2Plus/M1/M1S

Post by Sp4rKy »

I'm hitting the "sata disappear" (viewtopic.php?f=207&t=46119&p=386760#p386760) issue after upgrade from 22.04 to 24.04

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 5 guests