Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Target mode help

3 views
Skip to first unread message

Andrew Prior

unread,
Oct 29, 2001, 3:10:56 PM10/29/01
to
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 majo...@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message

Matthew Jacob

unread,
Oct 29, 2001, 3:13:29 PM10/29/01
to

Do you have

device targ
device targbh

as devices?

do you have

options AHC_TARGET_MODE

in your config file?

Matthew Jacob

unread,
Oct 29, 2001, 3:14:36 PM10/29/01
to

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...)

Andrew Prior

unread,
Oct 29, 2001, 3:19:34 PM10/29/01
to
On Mon, 29 Oct 2001, Matthew Jacob wrote:

> 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...)


Ahhh... OK, I just started looking for the AHC_TARGET_MODE in the LINT
file and noticed the AHC_TMODE_ENABLE flag. Since I saw that aic7xxx_freebsd.h
had AHC_TARGET_MODE set to 1, I didn't think I needed to do anything else
like that in the conf file. I already had the "targ" and "targbh" which I
had picked up from scouring google and deja, but I missed that one. I'll
give that a shot. Thanks!

0 new messages