Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: GroovyMAME on Raspberry Pi (with GPIO VGA)?  (Read 7113 times)

0 Members and 1 Guest are viewing this topic.

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
GroovyMAME on Raspberry Pi (with GPIO VGA)?
« on: September 30, 2015, 03:02:37 pm »
I was wondering if anyone has got Groovy MAME running on a Raspberry Pi?

I ask because there's this great project that adds VGA support via the GPIO pins:
https://www.raspberrypi.org/blog/gert-vga-adapter/

If GroovyMAME could work with that to output proper 15K video signals then we could essentially have our own GroovyMAME powered X in 1 board.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #1 on: September 30, 2015, 04:27:24 pm »
Thanks for sharing this, I had no idea this existed. So the Raspberry Pi has finally a VGA output, that's great. I guess GM will suck on the Pi, besides we'd need a new implementation probably to enable custom video. Anyway having an open source device with custom analog video opens lots of possibilities.

Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #2 on: September 30, 2015, 04:44:46 pm »
I was doing a bit more research on this after I posted...

There was a kickstarter for the board which got good support and they now have it in production. you can order one here: https://www.pi-supply.com/product/gert-vga-666-hardware-vga-raspberry-pi/

it's actually pretty cheap (then again it's just 2 connectors and 20 some odd resistors)

official git hub: https://github.com/fenlogic/vga666


---------------
Supposedly only works on the B+ variant of the Model 1 Pi

Also works on Model 2 Pis according to some comments here: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=94424&start=25
« Last Edit: September 30, 2015, 04:55:56 pm by twistedsymphony »

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:June 12, 2023, 09:19:49 am
  • Z80 ERROR
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #3 on: October 01, 2015, 03:17:22 am »

Building MAME for PI2 has already been tested by Steve Boswell (http://choccyhobnob.com/mame-on-raspberry-pi2/)

Unfortunately, the build has been performed without using PI2 architecture optimizations. It is imaginable to have some gain that could bring 100% emulation speed compared to the listed results.

Coming back to groovymame on PI2, I have few questions to be answered first to understand if it is worth the effort. d
a) Is the VGA GPIO driver able to set the dot clock lower as 15kHz?
b) Does the VGA GPIO driver support KMS for resolution switching?
c) What is the CPU utilisation to do the VGA GPIO handling?

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #4 on: October 01, 2015, 02:50:45 pm »

Coming back to groovymame on PI2, I have few questions to be answered first to understand if it is worth the effort. d
a) Is the VGA GPIO driver able to set the dot clock lower as 15kHz?
b) Does the VGA GPIO driver support KMS for resolution switching?
c) What is the CPU utilisation to do the VGA GPIO handling?


from the FAQ:

Quote
...From the birth of the Raspberry-Pi there have been complaints about the lack of a VGA output. That
has now been remedied. But only for the B+ and at the cost of losing most of your GPIOs.
The BCM2835 has a parallel display interface on the GPIO pins. I did not publish this in the 2835
datasheet as 50% of the DPI pins where not on the GPIO connector, making it impossible to get any
decent video out. The B+ however has all of the necessary DPI signals brought out. Dom has been
working on the software side and the new DPI (read: VGA) driver software has been added to the
latest release.

Resolution & Quality
The VGA output supports the same resolutions as your HDMI one. Thus from 640x480 up to
1920x1024 60fps. At the highest resolution the pixel quality is almost as good as HDMI.
...
How much CPU power does it use?
Non more than the HDMI output. The video signal is generated by the DPI peripheral, not by bitbashing
the GPIO pins. ...

that definitively answers your question "c" and semi-answers "a" and "b" in that it will likely have the same features/limitations as the HDMI output.

I don't know enough about the Pi's DPI peripheral and associated driver but I would syspect we'd be in a similar situation as a PC where the device is capable but not necessarily designed to output a signal that slow without some modification to the driver.
« Last Edit: October 01, 2015, 02:53:26 pm by twistedsymphony »

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:June 12, 2023, 09:19:49 am
  • Z80 ERROR
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #5 on: October 02, 2015, 12:44:28 pm »

Thank you twistedsymphony for the answer. Still an certain level of uncertainty on this VGA output.

Do you know if the HDMI interface is able to sync at lower frequency (15kHz). To my understanding of the PI/PI2 capabilities, 15kHz is not possible on HMDI plug, only on the composite plug.

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #6 on: October 02, 2015, 03:39:29 pm »
I know as much as I've posted in this thread. I would suspect that the graphics chip is the same devices that drives the HDMI and the composite ... and the GPIO pins for VGA and as such would be capable of refresh rates in the 15K range... this is just pure speculation on my part though.

I think the best bet would be to contact the person behind this VGA mod as from what I understand he was one of the original Pi developers who designed the video circuitry. Certain he would know the capabiilty of the system and how they could be adapted to support signals in the 15K and 24K range.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMAME on Raspberry Pi (with GPIO VGA)?
« Reply #7 on: October 02, 2015, 04:03:14 pm »
For me the interesting part about this is not using the Pi for emulation, which is going to suck, but the possibility to use the thing as a video card.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi