NSLU2-Linux
view · edit · print · history

HowTo.AddTapeDrive History

Hide minor edits - Show changes to markup

June 20, 2005, at 06:13 PM by tman --
Changed lines 3-6 from:

but these are typically SCSI devices. I bought a Microtech Xpress USB to SCSI converter (USB-SCSI-HD50?) on eBay and it works perfect both in Win 2k and Linux. It seemed however necessary to initialize the device once using the original drivers in Windows.

to:

but these are typically SCSI devices. I bought a Microtech Xpress USB to SCSI converter (USB-SCSI-HD50) on eBay and it works perfect both in Win 2k and Linux. It seemed however necessary to initialize the device once using the original drivers in Windows.

Deleted line 9:
Changed line 21 from:
 Vendor: HP Model: C1537A? Rev: L111
to:
 Vendor: HP Model: C1537A Rev: L111
Deleted line 24:
Deleted line 42:
Deleted line 45:
Deleted line 48:
April 11, 2005, at 02:42 PM by StefanWillmeroth --
Changed line 4 from:

Microtech Xpress USB to SCSI converter (USB-SCSI-HD50?) on ebay and it works

to:

Microtech Xpress USB to SCSI converter (USB-SCSI-HD50?) on eBay and it works

Changed line 31 from:

Whats missing? The Linux st tape driver... it is not included in Unslung but of course it is part of the Linux kernel. So you need to install OpenEmbedded and changed the following lines in the kernel defconfig file to include the missing driver:

to:

Whats missing? The Linux st tape driver... it is not (yet) included in Unslung but of course it is part of the Linux kernel. So you need to install OpenEmbedded and change the following lines in the kernel defconfig file to include the missing driver:

Changed line 36 from:

Since the st driver needs kernel devfs support, we enable this as well:

to:

Since the st driver needs kernel devfs support, we enable this as well (and this makes reflashing of the complete firmware necessary):

Changed lines 45-54 from:

Then use tar (the busybox version will do, but the full version does better) like this: tar cf /dev/st0 * to backup, and mt (included in the cpio package) to control the tape drive. It works like a charm.

to:

table border=0 width=100% bgcolor=#eeffee? cell?

 st: Version 20030406, bufsize 32768, max init. bufs 4, s/g segs 16
 Attached scsi tape st0 at scsi0, channel 0, id 6, lun 0
 st0: Block limits 1 - 16777215 bytes.

tableend?

Then use tar (the busybox version will do, but the full version does better) like this: tar cf /dev/st0 * to backup, and mt (included in the cpio package) to control the tape drive. It works like a charm.

March 20, 2005, at 01:05 AM by StefanWillmeroth --
Changed line 8 from:

After attaching it to the Slug, it detects the tape drive:

to:

Hardware detection is perfect after attaching the drive and the adaptor to the Slug:

Changed lines 10-11 from:

hub.c: new USB device 00:01.1-2.1, assigned address 8

to:
Changed lines 13-27 from:

Protocol: Transparent SCSI

to:
 hub.c: new USB device 00:01.1-2.1, assigned address 8
 Protocol: Transparent SCSI
 before kernel thread
 *** detect:usb-storage
 * scsi_register: usb-storage-0,
 * scsi_reg, hostno:0 prot is 50
 * scsi_reg, retval->host_no:0
 scsi0 : SCSI emulation for USB Mass Storage devices
  scan_scsis
 *** 50
 is removable disk
 Vendor: HP Model: C1537A? Rev: L111
 Type: Sequential-Access ANSI SCSI revision: 02
 WARNING: USB Mass Storage data integrity not assured
 USB Mass Storage device found at 8
Changed lines 29-53 from:

before kernel thread

*** detect:usb-storage

* scsi_register: usb-storage-0,

* scsi_reg, hostno:0 prot is 50

* scsi_reg, retval->host_no:0

scsi0 : SCSI emulation for USB Mass Storage devices

scan_scsis

*** 50

is removable disk

Vendor: HP Model: C1537A Rev: L111

Type: Sequential-Access ANSI SCSI revision: 02

WARNING: USB Mass Storage data integrity not assured

USB Mass Storage device found at 8

to:
Changed line 33 from:

[@< # CONFIG_CHR_DEV_ST is not seti

to:

[@< # CONFIG_CHR_DEV_ST is not set

Changed line 41 from:

After the build, flash the new firmware (better test it first using the TFTP to memory method described here: TestAnImageInRamUsingRedBoot) and copy st.o to /opt/lib/modules on the slug.

to:

An excellent description of this process is here: AddUsbWebcam. After the build, flash the new firmware (better test it first using the TFTP to memory method described here: TestAnImageInRamUsingRedBoot) and copy st.o to /opt/lib/modules on the slug.

Changed line 45 from:

Then use tar (the busybox version will do, but the full version does better) like this: tar cf /dev/st0 * to backup, and mt (included in cpio) to control the tape drive. It works like a charm.

to:

Then use tar (the busybox version will do, but the full version does better) like this: tar cf /dev/st0 * to backup, and mt (included in the cpio package) to control the tape drive. It works like a charm.

March 19, 2005, at 11:46 PM by StefanWillmeroth --
Changed line 8 from:

When attaching it to the Slug, it detects the tape drive:

to:

After attaching it to the Slug, it detects the tape drive:

March 19, 2005, at 11:44 PM by StefanWillmeroth --
Changed line 5 from:

perfect both in Win 2k and Linux. It seemed to me that I needed to initialize the device once using the original drivers in Windows.

to:

perfect both in Win 2k and Linux. It seemed however necessary to initialize the device once using the original drivers in Windows.

March 19, 2005, at 11:43 PM by StefanWillmeroth --
Changed line 4 from:

Microtech Xpress USB to SCSI converter (USB-SCSI-HD50?) on Ebay and it works

to:

Microtech Xpress USB to SCSI converter (USB-SCSI-HD50?) on ebay and it works

Changed lines 42-44 from:
< # CONFIG_CHR_DEV_ST is not set

---> CONFIG_CHR_DEV_ST=m
to:
< # CONFIG_CHR_DEV_ST is not seti
-change to--> CONFIG_CHR_DEV_ST=m
Added line 48:

-change to--> CONFIG_DEVFS_FS=y@]

Changed lines 50-52 from:
CONFIG_DEVFS_FS=y@]

After the build, flash the new firmware (better test it first using the TFTP to memory method) and copy st.o to /opt/lib/modules on the slug.

to:

After the build, flash the new firmware (better test it first using the TFTP to memory method described here: TestAnImageInRamUsingRedBoot) and copy st.o to /opt/lib/modules on the slug.

March 19, 2005, at 11:35 PM by StefanWillmeroth --
Changed lines 1-57 from:

Describe AddTapeDrive here.

to:

Real servers need tape drives

but these are typically SCSI devices. I bought a Microtech Xpress USB to SCSI converter (USB-SCSI-HD50?) on Ebay and it works perfect both in Win 2k and Linux. It seemed to me that I needed to initialize the device once using the original drivers in Windows.

The tape drive, here a HP DAT, resides in an old external SCSI case. When attaching it to the Slug, it detects the tape drive:

hub.c: new USB device 00:01.1-2.1, assigned address 8

Protocol: Transparent SCSI

before kernel thread

*** detect:usb-storage

* scsi_register: usb-storage-0,

* scsi_reg, hostno:0 prot is 50

* scsi_reg, retval->host_no:0

scsi0 : SCSI emulation for USB Mass Storage devices

scan_scsis

*** 50

is removable disk

Vendor: HP Model: C1537A Rev: L111

Type: Sequential-Access ANSI SCSI revision: 02

WARNING: USB Mass Storage data integrity not assured

USB Mass Storage device found at 8

Whats missing? The Linux st tape driver... it is not included in Unslung but of course it is part of the Linux kernel. So you need to install OpenEmbedded and changed the following lines in the kernel defconfig file to include the missing driver:

< # CONFIG_CHR_DEV_ST is not set

---> CONFIG_CHR_DEV_ST=m

Since the st driver needs kernel devfs support, we enable this as well:

< # CONFIG_DEVFS_FS is not set

---> CONFIG_DEVFS_FS=y

After the build, flash the new firmware (better test it first using the TFTP to memory method) and copy st.o to /opt/lib/modules on the slug.

Create a device file with mknod /dev/st0 c 9 0 and load the driver with insmod st.o

Then use tar (the busybox version will do, but the full version does better) like this: tar cf /dev/st0 * to backup, and mt (included in cpio) to control the tape drive. It works like a charm.

view · edit · print · history · Last edited by tman.
Originally by StefanWillmeroth.
Page last modified on June 20, 2005, at 06:13 PM