l2/r2 analog stick board
#51
Checking back the whole discussion, I didn't noticed at any time that you speaked about recompiling the driver, just copying it from a CM3 image.
The problem can also come from this.

I don't know how folders are organized on Cpasjuste build but since you have been able to extract the .ko file, I think you have good notion on this Smile
I will add more detail in case this can also help someone else Wink

To build the driver from scratch (based on a CM3 image), via SSH:

Code:
cd /home/pi/Freeplay
mv mk_arcade_joystick_rpi mk_arcade_joystick_rpi_old
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi
cd mk_arcade_joystick_rpi
./install.sh

Important note : If the kernel is updated during execution of install.sh, you will need to restart the device and restart install.sh once again.

Using a second SSH, you can run "dmesg -w" to see if the kernel goes nuts.
Reply
#52
(05-30-2020, 10:40 PM)Porcinus Wrote: Checking back the whole discussion, I didn't noticed at any time that you speaked about recompiling the driver, just copying it from a CM3 image.
The problem can also come from this.

I don't know how folders are organized on Cpasjuste build but since you have been able to extract the .ko file, I think you have good notion on this Smile
I will add more detail in case this can also help someone else Wink

To build the driver from scratch (based on a CM3 image), via SSH:

Code:
cd /home/pi/Freeplay
mv mk_arcade_joystick_rpi mk_arcade_joystick_rpi_old
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi
cd mk_arcade_joystick_rpi
./install.sh

Important note : If the kernel is updated during execution of install.sh, you will need to restart the device and restart install.sh once again.

Using a second SSH, you can run "dmesg -w" to see if the kernel goes nuts.

well after testing for hours, how to compile and install the driver, I have always been missing something, and never find the commands, it has brought out the worst of me this hahaha

/ mk_arcade_joystick_rpi $ ./install.sh
ls: / usr / src: No such file or directory
./install.sh: line 6: sudo: command not found
./install.sh: line 12: sudo: command not found
./install.sh: line 13: sudo: command not found
./install.sh: line 14: sudo: command not found
./install.sh: line 15: sudo: command not found
./install.sh: line 17: sudo: command not found
If your kernel was just updated, you may need to reboot and rerun this script
./install.sh: line 18: sudo: command not found
grep: / etc / modules: No such file or directory
./install.sh: line 24: sudo: command not found

./install.sh: line 43: sudo: command not found
./install.sh: line 44: sudo: command not found
./install.sh: line 45: sudo: command not found
./install.sh: line 46: sudo: command not found
./install.sh: line 47: sudo: command not found
./install.sh: line 48: sudo: command not found
./install.sh: line 49: sudo: command not found
./install.sh: line 50: sudo: command not found
./install.sh: line 51: sudo: command not found
./install.sh: line 52: sudo: command not found
./install.sh: line 57: sudo: command not found

It is recommended that you run 'sudo nano /etc/modprobe.d/mk_arcade_joystick.conf' to set up desired parameters.
0

the command
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi
it does not work for me
/ mk_arcade_joystick_rpi $ git clone https://github.com/TheFlav/mk_arcade_joystick_rpi
-sh: line 34: git: command not found

I do not have much knowledge as you will see ssh, I am self-taught about this, that is why I used the compiled version of "CPAJUSTE" of recalbox 6.0, where the driver with its modules were already installed, I am about to give up but it has already become something personal haha
Reply
#53
Well, I should have check what Recalbox was based on before :S
I assumed from the very beginning it was based on Debian or Ubuntu, and well, it is not.
Without 'sudo' and 'apt' command, I don't know a proper way to compile the driver :/

The best thing I can recommend you is to contact Cpasjuste (via the forum or Github) to ask his information about compiling the CM3 driver to work on his build.

I am so sorry I can't provide additional informations on this :S
Reply
#54
Hello all, I'm running into a little bit of trouble with my `make config` command. I'm able to assign everything properly until it asks me to set my 'X' button. It's not detecting my top button as 'X' when pressed, despite that button working correctly before running the install script for my L2/R2 analog stick board. I'd paste a log or output, but I really don't know what is needed to examine this issue.
Reply
#55
Hey, OnlyCatapults. Is this on a Freeplay CM3 or Zero?

You could try this.

Log in, and don't press any buttons. Run:
gpio readall

Then, while holding a X and A down, run it again:
gpio readall

Post the BEFORE and AFTER outputs, and we'll try to see if the button itself is actually working. Then, we can move on to the mk_arcade driver stuff and the make config.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#56
Wow.  Thanks so much for the fast response.  I truly do appreciate it.  I went ahead and attached the outputs, figured that'd be easier to compare. It does seem that they're working.

Edit: Also, this is on a CM3.


Attached Files
.txt   gpio-readall-before.txt (Size: 1.63 KB / Downloads: 7)
.txt   gpio-readall-after.txt (Size: 1.63 KB / Downloads: 6)
Reply
#57
I decided to edit the `mk_arcade_joystick.conf` manually, and--what do you know--it worked just fine.  I commented/uncommented the correct lines.

However, now I've run into a different issue.

Code:
Restarting MK Arcade Joystick Rpi Driver
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.14.98-v7+/modules.dep.bin'
modprobe: FATAL: Module mk_arcade_joystick_rpi not found in directory /lib/modules/4.14.98-v7+
sudo mv /opt/retropie/configs/all/emulationstation/es_input.cfg /opt/retropie/configs/all/emulationstation/es_input.cfg.bak
SYSTEM SHUTTING DOWN NOW

I attached pretty much the entire output since the fresh install.  (I keep restoring from a backup image I made before cloning the repo).


Attached Files
.txt   mk_arcade_joystick_output.txt (Size: 6.45 KB / Downloads: 8)
Reply
#58
(07-27-2021, 03:16 AM)OnlyCatapults Wrote: I decided to edit the `mk_arcade_joystick.conf` manually, and--what do you know--it worked just fine.  I commented/uncommented the correct lines.

However, now I've run into a different issue.

Code:
Restarting MK Arcade Joystick Rpi Driver
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.14.98-v7+/modules.dep.bin'
modprobe: FATAL: Module mk_arcade_joystick_rpi not found in directory /lib/modules/4.14.98-v7+
sudo mv /opt/retropie/configs/all/emulationstation/es_input.cfg /opt/retropie/configs/all/emulationstation/es_input.cfg.bak
SYSTEM SHUTTING DOWN NOW

I attached pretty much the entire output since the fresh install.  (I keep restoring from a backup image I made before cloning the repo).

This is mostly good news!

I've seen this modules.dep.bin problem with another guy, recently.  I believe that the solution was to run the following command to generate the file.

Code:
sudo depmod

Let me know if running that fixes that "could not open moddep file" error.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#59
Okay, we're making progress, everything is working now except my L2/R2.  Analog, face buttons.  Everything else is great!

Interestingly, it seems I'm able to assign the L2/R2 buttons in the actual make config, but after I run `gpio readall` post setup, they're not showing as being pressed at all.

I've attached 3 files now:
  • The readout before L2/R2 was pressed.
  • The same readout after both have been pressed and held in.
  • The contents of `/mk_arcade_joystick.conf`

Thanks again so much for your help with this.


Attached Files
.txt   gpio_readall_before.txt (Size: 1.57 KB / Downloads: 3)
.txt   gpio_readall_after.txt (Size: 1.57 KB / Downloads: 4)
.txt   mk_arcade_joystick.conf.txt (Size: 296 bytes / Downloads: 12)
Reply
#60
(07-27-2021, 03:01 PM)OnlyCatapults Wrote: Okay, we're making progress, everything is working now except my L2/R2.  Analog, face buttons.  Everything else is great!

Interestingly, it seems I'm able to assign the L2/R2 buttons in the actual make config, but after I run `gpio readall` post setup, they're not showing as being pressed at all.

I've attached 3 files now:
  • The readout before L2/R2 was pressed.
  • The same readout after both have been pressed and held in.
  • The contents of `/mk_arcade_joystick.conf`

Thanks again so much for your help with this.

Hey, bumping.  Still haven't quite figured this issue out, if anybody is willing to help me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)