Fedora 35 Workstation

Post Reply
MastaG
Posts: 402
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 44 times
Been thanked: 62 times
Contact:

Fedora 35 Workstation

Post by MastaG »

Image

Hi, I finally got my Odroid N2 back which was sitting in Morocco for over a year due to all the covid-19 madness.
So I've created a very clean Fedora 35 image.

Unlike my XU4 image this doesn't come with any custom software such as chromium, kodi or retroarch.
I'll first finish my F35 image for the XU4 before I'll build these for the N2.

Features:
- Kernel 5.11 from tobetter's repository
- tobetter's alsa configuration file
- /usr/local/sbin/gen-uinitrd for re-generating the uInitrd image

Audio and video are working fine.
Furthermore Fedora uses very up to date packages for mesa, so Panfrost seems to work out of the box.

Upon first boot you'll be greeted with the initial setup for setting up your user account.


Download: https://oph.mdrjr.net/MastaG/F35-Odroid_N2.img.xz

Enjoy!
Last edited by MastaG on Sat Nov 13, 2021 9:37 pm, edited 1 time in total.
These users thanked the author MastaG for the post (total 7):
tobetter (Fri Nov 12, 2021 7:33 pm) • istanbulls (Fri Nov 12, 2021 10:01 pm) • odroid (Sun Nov 14, 2021 6:06 pm) • odroidn2user (Sat Nov 20, 2021 6:08 am) • bbk (Thu Dec 09, 2021 3:13 pm) • Nuts_ (Sat Dec 11, 2021 5:54 am) • 4rk4di3n (Wed Feb 09, 2022 2:24 am)

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

Re: Fedora 35 Workstation

Post by rooted »

Nice to see you back in action.
These users thanked the author rooted for the post:
MastaG (Sat Nov 13, 2021 9:37 pm)

bbk
Posts: 1
Joined: Wed Dec 08, 2021 7:52 pm
languages_spoken: english,german,french
ODROIDs: H2+ / N2+
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Fedora 35 Workstation

Post by bbk »

Hi MastaG,

thank you! Do you by any chance have a documentation on who to create the image myself?

Yours,
bbk

trwn2p
Posts: 86
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 3 times
Been thanked: 13 times
Contact:

Re: Fedora 35 Workstation

Post by trwn2p »

I see that you tricked the distro into using /media/boot not /boot. What steps do I take to upgrade the 5.11 to 5.16 kernel?
BTW for others this has Gnome 41 installed. It's not a headless basic version which is fine by me.

MastaG
Posts: 402
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 44 times
Been thanked: 62 times
Contact:

Re: Fedora 35 Workstation

Post by MastaG »

@trwn2p
It's the official Fedora Workstation image for aarch64.
So everything comes from the official repositories.
If you would like to have a headless version, you can try and patch the Fedora Server image instead.

Regarding the kernel, I guess you'll have to build it yourself.
Try to look at GitHub pages from various members such as tobetter, memeka, areascout etc..
I usually just clone and build their Linux repositories lol.
These users thanked the author MastaG for the post (total 2):
odroid (Mon Feb 07, 2022 9:38 am) • 4rk4di3n (Tue Feb 08, 2022 3:56 am)

shrub77
Posts: 2
Joined: Mon Feb 07, 2022 10:04 pm
languages_spoken: english
ODROIDs: Odroid N2+ 4gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Fedora 35 Workstation

Post by shrub77 »

MastaG wrote:
Mon Feb 07, 2022 12:28 am
@trwn2p
It's the official Fedora Workstation image for aarch64.
So everything comes from the official repositories.
If you would like to have a headless version, you can try and patch the Fedora Server image instead.

Regarding the kernel, I guess you'll have to build it yourself.
Try to look at GitHub pages from various members such as tobetter, memeka, areascout etc..
I usually just clone and build their Linux repositories lol.
@MastaG

