Here are some instructions to try (I haven't actually tried them verbatim yet so expect problems...).
If you aren't on Buster already, you can start from this image:
https://packages.pyra-handheld.com/rootfs/buster/mate.img.7z
Run:
Code:
sudo apt-get update
sudo apt-get install linux-image-5.6.15-letux-lpae-dave dri3wsegl-pyra xserver-xorg-video-armsoc-omap5
Reboot, and replace /etc/X11/xorg.conf.d/10-fbturbo.conf with the following content (you will need to be root to edit this file):
Code:
Section "Device"
Identifier "Pyra FBDEV"
Driver "omap5"
Option "DRICard" "2" # must point to the /dev/dri/cardX corresponding to omapdrm because detection can sometimes fail
Option "DriverName" "omapdrm"
Option "SoftEXA" "false" # will disable etnaviv acceleration. CPU only EXA is actually faster, but let all the work to A15 core
Option "TilerRotation" "270"
EndSection
Finally, reboot again, and you will now have 3D and X11 playing together. Download a gl4es build from
ds0.me/libGL.so.zip and extract it somewhere (for the sake of below, /home/david/gl4es).
Then, in a terminal, run
Code:
export LD_LIBRARY_PATH=/opt/omap5-sgx-ddk-um-linux/lib/:/home/david/gl4es DRI3_VSYNC=1
glxgears
Make sure that glxgears runs smoothly. If you are connected over SSH or serial, rather than a terminal window on the Pyra itself, you will need to add DISPLAY=:0 XAUTHORITY=~/.Xauthority to the export command.
Finally, in the same terminal, run SuperTux:
Code:
sudo apt-get install supertux
/usr/games/supertux2
Let me know how you get on with this I do apologise that it isn't as user-friendly as it could be, but it's still a work in progress.
Addendum:
- when I say reboot, I really mean "turn off and on again", soft reboots are still in the progress of being fixed and a patch isn't included in that kernel yet
- if you get spurious '+' button presses, run "sudo rfkill block wwan"
I got through the step for replacing /etc/X11/xorg.conf.d/10-fbturbo.conf with the contents provided. I did that step on my Linux workstation so I could just copy/paste the contents in. The next boot on the Pyra resulted in getting stuck in the boot process. Removed battery, restarted, same issue. I can try to get Minicom working again if we need it. The following is what is on the 'stuck screen'. Marble is my name for my Pyra. I'm typing this in, and this text on the Pyra is an eye chart, so please excuse typos.
Debian GNU/Linux 10 Marble tty1
Marble login: [ 20.807835] wlcore: PHY firmware version: Rev 8.2.0.0.242
[ 20.904400] wlcore: firmware booted (Rev 8.9.0.0.79)
[ 20.922144] wlcore: down
[ 21.402970] wlcore: PHY firmware version: Rev 8.2.0.0.242
[ 25.948722] wlcore: down
[ 29.949722] wlan0: authenticate with ((big hex code))
[ 29.993508] wlan0: send auth to ((big hex code))
[ 30.028856] wlan0: authenticated
[ 30.041232] wlan0: associate with ((big hex code))
[ 30.067395] wlan0: associated
[ 30.162074] IPv6: ADDRCDNF(NETDEV_CHANGE): wlan0: link becomes ready
[ 30.17387] wlcore: Association completed.
[ 34.401101] host1_vbus_power: supplied by modem_vbus_hdmi_power
[ 34.409538] host2_vbus_power: supplied y modem_vbus_hdmi_power
[ 34.421938] ldo3: disabling
[ 34.425074] ldo8: disabling
[ 34.435074] otg_path: disabling
[ 152.982463] bqbq2429x_charger 1-066b: bq2429x_usb_detect: r8=b4 ADAP CHGTERM PWGOOD r9=80 WDDG
[ 153.530485] bqbq2429x_charger 1-066b: bq2429x_usb_detect: r8=ac ADAP FCH6 INDPM PWGOOD r9-80 WDDG
[ 194.065548] bqbq2429x_charger 1-066b: bq2429x_usb_detect: r8=00 r9=80 WDDG
[ 194.073214] bqbq2429x_charger 1-066b: bq2429x: VBUS became unavailable
The last line appeared when I disconnected the power to bring it over to the desk so I could try to type all that.
Any ideas?
Oh - and I just noted that it was not 'completely frozen' in that state. Touching the power button flashed the usual shutdown text and then the unit powered down.