So I am going to attempt to “catalog” this project as I do it. Yeah I know, the first fucking time, ever. If it happens we’ll see, jury’s out.
So I have a AllWinner a20 PCDUINO Nano Lite that I snagged for $15 bucks a while back, and its been collecting dust ever since then. Haven’t done shit with this super ardunio-half-pi. Yay me. I wanted an arcade cabinet and this was here so bam diggity! I decided to try and purpose it for this task and since it happens to have a SATA port on it and I happen to have a 250GB SATA drive sitting here… Who’da fucking though eh? Perfect for MAME, its got all the space too (thats what she said).
So.. Ubuntu 12.07 Linaro, precise.
In case you wanted to know, df -h gets me:
ubuntu@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 3.6G 1.4G 2.1G 40% /
none 438M 8.0K 438M 1% /dev
none 438M 4.0K 438M 1% /tmp
none 88M 220K 88M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 438M 0 438M 0% /run/shm
none 438M 0 438M 0% /var/tmp
none 438M 3.2M 435M 1% /var/log
/dev/mmcblk0p1 100M 6.3M 94M 7% /media/2550-2C1D
/dev/sda1 147G 11G 129G 8% /media/roms
I am following this guide https://www.anavi.org/article/177/. He gets all the credit.
I used Filezilla to copy all of my CHDs and ROMS over to the hard drive on the pcduino. Getting that setup was hella easy. Won’t cover it here.
sudo apt-get update (it always seems to give errors for some packages on the pcduino, i just have never bothered to removed them from the list).
sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-dev libxv-dev libxv1
I installed 28.5mg of new crap and took up 83.9 overall, not bad so far.
sudo wget http://caltaxcn.googlecode.com/files/xmame-0.106.tar.bz2
Edit src/unix/unix.mak with your favorite text editor, for example vim, and change CFLAGS.risc_lsb = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST to CFLAGS.arm = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST
Edit makefile.unix and make the following changes:
CFLAGS = to #CFLAGS =
CFLAGS = -O2 to #CFLAGS =
MY_CPU = i386 to MY_CPU = arm
That last edit was quote a ways down..
Build the source code
sudo make install
…and that too for fucking ever. Jesus.
It works! But requires lightdm to be running. Need to figure out how to ditch the desktop if I can.
Dude on the tut page recommends using the gflags -ah 720 -ws 5 to adjust the resolution.
-ah height, -arbheight depth
Scale video to exactly this height (0 = disable).
-ws xaspect, -widthscale xaspect
Set X-Scale aspect ratio.
-b depth, -bpp depth
Specify the colordepth the core should render, one of: 0 (auto), 8, 16.
-ah 720 -ws 5 -b 16
all the commands here
Basically, the dude has it all right, easy peasy. For once. Follow his guide and you should get a working xmame emulator. No fancy GUI or anything but it does work. Not sure it will work for what I want. I do not think so. I want a nice easy to navigate GUI to be able to use from the cabinet hardware. Not a keyboard and mouse. There seems to be a few of those exact things available for the Pi so I will probably go the unwanted route of using the Pi2 with a USB hub and a USB hard drive. Which fucking sucks. I wanted to use the built-in SATA port. That was the whole fucking point. But I am not about to reinvent the wheel. I will adjust lanes.