gamecon_gpio_rpi 1.3 (kernel 4.9 build fix)
-
Oh man I hope this works! I've been unable to use my controllers for two months now x.x I'll be able to try this hopefully this weekend :)
-
@psyke83 After 2 months...a fix. Seems to work fine. Thanks!
-
Just curious if there is a trick to getting the driver to show inside RetroPie-Setup. The installation completed successfully but the gamecon driver does not show up in the list of installed packages -- and I cannot seem to configure it.
I am guessing I am missing an easy step somewhere :)? Any idea what I can try?
Gracias.
-
@lbrockman Actually I spoke too soon. I updated the RetroPie-Setup Script and I now see the gamecon configuartion under the Configuration / Tools menu.
Sorry for the confusion. And thanks for the fix :D
-
I didn't get a chance to try this but I did have one question. If I start with a fresh install is this file a complete install or do I need to install gamecon driver through RetroPie-Setup and then patch it with this?
-
It's recommended that you do, because the script does additional configuration beyond installing a .deb package. See: https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/gamecondriver.sh
Install the gamecondriver from RetroPie-Setup, ignore the errors related to the 1.2 module not being built, then install my package. Then go back into the RetroPie-Setup script to access the configuration menu.
Also keep in mind that either reinstalling gamecondriver from the script or updating all packages will cause the 1.2 package to be installed again.
-
@psyke83 Awesome thanks!
-
I just installled your package. I have a pi Zero with NES controller inputs wired to GPIO. I am testing now.
Will report back -
This worked like a charm! Thanks for your work! BTW I made this splashscreen image for my "NesPi," setup. Feel free to use it!
-
@psyke83
Thank you! It´s working perfectly.
Do you have knowledge how to change which GPIO pins that are used for player 5 and 6?I have tried to edit gamecon_gpio_rpi.c to the following code without success:
/* GPIO pins 0, 1, 4, 7, 22, 23 */
static const int gc_status_bit[] = { 0x01, 0x02, 0x10, 0x80, (1<<22), (1<<23) };
static const int gc_gpio_ids[] = { 0, 1, 4, 7, 22, 23 };I want to be able to use GPIO02 and GPIO03 for power and reset buttons. And to use 2 nes controllers and 2 snes controllers via gamecon gpio.
-
Nice to see this is a quite recent topic. Hey y'all!
Thanks for helping rewrite the code to work in the latest Retropie, psyke83! - I can successfully install your package, but when I configure the controller through the commandline, "modprobe --first-time db0_gpio_rpi map 4,4" - it throws out an error ... (re: finding a modfile or db9 etc)
Is there a way around this?
Thanks in advance
Tim (with a pi primed with 2 sets of wired db9 connectors all ready to go)--- slightly unrelated, but if I set up both to megadrive connectors, would the amiga / atari work also? I remember megadrive pads working fine in the amiga, so any thoughts?
-
The RetroPie script's gamecon driver installation consists of two packages that build kernel modules - db9_gpio_rpi and gamecon_gpio_rpi. The package that I provided is only for one, and not the one you need.
I'm guessing that you tried installing my updated package without first following the installation instructions, which is why the db9 package (and driver) is not present. https://github.com/RetroPie/RetroPie-Setup/wiki/GPIO-Modules
-
The original developer, marqs, has updated both drivers to build properly:
https://github.com/marqs85/gamecon_gpio_rpi
https://github.com/marqs85/db9_gpio_rpiDo those repos need to be added by @BuZz to retropie?
-
@darksavior said in gamecon_gpio_rpi 1.3 (kernel 4.9 build fix):
The original developer, marqs, has updated both drivers to build properly:
https://github.com/marqs85/gamecon_gpio_rpi
https://github.com/marqs85/db9_gpio_rpiDo those repos need to be added by @BuZz to retropie?
Great news. I see that marqs has already sent a PR to update the RetroPie-Setup script, so nothing needs to be done. I've added a note to the top of this thread.
-
I didn't realize that the db9_gpio_rpi driver also needed patching with the same build fix, but the original author has done it now. If you update your script and reinstall the official drivers, your controllers should work.
-
Aye, thanks for the update... Will give it a shot now
-
when configuring with modprobe:
"modprobe: ERROR: could not insert 'db9_gpio_rpi': Invalid argument";-(
-
Sussed it! Updated everything using the command lines- reinstalled. then needed to add "SUDO" to the "modprobe --first-time gamecon_gpio_rpi map 4,4"
All working! Thanks for the help!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.