Would you mind creating a short guide on how to do this? I really want to try fedora but have never worked with Linux before (meaning haven't built my own kernel or u boot)

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

I couldn't get this one to boot:

Download: https://oph.mdrjr.net/MastaG/F35-Odroid_N2.img.xz

or the official download from the Fedora site to boot on an N2+

https://alt.fedoraproject.org/alt/

Tried both settings on the SPI switch!
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

trwn2p
Posts: 86
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 3 times
Been thanked: 13 times
Contact:

Re: Fedora 35 Workstation

Post by trwn2p »

I decided to leave this alone since Masta isn't willing to maintain it with current kernel abilities. I'd suggest if ya want gnome to use the brand new Ubu 22.04. See the new thread in How-to's.

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

Looking at the Fedora support for ARM Wiki page :

https://fedoraproject.org/wiki/Architectures/ARM

Amlogic is not one of the supported devices. Which means Odroid N2(+), Khadas Vim3 or Beelink!
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

trwn2p wrote:
Sun Feb 06, 2022 8:44 am
I see that you tricked the distro into using /media/boot not /boot. What steps do I take to upgrade the 5.11 to 5.16 kernel?
BTW for others this has Gnome 41 installed. It's not a headless basic version which is fine by me.
Did you manage to get MastaG's image to boot?

I had no luck!

Do you have an N2 or N2+?
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

trwn2p
Posts: 86
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 3 times
Been thanked: 13 times
Contact:

Re: Fedora 35 Workstation

Post by trwn2p »

It booted on my N2+ using sdcard and switch set to emmc iirc.

eruo1
Posts: 28
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Fedora 35 Workstation

Post by eruo1 »

Yes, it does boot up. But, not with petitboot.

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

Ok. So I managed to get MastaG's image to boot.

The kernel is at 5.11. Which has no kernel header packages from fedora. So can't add dkms modules. I noticed after the upgrade there was a 5.16 kernel in /boot but the N2(+) is using using /media/boot instead. Not really sure what to play around with here to update the kernel to the latest!
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

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

Re: Fedora 35 Workstation

Post by tobetter »

wallyz21 wrote:
Tue Apr 19, 2022 6:33 pm
Ok. So I managed to get MastaG's image to boot.

The kernel is at 5.11. Which has no kernel header packages from fedora. So can't add dkms modules. I noticed after the upgrade there was a 5.16 kernel in /boot but the N2(+) is using using /media/boot instead. Not really sure what to play around with here to update the kernel to the latest!
I've not played with this image yet, so not have many ideas.

What do you have with cat /etc/fstab and uname -a?

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

Code: Select all

sudo ls -l /media/boot
'total 53026
drwx------. 3 root root     2048 Jul  7  2020 amlogic
-rwx------. 1 root root     2556 Nov 11 07:20 boot.ini
-rwx------. 1 root root     3498 Jan 27  2021 config.ini
-rwx------. 1 root root      120 Jan  1  1980 display.bin
-rwx------. 1 root root      256 Jan  1  1980 edid.bin
-rwx------. 1 root root 27310088 Nov 11 04:57 Image
-rwx------. 1 root root 26970597 Nov 11 04:59 uInitrd
[wallyz@fedora rtl8821CU]$[wallyz@fedora rtl8821CU]$ ls -l /boot
total 257284
-rw-r--r--.  1 root root   215736 Nov 11 16:58 config-5.11.18-n2+
-rw-r--r--.  1 root root   264072 Nov  3 23:19 config-5.14.16-301.fc35.aarch64
-rw-r--r--.  1 root root   270333 Apr 14 07:41 config-5.16.20-200.fc35.aarch64
lrwxrwxrwx.  1 root root       28 Apr 19  2022 dtb -> dtb-5.16.20-200.fc35.aarch64
drwxr-xr-x. 16 root root     4096 Nov  3 23:17 dtb-5.14.16-301.fc35.aarch64
drwxr-xr-x. 16 root root     4096 Apr 14 07:38 dtb-5.16.20-200.fc35.aarch64
drwxr-xr-x.  4 root root     4096 Jan  1  1970 efi
drwx------.  3 root root     4096 Apr 19  2022 grub2
-rw-------.  1 root root 92224816 Apr 19  2022 initramfs-0-rescue-3652cc099c31428a8ec859a239b442d2.img
-rw-------.  1 root root 26970533 Nov 11 16:59 initramfs-5.11.18-n2+.img
-rw-------.  1 root root 27617584 Nov 11 01:07 initramfs-5.14.16-301.fc35.aarch64.img
-rw-------.  1 root root 28537418 Apr 19  2022 initramfs-5.16.20-200.fc35.aarch64.img
drwxr-xr-x.  3 root root     4096 Oct 26 13:59 loader
drwx------.  2 root root     4096 Oct 26 13:54 lost+found
lrwxrwxrwx.  1 root root       48 Nov 11 01:06 symvers-5.14.16-301.fc35.aarch64.gz -> /lib/modules/5.14.16-301.fc35.aarch64/symvers.gz
lrwxrwxrwx.  1 root root       48 Apr 19  2022 symvers-5.16.20-200.fc35.aarch64.gz -> /lib/modules/5.16.20-200.fc35.aarch64/symvers.gz
-rw-r--r--.  1 root root  5349167 Nov 11 16:58 System.map-5.11.18-n2+
-rw-------.  1 root root  6668366 Nov  3 23:19 System.map-5.14.16-301.fc35.aarch64
-rw-------.  1 root root  6875538 Apr 14 07:41 System.map-5.16.20-200.fc35.aarch64
-rw-r--r--.  1 root root 26970597 Nov 11 16:59 uInitrd-5.11.18-n2+
-rwxr-xr-x.  1 root root 13965141 Apr 19  2022 vmlinuz-0-rescue-3652cc099c31428a8ec859a239b442d2
-rwxr-xr-x.  1 root root 13514992 Nov  3 23:20 vmlinuz-5.14.16-301.fc35.aarch64
-rwxr-xr-x.  1 root root 13965141 Apr 14 07:41 vmlinuz-5.16.20-200.fc35.aarch64
[wallyz@fedora rtl8821CU]$ cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Oct 26 05:54:35 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
LABEL=BOOT /media/boot vfat umask=0077 0 1
UUID=c1fb3987-3f55-40d7-aa4f-c3dd4587d407 / ext4 defaults 0 0
[wallyz@fedora rtl8821CU]$ uname -a
Linux fedora 5.11.18-n2+ #1 SMP PREEMPT Thu Nov 11 02:29:05 EST 2021 aarch64 aarch64 aarch64 GNU/Linux
[wallyz@fedora rtl8821CU]$ 

Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

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

Re: Fedora 35 Workstation

Post by tobetter »

wallyz21 wrote:
Tue Apr 19, 2022 6:55 pm

Code: Select all

sudo ls -l /media/boot
'total 53026
drwx------. 3 root root     2048 Jul  7  2020 amlogic
-rwx------. 1 root root     2556 Nov 11 07:20 boot.ini
-rwx------. 1 root root     3498 Jan 27  2021 config.ini
-rwx------. 1 root root      120 Jan  1  1980 display.bin
-rwx------. 1 root root      256 Jan  1  1980 edid.bin
-rwx------. 1 root root 27310088 Nov 11 04:57 Image
-rwx------. 1 root root 26970597 Nov 11 04:59 uInitrd
[wallyz@fedora rtl8821CU]$[wallyz@fedora rtl8821CU]$ ls -l /boot
total 257284
-rw-r--r--.  1 root root   215736 Nov 11 16:58 config-5.11.18-n2+
-rw-r--r--.  1 root root   264072 Nov  3 23:19 config-5.14.16-301.fc35.aarch64
-rw-r--r--.  1 root root   270333 Apr 14 07:41 config-5.16.20-200.fc35.aarch64
lrwxrwxrwx.  1 root root       28 Apr 19  2022 dtb -> dtb-5.16.20-200.fc35.aarch64
drwxr-xr-x. 16 root root     4096 Nov  3 23:17 dtb-5.14.16-301.fc35.aarch64
drwxr-xr-x. 16 root root     4096 Apr 14 07:38 dtb-5.16.20-200.fc35.aarch64
drwxr-xr-x.  4 root root     4096 Jan  1  1970 efi
drwx------.  3 root root     4096 Apr 19  2022 grub2
-rw-------.  1 root root 92224816 Apr 19  2022 initramfs-0-rescue-3652cc099c31428a8ec859a239b442d2.img
-rw-------.  1 root root 26970533 Nov 11 16:59 initramfs-5.11.18-n2+.img
-rw-------.  1 root root 27617584 Nov 11 01:07 initramfs-5.14.16-301.fc35.aarch64.img
-rw-------.  1 root root 28537418 Apr 19  2022 initramfs-5.16.20-200.fc35.aarch64.img
drwxr-xr-x.  3 root root     4096 Oct 26 13:59 loader
drwx------.  2 root root     4096 Oct 26 13:54 lost+found
lrwxrwxrwx.  1 root root       48 Nov 11 01:06 symvers-5.14.16-301.fc35.aarch64.gz -> /lib/modules/5.14.16-301.fc35.aarch64/symvers.gz
lrwxrwxrwx.  1 root root       48 Apr 19  2022 symvers-5.16.20-200.fc35.aarch64.gz -> /lib/modules/5.16.20-200.fc35.aarch64/symvers.gz
-rw-r--r--.  1 root root  5349167 Nov 11 16:58 System.map-5.11.18-n2+
-rw-------.  1 root root  6668366 Nov  3 23:19 System.map-5.14.16-301.fc35.aarch64
-rw-------.  1 root root  6875538 Apr 14 07:41 System.map-5.16.20-200.fc35.aarch64
-rw-r--r--.  1 root root 26970597 Nov 11 16:59 uInitrd-5.11.18-n2+
-rwxr-xr-x.  1 root root 13965141 Apr 19  2022 vmlinuz-0-rescue-3652cc099c31428a8ec859a239b442d2
-rwxr-xr-x.  1 root root 13514992 Nov  3 23:20 vmlinuz-5.14.16-301.fc35.aarch64
-rwxr-xr-x.  1 root root 13965141 Apr 14 07:41 vmlinuz-5.16.20-200.fc35.aarch64
[wallyz@fedora rtl8821CU]$ cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Oct 26 05:54:35 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
LABEL=BOOT /media/boot vfat umask=0077 0 1
UUID=c1fb3987-3f55-40d7-aa4f-c3dd4587d407 / ext4 defaults 0 0
[wallyz@fedora rtl8821CU]$ uname -a
Linux fedora 5.11.18-n2+ #1 SMP PREEMPT Thu Nov 11 02:29:05 EST 2021 aarch64 aarch64 aarch64 GNU/Linux
[wallyz@fedora rtl8821CU]$ 

If your boot script /boot/boot.scr read /boot/vmlinuz-*, I think you can ignore /media/boot and remove the line in /etc/fstab. I guess /media/boot is from Hardkernel's root file system. Please check /boot/boot.scr which kernel is loaded.

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

There is no boot.scr in /boot or anywhere on the system.
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

Looking in /boot there is :
-rw-r--r--. 1 root root 26970597 Nov 11 16:59 uInitrd-5.11.18-n2+
Which has the same hash as the one in /media/boot :
-rwx------. 1 root root 26970597 Nov 11 04:59 uInitrd
But there is no match for the Image in /media/boot
So I'm not sure if that should be :
-rw-------. 1 root root 26970533 Nov 11 16:59 initramfs-5.11.18-n2+.img

Any thoughts?
Last edited by wallyz21 on Thu Apr 21, 2022 3:21 pm, edited 2 times in total.
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

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

Re: Fedora 35 Workstation

Post by tobetter »

wallyz21 wrote:
Thu Apr 21, 2022 2:46 pm
Looking in /boot there is :
-rw-r--r--. 1 root root 26970597 Nov 11 16:59 uInitrd-5.11.18-n2+
Which has the same hash as the one in /media/boot :
-rwx------. 1 root root 26970597 Nov 11 04:59 uInitrd
But there is match for the Image in /media/boot
So I'm not sure if that should be :
-rw-------. 1 root root 26970533 Nov 11 16:59 initramfs-5.11.18-n2+.img

Any thoughts?
Can you check the directory /boot/grub2 or /boot/efi if there is a file that points to 5.11 kernel?

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

I should mention the boot mode is not spi. So where is uboot hardwired to look for the boot.ini? I think it looks for a vfat partition.

I might try booting from spi and test what happens.
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

So to my surprise it is now booting in SPI (petit boot) mode as well but still choosing kernel 5.11 and not the latest.

There are /boot/grub2 & /boot/efi directories which have contents.

I am running grub2-customizer and saving a configuration to see what happens!!!
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

User avatar
wallyz21
Posts: 362
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 34 times
Contact:

Re: Fedora 35 Workstation

Post by wallyz21 »

After configuring grub2 to boot 5.16 the system starts the boot but then fails.

I can see in the petit log that it is reading the grub.cfg from /boot/grub2/grub.cfg.

So I have to assume at this moment that the standard Fedora Work Station F35 images are not N2+ compatible.

The 5.11 N2+ kernel doesn't seem to be shown by the grub-customizer so that is probably an addition my MastaG.

I can still force a boot by using NON SPI mode so all good still.
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 3 guests