From owner-freebsd-scsi Mon Feb 18 8:10:47 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from leviathan.ele.uri.edu (leviathan.ele.uri.edu [131.128.51.64]) by hub.freebsd.org (Postfix) with ESMTP id 7850A37B400 for ; Mon, 18 Feb 2002 08:10:40 -0800 (PST) Received: from dove (dove.ele.uri.edu [131.128.51.230]) by leviathan.ele.uri.edu (8.11.2/8.11.2) with SMTP id g1IGAZX10341 for ; Mon, 18 Feb 2002 11:10:39 -0500 (EST) Message-ID: <001601c1b896$a96cce90$e6338083@dove> From: "Xubin(Ben) He" To: Subject: target mode. Date: Mon, 18 Feb 2002 11:09:32 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C1B86C.BE2C0820" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C1B86C.BE2C0820 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am trying to configure target mode under FreeBSD 4.5. The SCSI = adapter is Adpatec 39160. I have a IBM SCSI disk connected to Channel A, = id 1. The Adapter ID is set to 5. What I want to do is configure this = adapter unning in target mode. I did it as follows: 1. add device targ, targbh, and options AHC_TMODE_ENABLE=3D0x01 as Jacob = mentioned. 2. When I tried to add "options AHC_TARGET_MODE" in my conf file, I got = an error message "unknown option:AHC_TARGET_MODE". So I added a line = "define AHC_TARGET_MODE" in file aic7xxx.h as alternatives. 3. Recompile the new kernel. 4. Reboot the new kernel, I did see the following message: (targbh0:ahc0:0:-1:-1):lun now enabled for target mode 5. sh MAKEDEV targ0 5. But when I tried to run /usr/sahre/examples/scsi_target/scsi_target = -p 0 -t 1 -l 0 I got the following messages: Configuring Target Mode targ0:ahc0:0:1:0: Lun now enabled for target mode TARGIODEBUG:Inappropriate ioctl for device targetfreeinstance:Unexpected CAM STATUS 5 targ0:ahc0:0:1:0: target mode disabled configuring Initiator Mode =20 I tried many other combinations, but the target mdoe still did not work. = Could anybody point out what's the problem or anything I did wrong?Many = thanks. ----------Ben ------=_NextPart_000_0013_01C1B86C.BE2C0820 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
        I = am trying=20 to configure target mode under FreeBSD 4.5. The SCSI adapter is Adpatec = 39160. I=20 have a IBM SCSI disk connected to Channel A, id 1. The Adapter ID is set = to 5.=20 What I want to do is configure this adapter unning in target mode. I did = it as=20 follows:
1. add device targ, targbh, and options = AHC_TMODE_ENABLE=3D0x01 as Jacob mentioned.
2. When I tried to add "options = AHC_TARGET_MODE" in=20 my conf file, I got an error message "unknown option:AHC_TARGET_MODE". = So I=20 added a line "define AHC_TARGET_MODE" in file aic7xxx.h as=20 alternatives.
3. Recompile the new = kernel.
4. Reboot the new kernel, I did see the = following=20 message:
       =20 (targbh0:ahc0:0:-1:-1):lun now enabled for target mode
5. sh MAKEDEV targ0
5. But when I tried to run=20 /usr/sahre/examples/scsi_target/scsi_target -p 0 -t 1 -l 0 I got the = following=20 messages:
        = Configuring=20 Target Mode
       =20 targ0:ahc0:0:1:0: Lun now enabled for target mode
       =20 TARGIODEBUG:Inappropriate ioctl for device
       =20 targetfreeinstance:Unexpected CAM  STATUS 5
       =20 targ0:ahc0:0:1:0: target mode disabled
        = configuring=20 Initiator Mode
        =
I tried many other combinations, but = the target=20 mdoe still did not work. Could anybody point out what's the problem or = anything=20 I did wrong?Many thanks.
----------Ben
------=_NextPart_000_0013_01C1B86C.BE2C0820-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message