So I was playing around with Basilisk II 0.8

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
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Hi,

People still install Basilisk/Sheepshaver to access those old CDs...

I downloaded the OSX build, had to chmod +x
At start this error occurs. I do have the SDL framework (in several places). I seem to remember from Basilisk builds from the official repositoy that rpath references are problematic.

dyld: Library not loaded: @rpath/SDL.framework/Versions/A/SDL
Referenced from: /Users/hsp/BasiliskII/BasiliskII_neo
Reason: image not found
Trace/BPT trap: 5
logout


Best,
Cat_7
Last edited by Cat_7 on Thu Oct 09, 2014 12:09 pm, edited 1 time in total.
Reason:  
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

Cat_7 wrote:Hi,

People still install Basilisk/Sheepshaver to access those old CDs...

I downloaded the OSX build, had to chmod +x
At start this error occurs. I do have the SDL framework (in several places). I seem to remember from Basilisk builds from the official repositoy that rpath references are problematic.

dyld: Library not loaded: @rpath/SDL.framework/Versions/A/SDL
Referenced from: /Users/hsp/BasiliskII/BasiliskII_neo
Reason: image not found
Trace/BPT trap: 5
logout


Best,
Cat_7
Huh.. now that is strange. What version of OS X are you using? I'm on 10.8 and I may have built a few versions of SDL on there I may have forgotten about when I was playing with Qemu...
don't do today what you can put off until tomorrow.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Oops, problem solved. I only had the SDL2 framework installed.

New error:
Basilisk II V0.8 by Christian Bauer et al.
Reading ROM file...
EtherInit with en0
one or the other 0 0 1!?
ethernet.c: pcap_open_live error on en0!
logout


Best,
Cat_7
Last edited by Cat_7 on Thu Oct 09, 2014 12:27 pm, edited 2 times in total.
Reason:  
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

Cat_7 wrote:Oops, problem solved. I only had the SDL2 framework installed.

New error:
Basilisk II V0.8 by Christian Bauer et al.
Reading ROM file...
EtherInit with en0
one or the other 0 0 1!?
ethernet.c: pcap_open_live error on en0!
logout


Best,
Cat_7
Are you root? You need elevated privileges to be able to write with pcap..

--edit

loading pcap dynamically rather than statically seems to help regarding this... or at least I can now inject on my lo0 and wifi..

I need to get some kind of code revision thing going as Im having too many forks @ home going between Visual C++, MinGW, OS X and i386 Linux...

----------

I just uploaded the dynamic version of the pcap code to source forge. Hopefully this one will play nicer.
don't do today what you can put off until tomorrow.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: So I was playing around with Basilisk II 0.8

Post by emendelson »

Cat_7 wrote:Oops, problem solved. I only had the SDL2 framework installed.
Had the same error. Exactly which version of the framework should be installed??

EDIT: Ignore me. It's obviously 1.2, as there aren't any other plausible choices....
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Hi,

Great, got pcap networking running in OSX with the new version. I had to sudo Basilisk.
Some roms are indeed not patched by Basilisk. Using a Performa rom made Appletalk it work.
I can see my trusty PM 4400 running 9.1 showing up in the chooser and connect to it.

Best,
Cat_7
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

Cat_7 wrote:Hi,

Great, got pcap networking running in OSX with the new version. I had to sudo Basilisk.
Some roms are indeed not patched by Basilisk. Using a Performa rom made Appletalk it work.
I can see my trusty PM 4400 running 9.1 showing up in the chooser and connect to it.

Best,
Cat_7
This is 0.8 from a billion years ago... :mrgreen: And I've been testing mostly with a Quadra 800 ROM.

But I'm glad you got it to work!

Out of curiosity, which roms worked or didn't work? right now im kind of split between trying newer cpu stuff and diving further into the audio.
don't do today what you can put off until tomorrow.
Adam P
Tinkerer
Posts: 67
Joined: Wed Mar 31, 2010 11:55 pm
Location: Maine, U.S.
Contact:

Re: So I was playing around with Basilisk II 0.8

Post by Adam P »

I've been trying to find a good 68040LC rom that I can use without the UAE FPU as I think there is some issues in there, when trying to stress things. Although it may just be time to start pushing to update the UAE core like I wanted to.
To a point, the ROMs are universal, such that it won't matter whether a Mac carries a 68LC040.  The SANE (floating-point) code is (probably) all the same in the Quadra models, Q700/900, 800, 600-series.  A number of varying models carry the same exact ROM, even.  The settings for the emulator will set whether or not software execution is used for real numbers.

