Date: Mon, 18 Feb 2002 08:18:34 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: scsi@freebsd.org Subject: SCSI target mode. (fwd) Message-ID: <Pine.BSF.4.21.0202180817080.8064-100000@beppo>
next in thread | raw e-mail | index | archive | help
Some nincompoop went to a great deal of effort to ask a question via email that cannot possibly be replied to. In any case, it's for the Adaptec HBA, not QLogic. I'm forwarding it here in case this nimrod reads the lists and realizes that this forum would have been a better place to ask the question to begin with. ---------- Forwarded message ---------- Return-Path: <nobody@cocoja.holywar.net> Received: from cocoja.holywar.net (socks5@cocoja.holywar.net [211.239.166.202]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id g1IGFBf08103 for <mjacob@feral.com>; Mon, 18 Feb 2002 08:15:12 -0800 (PST) (envelope-from nobody@cocoja.holywar.net) Received: (from nobody@localhost) by cocoja.holywar.net (8.11.6/8.11.4) id g1IGF9001164; Tue, 19 Feb 2002 01:15:09 +0900 (KST) (envelope-from nobody) Date: Tue, 19 Feb 2002 01:15:09 +0900 (KST) Message-Id: <200202181615.g1IGF9001164@cocoja.holywar.net> From: "Ben" <> To: "Matthew Jacob" <mjacob@feral.com> Reply-To: "Ben" <> Subject: SCSI target mode. Organization: HolyNet X-Mailer: HolyBoard 2000 (FRD3xIMY-1.0) Dear Mr. Jacob, 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=0x01 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 I tried many other combinations, but the target mdoe still did not work. Could you point out what's the problem or anything I did wrong?Many thanks. 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?Pine.BSF.4.21.0202180817080.8064-100000>