ArchLinux minimal image with RPi 6.6.y kernel for uConsole with CM3/CM4/CM4S

Anyone got moonlight-qt working? I tried installing moonlight-qt from AUR.

It says that it cannot detect HEVC. I am only getting black screen when connecting to host.

Although on the latest bullseye image for uconsole, it also cannot detect HEVC, but at least it streams quite decently with some minor overclock options in config.txt.

According to the RP4 guide for moonlight-qt one is supposed to change /boot/config.txt from kms to fkms but it won’t boot up then (neither on Bullseye or Arch), unfortunately.

Remark: Even though the overlays seem to exist in the overlays directory. Tried all different variations with and without “-pi4” extension in the filename.

UPDATE: Although I could not get HEVC to work.
SDL_AUDIODRIVER=alsa H264_DECODER_HINT=h264_v4l2m2m DRM_FORCE_DIRECT=1 moonlight

Works. Albeit, it hangs and freezes quite often. So basically not usable.
Probably due to the wifi connection being poor.
Hopefully there is some mod to improve wifi connectivity.
It could be because I connected the wifi into the second slot not on the RPI CM4 card itself.
adding
dtparam=ant2
to boot/config.txt gave me big improvements on the wifi at least.

But mostly, moonlight gets black screen with logs:
“video decode unit queue overflow”

Perhaps now when the wifi speed is not as poor, it might be getting to many frames, causing black screen? Don’t know, just a guess.

Tried on both wayland and x11, when I run moonlight-qm in console it starts it with 90 degree counter-clockwise rotation, and mouse cursor doesn’t work.

I don’t know what to tell you about that, but the WiFi, do you still have the original antena? You can buy a cheap one from amazon and attach it (a lot of us did), or the original one, put some thick double sided tape betwen it and the uConsole case itself and fixes it a bit.

Courtesy of @PotatoMania, the 6.6 kernel has been updated.

Please also be advised of the following when updating:

Just dealt with WiFi problem.
What I did is create a temporary wifi without password protection which can be connected. Then just run sudo pacman -S firmware-raspberrypi and reboot. Then password protected wifi can be connected

2 Likes

Nice. So you’re using the latest wpa_supplicant now?

I can confirm that installing/updating firmware-raspberrypi works with the latest wpa_supplicant. But I’m not picking up 5GHz signals, as a consequence.I had to revert to the old one because I’m spoiled by the 5GHz speeds.

I tried only update wpa_supplicant but not work

Update to this one. It’s actually firmware-raspberrypi that broke my 5GHz access. And the signal gets pretty bad as well. So it appears if you need to use the latest wpa_supplicant, it can only work with the latest firmware-raspberrypi package. Looks like I’m still keeping wpa_supplicant in the blacklist.

@PotatoMania, I have assembled the Arch image for uConsole CM4 using the script you have created. I am so grateful for it - I have managed to install pretty much everything I need and now enjoy Arch experience! KDE Plasma works like a charm with a really good level of responsiveness.

I have one question - I still haven’t figured out which bootloader does this system uses. This is definitely not GRUB. I have even modified some of bootloader’s configs to install Waydroid, but still do not now the name of that bootloader. o_O

It uses raspberrypi’s proprietary bootloader. The configuration can be managed though config.txt. Find more on RPi’s website.

1 Like

@PotatoMania , thank you so much!

I’m not losing 5g. Maybe there’s been an update.

@PotatoMania I’ve been setting everything up since yesterday and I have to say, everything has been running perfectly. I didn’t think the transition to arm would run this smoothly, but it’s been fantastic. Thanks!

I have a hard time believing that. Can you share the packages you have installed? (Just the wireless related will do.)

I didn’t install any other than the raspberry pi firmware package and running an update. I have since, but it started working right away.

Then have you restarted since applying the updates?

Yeah, several times. After setting up a passwordless wifi, installing the firmware, and rebooting, everything has worked as expected. I was immediately able to connect to both 2.4 and 5 with no problems with stock network manager. I think I am going to end up doing the antenna because my upstairs doesn’t get great reception on it, but it’s otherwise working fine.

1 Like

My UConsole has arrived, but I don’t know how to install Arch Linux because I haven’t used a Raspberry Pi handheld device before. Should I install it the same way as on a laptop, by downloading the Arch Linux image from the official website, writing it to a USB drive, and then inserting it into the UConsole for installation? Which version should I download, and what should I pay attention to?

Hi @EarthlyCookie, please don’t skip the first post in this thread.

If you want to install arch on uconsole, build the os image using the scripts provided(prefered), or test with the prebuilt image first.

As far as I know, ArchLinux has never released an os image for ARM devices. It ArchLinuxARM, a different organization.

The os image I built utilizes ArchLinuxARM’s existing components, and the only differences are probably the customized kernel package and bootloader configuration.

There’s no known “official” archlinux image works directly on uconsole.

3 Likes

To be fair, there’s no “official” version of any linux that works on the uConsole. Well, not as a stable daily driver at least. The official images from Clockwork are good for testing the hardware works, but for actual usage most people use a community built image, scripts and info provided by community members, or roll their own as a project (and hopefully share it with the community at some point, if it’s different from existing ones).

The uConsole, Devterm, and even Gameshell to a somewhat lesser degree are all projects, and not really “plug and play”. Some nice things about that are they are highly customizable, and they are a good way to learn about stuff. Thankfully there are plenty of people on the forum here figuring stuff out and learning and sharing too. :slight_smile: