Basilisk II on Batocera (Raspberry Pi)

Moved over to Batocera from Retropie and I like it. Only thing missing, for me, was Basilisk II, as I run a Pi 3B+ inside a Macintosh Classic case.

So spent today learning Batocera’s locked down file system 😉 and how to get Basilisk II up and running. And succeeded !!

Download performa.rom https://drive.google.com/file/d/13-zrKIv9ZMkIN8WvnPMk-Fa4PhpSExWA/view?usp=sharing

Download my ClassicMacVolume.dsk https://drive.google.com/file/d/1czjKQoDlOqP9YOu_59aT48EkB4aGg-qO/view?usp=sharing

Download my basiliskii-pi.tar.gz https://drive.google.com/file/d/1M7Q1BGTh72-HqcjjA_CsACusM19Zk60S/view?usp=sharing

SMB mount Batocera Pi and upload 3 above files
SSH to Batocera Pi

cd /userdata
mv performa.rom /userdata/bios
tar -xvfz basiliskii-pi.tar.gz
rm basiliskii-pi.tar.gz

cp /etc/emulationstation/es_system.cfg /userdata/system/configs/emulationstation/
nano /userdata/system/configs/emulationstation/es_system.cfg

under < systemlist > at the top, add:

  <system>
    <name>macintosh</name>
    <fullname>Apple Macintosh</fullname>
    <path>/userdata/roms/macintosh</path>
    <extension>.sh .SH</extension>
        <command>%ROM%</command>
        <platform>macintosh</platform>   
        <theme>macintosh</theme>
        <group>macintosh</group>         
        <emulators>     
            <emulator name="libretro">
                <cores>
                    <core>macintosh</core>
                </cores>
            </emulator>                
        </emulators>          
  </system>

mkdir /userdata/roms/macintosh
mv /userdata/ClassicMacVolume.dsk /userdata/roms/macintosh

vi /userdata/roms/macintosh/macintosh.sh

#!/bin/bash
/userdata/basilisk/bin/BasiliskII --rom /userdata/bios/performa.rom --disk /userdata/roms/macintosh/ClassicMacVolume.dsk --extfs /userdata/roms/macintosh --config /userdata/roms/macintosh/basiliskii.cfg

chmod +x /userdata/roms/macintosh/macintosh.sh
vi /userdata/roms/macintosh/basiliskii.cfg

displaycolordepth 0
extfs /userdata/
seriala /dev/ttyS0
serialb /dev/ttyS1
udptunnel false
udpport 6066
bootdrive 0
bootdriver 0
ramsize 8388608
frameskip 6
modelid 5
cpu 3
fpu false
nocdrom false
nosound false
noclipconversion false
nogui false
jit false
jitfpu false
jitdebug false
jitcachesize 0
jitlazyflush false
jitinline false
keyboardtype 5
keycodes false
mousewheelmode 1
mousewheellines 3
dsp /dev/dsp
mixer /dev/mixer
ignoresegv false
idlewait true
ether eth0

Reboot Batocera and Macintosh should appear. Connect USB keyboard and mouse to use.