l2/r2 add on board error
#1
Hey folks,

I tried to install the appropriate driver per the instructions on the setup page and got this message
------------------------------
Deleting module version: 0.1.6.3
completely from the DKMS tree.
------------------------------
Done.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'cpp-4.7-doc' for regex 'cpp-4.7'
Note, selecting 'gcc-4.7-doc' for regex 'gcc-4.7'
Note, selecting 'gcc-4.7-base' for regex 'gcc-4.7'
dkms is already the newest version (2.6.1-4).
joystick is already the newest version (1:1.6.1-1).
cpp-4.7-doc is already the newest version (4.7.4-1).
gcc-4.7-doc is already the newest version (4.7.4-1).
raspberrypi-kernel is already the newest version (1.20200212-1).
raspberrypi-kernel-headers is already the newest version (1.20200212-1).
wiringpi is already the newest version (2.50).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
If your kernel was just updated, you may need to reboot and rerun this script

Creating symlink /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/source ->
                /usr/src/mk_arcade_joystick_rpi-0.1.6.3

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.....(bad exit status: 2)
'make' all KVER=4.19.97-v7+.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.97-v7+ (armv7l)
Consult /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.....(bad exit status: 2)
'make' all KVER=4.19.97-v7+.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.97-v7+ (armv7l)
Consult /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log for more information.
mk_arcade_joystick_rpi already present in /etc/modules
You may need to edit /etc/modules by hand

/etc/modprobe.d/mk_arcade_joystick.conf exists and contains options for mk_arcade_joystick_rpi
Already contain lines for v0.1.5.10+ of the driver

modprobe: FATAL: Module mk_arcade_joystick_rpi not found in directory /lib/modules/4.19.97-v7+
It is recommended that you run 'sudo nano /etc/modprobe.d/mk_arcade_joystick.conf' to set up desired parameters.
0


If there is a thread that someone can lead me to for help, I would greatly appreciate it. Also, it may be worth nothing that upon reboot the welcome config menu shows up on the screen but none of my buttons seem to respond. I apologize if this is has already been solved on another thread. I am quite new at this kind of thing and while I am enjoying it, I seem to have hit a snag. Thanks for any and all assistance.
Reply
#2
I'm sorry, Weasel27.  My Monday is kinda shot, so I can't really be of much help today.  I can give some quick guidance, but I'm guessing we won't find a solution yet.



There will be some clues here.

"Consult /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log for more information."



If you can share that file or even just copy/paste the last 10 lines or so from this command, that might help.



cat /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log



Also, paste the output from these:



  uname -a

  ls /lib/modules

  find /lib/modules | grep mk_arcade

  lsmod | grep mk_arcade
  sudo modprobe mk_arcade_joystick_rpi
  dmesg |grep mk_arcade

I'm hoping those will give us some clues.

ALSO, there might be some good info in this other thread: https://forum.freeplaytech.com/showthrea...669&page=7
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
#3
(03-15-2022, 04:56 AM)Flavor Wrote: I'm sorry, Weasel27.  My Monday is kinda shot, so I can't really be of much help today.  I can give some quick guidance, but I'm guessing we won't find a solution yet.



There will be some clues here.

"Consult /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log for more information."



If you can share that file or even just copy/paste the last 10 lines or so from this command, that might help.



cat /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log



Also, paste the output from these:



  uname -a

  ls /lib/modules

  find /lib/modules | grep mk_arcade

  lsmod | grep mk_arcade
  sudo modprobe mk_arcade_joystick_rpi
  dmesg |grep mk_arcade

I'm hoping those will give us some clues.

ALSO, there might be some good info in this other thread: https://forum.freeplaytech.com/showthrea...669&page=7

This is what I got from the commands you suggested:

/var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/mk_arcade_joystick_rpi.c: In function ‘mk_init’:
/var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/mk_arcade_joystick_rpi.c:147:18: note: ‘mk_arcade_gpio_maps’ declared here
static const int mk_arcade_gpio_maps[] = {4,  17,    27,  22,    10,    9,      25, 24, 23, 18, 15, 14, 2 , -1, -1, -1, -1};
                  ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:310: /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/mk_arcade_joystick_rpi.o] Error 1
make[1]: *** [Makefile:1522: _module_/var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.97-v7+'
make: *** [Makefile:16: all] Error 2

Linux retropie 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux

4.19.97+  4.19.97-v7+  4.19.97-v7l+  4.19.97-v8+

modprobe: FATAL: Module mk_arcade_joystick_rpi not found in directory /lib/modules/4.19.97-v7+

I have seen in other threads that updating Retropie may help with this. I am going to hold off until I/we are able to make sense of everything here. In the meantime, I will comb the thread you suggested to hopefully find a solution. I will swing back around if I find anything. Thank you again.
Reply
#4
Hey Weasel27!

I'm out again for a chunk of the day, today, so all my normal stuff is compressed into a few hours. I feel like a solution to this won't be difficult to implement, but I don't think I have enough information about what's going wrong. I'm going to try to compile the information in a more useful manner. That might help me to recognize the problem or it might help someone else reading along to pinpoint it.

"uname -a" shows that the kernel you're running is "4.19.97-v7+"
"ls /lib/modules" shows that you have modules for that "4.19.97-v7+" kernel

I assume that "find /lib/modules | grep mk_arcade" had no output. Is that true? If so, that means that you do not have ANY module built for mk_arcade_joystick_rpi anywhere in your modules directory tree. That seems odd, but it could be true, as part of the build would remove it from the current kernel's build. I would have expected it to be still in one of the others, but, oh well.

The output from the modprobe command just reiterates that the module doesn't exist.

I didn't see any output from "dmesg |grep mk_arcade" which might be true if that module doesn't exist.

I guess it all goes back to the fact that the make/build failed, so the module doesn't exist.

the output from "cat /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/make.log" doesn't tell the whole picture, though. I don't know why it's failing. Do you have any way to get that whole file to me? Maybe you could use FileZilla to connect to the Pi, then go to /var/lib/dkms/mk_arcade_joystick_rpi/0.1.6.3/build/ and download the make.log file. I don't know how big it will be, but if you ZIP it, it'll be small. Then, maybe you could attach it here or put it on Google Drive or something.

You can also go to https://www.freeplaytech.com/contact/ and open a SUPPORT ticket. It won't immediately allow you to send a file, but when you get a reply, then you can attach files.

I think we just need to figure out why the build is having an error that stops it from building the kernel module. It's possible that you don't have the proper headers in /usr/src/linux-headers-4.19.97-v7+ but I don't know why that would be.

You could try these commands to figure that out.

dpkg -l |grep header

There's another way to grab the kernel headers, by downloading the entire kernel source. You can do that using rpi-source. See https://github.com/RPi-Distro/rpi-source

For some reason, it seems like you are running a kernel version and MAYBE the version of the kernel headers that are installed doesn't match this version.

I think this MAY be the same issue that this guy had: https://forum.freeplaytech.com/showthrea...8#pid10088

There is also some other info about rpi-source here: https://forum.freeplaytech.com/showthrea...rpi-source
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
#5
I'm having that exact same issue using the Freeplay_CM3_Test-RetroPie-46-20051302.img.gz image. No idea why this is happening.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)