Date: Mon, 29 Oct 2001 12:14:16 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: Andrew Prior <asp@compt.com> Cc: <freebsd-scsi@FreeBSD.ORG> Subject: Re: Target mode help Message-ID: <20011029121340.M36944-100000@wonky.feral.com> In-Reply-To: <20011029121131.N36944-100000@wonky.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Make that: # Bitmap of units to enable targetmode operations. options AHC_TMODE_ENABLE=XXX where XXX is the bitmap of units you want in target mode (e.g., 0x1 for unit 0, 0x3 for units 0 && 1...) On Mon, 29 Oct 2001, Matthew Jacob wrote: > > Do you have > > device targ > device targbh > > as devices? > > do you have > > options AHC_TARGET_MODE > > in your config file? > > On Mon, 29 Oct 2001, Andrew Prior wrote: > > > Hello, > > I'm trying to start in on a project that requires target mode support, and > > I'm looking for a little help to get me started. I hope this is the right > > place, if not, please accept my apologies and please direct me to the > > correct place. I'm pretty familar with linux, and pretty familiar with SCSI, > > but not so much with freeBSD, so please forgive me if I've overlooked > > something obvious. > > > > I compiled a new kernel with the "targ" and "targbh" devices included > > in the conf file, booted into that kernel, and have tried the scsi_target > > example program but it's always complaining "Controller does not support > > target mode1" and "TARGCTLIOALLOCUNIT: Device not configured" no matter > > what I do. It's not clear to me what options I should be using for > > the scsi_target program, but I seem to get these messages all the time. > > > > The computer has a supermicro 370DE6 motherboard that has two onboard > > AIC-7899 controllers. I see that the controllers are recognized as ahc0 > > and ahc1, but it complains about data parity errors for some reason. When > > the computer boots up that's connected to one of those buses, the controller > > reports a bus reset. > > > > I created the /dev/targ.ctl device as well as /dev/targ0, and I think the > > correct call to the sample program (that produces the errors above) is > > "scsi_target -p 0 -t 7 -l 0" since the adaptor at the other end of the > > SCSI bus is set to ID 7. I've tried lots of varients, but it keeps > > complaining that the controller doesn't support target mode when I'm > > pretty sure it should. > > > > If anybody can give me a push in the right direction, or point me to > > a good tutorial, book, or other documentation then I would very much > > appreciate it. > > > > Thanks! > > > > - Andrew > > > > ============================================================================== > > Andrew Prior Senior Programmer - Command Post/ToyBox (416) 585-9995 x453 > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-scsi" in the body of the message > > > > 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?20011029121340.M36944-100000>