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 --- Bug Reports --- Site News

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

  

Author Topic: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400  (Read 101916 times)

0 Members and 1 Guest are viewing this topic.

nts31180

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:March 21, 2022, 06:10:57 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.241 Appliance on a Raspberry Pi 4/Pi 400
« Reply #360 on: March 18, 2022, 03:31:29 pm »
No clue if this is related to the program or if it’s the rom’s I’m using.
But getting a large red screen with a bunch of files missing, say (neogeo) after the file name.

Photo attached.
Any advice?

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.241 Appliance on a Raspberry Pi 4/Pi 400
« Reply #361 on: March 18, 2022, 03:41:41 pm »
Hi nts31180,

That's because the ROM you want to launch needs (dependency) a BIOS. In this case, the BIOS it needs is neogeo. You need to get the BIOS file (neogeo.zip) and put it in the same folder as your ROM files (/data/mame/roms).

Hope it helps
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

itr4e

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:August 27, 2022, 11:33:32 am
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.241 Appliance on a Raspberry Pi 4/Pi 400
« Reply #362 on: March 19, 2022, 09:46:11 am »
Hi,
got a problem building mame on a Pi4B 4GB with your image
I am making a small 15 inch picade for the kids to play some games on it, especialy pacman  and i have used your image since the kids are small and prefer to be a ro mode.

Basically I have changed the source ui.cpp to have option to disable the warning (no nag) display, modified your mame-update script not do download the mame or extract and used that to build the image

After 5h 45m it fails, see attached picture for that but it doesn't contain any specific error info.

i have seen the make file and will try to enable debug and some other options to see why but was wondering if anyone has an idea as each build takes forever to be done and now with debug will be more.

I have not touched anything else and added only some option to change/cycle one game per day with a script and adding the game to load in the autostart script.

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.241 Appliance on a Raspberry Pi 4/Pi 400
« Reply #363 on: March 19, 2022, 06:41:04 pm »
Hi itr4e,

At first view, it looks like a free-space problem: the root filesystem is a bit tight on space while building MAME. I would suggest you delete your .zip of the source code, once unzipped, as well as the original MAME (rm -R ~/mame0241). Try to continue the build, it should take where the issue was encountered.

Just let me know if this fix the issue. Thanks!
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

nts31180

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:March 21, 2022, 06:10:57 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.241 Appliance on a Raspberry Pi 4/Pi 400
« Reply #364 on: March 21, 2022, 06:10:57 pm »
Hi nts31180,

That's because the ROM you want to launch needs (dependency) a BIOS. In this case, the BIOS it needs is neogeo. You need to get the BIOS file (neogeo.zip) and put it in the same folder as your ROM files (/data/mame/roms).

Hope it helps

Thanks again for all of the help! I've gotten to everything set up (for now), and even gotten to play some games that I haven't seen since I was a kid.
This is an awesome set up!

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.241 Appliance on a Raspberry Pi 4/Pi 400
« Reply #365 on: March 24, 2022, 03:17:17 pm »
Thanks, nts31180!  :D

@itr4e,

To free some space before the build process, use these commands:

Code: [Select]
sudo apt-get clean
sudo apt-get autoclean

Did you were able to build MAME, yet?
« Last Edit: March 30, 2022, 10:53:08 am by bbegin »
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.242 Appliance on a Raspberry Pi 4/Pi 400
« Reply #366 on: April 06, 2022, 12:01:08 pm »
Just to let you know the availability of the NEW disk image file with MAME 0.242 (please see the original post of this thread for the download link).  :cheers:
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Just to let you know the availability of the NEW disk image file with MAME 0.243 (please see the original post of this thread for the download link).  :cheers:
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

itr4e

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:August 27, 2022, 11:33:32 am
  • I want to build my own arcade controls!
Thanks, nts31180!  :D

@itr4e,

To free some space before the build process, use these commands:

Code: [Select]
sudo apt-get clean
sudo apt-get autoclean

Did you were able to build MAME, yet?


