Page 1 of 1

Need help with SCSI passthru and SCSI drives

Posted: Mon Oct 20, 2014 2:54 pm
by neozeed
Ok I remember back in the day this was the kind of thing that drove people over the edge, but let's talk SCSI and CD-ROMs.

I've installed a Windows 2000 VM in VMWare Player, and setup slysoft's virtual clone drive. I then installed Adaptec's ASPI. So far so good right?

I then configure

scsi0 "ELBY" "CLONEDRIVE"
replacescsi "ELBY" "CLONEDRIVE" "SONY" "CD-ROM CDU-8002"

From what I can find this was a model of CD that Apple resold. From various sources on the internet:

Code: Select all

cd0 at scsibus0 target 2 lun 0: <SONY, CD-ROM CDU-8002, 1.8g> SCSI1 5/cdrom removable
cd0: async, 8-bit transfers

(aha0:0:0): "SONY CD-ROM CDU-8002 1.8g" type 5 removable SCSI 1 
cd0(aha0:0:0): CD-ROM cd present [220660 x 2048 byte records] 

aha0 targ 6 lun 0: type 5(ro) removable <SONY    CD-ROM CDU-8001 3.2i> SCSI1
cd0 at aha0 targ 6 lun 0: loaded
So, looking at these three drives, the manufacturer is "SONY" and the device name is "CD-ROM CDU-SOMETHING"... I've tried it with or without the CD-ROM and no matter what I cannot mount a CD. I've tried 7.0, 7.1 and 8.0. I've installed the CD-ROM setup 3.2, 5.3.2 and 5.4 in System 7 to no avail. I stumbled onto that MacAddict_001_1996_09.iso and it will mount when I use silverlining lite. Trying any 9660 disc's just gives me the prompt to format, and of course eject.

Image

I'm going crazy, is it possible to actually use the CD-ROM via passthru?

As a last ditch, I don't suppose someone with a m68k mac has a SCSI cd' that they can hook up to something modern with Basilisk II to run something like a SCSI sniffer?

Re: Need help with SCSI passthru and SCSI drives

Posted: Mon Oct 20, 2014 4:20 pm
by Cat_7
Hi,

At least Basilisk 142 could read/write to real scsi CD devices through the aspi driver, but also used the 32-bit cdenable.sys driver for reading CDs in IDE devices.
I don't know if it is any help, but please see this discussion about disassembling the cdenable.sys driver:
http://www.emaculation.com/forum/viewto ... isassemble

EDIT: I just installed the adaptec aspi driver (first version 4.71 and then "upgrade" to 4.6) in W2000 in Virtual box. Added a BusLogic SCSI controller and new SCSI hard disk and CD to the VM. I could use the Basilisk GUI to add the scsi disk and CD, and use normal drive setup (not Apple HD SC setup from A/UX) to initialise the disk.
Now trying to boot from it... And it boots.
Next, I'll see if I can mount a real HFS cd through the emulated SCSI CD...Yes, that works too, but it doesn't notify on insert, the CD is only mount at boot.


Best,
Cat_7

Re: Need help with SCSI passthru and SCSI drives

Posted: Mon Oct 20, 2014 4:38 pm
by adespoton
For ISO 9660 disks, you'll probably want to install the JokeRidge Init; old OSes only supported red book and HFS CDs. Mt. Everything may also help.

Re: Need help with SCSI passthru and SCSI drives

Posted: Tue Oct 21, 2014 3:59 am
by neozeed
Well I found this program phantom burner that emulates a CD-R drive. So using the original build of 142 Under System 7.6 with Toast 4.1.2 & Disk copy 6.2 I created 40MB disk image, dragged in my system folder so I had a 'bootable' disk image. Then burnt the image to a fake CD (I told it not to convert to ISO) flagged it bootable, and got an image.

Rebooting with only the SCSI passthru pointing to Phantom Burner's image and it can boot from there.

Image

Ok it's something at least.

Then with my hacked up CD-ROM emulation, I can boot from the same image!

Image

So I'm making some progress!! :mrgreen:

Obviously there is a reason CDENABLE.SYS even exists, and it obviously has to deal with some deficiency in the passthru mounting CD's.

I also found out the hard way that the "SONY CD-ROM CDU-8001 3.2i" is *NOT* a bootable CD-ROM!

I accidentally typed in 8002 on my Windows XP experiment, and it boots.

A bunch of 'bootable' MacOS ISO's I have don't boot via the SCSI CD emulation, but do with CD-ENABLE.SYS. So this is obviously the deficiency in the whole legacy boot thing, and that was Lauri Pesonen's fix to all of this.

Speaking of which, what happened to Lauri?

Re: Need help with SCSI passthru and SCSI drives

Posted: Tue Oct 21, 2014 4:39 am
by Cat_7
What happened to Lauri
I mailed him some time ago asking for the source code to HFV explorer, which also contains the source code to cdenable.sys. He replied he didn't have the code anymore, but at the time had distributed it to several people. He named one person, and I contacted this person only to find out he never had the code.

So, for me that was a dead end. I didn't contact Lauri again. I can try to find his email address if you want to give it a go.

Best,
Cat_7

Re: Need help with SCSI passthru and SCSI drives

Posted: Tue Oct 21, 2014 7:03 am
by neozeed
Cat_7 wrote:
What happened to Lauri
I mailed him some time ago asking for the source code to HFV explorer, which also contains the source code to cdenable.sys. He replied he didn't have the code anymore, but at the time had distributed it to several people. He named one person, and I contacted this person only to find out he never had the code.

So, for me that was a dead end. I didn't contact Lauri again. I can try to find his email address if you want to give it a go.

Best,
Cat_7
I guess there is a reason he's distanced himself from this old stuff..

Ive been real hit/miss on making HFS ISO's that the scsi driver will mount. But I must be kind of on the right path, just missing something larger.

Re: Need help with SCSI passthru and SCSI drives

Posted: Tue Oct 21, 2014 2:02 pm
by neozeed
looks like part of what is going on is the TOC, or table of contents.

I also found some code on how to ask a SCSI device what it is (Inquiry) directly, and I was able to verify that my simulated CD-ROM was in fact, a CD-ROM. But trying to get it to read a block just got me a whole lot of zeros....

The 'good' part is if I figure it out, I can pass SCSI information to a ROM or disk directly.

The bad news is that I have to parse all the commands and build control blocks for everything so it seems. Although getting that close to what is going on will let me emulate it better. Although it's a lot of work .. :mrgreen:

Anyways time for yet another release.

check sourceforge for more info.

Networking is greatly improved in this build, so anyone who uses AppleTalk will love this version compared to last.