Debian 13 "Trixie" status ?


brokenxorg means it crashes when launching the display manager, no X

But i fixed it with a little help from claude (if you mind the generated text stay on bookworm):

Debian 13 (trixie) working on the Pyra: three fixes​

The pyra-trixie-t1-brokenxorg image has been sitting in packages.pyra-handheld.com/images/trixie/ since February with a name that promises a broken X server. I got it fully working on my V5.3 unit this weekend. MATE desktop, WiFi, touchscreen, keyboard, nubs, and hardware GLES2 through the SGX blob, all on the same 5.6.19-pyradef kernel that bookworm-7 uses. Three fixes: a symlink, a skipped first-run wizard, and one copied systemd unit.
Write the image to an SD card for the left slot as usual. It boots live and leaves the eMMC alone. Then, before first boot, mount the rootfs partition on any Linux box (I'll assume /mnt below) and apply the fixes offline. The wizard problem powers the unit off shortly after boot, so fixing things from a half-booted device is a chicken-and-egg fight you can skip entirely.

Fix 1: the Xorg segfault​

Xorg 21.1.16 dies during GLX initialisation:
Code:
(EE) AIGLX error: dlopen of .../dri/armsoc_dri.so failed (... No such file or directory)
(EE) AIGLX error: unable to load driver armsoc
(EE) Segmentation fault at address 0x0
(EE) Caught signal 11 (Segmentation fault). Server aborting

armsoc_dri.so does not exist on bookworm either, which took me a while to notice. Bookworm's Xorg 21.1.7 logs the exact same two AIGLX errors and simply carries on. Somewhere between 21.1.7 and 21.1.16 that failure path picked up a NULL deref. The fix is to keep Xorg out of AIGLX:

Bash:
cat > /mnt/etc/X11/xorg.conf.d/20-no-glx.conf <<'EOF'
Section "Module"
    Disable "glx"
EndSection
EOF

(Correction: an earlier version said to symlink armsoc_dri.so to kms_swrast_dri.so. That doesn't work. Thanks to Magic Sam for catching it.)
The cost is that the X desktop has no GLX at all. GLX was always software rendere, the hardware path is GLES2 through the blob's EGL and dri3wsegl.

Fix 2: the first-run wizard shuts the unit down​

With X fixed you boot to the fullscreen Pyra wallpaper and then the device powers off. Nothing crashed. pyra-first-run.sh sets the wallpaper, then shows a zenity question dialog whose cancel button is labelled "Shutdown", and in that bare xinit session the dialog gets no usable input, so the script takes the cancel branch and calls poweroff. Fair warning, I never retested the wizard after properly fixing X, so it may well behave now. Skipping it is the path I know works:

Bash:
mkdir -p /mnt/var/lib/pyra
touch /mnt/var/lib/pyra/first-run.done

The wizard's main job is creating your user, so do that offline too:

Bash:
HASH=$(openssl passwd -6 'yourpassword')
echo 'pyra:x:1000:1000:,,,:/home/pyra:/bin/bash' >> /mnt/etc/passwd
echo 'pyra:x:1000:'                              >> /mnt/etc/group
echo "pyra:$HASH:20000:0:99999:7:::"             >> /mnt/etc/shadow
mkdir -p /mnt/home/pyra
cp -a /mnt/etc/skel/. /mnt/home/pyra/
chown -R 1000:1000 /mnt/home/pyra

Then open /mnt/etc/group in an editor and add your username to the sudo, video, audio, netdev, plugdev, bluetooth and dialout lines.

Fix 3: dead nubs​

This one is a genuine packaging bug, funkeymonkey-pyrainput 0.1.19 in the trixie repo ships without /lib/systemd/system/pyrainput.service. The identical version in the bookworm repo has it. Until the package is rebuilt, drop the file in yourself:

Code:
[Unit]
Description=Pyra Input Deamon (funkeymonkey)
After=network.target
Documentation=https://dev.pyra-handheld.com/packages/funkeymonkey-pyrainput
[Service]
ExecStart=/usr/sbin/funkeymonkey -g -p /usr/lib/funkeymonkey/libpyrainput.so -r 0,1,2,3 -m nub0 -m nub1  -m "tca8418" -m "pyra-game-buttons" -X config=/etc/pyrainput.cfg
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=pyrainput.service

Save it as /mnt/lib/systemd/system/pyrainput.service, then after first boot run `sudo systemctl enable --now pyrainput`. All three pyraInput devices (keyboard, Gamepad, Mouse) show up and the nubs behave exactly as on bookworm.

Booting the card​

One trap left. The U-Boot on this image (2016.11, rebuilt 2024) asks the Palmas PMIC why the unit powered on and refuses anything that is not a real button press. A short tap gives you a quarter second of LED and then silence, which looks exactly like a dead card or a dead battery. It is neither. Hold the power button until both LEDs go green, then release. The older U-Boot on a stock eMMC has no such check, which is why bookworm boots off a tap and this card appears not to boot at all.

Is the GPU actually working?​

I wanted proof rather than a vibe, so I wrote a minimal X11+EGL+GLES2 client and compiled it on the device against the blob headers in /opt/omap5-sgx-ddk-um-linux/include (you need libx11-dev). Output on trixie, inside the X session:

Code:
DRI3 1.0
present 1.2
EGL_VENDOR:  Imagination Technologies
GL_RENDERER: PowerVR SGX 544MP
GL_VERSION:  OpenGL ES 2.0 build 1.14@3699939 (MAIN)
300 frames in 0.24s = 1270.9 fps

The DRI3/present lines mean libpvrDRI3WSEGL is doing the window integration, which is the same path the bookworm desktop uses. Bookworm manages 1170 fps on the identical test, so nothing was lost and trixie is marginally quicker. A side note for the armhf-curious: the test binary compiled on bookworm ran unmodified on trixie, so the 64-bit time_t transition did not bite this particular stack. Do not bother with the DDK's own gles2test1 for this, it is a direct-KMS test that wants DRM master and fails identically on both releases when X is running.
Not tried yet: gl4es and box86 on trixie. If someone beats me to those, post your results here. Happy to share the GLES test source if anyone wants to reproduce the numbers.
 
Last edited:
wayland-screenshot-2026-09-01_01-21-55.png
wayland-screenshot-2026-09-01_01-27-37.png

wayland-screenshot-2026-09-01_01-32-01.png
wayland-screenshot-2026-09-01_01-46-57.png

Got hardware Weston running with rotation aswell, OpenGL 2.1 → gl4es (build from master) → SGX → Xwayland → weston
 
Last edited:
Hello all,

@rootshell : thank you very much for your hard work on this one, really appreciated :)

I'll try to give your fixes a go today after work.

Cheers, Magic Sam
 
Hello @rootshell ,

It fails on my end because of LightDM.

Looking at the logs in /var/log/lightdm/lightdm.log I see:

[+0.02s] WARNING: Could not enumerate user data directory /var/lib/lightdm/data:
Error opening directory '/var/lib/lightdm/data': No such file or directory

I'll try to create that directory by hand.

EDIT: After creating the missing directory, Xorg appears to be crashing with:

[ 24.639] (EE) AIGLX error: armsoc exports no extensions (/usr/lib/arm-linux-
gnueabihf/dri/armsoc_dri.so: undefined symbol: __driDriverExtensions)

Looks like the symlink trick is not working for me :(

lrwxrwxrwx 1 root root 17 24 sept. 16:58 armsoc_dri.so -> kms_swrast_dri.so

EDIT2: I don't think I have the same hardware revision as you have. The label beneath the battery reads "PYRA - V1.0".

Cheers, Magic Sam
 
Last edited:
Hi @Magic Sam,

sorry, thats on me and i have to check my notification settings. My guide has the fixes reversed, the symlink isn't what got X running. I went back through my logs and with only the symlink in place, my V5.3 crashed with exactly your line (armsoc exports no extensions ... undefined symbol: __driDriverExtensions) and then the same segfault. What actually fixed it was a second change I made at the same time and later wrote off as doing nothing:

Bash:
sudo tee /etc/X11/xorg.conf.d/20-no-glx.conf >/dev/null <<'EOF'
Section "Module"
    Disable "glx"
EndSection
EOF
sudo systemctl restart lightdm

On trixie's Mesa 25.0.7, kms_swrast_dri.so is itself just a symlink to libdril_dri.so, a small loader stub. It only exports `__driDriverGetExtensions_<name>` for the driver names it knows about (kms_swrast, swrast, etnaviv, ...), and no longer the old generic `__driDriverExtensions`. The Xorg driver reports its DRI driver as "armsoc", so AIGLX looks for `__driDriverGetExtensions_armsoc`, finds nothing, and ends up in the same broken error path as before.

I retested both ways on my Pyra today. With just the snippet X runs. With just the symlink it crashes with your exact error. So you can delete the symlink. The one thing you give up is GLX on the X desktop, but that was only ever software rendering on the Pyra anyway. GLES on the SGX doesn't go through GLX, so it's unaffected.

The /var/lib/lightdm/data warning is harmless, my log has it too. LightDM only quits because the X server died underneath it.
 
Last edited:
Hello all,

@rootshell : I can confirm your updated procedure works as intended, thank you :)

Is there an easy way to install this to the eMMC ?

Maybe you could team up with @jedi23 to make a new image with his custom kernel ?

Cheers, Magic Sam

EDIT: any relation to @unicows on Discord ?

 
Last edited:
My Cortex-M4 integration is done on the old 5.6.19 kernel and is still not ready to make full use of the microcontroller. I hope the next OS release will use kernel 7.3 with the newer SGX 1.17 graphics driver which doesn't need the buggy DRI3WSEGL plugin anymore.
 
Hello. I've been working on the same t1 image as @rootshell since September. I'm posting here because I can't start a thread yet and because some of the work overlaps with what's in this thread. I want to avoid duplicating work.

@rootshell: I got to the same fix for X where I disabled GLX and the cause was the same. Mesa 25's libdril_dri.so only exports __driDriverGetExtensions_<name> for names it was built with, and armsoc isn't one. Your other two fixes (skipping the wizard, the missing pyrainput.service) are in there as well. Your Weston + gl4es work is something I haven't tried.

@Magic Sam: mine only runs from the SD card and I haven't tested eMMC yet.

@jedi23: several of my kernel patches came from your M4 kernel. We did the M4 bring-up separately and ended up with different approaches (yours starts CPU0 from L2 SRAM while mine starts both cores from a DDR carveout). Neither of us has rpmsg yet based on your git repo work. I can't think of a use for the M4 cores but I haven't tested how much power and heat they generate.

My Trixie Release

The main part is a script (pc/pyra-trixie-prep.sh) that takes the pyra-trixie-t1-brokenxorg image and applies a bunch of fixes to it and makes an image.

I can't link to the release on Github due to Xenforo's spam prevention system as my account is new but its under daniel-mcdonough/dragonbox-pyra on Github.

What's changed

Initial Trixie ImageThis release
DesktopX crashes at startupMATE, with hardware GLES2 on the SGX and desktop GL through gl4es
First bootThe setup wizard powers the unit offAsks for your password, then starts the desktop
Audio HotplugNoneSpeakers and headphones, switching when you plug in. Unplug only detected when amp powers down
Audio Hardware AccelerationNoneAESS is now working so audio routes through the DSP, saving on CPU
Volume wheelSilent for the lower half of its travelWorks across the whole wheel
Charging while it runsThe battery drains with the charger inCharges
HeatThe CPU never throttles: 107 °C under loadThrottles: 84 °C peak, and you can set your own ceiling
SuspendCan't complete oneWorks, and the nubs and keyboard still work afterwards
GPU at idleNever powers downPowers off on idle, about 0.22 W saved. The 2D chip still renders things like the desktop
NubsDeadWork, and return to center
RumbleNoneWorks in SDL games through the gamepad; strength set in Pyra Settings
KeyboardCan go dead with nothing logged; Fn+D and Fn+' act as AltStays alive; Fn symbols type properly under X and on the console
BrightnessNo slider, no idle dimmingPanel sliders for the screen and keyboard light, dims when idle
LoginAbout a 35 s delay, mostly waiting on timeoutsThe desktop starts in a few seconds
TouchscreenCalibration does nothing, pointer jittersCalibrates, and stays still
sshEvery card has the same host keysEach card makes its own on first boot


It's 36-ish fixes and the 5.6.19 kernel with its own patches. Each fix has a section in docs/fixes.md. Each kernel patch is in docs/kernel-changes.md.

I messed with getting HDMI working but I was having a lot of issues.

I used Claude (Opus 5.5) heavily for reading and writing code and keeping notes. I did testing for all of the fixes and have some automated testing for regression checks.
 
Back
Top