Archlinux: XFCE Image for Odroid N2/N2+

Post Reply
jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Archlinux: XFCE Image for Odroid N2/N2+

Post by jgmdev »

Arch Linux is a lightweight and flexible Linux distribution that tries to Keep It Simple but installing it can be daunting for many. So, I worked on a shell script to generate disk images out of ArchLinux tar files (more details about the ArchLinux Disk Image Generator on Github). Sometimes is easier to just burn an image than going thru the whole setup process. So besides Manjaro (which is based on ArchLinux), for those that would like to give ArchLinux a run, here I share this ready to use image.

What is Included?
  • Latest XFCE Desktop Environment.
  • 5.7.x Kernel with N2+ support
  • Mali GPU Kernel Driver. Thanks to @tobetter
  • Binary FBDEV driver for Hardware Acceleration. Thanks to @tobetter for instructions
  • GL4ES for OpenGL to OpenGL ES FBDEV conversion which allows many applications to run with good graphical performance. Thanks to @meveric for instructions.
  • Bluetooth
  • Networking with NetworkManager
  • Pre-configured cpupower with known working settings.
  • Yay AUR helper.
  • Pamac software center.
  • Use of Arc desktop theme and Papirus icon theme by default.
  • Preconfigured bindings that give XFCE tiling functionality (see Keyboard/Window Manager on System Settings).
  • SSH Enabled.
  • Bigger and more readable tty font.
  • Realtime privileges enabled for alarm user for pro-audio.
  • A nice space.jpg wallpaper!
Here are some basic screenshots:

Image

Software Center provided by Pamac

Image

Installation

The process of burning the image into a SD or EMMC card should be the same as with other images and is well documented in other places so I will not write about that. Besides that, the image doesn't boots from petitboot unless you have an updated petitboot installed (20200721 release seems to work) and compatible display (otherwise you will get a blank screen), if not you will need to boot directly from emmc or sdcard.

Login Credentials:
username: alarm
password: alarm

Administration:
username: root
password: root

Don't forget to change the default password for added security.

Setup

With latest image, after booting to the login manager wait some seconds because the system will grow the partition, setup locales, setup the boot partition on /etc/fstab and reboot.

Keyboard Bindings

Note: SuperKey is also known as WinKey
  1. Press SuperKey + a to open the applications menu.
  2. Press SuperKey + t to drop down the terminal
For more bindings check the xfce settings.

Known Issues

If the 5.x.x kernel doesn't properly works with your display try switching to the 4.9.x version which I have pre-built packages here https://mega.nz/folder/jN03DbgZ#CHKKmJt-fYGISCE0t0XmBg named linux-odroid-n2plus-4.9.*-aarch64.pkg.tar.zst and linux-odroid-n2plus-headers-4.9.*-aarch64.pkg.tar.zst. Dont forget to uninstall the dkms-mali-bifrost package which isn't compatible with 4.9.x kernel which already has a mali kernel driver built-in.

What Works?

For details on what tested applications support GPU Hardware Acceleration check the Archlinux: X GPU Acceleration Guide, If you test more OpenGL applications that work with GL4ES let me know to update the list.

Other Images I have Worked on

Odroid N2 ArchLinux GNOME
Odroid N2 ArchLinux Wayfire
Odroid C4 ArchLinux Wayfire
Odroid C4 ArchLinux XFCE

Changes Log

Date - 05/08/2020
* Added automatic resizing of system partition, generation of locales and setup of /etc/fstab
* Fixed booting from emmc module when sdcard is not present by properly setting up /etc/fstab
* Swapped kernel 4.9.10 with 5.7.10 for better rendering performance.

Date - 27/07/2020
* Swapped mainline kernel with hardkernel 4.9.230 g12 branch.
* Updated uboot to latest automatic travis build provided by hardkernel.
* Enabled kernel 4.9.230 modules as in official ubuntu image.
* Removed dkms-mali-bifrost since that driver is already built into kernel.
* Removed dkms-8812au driver which is also built into kernel.
* Modified odroid-n2-libgl-fb to not require dkms-mali-bifrost.
* Added latest GL4ES from git.
* Added latest pamac-aur, xfce4-places-plugin, xfce4-docklike-plugin-git.
* Added realtime privileges to alarm user for pro-audio.

Date - 19/05/2020
* First release

Download

Latest Odroid N2 and N2+ image:
https://mega.nz/file/TBlB2IhS#-68oniRm8 ... rwaoNtDv-M