Basilisk 0.8 / build 142 omits code that ties the chip model to the FPU, so you can actually set the prefs to 68040 w/o FPU, whereas later builds typically force FPU emulation.  (Just the fact that many old Mac models carried 68LC040s means that this shouldn’t be done; MESS doesn’t.)
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: So I was playing around with Basilisk II 0.8

Post by adespoton »

Hey... with the older code, there's even a chance that serial communications (MIDI, etc) would work -- although they'd have to be faked somewhat.
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

there is serial stuff in there but I was getting some weird C++ issues at runtime so I've pulled it out.

For me, anyways I was hoping to tie it to some tcpip "modems", like DOSBox.

Serial port emulation will be kind of hard for me, mostly because I simply don't have any serial ports anymore... I don't think there even is any dialup anything in Hong Kong anymore.
don't do today what you can put off until tomorrow.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: So I was playing around with Basilisk II 0.8

Post by adespoton »

The basics of serial emulation is pretty simple, as you can bind to ports on the host -- and you can use ZTerm to test it out on the guest side. No need to emulate the actual hardware; you just have to make sure that the serial code in the System can talk (RS-232?/Localtalk) to some socket that you can redirect to wherever on the host. Since NT, OS X and Linux can all handle such sockets, the tricky bit won't be with the hardware, but with writing the host-side handlers.
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

adespoton wrote:The basics of serial emulation is pretty simple, as you can bind to ports on the host -- and you can use ZTerm to test it out on the guest side. No need to emulate the actual hardware; you just have to make sure that the serial code in the System can talk (RS-232?/Localtalk) to some socket that you can redirect to wherever on the host. Since NT, OS X and Linux can all handle such sockets, the tricky bit won't be with the hardware, but with writing the host-side handlers.
Oh sure that's easy enough but I'd still want something to talk to...

I see there is virtual serial ports for windows here:
http://com0com.sourceforge.net/

A com2 midi thing here
https://code.google.com/p/s2midi/

And a virtual midi device here
https://sourceforge.net/projects/freepi ... =directory

which I have to say is a LOT of moving parts....

The com2 midi mentions:
Converts three byte NoteOn and CC MIDI messages from a serial port to a MIDI device driver.

So going back to the Mac side, what application are you hoping to use? Obviously it'd be easier to interface directly with the MIDI port on Windows... Assuming we are running this on Windows.. :)
don't do today what you can put off until tomorrow.
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

So I started working on the SCSI passthru. Since Previous is GPL v2 I thought I'd start there.


Image

So, uh does anyone know what Apple considers a 'valid' disk? I know you can resedit some of the partitioning tools, but I'd rather pass up the Apple OEM stamp of approval if possible.
don't do today what you can put off until tomorrow.
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

Here we go, now with SCSI disk file support!

Image

I would imagine \\.\PhysicalDrive1 would give you direct access over a SCSI disk.. I'll have to try that in VMware later on.

Updates are on sourceforge.
don't do today what you can put off until tomorrow.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Great!

Things are getting more fabulous (almost) ;-) by the day!

Thanks,
Cat_7
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Hi,

Your latest build seems to have problems with Appletalk. I can't get to my powermac anymore.
With the previous build Appletalk still works.

Best,
Cat_7
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

Cat_7 wrote:Hi,

Your latest build seems to have problems with Appletalk. I can't get to my powermac anymore.
With the previous build Appletalk still works.

Best,
Cat_7
Oh no!... and I thought I'd made great progress as I managed to get a PowerPC exe.... I'm wondering if me using the 10.6 SDK has anything to do with that.
don't do today what you can put off until tomorrow.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

btw: this is with the Windows build.

Best,
Cat_7
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

Cat_7 wrote:btw: this is with the Windows build.

