Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gamecondriver incompatible with kernel 4.9.x #1963

Closed
joolswills opened this issue Apr 30, 2017 · 16 comments
Closed

gamecondriver incompatible with kernel 4.9.x #1963

joolswills opened this issue Apr 30, 2017 · 16 comments

Comments

@joolswills
Copy link
Member

4.9.24 is now packaged on Raspbian. Gamecondriver is not yet compatible and fails to build.

From make.log:
 
DKMS make.log for gamecon_gpio_rpi-1.2 for kernel 4.9.24-v7+ (armv7l)
Sun 30 Apr 04:07:44 UTC 2017
make -C /lib/modules/4.9.24-v7+/build M=/var/lib/dkms/gamecon_gpio_rpi/1.2/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.24-v7+'
  CC [M]  /var/lib/dkms/gamecon_gpio_rpi/1.2/build/gamecon_gpio_rpi.o
/var/lib/dkms/gamecon_gpio_rpi/1.2/build/gamecon_gpio_rpi.c:39:27: fatal error: mach/platform.h: No such file or directory
 #include <mach/platform.h>
                           ^
compilation terminated.
scripts/Makefile.build:299: recipe for target '/var/lib/dkms/gamecon_gpio_rpi/1.2/build/gamecon_gpio_rpi.o' failed
make[2]: *** [/var/lib/dkms/gamecon_gpio_rpi/1.2/build/gamecon_gpio_rpi.o] Error 1
Makefile:1490: recipe for target '_module_/var/lib/dkms/gamecon_gpio_rpi/1.2/build' failed
make[1]: *** [_module_/var/lib/dkms/gamecon_gpio_rpi/1.2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.24-v7+'
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 2
@joao-abrantes
Copy link

I am facing the same issue :(

@spfunnell
Copy link

Yep, same problem here too. Upgraded RetroPie from 4.1 to 4.2 and DB9 driver no longer works.

@joolswills
Copy link
Member Author

It's a known confirmed issue. However we don't manage the packages. I will check for updates but we are waiting on the upstream dev

@joao-abrantes
Copy link

Guys, best thing to do is to setup the gamecon & db9 driver before updating the system. if you do this right after a fresh install (following wifi setup, of course), you'll be able to install the driver and have it working. this is not the ideal scenario because you can't update the system, but at least it's working for me!

@atarumoroboshi18
Copy link

Thank you so much @joao-abrantes! I could not for the life of me get the Gamecon drivers working and have poured through tons of forums and posts. Your post was exactly what I needed and my Retropie is working great now!

@rgoncalvesse
Copy link

I found a temporary solution to update all packages and latest retropie version, without the kernel. You need to start with a clean install of RetroPie
sudo apt-mark hold raspberrypi*
To be sure, i disabled all "raspberrypi" package, correct me if it's wrong.
Anyway, that works !

@geneworld
Copy link

Any updates on this working with kernel 4.9x?

@joolswills
Copy link
Member Author

No.

@psyke83
Copy link
Member

psyke83 commented Jul 17, 2017

If you want to build a modified package, this should be enough to make it work (but I don't have any controllers to test):

psyke83/gamecon-gpio-rpi@76ff122

That's just a hack; the proper way would be to rewrite the driver to find the gpio address using platform_get_resource, like so: https://github.com/raspberrypi/linux/blob/rpi-4.9.y/drivers/char/broadcom/bcm2835-gpiomem.c#L157

@psyke83
Copy link
Member

psyke83 commented Jul 28, 2017

@joolswills,

I released a test .deb & received a report that the module is working: https://retropie.org.uk/forum/topic/11925/gamecon_gpio_rpi-1-3-kernel-4-9-build-fix

The package was built from extracting the latest build via dpkg-deb and rebuilding with the patched code - probably not the optimal solution. I can't seem to find a proper source repository nor am I sure who to ping in order for upstream to be aware of a possible fix. Can you point me in the right direction? If you want to use my deb as an interim fix, it should work OK at least until the Pi 4 is released ;)

@PeterPablo
Copy link

Thank you @psyke83 for posting your findings. It at least gave me an idea how to proceed with an unrelated driver issue.

@marqs85
Copy link
Contributor

marqs85 commented Aug 28, 2017

I've updated "official" driver packages to be compatible with recent kernels. Sources and dkms scripts for gamecon_gpio_rpi and db9_gpio_rpi are also now on github.

@knifesk
Copy link

knifesk commented Dec 31, 2017

Same issue.. different kernel version.. 4.14 (and I guess >=4.10) have this same problem

@marqs85
Copy link
Contributor

marqs85 commented Jan 3, 2018

I had no issue compiling the module for 4.14.10-v7+ with self-built headers package.

@knifesk
Copy link

knifesk commented Jan 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

11 participants