Pre-built PKGBUILDs to update older image for N2+ support
https://mega.nz/folder/jN03DbgZ#CHKKmJt-fYGISCE0t0XmBg

PKGBUILD sources
https://github.com/jgmdev/archlinux-odroid
Last edited by jgmdev on Sat Aug 08, 2020 2:51 am, edited 16 times in total.
These users thanked the author jgmdev for the post (total 6):
tobetter (Tue May 19, 2020 8:32 pm) • rooted (Wed May 20, 2020 12:05 am) • mad_ady (Wed May 20, 2020 3:25 am) • odroid (Wed May 20, 2020 9:55 am) • istanbulls (Wed May 20, 2020 7:45 pm) • neighbour (Sat Jun 13, 2020 4:32 pm)

User avatar
tobetter
Posts: 5518
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 221 times
Been thanked: 648 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by tobetter »

Welcome XFCE!!
Thanks @jgmdev!!

Sav
Posts: 211
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 48 times
Been thanked: 18 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by Sav »

wonderfull
Thanks

User avatar
istanbulls
Posts: 255
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 140 times
Been thanked: 28 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by istanbulls »

very good news, i try it right now. :)

Thanks,

User avatar
istanbulls
Posts: 255
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 140 times
Been thanked: 28 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by istanbulls »

I did a few different attempts but it didn't work. It stays on the black screen.
The blue heartbeat is slow. The Ethernet bulb does not light.
I also tried with Usb Card reader, the result is unsuccessful.

Sorry,

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by jgmdev »

istanbulls wrote:
Wed May 20, 2020 10:23 pm
I did a few different attempts but it didn't work. It stays on the black screen.
The blue heartbeat is slow. The Ethernet bulb does not light.
I also tried with Usb Card reader, the result is unsuccessful.
Thanks for testing! I just tested burning it to a sd card and it boots for me but only without petitboot. If using petitboot the screen stays black. Maybe an issue with mainline kernel booting from petitboot...

User avatar
istanbulls
Posts: 255
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 140 times
Been thanked: 28 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by istanbulls »

jgmdev wrote:
Wed May 20, 2020 10:36 pm
Thanks for testing! I just tested burning it to a sd card and it boots for me but only without petitboot. If using petitboot the screen stays black. Maybe an issue with mainline kernel booting from petitboot...
I tried with Petitboot, I didn't want to open the casing and eMMC.
I will try without Petitboot! OK.

User avatar
istanbulls
Posts: 255
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 140 times
Been thanked: 28 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by istanbulls »

I am writing this message in Archlinux: XFCE. It works well without Petitboot.

Thanks
These users thanked the author istanbulls for the post:
jgmdev (Wed May 20, 2020 11:07 pm)

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by jgmdev »

istanbulls wrote:
Wed May 20, 2020 10:48 pm
I tried with Petitboot, I didn't want to open the casing and eMMC.
I will try without Petitboot! OK.
In my case the sd card takes priority over the emmc, so inserting a sd card shouldn't require removing the emmc in order to boot from sd, unless something related with android been installed on emmc...

User avatar
istanbulls
Posts: 255
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 140 times
Been thanked: 28 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by istanbulls »

jgmdev wrote:
Wed May 20, 2020 11:10 pm

In my case the sd card takes priority over the emmc, so inserting a sd card shouldn't require removing the emmc in order to boot from sd, unless something related with android been installed on emmc...
There is android on eMMC :)
No sound and no language change option, or I can't find it.
I will change language with the terminal.
I will make adjustments, test and share my experience.
Thanks for everything!

kxe
Posts: 1
Joined: Mon May 25, 2020 6:12 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by kxe »

jgmdev wrote:
Wed May 20, 2020 10:36 pm
it boots for me but only without petitboot. If using petitboot the screen stays black.
Sorry I didn't find how to boot without petitboot, so I see that black screen with blink cursor.
Could you explain how to boot, please?
UPDATE: Found. The boot mode should be switched to MMC as https://wiki.odroid.com/getting_started ... _using_otg says for "Direct booting". I didn't wait some more time to boot arch.

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by jgmdev »

kxe wrote:
Mon May 25, 2020 6:17 am
I didn't wait some more time to boot arch.
Yes, the screen stays black for a couple of seconds until the login manager pops up. That is how it goes with mainline kernel, which in this case is version 5.7. As the main kernel support keeps improving things will work better.