Hi sorry for the late reply been pretty busy and just noticed your post.
I did managed to fix it yes, don't recall what I did though.

I also made some changes on my own for simplicity, since it's for the kids and dont want to be complicated but easy enough to change games if needed without menus.
I added a script that reads some files from the boot volume and depending on that it starts the game and the relevant parameters with it, eg rotate, emulator and config.
So it starts only one game and no menu for kids to mess around with :)
Will do some changes some time this or next month in preparation of summer

thanks for your great work on that










Bsachetti

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 29, 2022, 10:13:33 pm
  • Pi4-based Arcade Only with Mini-Pac Opti controlle
So far, this is my favorite build for my arcade machine.  Very easy to use and works so much better with my I-PAC than Retropie or Batocera. 

Just a couple of items I've been struggling with.

1)  Performance of all vector games -- everything seems to run really well (speeds very close to 100%) except for vector games which are super slow with speeds from  15-25% typically.

2) Advmenu -- this won't run at all.  It seems to get the xml info from the Mame executable and then reports "No video mode available for your configuration.  Try selecting a specific resolution like with -display_size 1280x1024"

Hoping to have someone point me in the right direction on these!  Thanks in advance.
« Last Edit: May 22, 2022, 03:12:29 pm by Bsachetti »

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
To set the correct video mode with AdvanceMENU, you should run the AdvCfg binary and set the resolution to the one EDID has detected:

Code: [Select]
./frontend/advance/advcfg
« Last Edit: May 24, 2022, 10:12:10 pm by bbegin »
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

Bsachetti

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 29, 2022, 10:13:33 pm
  • Pi4-based Arcade Only with Mini-Pac Opti controlle
Got advmenu working... thanks!

Any guidance on how to get acceptable performance from the vector games or is this a known issue?

