Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Forum Jump:


Users browsing this thread: 2 Guest(s)