OS based on Ubuntu 22.04 with kernel 4.9. Maybe a little old...
Linux rootfs has a copy of qemu-user-static
, seems they want me to chroot into it.
sudo mkdir /mnt/rg35xx
sudo mount /dev/sdd5 /mnt/rg35xx/
cd /mnt/rg35xx/
sudo mount -t proc /proc proc/
sudo mount -t sysfs /sys sys/
sudo mount -o bind /dev dev/
sudo mount -o bind /run run/
sudo chroot . qemu-aarch64-static /bin/bash
This version seems to have an SSH server installed, but no user accounts.
Create a user:
/sbin/adduser username
/sbin/usermod -a -G sudo username
... and fix sudo permissions (it's less broken this time!)
chmod 4755 /usr/bin/sudo
chmod 4755 /usr/libexec/polkit-agent-helper-1
Time to leave and reunite the console with it's SD card:
exit
cd ..
sudo umount --recursive /mnt/rg35xx
Can now connect over SSH using the new user account
Default language is set to Chinese, let's change that as I don't even have the fonts installed...
sudo update-locale LANG=en_GB.UTF-8 LANGUAGE
Useful for running things as non-root. (Unlike the default launcher)
sudo usermod -a -G video username
sudo usermod -a -G audio username
sudo usermod -a -G input username
Need to stop the launcher to run anything manually:
sudo /etc/init.d/launcher.sh stop
SDL2 game controller mapping:
SDL_GAMECONTROLLERCONFIG="19000000010000000100000000010000,ANBERNIC-keys,platform:Linux,a:b1,b:b0,x:b2,y:b3,back:b6,start:b7,leftstick:b9,rightstick:b12,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b10,righttrigger:b11,"