Arch Linux for Radxa CM5 on uConsole `

Hey everyone! I’ve successfully gotten Arch Linux running on my uConsole with Radxa CM5.

(Pre-Built Image Available)

If you just want to get up and running quickly, I’ve created a pre-built and fully configured Arch Linux image:

:inbox_tray: Download: MEGA link (.gz compressed)

For the complete step-by-step build instructions with all details, check out my GitHub README on the arch-linux-6.1-stan-rkr4.1 branch.

6 Likes

I will have to try this will it work on newer Uconsole screen and boards if it has updated drivers.

Thanks for the image i have it working i am using the hackergadgets radxa cm5 board and usb 3.0 expanshion card with the wifi card. But i dont see any network connections show up any ideas? I think I need to somehow install the WiFi drivers for the hackerGadgets dongle.

I am having issues starting the network manager service its not loaded as default? Please see below so I cant get connected via LAN or WiFi,

Wifi wont work, did you try ethernet? I have ordered a new sdcard order coming before I change stuff.

Wifi for me will need compiling the external adapter drivers, which will again be different if you’re using the AIO v2 typec wifi module.

Hi yes I tried the LAN cable but that wont work either I tried rex CM5 image the LAN works under that fine. Rex also said the below.

the script won’t work because radxa doesn’t use pinctrl and even if it did the pin are different. you’ll just need to figure out the new pin names and turn them on manually. or someone needs to rewrite the script for the radxa.

@jutleys I have another bug, there is no battery indicator, but do you know any way to know if the batteries are charging?

Hi yea if you shut down light should be orange plugged in then green when charged

I have been using ethernet that works for me smh

Hi ,randomlinuxuser 。I encountered some issues while compiling the USB WiFi driver. It seems that the kernel headers are missing. Do you have the kernel header files corresponding to the image you packaged? Could you provide a copy? Thank you.

@hzykiss can you try this 6.182-kernel-headers ?

Edit: it was broken 3hrs ago I have updated it.

The issues in v1 were:
– Missing headers
– No battery indicator
– NetworkManager failing

I’m pushing v2 here that resolves all those: https://mega.nz/folder/z5ZxSCYI#b-rJsEowMmxlBCgv1S-Jpg
I have also updated the GITHUB readme with cleaner instructions.

Thanks for testing!

1 Like

battery&NetworkManager is ok,but There is still a problem with the kernel headers; it shows that the current kernel headers are for the X86 architecture.

By the way, there’s another issue: when the screen automatically locks and you turn it on again, it shows a multicolored distorted screen.

@hzykiss try this 6.1.84-2

Yea that multicolor issue is also there on original non-uconsole radxa arch linux image, i don’t know why that happens.

Thank you, but the problem persists after I tried installing this. By the way, I also tried building the kernel and kernel headers directly on the Radxa CM5. The tools in the built kernel headers are for the ARM architecture, but I might have done something wrong. After installation, the system goes black on reboot, and I can only use SSH. Maybe you could also try building it directly on the Radxa CM5 when you have time, and I will continue to try as well.

I don’t have the hackergadgets wifi adapter, do you know any other way i can know if the header is wrong? The installation runs fine and my uconsole boots.

I found this: https://forum.radxa.com/t/dkms-building-error/307/8?u=hzykiss, which seems to be able to solve some binary architecture errors in kernel headers.

After going through the kernel headers, there are a total of 57 X86 architecture files. I have fixed 51 of them. The remaining 6 still have compilation errors and have not been resolved yet. However, the 51 files that have been fixed are sufficient for me to compile the rtl8831 USB wifi adapter. The fixed files have already been uploaded. You can download and extract them under the clockwork user and copy them to overwrite the original kernel header files. Those who need them can use them. : https://drive.google.com/file/d/1pMP7LTXttBAS5lvH-2UmQcOpEB2gFUEy/view?usp=sharing

cp /home/clockwork/hzyarmfile/lex.lex.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/genksyms/lex.lex.o
cp /home/clockwork/hzyarmfile/parse.tab.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/genksyms/parse.tab.o
cp /home/clockwork/hzyarmfile/genksyms.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/genksyms/genksyms.o
cp /home/clockwork/hzyarmfile/conf.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/conf.o
cp /home/clockwork/hzyarmfile/util.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/util.o
cp /home/clockwork/hzyarmfile/confdata.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/confdata.o
cp /home/clockwork/hzyarmfile/conf  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/conf
cp /home/clockwork/hzyarmfile/expr.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/expr.o
cp /home/clockwork/hzyarmfile/mconf.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/mconf.o
cp /home/clockwork/hzyarmfile/symbol.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/symbol.o
cp /home/clockwork/hzyarmfile/menu.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/menu.o
cp /home/clockwork/hzyarmfile/preprocess.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/preprocess.o
cp /home/clockwork/hzyarmfile/lexer.lex.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lexer.lex.o
cp /home/clockwork/hzyarmfile/parser.tab.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/parser.tab.o
cp /home/clockwork/hzyarmfile/inputbox.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lxdialog/inputbox.o
cp /home/clockwork/hzyarmfile/util.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lxdialog/util.o
cp /home/clockwork/hzyarmfile/textbox.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lxdialog/textbox.o
cp /home/clockwork/hzyarmfile/yesno.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lxdialog/yesno.o
cp /home/clockwork/hzyarmfile/menubox.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lxdialog/menubox.o
cp /home/clockwork/hzyarmfile/checklist.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/lxdialog/checklist.o
cp /home/clockwork/hzyarmfile/dtc-lexer.lex.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/dtc-lexer.lex.o
cp /home/clockwork/hzyarmfile/fdtoverlay.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/fdtoverlay.o
cp /home/clockwork/hzyarmfile/flattree.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/flattree.o
cp /home/clockwork/hzyarmfile/dtc.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/dtc.o
cp /home/clockwork/hzyarmfile/util.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/util.o
cp /home/clockwork/hzyarmfile/treesource.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/treesource.o
cp /home/clockwork/hzyarmfile/data.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/data.o
cp /home/clockwork/hzyarmfile/fstree.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/fstree.o
cp /home/clockwork/hzyarmfile/dtc-parser.tab.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/dtc-parser.tab.o
cp /home/clockwork/hzyarmfile/fdt_overlay.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_overlay.o
cp /home/clockwork/hzyarmfile/fdt_ro.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_ro.o
cp /home/clockwork/hzyarmfile/fdt_addresses.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_addresses.o
cp /home/clockwork/hzyarmfile/fdt_strerror.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_strerror.o
cp /home/clockwork/hzyarmfile/fdt_empty_tree.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_empty_tree.o
cp /home/clockwork/hzyarmfile/fdt.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt.o
cp /home/clockwork/hzyarmfile/fdt_wip.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_wip.o
cp /home/clockwork/hzyarmfile/fdt_sw.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_sw.o
cp /home/clockwork/hzyarmfile/fdt_rw.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/libfdt/fdt_rw.o
cp /home/clockwork/hzyarmfile/checks.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/checks.o
cp /home/clockwork/hzyarmfile/livetree.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/livetree.o
cp /home/clockwork/hzyarmfile/srcpos.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/srcpos.o
cp /home/clockwork/hzyarmfile/sumversion.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/mod/sumversion.o
cp /home/clockwork/hzyarmfile/file2alias.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/mod/file2alias.o
cp /home/clockwork/hzyarmfile/modpost.o  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/mod/modpost.o
cp /home/clockwork/hzyarmfile/genheaders  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/selinux/genheaders/genheaders
cp /home/clockwork/hzyarmfile/asn1_compiler  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/asn1_compiler
cp /home/clockwork/hzyarmfile/modpost  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/mod/modpost
cp /home/clockwork/hzyarmfile/mk_elfconfig  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/mod/mk_elfconfig
cp /home/clockwork/hzyarmfile/resource_tool  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/resource_tool
cp /home/clockwork/hzyarmfile/kallsyms  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kallsyms
cp /home/clockwork/hzyarmfile/fixdep  /lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/basic/fixdep


Compilation failed and was not fixed, still using the X86 architecture:
/lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/selinux/mdp/mdp
/lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/sorttable
/lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/genksyms/genksyms
/lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/kconfig/mconf
/lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/fdtoverlay
/lib/modules/6.1.84-g4eadd48f6bfb-dirty/build/scripts/dtc/dtc

1 Like