Page 2 of 2

Re: Raspberry Pi + SheepShaver

Posted: Sun Apr 05, 2020 8:35 pm
by RaspberryPhil
galgot wrote:
RaspberryPhil wrote:
galgot wrote:@ RaspberryPhil
...
Did you try using sudo when starting sheepshaver?
!! :oops:
Of course, that is the thing I was forgetting...
It runs now with sudo.
Many thanks :)
Nice, good to hear!! Have fun!

Re: Raspberry Pi + SheepShaver

Posted: Fri May 22, 2020 12:24 am
by lordhex
Hi,
I am amazed at this project and wanted to bring up a MacOS to show the kids how it looked and feel back in the day.

I didn't want to resurrect this thread, but I tried absolutely everything in every single post on this thread. Tried all the values for memory from 8 to 256MB.

I'm trying to run it on a RaspberryPI 4 with 4GB of RAM. Tried on a RaspberryPi 3 V1.2 with 1GB of RAM as well. Same exact errors.
I did only move the SD card from one Pi to the other though.

After it starts succesfully and I am adding the CDROM and disk, when I click 'Start', SheepShaver crashes with:

""Cannot map Low Memory Globals: Invalid Argument.""
Then throws this error in the terminal.
++++++
pi@raspberrypi:~ $ sudo SheepShaver
SheepShaver V2.4 by Christian Bauer and Mar"c" Hellwig
The program 'SheepShaver' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 9 error_code 2 request_code 105 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
pi@raspberrypi:~ $
+++++

I did compile it from source from https://github.com/cebix/macemu and followed the instructions outlined here -- https://www.emaculation.com/doku.php/co ... r_basilisk

Building SheepShaver in Linux flavours:
SheepShaver currently suffers from issues regarding running in a window/full screen. For full screen support, follow the directions below. However, if you want a stable build for windowed use, delete “–enable-sdl-video” and “–enable-sdl-audio” from the ./configure step.
Ubuntu, Fedora, SuSE:
cd to the SheepShaver folder and:
make links
cd src/Unix
NO_CONFIGURE=1 ./autogen.sh
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf
make
strip SheepShaver

The RaspberryPi 4 & 3 are running this OS:
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $

I would really appreciate any help or direction.

Re: Raspberry Pi + SheepShaver

Posted: Tue May 26, 2020 6:59 pm
by galgot
Hi ,
have you tried with this build ? :
https://www.novaspirit.com/?smd_process ... oad_id=558
posted on the previous page by RaspberryPhil.
It's the only one I could make work on my R-PI 3. Must be run with sudo.

Re: Raspberry Pi + SheepShaver

Posted: Wed May 27, 2020 5:15 pm
by lordhex
That worked better, Thank you!
I did download that image made by Novaspirit, was able to install MacOS9 half way but then crashes.
It is better than before when it would just crash. At least I can see it boot and launch the install.

Re: Raspberry Pi + SheepShaver

Posted: Wed May 27, 2020 7:56 pm
by RaspberryPhil
Hi, find and use a pre-installed image on the net with google using '-inurl:htm -inurl:html intitle:”index of” os9.img':

http://jackparker.world/swamp/SheepShaver_stock/
http://newtoncity.org/NewtonFiles/Dev/

Re: Raspberry Pi + SheepShaver

Posted: Mon Jun 01, 2020 8:11 pm
by partisanentity
Hi there,

I am looking for current and up to date instructions for installing SheepShaver on Raspberry Pi and getting MacOS running. I have not found anything current online, many tutorials are rather dated.

Hardware: Raspberry Pi 4
OS: Raspberry Pi OS Version May 2020.

Would really appreciate any good links.

Re: Raspberry Pi + SheepShaver

Posted: Thu Jun 11, 2020 9:53 pm
by lordhex
Thank you all, it worked in the end with MacOS9.0.4. Tried the 9.1 and 9.2 couldn't make the Sheepshaver boot from the ISO. I had to make them read-only (chmod 400) to 'trick' the emulator to boot.
Thanks to RaspberryPhil, I got the disk and ROM from here http://newtoncity.org/NewtonFiles/Dev/

Short instructions on how I made them work:
Make a directory: mkdir -p /home/pi/macOS9 and cd to it;
Download the ROM and OS9 image from http://newtoncity.org/NewtonFiles/Dev/
Unzip 'Mac OS ROM.zip' . The ROM file should be 'Mac OS ROM' do not rename it, if you want SheepShaver to automagically find it.
Download the ppc and Sheepshaver from here -- https://www.novaspirit.com/?smd_process ... oad_id=558 -- ppc is PearPC for emulating MacOSX. Very slow on RaspberryPi.
They come zipped in MacARM.7z package.
Install p7zip if you don't have it (sudo apt install -y p7zip) then 'p7zip -d MacARM.7z' It will expand/decompress 2 files - ppc and SheepShaver.
Make SheepShaver executable - 'chmod +x SheepShaver'
Launch ./SheepShaver then:
Volumes tab:
- add the OS9.img
- Boot From - Any
Graphics/Sound tab:
- Video Type = Window
- Window Refresh Rate = 30 Hz
- Width = 1024
- Height = 768
Keyboard/Mouse tab - nothing to configure;
Serial/Network - nothing to configure
Memory/Misc tab:
- MacOS RAM Size = 256
- ROM File - either leave it blank, or Browse and select Mac OS ROM
- Select 'Ignore Illegal Memory Accesses
JIT Compiler tab - nothing to configure.
Click 'Start' and you should be able to enjoy MacOS 9.