Best,
Cat_7
really....? Now that is strange as I did test the heck out of that one..... And here I thought this part was pretty much done. :(

and to add insult to injury:

Code: Select all

C:\Windows\System32>chkdsk d: /f
The type of the file system is NTFS.

Chkdsk cannot run because the volume is in use by another
process.  Chkdsk may run if this volume is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you like to force a dismount on this volume? (Y/N) y
Volume dismounted.  All opened handles to this volume are now invalid.
Volume label is Data.

CHKDSK is verifying files (stage 1 of 3)...
 0 percent complete. (0 of 803072 file records processed)
Deleted corrupt attribute list entry
with type code 128 in file 1511.
Deleting corrupt attribute record (128, "")
from file record segment 34668.
Deleting corrupt attribute record (128, "")
from file record segment 691351.
 0 percent complete. (41370 of 803072 file records processed)
Deleted corrupt attribute list entry
with type code 128 in file 66393.
Deleting corrupt attribute record (128, "")
from file record segment 31493.
Deleting corrupt attribute record (128, "")
from file record segment 691995.
  803072 file records processed.
NTFS corruption, and I just lost my Windows x64, Windows i386, Linux i386 VM's. freaking insane.

Sigh. I need to get a new disk I guess. I haven't had something like this happen since the late 90's. And do some SVN, I never was big on source control but clearly I need it.


Oh I found a snapshot of the working ethernet code! So all is not lost. I just need to re-integrate it. I'm downloading from a website now and saving it on a NT machine doing the appletalk server.. 100MB so far!

before the disk crash I was looking at the CPU. I think Im fried for today.
don't do today what you can put off until tomorrow.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Hi,

I tried to partition and format a disk image with Silverlining 6. Partitioning/formatting/checking went well, but as soon as the driver was being installed I got a repetition of write error! in the Basilisk command window. The image is now corrupt, basilisk crashes when silverlining is loaded and tries to mount the drive, before reaching the desktop.

Best,
Cat_7
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

well thats no good! ... :oops:


I was using the A/UX 3.0.1 disk tool.

I've implemented some support for that 0x30 sense mode thing which will hopefully clear some stuff up. Try the A/UX tool.

Also is there anything like wireshark for MacOS?

anything that'd give you a hint that packets are arriving? I think I need to set some pcap filters as right now it's pretty much wide open... And I think that works in with pcap_next for feeding the emu.
don't do today what you can put off until tomorrow.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: So I was playing around with Basilisk II 0.8

Post by Cat_7 »

Hi,

I just used Apple HD SC setup from AUX and everything went fine with a new disk.
A Silverlining partitioned and formatted disk wouldn't allow me to boot from it, but now I can !

Best,
Cat_7
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

I have some more bug fixes regarding the insane buffer spaces the scatter/gather demands.

System 8.0 doesn't complain about the disk, but 7x sure does. I used the binary dump from the "QUANTUM LPS270" disk, but it still doesn't like it. I wonder if that disk is too new for 7? If I change the name, but leave the other bytes alone OS 8 won't like it either. I did implement that 0x30 callback as well.

the other thing is that the first disk I made came back as 'not a hfs disk' to disk tools but it still reads ok. I dont know if that is me trying various partitioning programs or what. the A/UX tool is the most solid one for sure, although this silverlining lets you pick a nice icon.

I have no idea how to force it to boot SCSI instead of floppy though. I know it's the 'bootdriver' statement, but the problem is I have no idea to tell what that is or should be.

Also SCSI is a HECK of a lot more solid on Quadra ROMs.
don't do today what you can put off until tomorrow.
MetalSnake
Granny Smith
Posts: 120
Joined: Fri Nov 09, 2007 5:42 pm

Re: So I was playing around with Basilisk II 0.8

Post by MetalSnake »

neozeed wrote: Also is there anything like wireshark for MacOS?
Do you mean the classic Mac OS or OS X?
Wireshark and Cocoa Packet Analyzer (http://www.tastycocoabytes.com/cpa/) are working fine.

For Mac OS classic there don't seem to be much available: https://discussions.apple.com/thread/12 ... 0&tstart=0
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: So I was playing around with Basilisk II 0.8

Post by neozeed »

MetalSnake wrote:
neozeed wrote: Also is there anything like wireshark for MacOS?
Do you mean the classic Mac OS or OS X?
Wireshark and Cocoa Packet Analyzer (http://www.tastycocoabytes.com/cpa/) are working fine.

For Mac OS classic there don't seem to be much available: https://discussions.apple.com/thread/12 ... 0&tstart=0
I'm going to run it under system 7 or 8 on 68k so yeah... I'll google around with those names and see what I can find. Occasionally TCP/IP or Apple talk seem to slowdown and then stop and I don't know what's going on.
don't do today what you can put off until tomorrow.
Post Reply