Subject: CD Rom's and compiling kernels
To: None <macbsd-developement@NetBSD.ORG, macbsd-general@NetBSD.ORG>
From: Greg Ames <tga@maelstrom.Timeplex.COM>
Date: 11/18/1994 12:29:07
Has anyone had any luck using a CD-ROM drive with MacBSD? I noticed
the cd* entry in /dev/MAKEDEV, and had a couple iso-9660/rock ridge
source CD's so I thought I'd give it a shot. No luck - the mount
either fails or the drives busy light stays on and the next bus access
causes the "biodone" panic. I've appended the serial console output
to this message.
First of all, what's the difference between cd0a and cd0d? SunOS just
has /dev/sr0. Why the partition syntax?
I don't know anything about this drive other than the inquiry data
shown during scsibus autoconfig (It's a "Poweruser" drive; the house
brand of MacConnection or MacWarehouse). One thing worth noting: the
bus autoconfig below states that a CD is installed. That is _wrong_.
I get the same message if the drive is empty (no tray), has an empty
tray, or actually has a CD in it.
I can't find any mention of cdrom's in the man pages (I looked for cd
in section 4) in either the source distribution (I pulled it of
gatekeeper.dec.com, sun-lamp was _really_ slow), or in the binary
distribution. I did find mount_cd9660, but that's not what I was
Should this this work, or am I in uncharted waters? The CD's have a
few _big_ tarfiles, so I could always mount them under MacOS, use the
installer to copy in the tarfiles, and boot...
Can I rebuild a kernel from the stuff I got off gatekeeper?
Will the patches in ftp.netcom.com:/pub/gantham/NetBSD_Mac/sys.111494.tgz
bring me up to the MRG kernel that Brad distributed?
Where can I get the source for crypt?
Thanks and sorry for the long post,
-------------------------- Serial Output ----------------------
[ preserving 74588 bytes of netbsd symbol table ]
Low = 0x0, high = 0x1400000
20971520 bytes available (5120 pages)
Log = 0xf9000000, Phys = 0xf9000000, Len = 0x6000000 (100663296)
get_mapping(): no internal video.
Video address = 0xfee08040
Weird mapping starts at 0x0
Length = 0x0 (0) bytes
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 1.0 (GENERIC) #17: Sun Nov 13 16:18:52 PST 1994
Apple Macintosh SE/30 (68030)
real mem = 20967424
avail mem = 17657856
using 204 buffers containing 835584 bytes of memory
mrg: 'Mac II class ROMs' rom glue, tracing off, debug off, silent traps
adb: bus subsystem
adb: extended keyboard at 2
adb: 100 dpi mouse at 3
ite0 at mainbus0 (minimal console)
adb0 at mainbus0 (ADB event device)
nubus0 at mainbus0
grf0 at nubus0: 512 x 342 1 color MacVideo (Macintosh SE/30 Internal Video) disy
ser0 at mainbus0
ncrscsi0 at mainbus0
scsibus0 at ncrscsi0
scsibus: probing bus 0.
targ 0 lun 0: <QUANTUM PD170S 501C> SCSI2 direct fixed
sd0 at scsibus0: 160MB, 1123 cyl, 7 head, 41 sec, 512 bytes/sec
targ 1 lun 0: <MICROP 4110-09TBCU0322JHT01> SCSI2 direct fixed
sd1 at scsibus0: 1002MB, 2428 cyl, 9 head, 93 sec, 512 bytes/sec
targ 3 lun 0: <QUANTUM PD210S SUN0207492S> SCSI2 direct fixed
sd2 at scsibus0: 199MB, 1156 cyl, 7 head, 50 sec, 512 bytes/sec
targ 5 lun 0: <NEC CD-ROM DRIVE:55 1.0 > SCSI1 readonly removable
cd0 at scsibus0: cd present, 8193 x 64944 byte records
ncr96scsi at mainbus0 not configured
asc0 at mainbus0 Apple sound chip.
floppy at mainbus0 not configured
Changing root device to sd2a.
swapping 411 and 401.
swapdev = 411, dumpdev = ffffffff.
Enter pathname of shell or RETURN for sh: /bin/csh
# ls -l /dev/*cd*
brw-r----- 1 root operator 6, 0 Nov 18 08:02 /dev/cd0a
brw-r----- 1 root operator 6, 3 Nov 18 08:02 /dev/cd0d
crw-r----- 1 root operator 15, 0 Nov 18 08:02 /dev/rcd0a
crw-r----- 1 root operator 15, 3 Nov 18 08:02 /dev/rcd0d
# mount -a
# mount_cd9660 -o ro /dev/cd0a /mnt
mount_cd9660: Invalid argument
# mount_cd9660 -o ro /dev/cd0d /mnt
scsi timeout--WAIT_FOR_REQ---scsi.c, line 711.
mount_cd9660: Device not configured
panic: biodone already
Stopped at _Debugger+0x6: unlk a6