Thanks!

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 776
  • Last login:Yesterday at 01:33:33 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Just FYI, Mame 0.244 broke KMS output, I've made a temporary fix at https://gitlab.com/groovyarcade/packages/-/blob/master/package/groovymame/kms.patch until it's fixed upstream (see https://github.com/mamedev/mame/issues/9852)

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #373 on: June 16, 2022, 09:55:24 am »
Just FYI, Mame 0.244 broke KMS output, I've made a temporary fix at https://gitlab.com/groovyarcade/packages/-/blob/master/package/groovymame/kms.patch until it's fixed upstream (see https://github.com/mamedev/mame/issues/9852)

Thanks for this patch, I will integrate it for the 0.244 build and hope it will be integrated in 0.245 version of MAME.
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bobbyb13

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1718
  • Last login:Today at 10:35:56 pm
  • I believe I may need an intervention
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #374 on: June 23, 2022, 10:06:25 pm »
I have been waiting to try this since you first posted your project work!

Of course now that I open your github entry I find myself over my head immediately.

Is there any hope I can do this if I have never used Linux before and only have a Windows10 computer?

Maybe I can install virtualbox so I can follow your directions but my skill in dealing with computers and code is very limited!

Your very detailed directions look excellent- and also like a foreign (even when translated into English for me!) language.
 :lol
Relax, all right? My old man is a television repairman, he's got this ultimate set of tools! I can fix it.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 776
  • Last login:Yesterday at 01:33:33 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #375 on: June 24, 2022, 01:54:30 pm »
Just FYI, Mame 0.244 broke KMS output, I've made a temporary fix at https://gitlab.com/groovyarcade/packages/-/blob/master/package/groovymame/kms.patch until it's fixed upstream (see https://github.com/mamedev/mame/issues/9852)

Thanks for this patch, I will integrate it for the 0.244 build and hope it will be integrated in 0.245 version of MAME.
Considering 245 is about to be released and https://github.com/mamedev/mame/pull/9888is still open ... The fix is lame, the original commit that brought the bug is even worse ... I'll let you follow issues to understand why there was a commit that broke KMS. The various fix are totally absurd ...

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9193
  • Last login:Today at 03:23:36 pm
  • Designated spam hunter

javeryh

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7857
  • Last login:Today at 09:42:25 pm
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #377 on: June 28, 2022, 01:21:02 pm »
I have been waiting to try this since you first posted your project work!

Of course now that I open your github entry I find myself over my head immediately.

Is there any hope I can do this if I have never used Linux before and only have a Windows10 computer?

Maybe I can install virtualbox so I can follow your directions but my skill in dealing with computers and code is very limited!

Your very detailed directions look excellent- and also like a foreign (even when translated into English for me!) language.
 :lol

If I can figure this out, anyone can.  Saying I have third grade level computer knowledge would be an insult to third graders everywhere.  You don't need to compile anything - bbegin has done it all for you.  Just need to mount the image on a memory card and then boot up the pi.  You then should connect to wifi using the config file discussed in this thread like 2 years ago.  Everything else is in the instructions and it's trial and error and you can't mess anything up.  Worst you can do is have to delete the image and restart.  Just dive in!

Jt82

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:August 23, 2022, 01:09:32 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #378 on: July 31, 2022, 01:20:29 pm »
Hi. I'm looking for help on how to get this working.
Here's where i am.

I have downloaded the file in the first post and installed it to the rPi4. I have booted the pi and got to the service menu. I am able to log in using the standard pi login details.
That's it. I have no idea where to go next. The step by step guide seems overly long for something everyone on here is saying is simple. Am i missing something? Am i supposed to follow each of the steps in the step by step guide? I think it would take me weeks to type in all the code in the guide.

I don't understand where i'm supposed to put the roms. In previous installs i've been able to find the folders if i put the sd card in my pc. When i do this now i don't see any of the usual folders.

There is mention of Samba share but all the tutorials i've looked at explaining this don't explain the error i get when i try to install it. (not using locking for ....etc)

javeryh. above you say connect to wifi using config discussed in the thread 2 years ago. Can you point me to the page on the thread this is discussed please? I've gone back and forth on the thread so many times i think im blind to see the actual helpful parts.

Any help on this would be gratefully received.

LuckyTiger

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:March 26, 2023, 09:38:04 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #379 on: August 01, 2022, 11:18:49 pm »
Hi. I'm looking for help on how to get this working.
Here's where i am.

I have downloaded the file in the first post and installed it to the rPi4. I have booted the pi and got to the service menu. I am able to log in using the standard pi login details.
That's it. I have no idea where to go next. The step by step guide seems overly long for something everyone on here is saying is simple. Am i missing something? Am i supposed to follow each of the steps in the step by step guide? I think it would take me weeks to type in all the code in the guide.

I don't understand where i'm supposed to put the roms. In previous installs i've been able to find the folders if i put the sd card in my pc. When i do this now i don't see any of the usual folders.

There is mention of Samba share but all the tutorials i've looked at explaining this don't explain the error i get when i try to install it. (not using locking for ....etc)

javeryh. above you say connect to wifi using config discussed in the thread 2 years ago. Can you point me to the page on the thread this is discussed please? I've gone back and forth on the thread so many times i think im blind to see the actual helpful parts.

Any help on this would be gratefully received.
Jt82, if you use bbegin's premade download, there is very little you need to do. You really don't need the step-by-step guide, just the first post.

After you login, you run the script mentioned in the first post to use the full size of your SD card. I would suggest using an ethernet cable until you are ready to setup WiFi using the information from the linuxhint.com instructions also in the first post. From there, you should be able to connect over the network and add roms without issue or even by physically putting the SD card into your PC.

I hope this helps you get started.

mallard

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:December 11, 2022, 11:07:18 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #380 on: December 11, 2022, 10:52:36 pm »
Does anyone have experience running this image with USB boot on a pi 4?

I've had lots of issues running on an SD card. Even when using safe shutdowns, the card seems to get corrupted over time and eventually refuses to boot unless I reflash the image.

Is this an inherent problem with SD cards? Or is it likely that my specific card has issues? Would USB booting fix this, and has anyone been able to flash and boot on a USB?

I'd really appreciate any help.

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.243 Appliance on a Raspberry Pi 4/Pi 400
« Reply #381 on: December 16, 2022, 06:20:22 pm »
Does anyone have experience running this image with USB boot on a pi 4?

I've had lots of issues running on an SD card. Even when using safe shutdowns, the card seems to get corrupted over time and eventually refuses to boot unless I reflash the image.

Is this an inherent problem with SD cards? Or is it likely that my specific card has issues? Would USB booting fix this, and has anyone been able to flash and boot on a USB?

I'd really appreciate any help.

To answer your question, SD cards *do* wear over time as numerous write operations are done.

I took care of this problem, because the purpose of this image is to being used as an "appliance" style: power it on, use it (or not), power it off (or not, in use case of continuous operation). The SD card must *not*  wear over time. That's why I took care to put the system in read-only mode when in normal operation. Only the /data partition is in read/write mode, but the filesystem is adapted to flash (it uses the F2FS filesystem). Additionally, only the occasional writes operations requested by the emulator or the front-end are redirected to this partition. The whole Linux operating system is running in read-only mode. To make changes to Linux persistent (add, update or remove packages, for example), you first need to put the system in read/write mode, with the "rw" command.

Booting from a USB disk will only make it possible to use a magnetic hard disk, instead of flash.

I personally think your SD card is already worn-out, from previous uses or maybe defective.

I recommend use a new micro-SD card (avoid cheapest ones, if possible) and write the image file to it. You shouldn't run in any problem regarding the wear with this image.

I hope this helps.
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 185
  • Last login:January 23, 2023, 08:10:19 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
« Reply #382 on: December 19, 2022, 09:19:51 pm »
Hi all,

It's been a little while since I published a new updated disk image!

I'm happy to let you know the availability of the NEW disk image file with MAME 0.250 (please see the original post of this thread for the download link).

Three (3) new features in this release:
- Sound volume is persistent;
- Automatic single-ROM launch at boot (called AutoROM mode) for dedicated cabinet/game (configure with the "frontend" command);
- No more need to put the system in read/write mode when using the "frontend" command.

Happy holidays!  :cheers:
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1474
  • Last login:Yesterday at 03:57:30 pm
Re: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
« Reply #383 on: January 07, 2023, 01:35:26 am »
Any chance you can make this 15khz compatible, with vga666 and groovymame? Thanks for reading.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 776
  • Last login:Yesterday at 01:33:33 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
« Reply #384 on: January 13, 2023, 06:36:31 pm »
If you go groovymame for 15kHz, please get in touch with me. You'd need some kernel patches + patched SDL2 for KMS modeswitching

Toonces

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 226
  • Last login:March 27, 2023, 04:58:45 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
« Reply #385 on: January 14, 2023, 03:41:34 pm »
That would be awesome! I recently used GroovyArcade 2022 iso to update my main MAME system in a Namco Cyberlead and love it. Being able to use this image with GroovyMame would be awesome. I am using a PJ Pi2JAMMA adapter from PCBJunkie that would be an awesome combo with this image. https://pcbjunkie.net/index.php/raspberry-pi-to-jamma-adapter/

I'm using it with a Pi3B and an older version of Retropie but this image and a Pi4 with the SDArcadeMod_v3f theme looks like it's a perfect match that will give me what I've been looking for.

javeryh

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7857
  • Last login:Today at 09:42:25 pm
Re: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
« Reply #386 on: January 20, 2023, 11:45:07 am »
Hi all,

It's been a little while since I published a new updated disk image!

I'm happy to let you know the availability of the NEW disk image file with MAME 0.250 (please see the original post of this thread for the download link).

Three (3) new features in this release:
- Sound volume is persistent;
- Automatic single-ROM launch at boot (called AutoROM mode) for dedicated cabinet/game (configure with the "frontend" command);
- No more need to put the system in read/write mode when using the "frontend" command.

Happy holidays!  :cheers:

Thanks for keeping this going!  I'm about 1 year in using this solution and have had zero issues.  It boots, it plays and it powers down perfectly every time. :cheers: