cebix / macemu

Basilisk II and SheepShaver Macintosh emulators
1.38k stars 288 forks source link

Basilisk II issues on FreeBSD 11.1-Stable #176

Open FreeBSD-pzn opened 6 years ago

FreeBSD-pzn commented 6 years ago

Hello Christian and folks. Thank you very much Christian. The BasiliskII is incredible project.

I have read issue https://github.com/cebix/macemu/issues/52#issue-22292558 and I have added to the file ./src/Unix/config.h the string #define HAVE_SIGINFO_T 1

Then I have compiled BasiliskII on FreeBSD 11.1-STABLE #0 r333574. BasiliskII is working, but I have got issues:

Also I have got next messages:

Basilisk II V1.0 by Christian Bauer et al. Reading ROM file... Error sending CAMIOCOMMAND ioctl Using /dev/dsp audio output WARNING: RmvTime(000eb796): Descriptor not found WARNING: RmvTime(0014c47a): Descriptor not found

And when I am trying to configure network either AppleTalk or TCP/IP I get messages:

Illegal instruction: 0008 at 00000064 Your Mac program just did something terribly stupid

and BasiliskII crush (segmentation fault) with a core file.

For the network I am using a tap device and create it with a script: echo "Creating tap0 ..." ifconfig tap0 create sleep 3 echo "Creating bridge0 ..." ifconfig bridge0 create sleep 3 echo "Configuring bridge0 ..." ifconfig bridge0 addm lagg0 addm tap0 sleep 3 echo "Upping tap0 and bridge0 ..." ifconfig tap0 up ifconfig bridge0 up sleep 2 echo "Setting USER open ..." sysctl net.link.tap.user_open=1 echo "Setting USER tap device UP on open ..." sysctl net.link.tap.up_on_open=1 chmod a+wr /dev/tap0

I need a help and an advices to solve issues. p.s. Sorry if I made a mistake in the text.

ianfixes commented 5 years ago

How did you build on BSD? Could you set up a config file for https://cirrus-ci.org/ ?

FreeBSD-pzn commented 5 years ago

Thank you for answer me. I have build Basilisk II like those: 1 cd scr/Unix 2 .configure 3 added to the file ./src/Unix/config.h the string #define HAVE_SIGINFO_T 1 4 gmake

I got executable file BasiliskII.

About program Calculator: I have found an issue. On a FreeBSD emulation FPU device is not a good. When I run MacOS without FPU emulation calculator is working OK.

Oleg

ianfixes commented 5 years ago

OK. I am working on a fork of this project at https://github.com/emaculation/BasiliskII and running tests on BSD is on my roadmap. I will use your build instructions to set that up.

FreeBSD-pzn commented 5 years ago

A very good news! I will gladly help you. Also I guess that make a port on a FreeBSD is a good idea. In my small laboratory also I have got Solaris 10, Darwin and OpenVMS 7.3. I can trying to compile Basilisk II on them. Oleg

ianfixes commented 5 years ago

Do you have a powerPC in your lab too? That may help with https://github.com/emaculation/SheepShaver/issues/10 as I doubt we will find the missing zipfile.

FreeBSD-pzn commented 5 years ago

Well, I am trying to find macmini G4 to add it into my laboratory. I have got qemu-ppc on a FreeBSD, but it works not good. https://forums.freebsd.org/threads/qemu-system-ppc-works-very-very-slowly-and-does-not-boot-macos.66937/