Re: Raspberry Pi + SheepShaver

Posted: Sun Sep 13, 2020 10:45 am
by mactjaap
Download the ppc and Sheepshaver from here -- https://www.novaspirit.com/?smd_process ... oad_id=558 -- ppc is PearPC for emulating MacOSX. Very slow on RaspberryPi.
They come zipped in MacARM.7z package.
Install p7zip if you don't have it (sudo apt install -y p7zip) then 'p7zip -d MacARM.7z' It will expand/decompress 2 files - ppc and SheepShaver.
Make SheepShaver executable - 'chmod +x SheepShaver'
novaspirit seems to be offline. Is there anybody who could help we with this file:

MacARM.7z

Thanks!

Re: Raspberry Pi + SheepShaver

Posted: Sun Sep 13, 2020 11:05 am
by mactjaap
:oops:

Got it....seemed to be a problem on my side!

Re: Raspberry Pi + SheepShaver

Posted: Sun Sep 13, 2020 12:03 pm
by mactjaap
It is running. Now the tricky part...networking!
I would like to use the sheep_net driver. Tried it to choose in the GUI, but as expected this doesn't work.
WARNING: Cannot open /dev/sheep_net (No such file or directory). Ethernet will not be available

Anyone succeeded in this on a raspberry Pi? My model is 3 B+
Tips are welcome!

Re: Raspberry Pi + SheepShaver

Posted: Sun Sep 13, 2020 12:20 pm
by Ronald P. Regensburg
Isn't slirp networking available?

Re: Raspberry Pi + SheepShaver

Posted: Mon Sep 14, 2020 8:45 pm
by mactjaap
Yes. Slirp is working file...but I want to work with Appletalk.

I'm working on a new version of the MacIPpi on Raspberry and would like to run IP over MacIP. I also like to share files over Appletalk. Would like to add real networking to it.
See my project on:
https://www.macip.net/

Re: Raspberry Pi + SheepShaver

Posted: Mon Sep 14, 2020 10:36 pm
by Cat_7
WARNING: Cannot open /dev/sheep_net (No such file or directory). Ethernet will not be available
Hi, did you compile and load the sheep_net driver?
It's been a long time since I did that, but here are some old instructions:
https://www.emaculation.com/doku.php/ubuntu#self-help

Best,
Cat_7

Re: Raspberry Pi + SheepShaver

Posted: Wed Sep 16, 2020 5:24 pm
by mactjaap
Thanks for the link. I compiled the sheep_net driver and it works nice. Only problem is that it doesn't "see" it own Netatalk server. And I don't seems to be able to access other AFP servers... Hmmm have to puzzle on this.

This is also a way to go:
https://github.com/VinDuv/sheep-bridge

Will try this one too.

Re: Raspberry Pi + SheepShaver

Posted: Wed Nov 18, 2020 10:22 am
by mike5im5
Hi,

Just found this and it's fantastic. Would love my pi to boot straight into sheepshaver an start mac OS9. Is there anyway to autostart from command prompt? I have to manually hit the start button currently.

Many thanks for the hard work.. it's really great.

Re: Raspberry Pi + SheepShaver

Posted: Wed Nov 18, 2020 4:02 pm
by adespoton
mike5im5 wrote: Wed Nov 18, 2020 10:22 am Hi,

Just found this and it's fantastic. Would love my pi to boot straight into sheepshaver an start mac OS9. Is there anyway to autostart from command prompt? I have to manually hit the start button currently.

Many thanks for the hard work.. it's really great.
https://raspberrytips.com/autostart-a-program-on-boot/

Re: Raspberry Pi + SheepShaver

Posted: Wed Nov 18, 2020 8:30 pm
by mike5im5
adespoton wrote: Wed Nov 18, 2020 4:02 pm
mike5im5 wrote: Wed Nov 18, 2020 10:22 am Hi,

Just found this and it's fantastic. Would love my pi to boot straight into sheepshaver an start mac OS9. Is there anyway to autostart from command prompt? I have to manually hit the start button currently.

Many thanks for the hard work.. it's really great.
https://raspberrytips.com/autostart-a-program-on-boot/
Thank you but I think you missunderstood my question. I know how to auto start an application. But is there a way to start the mac OS9 emulation with Sheepshaver. If I autostart sheepshaver, I'd still have to click the "Start" button to boot up the mac desktop.

I was wondering if there are some command line arguments in sheepshaver. Failing this I could try scripting some xdotool to tab and enter the start button? Anyone done this?

Re: Raspberry Pi + SheepShaver

Posted: Wed Nov 18, 2020 9:39 pm
by mike5im5
Had a quick go at scripting the keystrokes to start emulation automatically. It's pretty crude but works for me:

./SheepShaver &
xdotool key --delay 1000 KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Tab
xdotool key KP_Enter

Re: Raspberry Pi + SheepShaver

Posted: Thu Nov 19, 2020 12:29 am
by Cat_7
Your SheepShaver starts with the GUI?
Can you not set nogui to true and add the prefs on the command line to start SheepShaver?

Best.
Cat_7

Re: Raspberry Pi + SheepShaver

Posted: Sun Jun 06, 2021 3:20 am
by heliomass
Can you not set nogui to true and add the prefs on the command line to start SheepShaver?
Thanks, I was trying to figure this out myself as well :) Knew it had to be a prefs item or a command argument, but it seems it was staring me in the face.