From owner-freebsd-scsi Tue Jul 14 08:36:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA19866 for freebsd-scsi-outgoing; Tue, 14 Jul 1998 08:36:03 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from panzer.plutotech.com (ken@panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA19829 for ; Tue, 14 Jul 1998 08:36:01 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.8.8/8.8.5) id JAA08707; Tue, 14 Jul 1998 09:35:46 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199807141535.JAA08707@panzer.plutotech.com> Subject: Re: CAM, dewfs, camcontrol, CD's In-Reply-To: from Cory Kempf at "Jul 13, 98 11:32:42 pm" To: ckempf@enigami.com (Cory Kempf) Date: Tue, 14 Jul 1998 09:35:46 -0600 (MDT) Cc: freebsd-scsi@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Cory Kempf wrote... > I could swear I have posted this at least twice now, but the original > doesn't seem to be on my machine for some reason. And if the answer > has changed with the new snapshot, well, it is downloading now. > > OK, I am poking into CAM, trying to get the SCSI card that came with > my scanner to work (see other message). I noticed that the CD ROM > drive, which seems to be identified via dmesg, and mounts CDs, doesn't > seem to exist in devfs. > > Has this simply not been done yet? That's correct, CAM doesn't coexist with devfs yet. Just use the standard device nodes and you should be fine. > On a related note, camcontrol -l doesn't list my CD drive either. A common misconception. camcontrol -l is not supposed to list every SCSI device in your system. I've gotten this same question numerous times. The -l option only lists peripheral drivers attached to a particular physical device. I've got another camcontrol option planned that *will* list every CAM device, but it's not in there yet. Here are a few examples of how camcontrol -l works: {roadwarrior:/usr/home/ken:11:0} camcontrol -l pass0: generation: 4 index: 1 status: MORE da0: generation: 4 index: 2 status: LAST {roadwarrior:/usr/home/ken:12:0} camcontrol -n da -u 1 -l pass1: generation: 4 index: 1 status: MORE da1: generation: 4 index: 2 status: LAST {roadwarrior:/usr/home/ken:13:0} camcontrol -n cd -l pass2: generation: 4 index: 1 status: MORE cd0: generation: 4 index: 2 status: LAST So, you see, it just lists the (in this case) two peripheral drivers attached to each physical device in the system. If you want to see *every* device in the system, I'd suggest getting the 'ds.c' program on the ftp sites. It prints out the entire devstat table, which includes device name/unit number. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message