RPi VICE C64 Emulator

From eLinux.org
Jump to: navigation, search


Aims

This tutorial shows you how to install the C64 emulator VICE on the Raspberry Pi computer.

VirtualBox

I don't have RPi, so I tested it with Russell Davis' VM 0.8 and the Debian image.

First start a shell within scratchbox2. All commands in this shell are executed as if you were on a RPi itself:

sb2 -t raspi_debian6 -eR

Then modify the sources.list file and add the "contrib" section for VICE. I use vim for it, better than vi, but you can use "joe", if you prefer a WordStar like editor, or any other editor.

apt-get install vim
vim /etc/apt/sources.list

There is this line:

 deb http://ftp.uk.debian.org/debian/ squeeze main

Add "contrib" at the end:

 deb http://ftp.uk.debian.org/debian/ squeeze main contrib

then save the file with ":wq", update the package files, and install VICE:

apt-get update
apt-get install vice

The ROMs are not included in the Debian version. You can get it from the Windows version, or from the web like this and install it in VICE:

 wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/old/vice-1.5-roms.tar.gz
tar -xvzf vice-1.5-roms.tar.gz
cp -a vice-1.5-roms/data/* /usr/lib/vice/

(An alternative to just copying the ROMs is to put them into a deb package and install that):

# checkinstall --nodoc --pkgname vice-roms --pkgversion 1.5 --pkgsource vice-1.5-roms --provides vice-roms cp -rv vice-1.5-roms/data/* /usr/lib/vice/


Now you can start x64:

x64

It shows an error about sound initialization, but then you should see the C64 prompt:

C64-vice-rpi-vm.png

TODO: instructions for the real RPi computer and maybe alsa audio fix, if not working on the hardware.