Snippo
Posts: 2
Joined: Sat May 02, 2020 4:30 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by Snippo »

Thanks jgmdev. Works great. The only issue is that Firefox seems to crash with WebGL enabled, as you mentioned in the other topic.

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Disk Image for Odroid N2

Post by jgmdev »

Snippo wrote:
Wed May 27, 2020 11:14 pm
Thanks jgmdev. Works great. The only issue is that Firefox seems to crash with WebGL enabled, as you mentioned in the other topic.
Upgrade to latest odroid-gl4es package on my repo and it should fix the crash issue. Also, as an alternative chromium doesn't have this problem.

joejoe
Posts: 2
Joined: Tue Oct 22, 2019 8:45 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Archlinux: XFCE Image for Odroid N2

Post by joejoe »

Thanks @jmgdev,
Overall very nice image,
I have one problem though, I tried to update system, and after updating kernel, dkms fails to rebuild modules for new kernel.
I don't have the logs now, because I already reinstalled, but I tried it few times and it always failed, the only modification I did was change MMC partition name in fstab.
After update it's not booting at all

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Image for Odroid N2

Post by jgmdev »

joejoe wrote:
Fri Jul 17, 2020 7:15 pm
modification I did was change MMC partition name in fstab.
After update it's not booting at all
I'm booting from external usb SSD and it works properly this is what I have on fstab

Code: Select all

/dev/sda2       /            ext4    defaults,discard  0 0
And this on the boot.ini

Code: Select all

setenv bootargs "root=/dev/sda2 rootwait rw mitigations=off ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 clk_ignore_unused video=HDMI-A-1:1920x1080@60"
You may not need the video=HDMI-A-1:1920x1080@60 part, I use it to force resolution of Xserver or Wayland on display that isn't properly initialized on mainline kernel. Also I use mitigations=off just in case there are kernel vulnerability mitigations turned on for ARM which would actually make the device slower and for my use case I don't need them.

joejoe
Posts: 2
Joined: Tue Oct 22, 2019 8:45 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Archlinux: XFCE Image for Odroid N2

Post by joejoe »

jgmdev wrote:
Wed Jul 22, 2020 2:16 am
joejoe wrote:
Fri Jul 17, 2020 7:15 pm
modification I did was change MMC partition name in fstab.
After update it's not booting at all
I'm booting from external usb SSD and it works properly this is what I have on fstab
well the problem is after kernel update, if i disable kernel packages in pacman all is good, but i dont have new kernel updates,

are kernel updates no problem for you? do the realtek and mali modules rebuild after update?

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Image for Odroid N2

Post by jgmdev »

no issues when updating kernels from archlinuxarm repo's or building my own, but now I don't remember if that image ships latest dkms packages for wifi and mali:

https://github.com/jgmdev/archlinux-odr ... kms-8812au
https://github.com/jgmdev/archlinux-odr ... li-bifrost

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Image for Odroid N2/N2+

Post by jgmdev »

Refreshed the image to support the revised Odroid N2+ which is a beast when overclocked :D !

Changes:
Swapped mainline kernel with hardkernel 4.9.230 g12 branch.
Updated uboot to latest automatic travis build provided by hardkernel.
Enabled kernel 4.9.230 modules as in official ubuntu image.
Removed dkms-mali-bifrost since that driver is already built into kernel.
Removed dkms-8812au driver which is also built into kernel.
Modified odroid-n2-libgl-fb to not require dkms-mali-bifrost.
Added latest GL4ES from git.
Added latest pamac-aur, xfce4-places-plugin, xfce4-docklike-plugin-git.
Added realtime privileges to alarm user for pro-audio.

Pre-built PKGBUILDs to update older image installations for N2+ support
https://mega.nz/folder/jN03DbgZ#CHKKmJt-fYGISCE0t0XmBg

Check first post for download link!
These users thanked the author jgmdev for the post (total 2):
tobetter (Tue Jul 28, 2020 5:31 pm) • odroid (Tue Jul 28, 2020 6:12 pm)

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Archlinux: XFCE Image for Odroid N2/N2+

Post by jgmdev »

Updated the image with the following:

Changes:
* Added automatic resizing of system partition, generation of locales and setup of /etc/fstab
* Fixed booting from emmc module when sdcard is not present by properly setting up /etc/fstab

Check first post for download link!

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest