Help getting BII running on Ubuntu

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Help getting BII running on Ubuntu

Post by MarisaG »

I have what I think is the proper ROM and MacOS 8.1 ISO, but when I try to start BII up I get a mac window that says the boot disk is not for this type of Mac. Can someone tell me the best ROM and ISO to use? Not asking for where to get them, just which I should use...

Thx!
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Help getting BII running on Ubuntu

Post by Ronald P. Regensburg »

It would help if you give more details about the ROM file and the MacOS 8.1 disk image.

Best ROMs for BasiliskII are the performa.rom and the quadra650.rom.

Where did you get the 8.1 disk image? Is it created from a general retail install CD or from a model specific install CD? Is it for installation on a 68k Mac?
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Ronald P. Regensburg wrote: Wed Mar 03, 2021 7:00 pm Best ROMs for BasiliskII are the performa.rom and the quadra650.rom.
Where did you get the 8.1 disk image? Is it created from a general retail install CD or from a model specific install CD? Is it for installation on a 68k Mac?
Ok I have those ROMs. I downloaded the 8.0 and 8.1 from another site, but they could be bad or for another model. Is there somewhere I should look for it? I think it might be for a PPC mac, which I'm not wanting.
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Help getting BII running on Ubuntu

Post by adespoton »

For a good list of ROMs and their compatibility, you can try here:
https://docs.google.com/spreadsheets/d/ ... Dk7QDyKPY/

For the 8.1 iso, you want the retail CD or the machine CD that matches both the ROM you're using and the Gestalt ID BII is using (best to set the gestalt ID to match the ROM).
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Hmm, I dont see where I make sure the 8.1 iso that will work with the quadra650.rom. Where do I set the gestalt ID?
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Help getting BII running on Ubuntu

Post by Ronald P. Regensburg »

You will find a proper 8.1 install disk on Macintosh Garden that will work in BasiliskII:
https://macintoshgarden.org/apps/macint ... -mac-os-81

Look for the Mac_OS_8.1.zip, #12. It is a .toast image.

This install disk is not a boot disk, so you will also need a boot disk. You can use this DiskTools_MacOS80.image: https://surfdrive.surf.nl/files/index.p ... s/download

Start with the empty image that you will use to install the system onto at the top of the volumes list,
then the Mac OS 8.1.toast image,
and finally the DiskTools_MacOS8.image

The install disk contains both a 8.1 installer and a 8.1 updater. If you use the 8.1 installer, it will first install 8.0 and will then proceed with the 8.1 update.
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Thx, I am on Linux and I don't have a GUI to configure it. How do I create a HD image file to pass on the command-line?
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Help getting BII running on Ubuntu

Post by Ronald P. Regensburg »

A BasiliskII for Linux without GUI? How come? Where did you get that one?
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

On a site with updated (supposedly) revision of BII. Do you have a better place to download it?
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Help getting BII running on Ubuntu

Post by Ronald P. Regensburg »

I am not a Linux user, but normally BasiliskII for Linux has a GUI.

See our setup manual: https://www.emaculation.com/doku.php/ba ... inux_setup
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

How do I run it? If I just run it on its own like:

Code: Select all

./BasiliskII
I get this:

Code: Select all

Basilisk II V1.1 by Christian Bauer et al.
ERROR: Cannot open ROM file.
If I try passing it some arguments like this:

Code: Select all

./BasiliskII --rom quadra650.rom --cpu 4
I just get this:

Code: Select all

Basilisk II V1.1 by Christian Bauer et al.
Reading ROM file...
Using SDL/pulseaudio audio output
Using SDL_Renderer driver: opengl
Caught SIGSEGV at address 0x6dd64d10 [IP=0x42a3c004]
D0: 00000000 D1: 00000000 D2: 00000000 D3: 00000000 
D4: 00000000 D5: 00000000 D6: 00000000 D7: 00000000 
A0: 00000000 A1: 00000000 A2: 00000000 A3: 00000000 
A4: 00000000 A5: 00000000 A6: 00000000 A7: 00000000 
USP=00000000 ISP=00000000 MSP=00000000 VBR=00000000
T=00 S=0 M=0 X=0 N=0 Z=0 V=0 C=0 IMASK=0
FP0: nan FP1: nan FP2: nan FP3: nan 
FP4: nan FP5: nan FP6: nan FP7: nan 
N=0 Z=0 I=0 NAN=0
../MacEmuStart: line 5: 175593 Segmentation fault      (core dumped) ./MyBasiliskII --rom quadra650.rom --cpu 4
Any ideas? No GUI in sight...
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

BTW I tried compiling a version of my own and that had the issue displayed above, just like the one I downloaded and had no compile-time errors. Am I supposed to just be able to run ./BasiliskII and get a GUI like I do for SheepShaver?
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Tracked it down - I did a rebuild after installing GTK2 and now I get the GUI :) Will post if it actually works...
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Ok I have it set up using the GUI like the attached pictures. Any idea why I am getting a core dump?
Image
Image
Image
Image
Image
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
ebann
Tinkerer
Posts: 52
Joined: Tue Jan 19, 2021 10:26 pm

Re: Help getting BII running on Ubuntu

Post by ebann »

I'd recommend some changes. Basilisk II actually emulates a Quadra 900 for the most part. So if you set it to use the Quadra 800 ROM and the 68040 CPU, you'll be in better shape. ROM info here: https://docs.google.com/spreadsheets/d/ ... -Dk7QDyKPY
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Help getting BII running on Ubuntu

Post by Cat_7 »

Hi,

From which repository did you compile? Our small Linux compiling guide suggest the kanjitalk repo.
https://www.emaculation.com/doku.php/co ... r_in_linux

For the crash: I'd suggest you check ignore illegal memory access on the memory/misc tab and disable the jit compiler on the Jit tab.

Best,
Cat_7
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Help getting BII running on Ubuntu

Post by Ronald P. Regensburg »

ebann wrote: Thu Mar 04, 2021 2:21 am I'd recommend some changes. Basilisk II actually emulates a Quadra 900 for the most part. So if you set it to use the Quadra 800 ROM and the 68040 CPU, you'll be in better shape. ROM info here: https://docs.google.com/spreadsheets/d/ ... -Dk7QDyKPY
A common misunderstanding. There is no relation between the used ROM file and the Mac model that BasiliskII is (more or less, but not really) emulating.
The ROM files BasiliskII works best with are the 1MB roms that were used during development, regardless the Mac Model ID or CPU Type settings.
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Cat_7 wrote: Thu Mar 04, 2021 4:51 am From which repository did you compile? Our small Linux compiling guide suggest the kanjitalk repo.
https://www.emaculation.com/doku.php/co ... r_in_linux

For the crash: I'd suggest you check ignore illegal memory access on the memory/misc tab and disable the jit compiler on the Jit tab.

I believe that is the site I cloned. And I tried checking that crash setting but had no effect. :(
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

All out of options - can someone point me to a config file and 8.1 ISO that should work with each other? Feel free to PM me...
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Help getting BII running on Ubuntu

Post by Cat_7 »

Hi,

Did you turn off the jit compiler? I cannot determine that from your last post.
Please paste the content of your .basilisk_ii_prefs file in your answer.

On the macintoshgarden site you'll find multiple disk images that are bootable. One interesting choice is the MacOS80_Internal disk image.

Best,
Cat_7
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Here is my config:

Code: Select all

displaycolordepth 0
disk /home/marisa/bin/MacEmu/DiskTools_MacOS8.image
disk /home/marisa/bin/MacEmu/MacOS8.1.toast
disk /home/marisa/bin/MacEmu/MainDrive
extfs /
screen win/800/600
seriala /dev/ttyS0
serialb /dev/ttyS1
udptunnel false
udpport 6066
rom /home/marisa/bin/MacEmu/quadra950.rom
bootdrive 0
bootdriver 0
ramsize 16777216
frameskip 2
modelid 14
cpu 4
fpu true
nocdrom false
nosound false
noclipconversion false
nogui false
jit true
jitfpu true
jitdebug false
jitcachesize 8192
jitlazyflush true
jitinline true
keyboardtype 5
keycodes false
mousewheelmode 1
mousewheellines 3
hotkey 0
scale_nearest false
scale_integer false
yearofs 0
dayofs 0
mag_rate 0
swap_opt_cmd true
ignoresegv false
dsp /dev/dsp
mixer /dev/mixer
idlewait true
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Help getting BII running on Ubuntu

Post by Ronald P. Regensburg »

As noted above by Cat_7,

1. In the GUI disable JIT Compiler. In the prefs file that should result in:

Code: Select all

jit false
2. In the GUI enable Ignore Illegal Memory Accesses. In the prefs file that should result in:

Code: Select all

ignoresegv true
The combination of the ROM file you use and the .iso you use should absolutely work
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Thanks! Disabling the JIT compiler lets it start up. But it is using the MacOS8.1 volume as the boot volume and not the HD image I created. I formatted that volume and copied a system folder to it but when I try to boot from that image I just get the question-mark Mac icon... How do I make the volume bootable on it's own?
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Help getting BII running on Ubuntu

Post by Cat_7 »

The order of the disks determines the boot order.
So put your intended boot disk as first disk in the list. If the disk itself is not booting, you should first bless the system folder by opening system in the system folder. The system folder should show the double-faces mac icon for it to be blessed.

Best,
Cat_7
User avatar
MarisaG
Inquisitive Elf
Posts: 32
Joined: Wed Jul 03, 2019 8:22 am
Location: South San Francisco, CA
Contact:

Re: Help getting BII running on Ubuntu

Post by MarisaG »

Tried that still doesn't work. Here is my desktop:
Image
--- https://MacOS.Retro-OS.live - Portal for classic B&W Macs
--- https://macos.retro-os.live/index.php/firstclass/first-class-server-access - Info on accessing our FirstClass server
--- https://NewtonCity.org - Portal for the Apple Newton PDAs
Post Reply