unable to load the Kernel modules
gradar666 opened this issue · comments
Hi,
After much trials, a succesfull (at least we thought....) build, however on install we get the following error:
modprobe: ERROR: could not insert 'mk_arcade_joystick_rpi': Device or resource busy
OS Version:
Linux retropie 4.4.20-v7+ #908 SMP Wed Sep 7 14:44:27 BST 2016 armv7l GNU/Linux
File details after compile:
file mk_arcade_joystick_rpi.ko
mk_arcade_joystick_rpi.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=0911fc325eb59aa115995e9c3800b0a656e7b448, not stripped
Hardware version, using latest RPi:
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
[ 885.365811] ------------[ cut here ]------------
[ 885.365847] WARNING: CPU: 3 PID: 3404 at arch/arm/mm/ioremap.c:301 __arm_ioremap_pfn_caller+0x194/0x1b8()
[ 885.365856] Modules linked in: mk_arcade_joystick_rpi(O+) bnep hci_uart btbcm bluetooth brcmfmac brcmutil cfg80211 joydev evdev rfkill snd_bcm2835 snd_pcm snd_timer snd bcm2835_gpiomem bcm2835_wdt uio_pdrv_genirq uio uinput fuse ipv6
[ 885.365952] CPU: 3 PID: 3404 Comm: modprobe Tainted: G W O 4.4.20-v7+ #908
[ 885.365961] Hardware name: BCM2709
[ 885.365994] <80018784> from <80014058>
[ 885.366017] <80014058> from <80320cc4>
[ 885.366041] <80320cc4> from <80025360>
[ 885.366064] <80025360> from <8002544c>
[ 885.366084] <8002544c> from <8001e9d4>
[ 885.366103] <8001e9d4> from <8001ea54>
[ 885.366120] <8001ea54> from <8001eab0>
[ 885.366144] <8001eab0> from [<7f358020>](mk_init+0x20/0x4c8 [mk_arcade_joystick_rpi])
[ 885.366186] [<7f358020>](mk_init [mk_arcade_joystick_rpi]) from <80009764>
[ 885.366208] <80009764> from <800fd5f4>
[ 885.366230] <800fd5f4> from <8009ee44>
[ 885.366248] <8009ee44> from <8009f628>
[ 885.366268] <8009f628> from <8000fb40>
[ 885.366279] ---[ end trace cff87f4b6d065d40 ]---
[ 885.366287] mk_arcade_joystick_rpi: io remap failed
pi@retropie:~ $
It has taken a day and a half to get to this point, so happy to provide any details, and welcome any thoughts or suggestions.
Ok this is in the category of operator error, I was building by hand, the dkms method builds, and it looks like all is ok. Testing and will close this shortly as an Operator error.
Ok, initial Issue now closed, built and installed, somethings appear that they may not be mapped right, will diff the codes to see what has / is changed.
[ 1996.220857] ---[ end trace cff87f4b6d065d41 ]---
[ 1996.220864] mk_arcade_joystick_rpi: io remap failed
[56512.107767] mk_arcade_joystick_rpi: pad type : 1
[56512.107786] mk_arcade_joystick_rpi: pad type : 1
[56512.107835] GPIO configured for pad0
[56512.108195] input: GPIO Controller 1 as /devices/virtual/input/input3
[56512.108623] mk_arcade_joystick_rpi: pad type : 2
[56512.108633] mk_arcade_joystick_rpi: pad type : 2
[56512.108672] GPIO configured for pad1
[56512.108953] input: GPIO Controller 2 as /devices/virtual/input/input4