Date: Sun, 29 Nov 1998 09:14:41 +0100 From: J Wunsch <j@uriah.heep.sax.de> To: Ken Murchison <ken@oceana.com> Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: user-level (pass-thru) scsi programming Message-ID: <19981129091441.16610@uriah.heep.sax.de> In-Reply-To: <36605E69.F72A3224@oceana.com>; from Ken Murchison on Sat, Nov 28, 1998 at 03:34:49PM -0500 References: <36605E69.F72A3224@oceana.com>
next in thread | previous in thread | raw e-mail | index | archive | help
As Ken Murchison wrote: > I've read the scsi(3) man page and found the appropriate functions, but > I'm having a hard time figuring out which devices to use. It looks like > I'm supposed to be able to use the su(4) devices, but I don't have any > configured on my system. I have even recompiled my kernel with > > pseudo-device su > pseudo-device ssc > > but still no devices. Which was the right thing to do. However, you also need to run the script MAKEDEV in /dev in order to create the actual device nodes. Alas, MAKEDEV only contains a description for the ssc device, but not for the su devices. su has major number 18, so you can create the device nodes like mknod /dev/sub0t0u0 c 18 0x0 # bus 0 target 0 lun 0 mknod /dev/sub0t0u1 c 18 0x1 # ... lun 1 mknod /dev/sub0t1u0 c 18 0x8 # bus 0 target 1 lun 0 mknod /dev/sub0t7u0 c 18 0x38 # bus 0 target 7 lun 0 mknod /dev/sub1t0u0 c 18 0x40 # bus 1 target 0 lun 0 One note of a warning however: FreeBSD's SCSI subsystem is currently being restructured. FreeBSD 3.0 already ships with the new subsystem (called CAM -- common access method) now, and the access to passtrough devices is different there. (I would assume it's easier than previously, but i'm not knowledgable.) So it depends on your intented target system and timeframe whether you're going to use the above old scheme at all, or whether you'd better concentrate on the new one. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981129091441.16610>