So I decided that it was time to update my Raspberry Pi that is inside of my Arcade machine! Great idea to keep up with patches and what not, right? Eh, not so much. It completed broke my joystick controls that are on the GPIO. I expected this, but my normal fix didn’t actually … fix it.
I downloaded the mk_arcade_joystick_rpi again to reinstall, but it didn’t wanna budge.
After multiple hours of trying to fix it
- changing the dpkg file
- changing the make file in the dpkg
- trying manually run everything in the dpkg
It just didn’t like the kernel I was running. So I figured out after some digging on how to downgrade my kernel. I followed this guy
How to upgrade or downgrade raspberrypi’s kernel? (Servoblaster problem Raspberry Pi2)
rpi-update cc06d1a475531195a3e268e36be0e5eabff5265a # which goes to ‘kernel: Bump to 4.9.68’
I knew this version would work as it is the kernel I used before upgrading
But it doesn’t end there, I still wasn’t able to install it as uname -a was still showing 4.14 kernel. So I followed
and riskily deleted all 4.14 kernels and rebooted.
I thought my Pi image was dead as there was a hang, but it finally got in! I did uname -a and it showed 4.9.68 and I was able to install mk_arcade_joystick_rpi!
root@retropie:/home/pi/mkjoystick# dpkg -i mk-arcade-joystick-rpi-0.1.4.deb
(Reading database … 130678 files and directories currently installed.)
Preparing to unpack mk-arcade-joystick-rpi-0.1.4.deb …
Deleting module version: 0.1.4
completely from the DKMS tree.
Unpacking mk-arcade-joystick-rpi-dkms (0.1.4) over (0.1.4) …
Setting up mk-arcade-joystick-rpi-dkms (0.1.4) …
Loading new mk_arcade_joystick_rpi-0.1.4 DKMS files…
First Installation: checking all kernels…
dpkg: warning: version ‘*-*’ has bad syntax: version number does not start with digit
It is likely that 4.9.68-v7+ belongs to a chroot’s host
Building for architecture armv7l
Building initial module for 4.9.68-v7+
Running module version sanity check.
– Original module
– No original module exists within this kernel
– Installing to /lib/modules/4.9.68-v7+/updates/dkms/
DKMS: install completed.
pi@retropie:~/mkjoystick $ sudo modprobe mk_arcade_joystick_rpi map=1
Moral of the story is to never update anything. Just kidding, better moral is not to update anything live. Test test test.