Date: Thu, 24 Jun 2010 10:02:07 -0400 From: Leo Prasath Arulraj <leo@nec-labs.com> To: freebsd-scsi@freebsd.org Subject: Scsi target mode with qlogic 2312 card help Message-ID: <4C23655F.1070408@nec-labs.com>
next in thread | raw e-mail | index | archive | help
Hi, I am trying to run the /usr/share/examples/scsi_target example scsi emulator code using : isp0: <Qlogic ISP 2312 PCI FC-AL Adapter> port 0xdc00-0xdcff mem 0xfcf00000-0xfcf00fff irq 16 at device 6.0 on pci1 cards. I am new to this but have spent about 2 weeks trying to get this working. Can someone tell me if I am missing something very basic ? Setup: 2 machines both with qlogic isp 2312 cards connected with a fibre channel. Both machines run FreeBSD 8. On the target machine : the kernel options are : # SCSI peripherals device scbus # SCSI bus (required for SCSI) device targ device targbh device ispfw options CAMDEBUG options CAM_DEBUG_FLAGS=CAM_DEBUG_INFO|CAM_DEBUG_CDB|CAM_DEBUG_TRACE|CAM_DEBUG_SUBTRACE|CAM_DEBUG_XPT|CAM_DEBUG_PERIPH options AHC_TMODE_ENABLE=0x8 options ISP_TARGET_MODE options VFS_AIO I have tried both with and without setting the following hints : hint.isp.0.iid="0" hint.isp.0.role="target" hint.isp.0.portwnn="w0000000000000000" hint.isp.0.nodewnn="w0000000000000001" I run the command : ./scsi_target -d 0:0:0 ./vol and get the output with a list of INOT and ATIOs followed by a final "entering main loop" message. But when I run camcontrol rescan all on the other machine, the emulated disk does not show up. I tried both with and without these hints : hint.isp.0.topology="nport" hint.isp.0.iid="0" hint.isp.0.portwnn="w0000000000000002" hint.isp.0.nodewnn="w0000000000000003" hint.isp.0.role="initiator" Any help is really appreciated. Thanks, Leo.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C23655F.1070408>