ArchLinux ARM for uConsole CM4 -- living documentation

Bluetooth i can confirm is working my Bluetooth mouse worked right away. I’ll tryout all the hardware today (GPU, thermal printer, power management, etc.) I’m backing up the sd right now.

1 Like

Great, because I’m having trouble with the bluetooth, and if it works on your side, it’s not a kernel issue :slight_smile:

ok maybe I should unpair the mouse and repair it to make sure its fully functional.
I’ll give it a good go over and report back later. I might put it together in a fresh bookworm image after testing and put it up if thats ok

1 Like

Everything seems to be working as it should except for the thermal printer. I’m not sure if it’s something I’ve done over the past several months since I used it last. Here in a little bit I’ll build a fresh install of bookworm and check everything out. So far so good.

iirc the thermal printer is an i2c device. Make sure you’ve properly configured your config.txt, and started the control daemon

i checked its been like 3 months since i used the printer last and i’ve done a lot of mucking around since. im about to build a new image with the updated kernel to test. but the printer is the only thing thats not working on my devterm currently as far as i cant tell.

Hi guys. See you made great progress here already. Just to be sure 100%. DT and uC share same kernel, right? just some minor diff. (screen if I’m not wrong?).

thats correct and both panels are in the kernel @yatli compiled.

1 Like

Oh cool, so I can just “drop” it into the Manjaro. Let’s experiment! Ty!

1 Like

I just dropped it into kali sd and it worked. Getting close to this device being able to do all the fun stuff it should!

1 Like

You’ll need to disable the kms hook in mkinitcpio, or boot without initramfs (not recommended, need udev early for root partition label) – took me a whole night to figure this out :smiley:

A test rootfs is built:

https://nextcloud.yatao.info:10443/s/sDZTxg7Z2sFWAyW

Quickly put up some instructions:

1 Like

@guu I can’t get 4g module to work. It’s stuck in rndis mode.
I installed usb_modeswitch and added the blacklist files from Raspbian.
Any ideas?

Just looked up the uConsole wiki – it should be in rndis mode.
mmcli -L finds nothing, though.
Name resolution is not working. Using ip addresses I can connect.

mmcli -L shows a modem after a while.

systemd-resolved works. dnsmasq doesn’t.

Sorry, but been trying to understand the instructions from before, but I just can’t wrap my head around it. This RPi world is quite different than I expected to be honest.

When it says “**main step1 / 2”, where do you exactly mean? Same as after follows “step 6,7,8…”.

This RPi world is quite different than I expected to be honest.

Me too!

When it says “**main step1 / 2”, where do you exactly mean? Same as after follows “step 6,7,8…”.

^^ main procedure
Sorry I did not upload the relevant files. It was a super late night(morning) rush.

But with the tarball rootfs, you can skip to prepare SD card

Can we set up a wiki or something for the complete process? I am getting overwhelmed with the jumping back and forth between different articles. I can make time to edit if you want.

I gave up yesterday for the same reason. I bought today a second SD card, so I’m more comfortable trying things.

EDIT: I’ll try to make an img at some point today if I can.

1 Like

I’ve been trying to make a stable system so we can have a clean img to flash SD’s, but this is getting hard for me.

I cannot make the speakers/bluetooth to work in any way. Audio jack works, which surprises me, but not speakers. I’m not sure tho that the speakers - bluetooth thing is related either way, so…

Looking in dmsg I found something about the spi, so “dmsg | grep spi” returns this.

[    5.793489] spi-bcm2835 fe204000.spi: prop pinctrl-0 index 1 invalid phandle
[    5.802553] spi-bcm2835 fe204800.spi: no tx-dma configuration found - not using dma mode

I’ve been trying to figure out what is going on, but considering that I’ve seen my “first” terminal 2 months ago, I reached far. Still will continue to fix it.

Either way, question coming from a total newb (as you can see…). Where should I start to read to learn how to exctract modules/drivers from a kernel, and building another kernel with those modoules/drivers etc? I do really want to have an updated uConsole kernel, so we can easily build new distros.

So, I just realized… Shouldn’t be bcm2711 considering it’s a CM4…? I understand the bcm2835 is from RPI_1?

Many thanks for your work