![]() |
IEEE 1394 for Linux | ||
Home |
Descriptionsbp2 implements the Serial Bus Protocol (SBP-2) for storage devices. It is essentially a tunnel for SCSI. Therefore, sbp2 is a Linux SCSI low-level driver. Ironically, most SBP-2 devices implement an IDE bridge. After loading/compiling scsi support and loading the sbp2 module, one must choose a high-level SCSI driver to work with the particular device: sd_mod (disk), st (tape), sr_mod (CD-ROM), and sg (generic/disc burner/scanner). There is Linux Hotplugging support in the form of loading the sbp2 module when a sbp2 is plugged in. However, at this time, hotplug does not fully extend through the SCSI stack to provide the plug-and-play ease most users expect. This issue is correctly and automatically handled in kernel 2.6. After scanning for new SCSI devices (see NOTE below), you may access any attached SBP-2 storage devices as if they were SCSI devices (e.g. mount /dev/sda1, fdisk, mkfs, etc.). HotplugLinux 2.6 has support for per-device hotplugging in the scsi subsystem. No workarounds are needed for plug/unplug to work on these kernels Currently, the SCSI subsystem in 2.4 kernels does not support per-device hotplug. In order to actually make SCSI "detect" plugged or unplugged SBP-2 devices, you must either use the procfs add-single-device, remove-single-device, or a shell script such as rescan-scsi-bus.sh. After unplugging a SBP-2 device, run rescan-scsi-bus.sh -r or unload the sbp2 driver. There is a workaround available to make linux 2.4 support better per-device hotplugging. You need to apply the scsi add/rem patch to your linux-2.4.20 or newer tree, and then uncomment the SBP2_USE_SCSI_ADDREM_HACK define in sbp2.c Logical Unit SupportSupport for multiple LUN devices was recently added to the subversion linux-2.4 branch and trunk. It should support both types of LUN entries. Because of how SBP-2 interfaces with the SCSI subsystem, LUNs will not show up as actual SCSI LUNs, but will instead show as discrete devices on the bus. This should not affect operability. Parameters
Dependencies
/devnon-devfsSee the SCSI HOWTO for more information. devfs
Entries are added under
/dev/scsi/host?/bus0/target0/lun0/
depending upon the high-level SCSI driver: e.g., generic, disc, part1, cd. /proc/proc/scsi/sbp2/0, /proc/scsi/sbp2/1, etc.
You may manually add/remove SBP-2 devices via the procfs with
add-single-device <h> <b> <t> <l> or remove-single-device <h> <b> <t> <l>,
where: <h> = host (starting at zero for first SCSI adapter)
e.g. To manually add/detect a new SBP-2 device Known Problems
ApplicationsSee the SCSI HOWTO. Oracle is using Linux1394 sbp2 with its Oracle Cluster File System. | ||