Tagged: , ,

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • flausch
    Participant
    Post count: 19

    I wanted to make a retropie project focused on my three childhood heroes C64, Amiga and Atari 2600.
    My goal was to keep everything as small as possible, which resulted in this:

    Final result

    I used a Pi2, an aluminum case, an old IDE cable and two sub d9 connectors:
    Components

    Then I drilled and cut out the holes for the D9 connectors:
    Making holes

    First try… do these fit in?
    Sub D9

    Soldering the cable:
    Soldering

    Some black tape for the looks:
    Tape

    Screwing the connectors to the case:
    Mounting connectors

    Done:
    First test

    And the connection theme using the Db9_gpio_rpi driver:
    how to connect

    raoulangel
    Participant
    Post count: 60

    Thanks for the guide! Mounting mine into an Atari cartridge.. How are you running the emulators? Through emulationstation or standalone?

    flausch
    Participant
    Post count: 19

    Retropie 3 with Emulationstation.

    raoulangel
    Participant
    Post count: 60

    I am working on an Atari only project, I’d like to get away from emulationstation, the way you can do for MAME.. Do you know the way?

    flausch
    Participant
    Post count: 19

    Sorry no. I like the way emulationstation has everything under one gui.

    raoulangel
    Participant
    Post count: 60

    I like it too, for multiple EMUs, but I am looking for atari only.. I wonder if it’s even possible

    flausch
    Participant
    Post count: 19

    If it is possible, you should find it here:
    https://www.raspberrypi.org/forums/viewforum.php?f=78

    Or at least you should find someone who could tell you if it is possible or not.

    raoulangel
    Participant
    Post count: 60

    How do I get the db9 driver loaded into the RPI? I’m using an A+ model. Is it built into the retropie code already or do i have to do something with an install or configuration?

    Thanks

    flausch
    Participant
    Post count: 19

    Yes, it is inside Retropie and can be installed from the retropie setup.

    Sometimes it does not work and must be installed manually.

    This is what I did, but you have to adapt it to your kernel version!

    wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-3.18.10-v7%2b_3.18.10-v7%2b-2_armhf.deb
    wget http://www.niksula.hut.fi/~mhiienka/Rpi/gamecon-gpio-rpi-dkms_1.0_all.deb
    wget http://www.niksula.hut.fi/~mhiienka/Rpi/db9-gpio-rpi-dkms_1.0_all.deb 
    sudo dpkg -i linux-headers-3.18.10-v7+_3.18.10-v7+-2_armhf.deb
    sudo dpkg -i gamecon-gpio-rpi-dkms_0.9_all.deb
    sudo dpkg -i db9-gpio-rpi-dkms_1.0_all.deb 

    To load it:
    sudo modprobe db9-gpio-rpi map=1,1

    To load it every boot put db9-gpio-rpi map=1,1 in /etc/modules

    raoulangel
    Participant
    Post count: 60

    Sounds great.. BTW, the pinout you posted here is correct?? (someone mentioned it was different from the original, but I have already done my soldering…)

    flausch
    Participant
    Post count: 19

    The pinout is correct!

    raoulangel
    Participant
    Post count: 60

    You’ve been really helpful thanks! If yo don’t mind my picking yor brain for one or two more things..

    When you are inside a 2600 game, what do you use for game select, reset, and difficulty switches? I need to get those mapped out..

    Also, is there a way to map the “esc” key to exit games back to the menu?

    flausch
    Participant
    Post count: 19

    Sorry, I only checked if 2600 worked for me, but did no further configuration yet, because my priority was C64 and Amiga.

    Did you check the wiki? https://github.com/RetroPie/RetroPie-Setup/wiki/Atari-2600

    “Press Tab to access configuration menu- choose input settings and under the tab Emul. Events you can create custom controller mappings to work for your individual controllers”

    raoulangel
    Participant
    Post count: 60

    Didn’t get it to work, there were a few errors when running the scripts you indicated.. You mentioned installing it manually, can you elaborate?

    flausch
    Participant
    Post count: 19

    The common problem is a mismatch of the installed debian version and the header files of the driver.

    First you have to check your installed raspbian version with uname -r

    Then you need to download the right headers.
    You can use your browser to check which versions are available here:
    http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/

    Use putty to connect to your pi.
    Copy/Paste the link with your version from the browser to Putty wget [pasted link]

    Example:
    wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-3.18.10-v7%2b_3.18.10-v7%2b-2_armhf.deb

    Now download the drivers:

    wget http://www.niksula.hut.fi/~mhiienka/Rpi/gamecon-gpio-rpi-dkms_1.0_all.deb
    wget http://www.niksula.hut.fi/~mhiienka/Rpi/db9-gpio-rpi-dkms_1.0_all.deb 

    Then we have to install everything:
    First the headers with sudo dpkg -i [your downloaded header file]
    Example: sudo dpkg -i linux-headers-3.18.10-v7+_3.18.10-v7+-2_armhf.deb

    And then the drivers:

    sudo dpkg -i gamecon-gpio-rpi-dkms_1.0_all.deb
    sudo dpkg -i db9-gpio-rpi-dkms_1.0_all.deb 

    If you want to test it:
    sudo modprobe db9-gpio-rpi map=1,1

    “1,1” loads two joysticks with one button. “1,0” loads one joystick. Check documentation if you have different joysticks.

    You can check if everything is ok with jstest.
    To check the first joystick jstest /dev/input/js0. If you have already other controllers hooked up, the new joysticks can be js1, js2, js3…

    If this works, you can load the driver automatically every bootup:
    sudo nano /etc/modules
    and put the line db9-gpio-rpi map=1,1 there.
    Put it on first place, if you want to load it before other game controllers like an xbox pad. This is important in emulators like UAE4ALL2, that choose the first available joysticks as default. This not necessary with other emulators.

    raoulangel
    Participant
    Post count: 60

    Hi! Just got to working on this, everything seemed to go ok until I got here:

    pi@retropie ~ $ sudo dpkg -i gamecon-gpio-rpi-dkms_1.0_all.deb
    Selecting previously unselected package gamecon-gpio-rpi-dkms.
    (Reading database … 78242 files and directories currently installed.)
    Unpacking gamecon-gpio-rpi-dkms (from gamecon-gpio-rpi-dkms_1.0_all.deb) …
    dpkg: dependency problems prevent configuration of gamecon-gpio-rpi-dkms:
    gamecon-gpio-rpi-dkms depends on dkms (>= 1.95); however:
    Package dkms is not installed.

    dpkg: error processing gamecon-gpio-rpi-dkms (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    gamecon-gpio-rpi-dkms
    pi@retropie ~ $ sudo dpkg -i db9-gpio-rpi-dkms_1.0_all.deb
    (Reading database … 78250 files and directories currently installed.)
    Preparing to replace db9-gpio-rpi-dkms 1.0 (using db9-gpio-rpi-dkms_1.0_all.deb) …
    Unpacking replacement db9-gpio-rpi-dkms …
    dpkg: dependency problems prevent configuration of db9-gpio-rpi-dkms:
    db9-gpio-rpi-dkms depends on dkms (>= 1.95); however:
    Package dkms is not installed.

    dpkg: error processing db9-gpio-rpi-dkms (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    db9-gpio-rpi-dkms
    pi@retropie ~ $

    Any idea what is wrong?

    flausch
    Participant
    Post count: 19

    I think it is this line (but my linux knowledge is quite thin):

    gamecon-gpio-rpi-dkms depends on dkms (>= 1.95); however:
    Package dkms is not installed.

    I don’t know why, but dkms should be there by default. But maybe there was a mistake earlier already?
    Maybe you installed the wrong header files?

    My suggestion is to ask for help from the developer of the db9 driver himself here:
    https://www.raspberrypi.org/forums/viewtopic.php?t=15787

    Post your log there and you should get help by someone who does more than guessing… ;)

    raoulangel
    Participant
    Post count: 60

    Hey i have a weird idea. The hardware and soldering and wiring I have down pat but the software part with all these different versions and configurations is just too much. Any chance you can create an image of your working Retropie image that I can download and use as a starter image?

    flausch
    Participant
    Post count: 19

    This should be possible somehow. But keep in mind, that my version is outdated, since I did not use it for some months and did not update since 3.0

    raoulangel
    Participant
    Post count: 60

    LOL, it’s atari 2600, updates are not necessary. And frankly with an image, I can extract it, attempt an upgrade, and if it breaks extract it again! Thanks. let me know how we can accomplish

    flausch
    Participant
    Post count: 19

    I will check image size, compression and transfer possibilities when I am home. Let’s do the rest as private message.

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.