Portál AbcLinuxu, 29. dubna 2024 11:01

Seitec USB Bar

Ovladač: v jádře

Technické parametry

USB1, velikost 64 MB (může být 32 - 512)

USB flash disk, USB 2.0, mechanicky prepinac pro ochranu proti zapisu. Testovany model mel oznaceni 1022_512M, a mel kapacitu 512MB

USB 2.0, 128 MB

Identifikace pod Linuxem

podle "viz /proc/scsi/":

Host scsi1: usb-storage Vendor: Generic Product: Mass Storage Device Serial Number: None Protocol: Transparent SCSI Transport: Bulk GUID: 058f93800000000000000000 Attached: Yes
/proc/bus/usb/devices:
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0ea0 ProdID=2168 Rev= 2.00
S:  Manufacturer=USB     
S:  Product=Flash Disk      
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=1ms
root# cat /proc/scsi/usb-storage-0/0 
   Host scsi0: usb-storage
       Vendor: USB     
      Product: Flash Disk      
Serial Number: None
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 0ea021680000000000000000
    Attached:  Yes
root# fdisk -l /dev/sda
Disk /dev/sda: 524 MB, 524156928 bytes
32 heads, 32 sectors/track, 999 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       999    511472    6  FAT16
root# lsusb -v
Bus 001 Device 007: ID 0ea0:2168  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0ea0 
  idProduct          0x2168 
  bcdDevice            2.00
  iManufacturer           1 USB     
  iProduct                2 Flash Disk      
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
    MaxPower              200mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval               1
  Language IDs: (length=4)
     0409 English(US)
/var/log/messages:
Jan  2 08:41:07 mdk kernel: hub.c: new USB device 00:06.2-1, assigned address 7
Jan  2 08:41:07 mdk kernel: usb.c: USB device 7 (vend/prod 0xea0/0x2168) is not claimed by any active driver.
Jan  2 08:41:11 mdk /etc/hotplug/usb.agent: Setup usb-storage for USB product ea0/2168/200
Jan  2 08:41:12 mdk kernel: Initializing USB Mass Storage driver...
Jan  2 08:41:12 mdk kernel: usb.c: registered new driver usb-storage
Jan  2 08:41:12 mdk kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan  2 08:41:12 mdk kernel:   Vendor:           Model: USB BAR           Rev: 2.00
Jan  2 08:41:12 mdk kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jan  2 08:41:12 mdk kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Jan  2 08:41:12 mdk kernel: SCSI device sda: 1023744 512-byte hdwr sectors (524 MB)
Jan  2 08:41:12 mdk kernel: sda: Write Protect is off
Jan  2 08:41:12 mdk kernel:  /dev/scsi/host0/bus0/target0/lun0: p1
Jan  2 08:41:12 mdk kernel: USB Mass Storage support registered.
Jan  2 08:41:12 mdk /etc/hotplug/usb.agent: Module setup usb-storage for USB product ea0/2168/200
Jan  2 08:41:12 mdk /etc/hotplug/usb/usb-storage: Load scsimon
Jan  2 08:41:12 mdk /etc/hotplug/usb/usb-storage: loading ... scsimon
Jan  2 08:41:13 mdk /etc/hotplug/scsi.agent: sd_mod allready loaded

SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: USB       Model: BAR               Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 255744 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
 sda: sda1

Postup zprovoznění pod Linuxem

Je dodáván i USB prodlužovacím kabelem, takže zasunout a připojit (například u mě je to /dev/sda1) "mount /dev/sda1 -t vfat /mnt/neco". Je třeba mít natažené jaderné moduly pro SCSI a usb-storage; jádro 2.4.x. Před vytažením odmountit ;-)


Bezny USB flash disk, nezaznamenal jsem problem.
modul: usb-storage
mount /dev/sda1 /mnt/removable


mount -t vfat /dev/sda1 /mnt

Poznámka

Upozornění - existuje i Seitec USB Bar, který podporuje USB 2.0 a velmi špatně chodí (= vůbec nechodí) bez podpory USB 2.0 v jádře (mnohé distrubuce ji tam zatím (8/2003) nemají).

Pokud Vám tedy Váš USB Bar nechodí, zkuste pátrat tímto směrem.

Testovano s MDK 9.1, kernel 2.4.21-0.26mdk. USB port v PC byl jen verze 1.1.

Klicenka mela oznaceni 1022_128M

Dokument vytvořil: nula, 25.3.2003 18:30 | Poslední úprava: Redakce, 27.2.2011 15:09 | Další přispěvatelé: CIJOML, Petr Slansky | Historie změn | Zobrazeno: 1278×

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.