## #/site/etc/usbd.conf ## # Obsolete, replaced by /site/etc/devd/jhs.conf ## #---------------------- ## # Periodicaly installed by /site/etc/Makefile to ## # http://www.berklix.com/~jhs/src/bsd/fixes/freebsd/src/jhs/etc/usbd.conf ## # By jhs@berklix. ## # See Also: man 5 usbd.conf & /usr/src/etc/usbd.conf ## # which has a few other devices I havent copied over. ## # Latest 2007.01 fetach never gets called, fauult in code. ## # devd can do detach ## # For a USB descriptor dump: ## # /usr/ports/sysutils/udesc_dump and "man ugen" ## # ----------------------------------------------------------------------------- ## # Public Notes To Add to man usbd.conf ## # - Power Ratings on all devices can be seen with `usbdevs -v` ## # Gary write USB spec: <= 500 mA ## # - When debugging: ## # - Kill usbd manually (it does not yet ## # store its pid in /var/run/usbd.pid) ## # - Run & kill a "usbd -d -v" to flush system of any ## # possible last USB events latched by kernel, unprocessed by ## # a running usbd. Then run again: "usbd -d -v" ## # - devname entries are mostly unused, as only reported on attach, ## # not detach, so detach fails to be called if devname is specified. ## # - If you specify more than one attach or detach, only the last is run. ## # No longer true, ive got my 60G mounting both. ## # - Hashes as comment line delimeter: ## # - Are acceptable with some restrictions. ## # - Do not have to be on left margin. ## # - Lines do not break entries (unlike in Makefiles). ## # - Trailing after code cause errors. ## # - http://www.interfacebus.com/Design_Connector_USB.html ## # - Slow 10K - 100 K ## # - Full 500K - 10M ## # - High 25M-400M 45 ohm to ground ## # - 1.5 Mbit/s UTP cable 3 metre Human Devices as keyboards, mice, buttons ## # - USB1=12 Mbit/s STP cable 5 metre. ## # - USB2=480Mbit/sec = 60 M bytes/s ## # - http://www.usb.org/developers/usb20/ ## # - http://www.usb.org/developers/docs/ ## # - usbd does Not accept SIGHUP to reread this file ! ## # - MOUNT & UNMOUNT ## # - Umount: should be done by amd, not by detach, as detach crashes ## # system. (after detach there is no device to umount). ## # - I tried using mount -r but system still crashes sometime after ## # removing device, so now I mount writable which is more convenient. ## # - I havent tried mount -o sync ## # ohci: USB1 OHCI v1.0 compliant controllers including:, ## # AcerLabs M5237 (Aladdin-V), AMD-756, OPTi 82C861 (FireLink), ## # NEC uPD 9210, CMD Tech 670 (USB0670), CMD Tech 673 (USB0673), ## # NVIDIA nForce3 ## # uhci: USB1 UHCI v1.1 compliant controllers including: ## # Intel 82371AB/EB (PIIX4), Intel 82371SB (PIIX3), VIA 83C572 ## # ehci: USB2 Gary said 2004.12 not stable. ## # PROBLEMS ## # - Cannot use ${DEVNAME} & assume eg ## # umass0 -> da0 & umass1 -> da1 because ## # umass0 may be external DVD writer whic goes to cd[01], & ## # umass1 may be a floppy going to da0 ## # - If DVD is plugged in at boot, it gets cd0, & the internal atapi ## # gets cd1, but if DVD get plugged in after boot, the cd0 & 1 ## # ordering is opposite. ## # Temporary solution: Only use 1 device of type umass at a time. ## # Later SOLUTION: ## # - man scsi camcontrol re. da0 numeric name allocation. ## # - or explore man devd. ## # Fsck is needed cos it crashes so often. ## # ----------------------------------------------------------------------------- ## # My trick using eg: ## # attach "mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a /usb/disk2" ## # won't always work, if eg: ## # host has scsi disks. ## # using an 8 or 9 to 1 card adapter wih multiple da[x] on one umass. ## # ----------------------------------------------------------------------------- ## # Private Notes Of Interest only to jhs@berklix ## # - To read & config later: ## # http://www.freebsd.org/releases/5.3R/hardware-i386.html#CAMERA ## # http://localhost/www/en/releases/5.3R/hardware-i386.html#CAMERA ## # Port Physical Mapping for jhs@ Hosts ## # Host usbdevs -ves Physical ## # film uhub1 Inner ## # film uhub1 Outer ## # fire uhub4 port 1 main-moard, near ether, inward to middle ## # fire uhub4 port 2 main-moard, near ether, side ## # fire uhub4 port 3 main-moard, near PS2, side ## # fire uhub4 port 4 main-moard, near PS2, inward to middle ## # fire uhub4 port 5 pci-board, lower, side ## # fire uhub4 port 6 pci-board, lower, inward to middle ## # fire uhub4 port 7 pci-board, top, inward to middle ## # fire uhub4 port 8 pci-board, top, side ## # laps usb0 port 1 Rear, inward to middle, not corner ## # laps usb0 port 2 Rear, corner ## # laps usb1 port 1 Left side ## # laps usb1 port 2 Synaptics cPad ## # laps usb2 port 1 ? ## # laps usb2 port 2 ? ## # laps usb3 port 1 OHCI Pcmcia Berklin USB2 Rear ## # laps usb3 port 2 OHCI Pcmcia Berklin USB2 ## # laps usb3 port 3 OHCI Pcmcia Berklin USB2 ## # laps usb4 port 1 OHCI Pcmcia Berklin USB2 Front ## # laps usb4 port 2 OHCI Pcmcia Berklin USB2 ## # laps usb5 port 1 EHCI Pcmcia Berklin USB2 ## # laps usb5 port 2 EHCI Pcmcia Berklin USB2 ## # laps usb5 port 3 EHCI Pcmcia Berklin USB2 ## # laps usb5 port 4 EHCI Pcmcia Berklin USB2 ## # laps usb5 port 5 EHCI Pcmcia Berklin USB2 ## # MS-XP lists 3 controllers: 2482, 2484, 2487 ## # ============================================================================= ## # Connec Tec TEW 429B Hot Spot Finder "USB2.0 WLAN, ZyDAS" ## # Gary reckons theres now 2007.09 a driver for this in current called zyd. ## device "JHS WLAN Detector" ## # device ugen ## vendor 0x157e ## product 0x300b ## release 0x4802 ## class 0x00ff ## subclass 0x00ff ## protocol 0x00ff ## # usbdevs -v: power 500 mA, config 1, USB2.0 WLAN(0x300b), ZyDAS(0x157e), rev 48.02 ## # Numbers on back label: MM051021300083 0014D1C0AB9C ## # ============================================================================= ## device "JHS: Hub Zediworks" ## product 0x0058 ## # product 0x0058 # NEC ## vendor 0x0409 ## product 0x0058 ## release 0x0100 ## class 0x0009 ## subclass 0x0000 ## protocol 0x0000 ## # Hub, Zediworks, USB 2.0, 4 PORT, Bought at Croydon computer fair. ## # "USB2.0 Hub Controller, NEC Corporation, class 9/0, rev 2.00/1.00, ## # addr 2" ## # ----------------------------------------------------------------------------- ## device "JHS: Hub MBO SLim" ## vendor 0x04b4 ## product 0x6560 ## release 0x0008 ## class 0x0009 ## subclass 0x0000 ## protocol 0x0000 ## # Cypress Semiconductor, class 9/0, rev 2.00/0.08, addr 2" ## # From Gary J. Looks same physically as Zediworks, different paint job. ## # ----------------------------------------------------------------------------- ## device "JHS: Hub Belkin USB-1, Big." ## vendor 0x04cc ## product 0x1122 ## release 0x0110 ## class 0x0009 ## subclass 0x0000 ## protocol 0x0000 ## # Not seen by host=laps unless powered. ## # ============================================================================= ## device "JHS: SanDisk Cruzer Adapter" ## # devname umass* ## vendor 0x0781 ## product 0x8888 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/` /usb/cruzer; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/cruzer" ## # SD Memory Cards - device names: umass* da0:umass-sim0:0:0:0 ## # Cruzer, SanDisk Corp, rev 1.10/1.00 ## # Host=fire console reports 40.000MB/s transfers ## # ----------------------------------------------------------------------------- ## # Yellow plastic from pound shop Ramsgate ## device "JHS: Yellow" ## # devname umass* ## vendor 0x14cd ## product 0x6700 ## release 0x0201 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/` /usb/yellow; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/yellow" ## # ----------------------------------------------------------------------------- ## device "JHS: 15in1 USB2.0 Card Reader (Phillip's)" ## # devname umass* ## vendor 0x0aec ## product 0x3260 ## release 0x0100 ## attach "sleep 2; fdisk `echo ${DEVNAME}|sed -e s/umass/da/`; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/card" ## # JJLATER When next with Phillip: ## # plug in, look in /var/log/messages if Rev 1.* or 2.* ## # ============================================================================= ## device "Card Reader, 4 port at joy 2007.04, does julians camera memory" ## vendor 0x0aec ## product 0x3260 ## release 0x018a ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## # ============================================================================= ## device "JHS: GPS for Car TomTom 700" ## vendor 0x1390 ## product 0x0001 ## release 0x0200 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2;mount -r -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/tomtom" ## # usbd -d -v: ## # /dev/da0 isnt seen by FreeBSD until I turn on TomTom power button. ## # dd if=/dev/da0 of=/usr1/tomtom.da0 gives size: 2070786048 ## # Then dd froze for a while & file didnt grow bigger, but screen stopped ## # flashing. ## # Note 2 gig should be 2147483648 ## # Then it started flashing & growing again. ## # final 2500485120 ## # 4883760+0 records in & out ## # 2500485120 bytes / 3781.476143 secs (661246 bytes/sec) ## # Using Belkin cardbus/usb2 adapter. ## # ============================================================================= ## # FLASH MEMORY STICKS ## # From: Eric Anderson ## # Date: Sat, 20 Aug 2005 21:44:18 -0500 (Sun 04:44 CEST) ## # To: "M. Warner Losh" ## # Cc: freebsd-hackers@freebsd.org, hselasky@c2i.net ## # I've been using 64mb compact flash cards (rated at 100k writes) in ## # about 100 Soekris boxes (running FreeBSD) for about 4 years, and ## # they are all still working, except for one. Now, most compact flash ## # cards are rated at 1 million writes. ## # ---------------------------------------------------------------------------- ## device "JHS: Memory Stick - 256 M - Celldisk" ## # devname umass* ## vendor 0x08ec ## product 0x0834 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2;fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a;mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a /usb/celldisk" ## # power 100 mA, config 1, CellDisk(0x0834), IOCELL(0x08ec) ## # dc: 268435456 # 1024 1024 256 * * p ## # host=lapd usb1: dd if=/dev/da0 of=celldisk.host=lapd 499712+0 records ## # 255852544 bytes / 7081.042984 secs (36132 bytes/sec) ## # dd if=/dev/da2 of=/dev/null 499712+0 records ## #------------------------------------------------------------------------------ ## device "JHS: Memory Stick - 128 M - SMI" ## # Promotional stick from MSD with Januvia written on it. ## # "USB DISK, SMI Corporation" ## # 246784+0 records 126353408 bytes in 187 secs (675365 bytes/sec) ## # devname umass* ## vendor 0x090c ## product 0x1000 ## release 0x1100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2;fsck -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 ; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/januvia" ## # dd if=/dev/da3 of=/dev/null 246784+0 records ## #------------------------------------------------------------------------------ ## device "JHS: Memory Stick - 512 M - Kingston - UFS - Erased" ## # devname umass* ## vendor 0x0930 ## product 0x6533 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2; fsck -p `echo ${DEVNAME}|sed -e s/umass/da/`a;mkdir /.amd_mnt/kingston;mount -t ufs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a /.amd_mnt/kingston" ## # attach "sleep 2; fsck -p `echo ${DEVNAME}|sed -e s/umass/da/`a; mount -t ufs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a /usb/kingston" ## # 100 mA, config 1, USB Flash Memory ## # dc: 536870912 # 1024 1024 512 * * p ## # host=laps via belkin usb2: dd if=/dev/da0 of=kingston.512M.da0 ## # 432464384 bytes / 973.256263 secs (444348 bytes/sec) ## # host=laps usb1: dd if=/dev/da0 of=kingston.host=laps.usb1 ## # 412200960 ## # host=lapd usb1: dd if=/dev/da0 of=kingston.host=lapd.usb1 ## # FAILS SHORT ## # ---------------------------------------------------------------------------- ## device "JHS: Memory Stick - 512 M - MyFlash - UFS - Erased" ## # devname umass* ## vendor 0x0457 ## product 0x0150 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2; fsck -p `echo ${DEVNAME}|sed -e s/umass/da/`a; mount -t ufs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a /usb/myflash" ## # fsck -p -t msdosfs /dev/da0s1;mount -t msdosfs /dev/da0s1 /usb/myflash ## # 80 mA, config 1, USB Mass Storage Device(0x0150), USBest Technology(0x0457) ## # host=laps via belkin usb2: dd if=/dev/da0 of=myflash.512M.da0 ## # 1024000+0 records in 1024000+0 records out ## # 524288000 bytes / 851.107502 secs (616007 bytes/sec) ## # dc: 536870912 # 1024 1024 512 * * p ## # USB1: dd if=/dev/da0 of=/usr1/tmp/stick PENDING ## # USB2: dd if=/dev/da0 of=stick.host=fire 1024000+0 records ## # 524288000 bytes / 3079.826810 secs (170233 bytes/sec) ## # ---------------------------------------------------------------------------- ## device "JHS: Memory Stick - 1 Gig - Integral - Unlocked - DOS Erased" ## # device names: umass* ## vendor 0x0d7d ## product 0x1620 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2;fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a;mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a /usb/integral;fsck -t msdosfs -p /dev/`echo ${DEVNAME} 1 + p|sed -e s/umass//|dc|sed -e s/^/da/`;/sbin/mount_msdosfs /dev/`echo ${DEVNAME} 1 + p|sed -e s/umass//|dc|sed -e s/^/da/` /usb/integral.floppy" ## # Long command above works & mounts both slices ! Sleep is needed on host=laps. ## # But only works on host=laps, not host=fire, fire has ## # an external CD umass device so numbering gets messed up. ## # power 200 mA, config 1, USB DISK Pro ## # dc 1073741824 # 1024 1024 1024 * * p ## # host=laps via belkin usb2: dd if=/dev/da0 of=integral.1g.da0 ## # 1000448+0 recs = 512229376 bytes / 809.536057 secs (632744 bytes/sec) ## # host=laps USB1: dd if=/dev/da0 of=/usr1/tmp/stick ## # 2003968+0 x 1026031616 bytes / 10047.548046 secs (102118 bytes/sec) ## # This stick is lockable, when unlocked it appears with ## # /dev/da0 /dev/da0s1 (978MB) & /dev/da1 (1M). ## # xs fdisk da0 ## # parameters extracted from in-core disklabel are: ## # cylinders=978 heads=64 sectors/track=32 (2048 blks/cyl) ## # parameters to be used for BIOS calculations are: ## # cylinders=978 heads=64 sectors/track=32 (2048 blks/cyl) ## # Media sector size is 512 ## # Warning: BIOS sector numbering starts with sector 1 ## # Information from DOS bootblock is: ## # The data for partition 1 is: ## # sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) ## # start 32, size 2003936 (978 Meg), flag 80 (active) ## # beg: cyl 0/ head 1/ sector 1; ## # end: cyl 841/ head 15/ sector 32 ## # When unlocked it appears with just /dev/da0, dd if=/dev/da0 \ ## # of=/dev/null 2880 records 1474560 bytes (682835 bytes/sec) ## # xs fdisk da0 ## # ******* Working on device /dev/da0 ******* ## # parameters extracted from in-core disklabel are: ## # cylinders=1 heads=64 sectors/track=32 (2048 blks/cyl) ## # parameters to be used for BIOS calculations are: ## # cylinders=1 heads=64 sectors/track=32 (2048 blks/cyl) ## # Media sector size is 512 ## # Warning: BIOS sector numbering starts with sector 1 ## # Information from DOS bootblock is: ## # The data for partition 1 is: ## # sysid 105 (0x69),(unknown) ## # start 1869771365, size 168689522 (82367 Meg), flag ff ## # beg: cyl 68/ head 13/ sector 10; ## # end: cyl 288/ head 115/ sector 43 ## # The data for partition 2 is: ## # sysid 115 (0x73),(unknown) ## # start 1701519481, size 1869881465 (913028 Meg), flag 50 ## # beg: cyl 371/ head 114/ sector 37; ## # end: cyl 366/ head 32/ sector 33 ## # The data for partition 3 is: ## # sysid 116 (0x74),(unknown) ## # start 2573, size 0 (0 Meg), flag 20 ## # beg: cyl 371/ head 114/ sector 37; ## # end: cyl 372/ head 97/ sector 50 ## # The data for partition 4 is: ## # sysid 0 (0000),(unused) ## # start 0, size 3435113472 (1677301 Meg), flag 0 ## # beg: cyl 0/ head 0/ sector 0; ## # end: cyl 0/ head 0/ sector 0 ## # I have created a quirk table entry for this: /sys/cam/scsi/scsi_da.c ## # After I converted this from DOS to a BSD partition, ## # 6.2 now sees: /dev/da0 /dev/da0s1 /dev/da0s1a /dev/da0s1c /dev/da0s1cs4 /dev/da1 ## # Host=fire console reports 40.000MB/s transfers ## # dmesg: 978MB (2003968 512 byte sectors: 64H 32S/T 978C) ## # ---------------------------------------------------------------------------- ## # dmesg: 1909MB (3911679 512 byte sectors: 255H 63S/T 243C) ## device "JHS: Memory Stick - 2 Gig SanDisk - UFS Backup" ## vendor 0x0781 ## product 0x5151 ## release 0x0010 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2;fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a;mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a /usb/sandisk" ## # power 100 mA ## # 3911679+0 records = 2002779648 bytes ## # fdisk: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) ## # parameters extracted from in-core disklabel are: ## # cylinders=243 heads=255 sectors/track=63 (16065 blks/cyl) ## # parameters to be used for BIOS calculations are: ## # cylinders=243 heads=255 sectors/track=63 (16065 blks/cyl) ## # Warning: BIOS sector numbering starts with sector 1 ## # Information from DOS bootblock is: ## # The data for partition 1 is: ## # sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) ## # start 129, size 3910911 (1909 Meg), flag 0 ## # beg: cyl 0/ head 2/ sector 4; ## # end: cyl 969/ head 63/ sector 63 ## # Cruzer Micro, SanDisk Corporation ## # As received (but was this from Joy testing or manufacturer ?): ## # CruzerLock2/ SecurDataStor/ ## # CruzerSync/ SecurDataStorRM/ ## # PocketCache Trial Version/ ## # Damn slow when doing rdist backup, but only 1/3 slower than integral ## # when doing large raw dd: ## # dd if=/dev/zero of=/usb/integral/junk (4302944 bytes/sec) ## # dd if=/dev/zero of=/usb/sandisk/junk (3700233 bytes/sec) ## # ## # time rdist 2sandisk 1.277u 2.391s 29:00.93 0.2% 78+1267k 3+0io 0pf+0w ## # time rdist 2integral 1.193u 2.364s 2:56.36 2.0% 87+1417k 32+0io 0pf+0w ## #============================================================================== ## device "JHS: Memory Stick - 2 Gig Sony - Many Defunct" ## vendor 0x1043 ## product 0x8012 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 2;mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/sony" ## # /var/log/messages: ## # da0 at umass-sim0 bus 0 target 0 lun 0 ## # da0: Removable Direct Access SCSI-2 device ## # da0: 1.000MB/s transfers ## # da0: 2038MB (4173824 512 byte sectors: 255H 63S/T 259C) ## # usbd -d -v -v : power 100 mA, config 1 ## # dc 2147483648 # 1024 1024 1024 2 * * * p ## # USB1: dd if=/dev/da0 of=/usr1/tmp/stick PENDING ## # USB2: 2138177536 Phillips stick, not my stick ## # Joys: 2130018304 Joys stick, bytes free on the DOS FS. ## # JHS: 2136997888 = 4173824 x 512 Stick wont r. or w. ## #============================================================================== ## device "JHS: MP3 Player - X4-Tech Clipman" ## # devname umass* ## vendor 0x10d6 ## product 0x1100 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 30; mount -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/` /usb/clipman" ## detach "echo 'I hope you previously manually unmounted /usb/clipman'" ## # Give it a real long sleep, cos devd is very slow to create the /dev/da* ## # especially if processor is also fscking a hard disc. ## # http://www.berklix.com/~jhs/txt/clipman/#usbd.conf ## # "USB 2.0 (FS) FLASH DISK" ## # FSCK: ## # Omit fsck -t msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/` ## # as this is a live device with a processor & may get confused. ## # devname doesnt get reported on detach. ## # Manual says only format as FAT or FAT32 not as NTFS. ## # ============================================================================= ## device "JHS: Disk 4 Gig" ## product 0x5621 ## vendor 0x0402 ## release 0x0103 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 3;fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a;mount -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a /usb/disk2" ## detach "echo 'I hope you previously manually unmounted /usb/disk2'" ## # Works fine without a power supply, from ## # Zediworks powered hub, using cable that takes 2 USB power slots. ## # ----------------------------------------------------------------------------- ## # 117210240 sectors (57231MB) ## device "JHS: Disk - 60 Gig, Curved silver box from Croydon, Ex Toshiba Disc" ## # devname umass[0-9]+ ## vendor 0x067b ## product 0x2507 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 3; fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a; mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a /usb/disk60" ## #OLD attach "sleep 3; fdisk /dev/`echo ${DEVNAME}|sed -e s/umass/da/`; /sbin/mount_msdosfs /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/disk60.dos; fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s2a; mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s2a /usb/disk60.ufs" ## # Above does mount 2 partitions ! Although manually, ## # fsck -t msdosfs /dev/`echo ${DEVNAME}| sed -e s/umass/da/`s ## # reports: FAT starts with odd byte sequence (f8ffff0ffffffff7) ## # Storage Device, Prolific Technology Inc.: ## # Toshiba MK6021GAS HDD2183 B ZE01 DC +5V 0.7A, 8.455MB ## # (Cyl 16383, H16, S63) 60.00 GB (LBA 117,210,240 Sectors) ## # Speeds: ## # Reading to another drive on same USB2 hub 6.3 Megabyte/sec ## # Reading big files with tar to /dev/null 9.4 Megabyte/sec ## # Writing with testblock -v -n -w -b 60K 9.3 Megabyte/sec ## # GJ wrote his SATA to this disc got 20 Megabyte/sec ## # (but on a different enclosure (chip set) & faster dual core CPU). ## # ----------------------------------------------------------------------------- ## device "JHS: Gary's Music Back Up Disc, 77 Gig" ## vendor 0x04b4 ## product 0x6830 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## release 0x0420 ## attach "sleep 3; disklabel /dev/`echo ${DEVNAME}|sed -e s/umass/da/`c; fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a; mount -r /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1a /usb/gary" ## # Cypress AT2LP RC42 ## # ----------------------------------------------------------------------------- ## device "JHS: Phillip's (Ex Joy 2006.11) Western 80G" ## vendor 0x1058 ## product 0x0404 ## release 0x0602 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 3; echo ${DEVNAME} ; mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/western" ## # fsck -t msdosfs -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 ## # ----------------------------------------------------------------------------- ## device "JHS: Disc - Freecom, 120 Gig" ## # devname umass[0-9]+ ## vendor 0x07ab ## product 0xfc02 ## release 0x1110 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 3; disklabel /dev/`echo ${DEVNAME}|sed -e s/umass/da/`c; fsck -p /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a; mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`a /usb/freecom" ## # Problem ${DEVNAME} reports umass0 is allocated for dvd-ram, ## # umass1 gets allocated for da0 ## # FREECOM USB2-IDE Controller 1.000MB/s transfers ## # SAMSUNG SV1204H RK10 1.000MB/s transfers ## # testblock -v -n took ~ 6 hours with belkin usb2 card. ## # ----------------------------------------------------------------------------- ## device "JHS: Joy 300G External 2006.11" ## vendor 0x0bc2 ## product 0x0503 ## release 0x0300 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "sleep 3; fdisk /dev/`echo ${DEVNAME}|sed -e s/umass/da/`; mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`s1 /usb/joy" ## # Seagate External Drive, Jabil Circuit ## # parameters extracted from in-core disklabel are: ## # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) ## # Figures below won't work with BIOS for partitions not in cyl 1 ## # parameters to be used for BIOS calculations are: ## # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) ## # Media sector size is 512 ## # Warning: BIOS sector numbering starts with sector 1 ## # Information from DOS bootblock is: ## # The data for partition 1 is: ## # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) ## # start 63, size 625137282 (305242 Meg), flag 80 (active) ## # beg: cyl 0/ head 1/ sector 1; ## # end: cyl 0/ head 254/ sector 63 ## # ============================================================================= ## device "JHS: DVD Rewriter - LG" ## # devname umass* ## vendor 0x152e ## product 0xe003 ## release 0x0001 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## # attach "sleep 2; mount -t cd9660 /dev/cd1 /usb/dvd" ## # DVD writer, Manufacturer=LG, Model=GSA-5163D, P/N 3890H-1921A Ver. A ## # External - USB-2.0 & Firewire=IEEE 1394 ## # 16X Super Multi DVD/CD Rewriter ## # Tri-DVD Formats DVD+-RW / DVD-RAM ## # 8.5 GB DVD+R Double layer ## # DVD+R 16x ## # DVD-R 16x ## # DVD+RW 8x ## # DVD-RW 6x ## # DVD-RAM 5x ## # DVD-ROM 16x ## # DVD+R DL 4x ## # CD-R 40x ## # CD-RW 24x ## # CD-ROM 40x ## # Up to 4 hours of MPEG-2 video. ## # Software Included: ## # Ahead's Recording Software ( Nero Express, InCD ) ## # Cyberlink's Authoring & Playback Software ## # ( PowerProducer Gold, PowerDVD) ## # Backup Software ( Nero BackitUp ) ## # Key < jes@ after install on her XP [laptop?]: ## # ms91919999575433 19/3/05 ## # "Super Multi DVD Rewriter, HL-DT-ST DVDRAM GSA-5163D, rev 2.00/0.01" ## # Manufacturer = LG ## # Speed analysis: ## # host=laps + belkin pcmcia card with ehci driver: ## # /var/log/messages: cd1: 1.000MB/s transfers ## # dd if=vts_01_1.vob of=/dev/null # 1 gig file ## # host=laps external USB2 7232404 bytes/sec ## # host=laps internal USB1 1058483 bytes/sec ## # host=laps internal atapi drive 1759765 bytes/sec ## # host=film internal atapi drive 4575677 bytes/sec ## # dd if=/dev/cd1 of=/dev/null bs=2k ## # host=laps external USB2 644871 bytes/sec ## # Industry norm: ## # Single speed CDROM is 150 K byte/sec. ## # Single speed DVD is 1385 K byte/sec. ## # Drive paper spec for DVD-R read is 10x ie 13.85 M byte/sec ## # Dont know what jes@'s plain white DVD media specifies ## # but clearly 7.2 is far short of 13.8 ## # I'm not cable bandwidth limited, as ## # USB1=12 Mbit/s, USB2=480Mbit/sec = 60 M bytes/s ## # Possibly I'm USB system process limited in laptop. ## # ============================================================================= ## device "JHS: Floppy" ## # devname umass* ## vendor 0x0644 ## product 0x0000 ## release 0x0000 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "ls /dev" ## attach "sleep 2; disklabel `echo ${DEVNAME}|sed -e s/umass/da/`; mount /dev/`echo ${DEVNAME}|sed -e s/umass/da/`c /usb/floppy" ## # ============================================================================= ## # TEAC FD-05PUB, rev 1.10/0.00 da0 at umass-sim0 bus 0 target 0 lun 0 ## # Assume UFS format floppy. 4.10 fixit floppy has UFS on C, not A ! ## # disklabel is needed else mount fails. ## # "Canon Digital Camera, Canon Inc. rev 1.10/0.01 ## device "JHS: Camera - Canon" ## #devname ugen0 ## vendor 0x04a9 ## product 0x3072 ## release 0x0001 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "echo 'You may want to start gtkam or digikam'" ## detach "echo 'You may want to stop gtkam or digikam'" ## # ============================================================================= ## # device "JHS: Printer - Brother HL-P2500 - Hardware gone" ## # #devname ugen0 ## # vendor 0x04f9 ## # product 0x000a ## # release 0x0100 ## # class 0x0000 ## # subclass 0x0000 ## # protocol 0x0000 ## # "Brother Industries rev 1.00/1.00" ## # ============================================================================= ## device "JHS: Phone Adapter - Sony" ## # devname ugen0 ## vendor 0x054c ## product 0x0437 ## release 0x0001 ## class 0x00ff ## subclass 0x0000 ## protocol 0x0000 ## attach "echo 'You may want to start xgnokii'" ## detach "echo 'You may want to stop xgnokii'" ## # OLD vendor 0x067b ## # OLD product 0x2303 ## # OLD release 0x0100 ## # PL2303 Serial adapter (ATEN/IOGEAR UC232A), Prolific Technology Inc., ## # rev 1.10/1.00 Manufacturer: Sony Model: QN-3USB ## # Plugging in the adaptor creates all of these in /dev: ## # ugen0 ugen0.1 ugen0.2 ugen0.3 ## # ============================================================================= ## device "JHS: Alcatel SpeedTouch DSL Modem" ## devname "ugen[0-9]+" ## vendor 0x06b9 ## product 0x4061 ## # release 0x0400 ## # class 0x00ff ## # subclass 0x0000 ## # protocol 0x0000 ## attach "/usr/local/sbin/modem_run -f /usr/local/libdata/mgmt.o" ## # "Speed Touch 330, THOMSON, rev 1.10/4.00" Distributor = British Telecom ## # ~jhs/tech/usb_dsl/ copy of doc < http://www.speedtouch.com ## # SpeedTouch 330 USB DSL /usr/ports/net/pppoa ## # http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoa.html ## # Idea for later: ## # device "USB ethernet" ## # devname "[ackr]ue[0-9]+" ## # attach "/etc/pccard_ether ${DEVNAME} start" ## # detach "/etc/pccard_ether ${DEVNAME} stop" ## # To set up ppp to dial up at startup. add to /etc/rc.conf ## # ppp_enable="YES" ## # ppp_mode="ddial" ## # ppp_profile="adsl" ## # You need to have sample ppp.conf supplied with net/pppoa port. ## # ============================================================================= ## device "JHS: Bluetooth USB Stick, Cambridge Silicon Radio Ltd. (pas@ < Vobis)" ## # devname ugen0 ## vendor 0x0a12 ## product 0x0001 ## release 0x0525 ## class 0x00e0 ## subclass 0x0001 ## protocol 0x0001 ## attach "sleep 2; mount /usb/0/dummy; mount /usb/0/dos" ## # rev 1.10/5.25 ## # Phillip never got this working under MS. ## # ============================================================================= ## # MICE & KEYBOARDS ## # External keyboard is American layout. ## # Toshiba internal keyboard is English & black, can't be relabelled. ## # /usr/share/syscons/keymaps/ ## # usbd starts before xdm, xmodmap fails at boot, ## # but might work later, xauth permitting. ## # ----------------------------------------------------------------------------- ## device "JHS: Targus AMP02EU Notebook Wireless Presenter - Mouse component" ## devname "ums[0-9]+" ## vendor 0x05fe ## product 0x1010 ## release 0x4101 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid" ## # device "JHS: Targus AMP02EU Notebook Wireless Presenter - keyboard component" ## # devname "ukbd[0-9]+" ## # vendor 0x05fe ## # product 0x1010 ## # release 0x4101 ## # class 0x0000 ## # subclass 0x0000 ## # protocol 0x0000 ## # ----------------------------------------------------------------------------- ## device "JHS: Wireless Mouse" ## devname "ums[0-9]+" ## vendor 0x05fe ## product 0x0011 ## release 0x0010 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid; vidcontrol -m on" ## # Wireless mouse given Julian by Ernst Serial 20122103 ## # No Manufacturer marked on base or mouse. ## # Base has an extended top to fit IR hole of mouse to align electrodes. ## # Wireless mouse from Jim to test. Serial 20114842 ## # Marked "Addison Technology" on base & mouse. ## # I did not have his transformer to test, so used mine from ## # Zediworks hub. His has a bigger power socket, no compatible with mine. ## # Both: ## # Marked "RF Optical Mouse" on both ## # CE 0560. ## # Work OK on both zinc carbon & 1.2V NiCad. ## # LED Left Red: Power, Flashes when charging mouse. ## # LED Right Green: On when USB plug is in. Flashes fast when ## # searching mouse & when returned to base. ## # (On Jim's with Nicad I also noticed if mouse was put in base ## # straight, red LED hard on (till charged ?), whereas if put ## # in off central, left or right , red LED flashed slowly. ## # Mine can't be put in out of alignement because of extra base ## # plastic into the IR hole of mouse.) ## # Switch under base in position 1. (I tried position 2: ## # when syncing, base doesn't hear mouse). ## # Jim's base is happy to sync to my mouse & vice versa ## # (but they do need a resync so fortunately do not interfere). ## # Resync sequence (may not be official but works for me): ## # Plug in power & USB Green LED on continuously ## # Push & release button in base. Green flashes slowly (a few per sec.) ## # Push & release button in mouse. Green flashes fast for a second ## # then stays on continuously. ## # To activate power on mouse squeeze side buttons. ## # Failed Google search for manual: Addison Technology RF Optical Mouse ## # http://www.ciao.de/ADDISON_Technology_RF_Optical_Mouse__2199265 ## # http://www.addison-technology.com/ Dead ## # http://www.addison-technology.com/rightclick.cfm?id=509 Dead ## # http://www.addison-tech.com/ irrlevant cable co. ## # usbd reports: PS2/USB Browser Combo Mouse, Cypress Sem: ## # ----------------------------------------------------------------------------- ## device "JHS: PS2 Mouse & Keyboard Adaptor - Buddy" ## # device names: ukbd0,ums1 ## vendor 0x04b4 ## product 0x8328 ## release 0x0001 ## attach "kbdcontrol -k /dev/kbd1 -l us.iso < /dev/console;/usr/X11R6/bin/xmodmap -display :0 /usr/home/jhs/.xmodmap/host=laps.init" ## detach "kbdcontrol -k /dev/kbd0 -l uk.iso < /dev/console;/usr/X11R6/bin/xmodmap -display laps:0 /usr/home/jhs/.xmodmap/english" ## # http://www.delock.de ## # "Buddy (TM) PS/2 Keyboard-PS/2 Mouse - Cypress Semiconductor" ## # Original cost: 10 or 12 Euro in schiller. ## # Periodicaly stops (just unplug & replug & works again. ## # 2 more at 3.5 pound (March 2005) by young lad + smoker in wheelchair ## # @ http://www.computerfairs.com, they work, ## # but not yet tested to see if they too periodicaly stop. ## # ----------------------------------------------------------------------------- ## # device "JHS: Keyboard: Havit Model AL-2199" ## # vendor 0x1241 ## # product 0x1203 ## # power 100 mA, ## # rev 2.30 ## # ----------------------------------------------------------------------------- ## # device "JHS: Toshiba inbuilt mouse pad" ## # CREATE ENTRY LATER ## # I guess host=laps inbuilt mouse pad is a USB, as ## # with nothing plugged usbdevs -v shows: ## # Controller /dev/usb0: ## # addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 ## # port 1 powered port 2 powered ## # Controller /dev/usb1: ## # addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 ## # port 1 powered ## # port 2 addr 2: full speed, power 100 mA, config 1, Synaptics cPad(0x0003), Synaptics Inc.(0x06cb), rev 0.11 ## # Controller /dev/usb2: ## # addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 ## # port 1 powered port 2 powered ## # With other USB mice plugged in at boot, it showed up as ums2. ## # After a reboot with no USB plugged in at boot time, it showed up as /dev/ums0 ## # After usbd_enable="NO" in /etc/rc.conf & another reboot, ums0 still appeared , ## # presumably created by these : ps -laxww | grep usb ## # 0 35 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb0] ## # 0 36 0 0 8 0 0 8 usbtsk DL ?? 0:00.00 [usbtask] ## # 0 37 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb1] ## # 0 38 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb2] ## # ----------------------------------------------------------------------------- ## # Kensington USB Wheel Mouse - Blue < jes@ ## device "JHS: Mouse - Blue < Joy" ## # devname ums1 ## vendor 0x047d ## product 0x1012 ## # product 0x1012 # Kensington ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## # Generic: devname "ums[0-9]+" ## attach "moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid; vidcontrol -m on" ## # 100 mA ## # ----------------------------------------------------------------------------- ## device "JHS: Stick Mouse: JVC Handy Mouse HC-MM55U" ## # devname ums ## vendor 0x04f1 ## product 0x0001 ## release 0x0001 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## attach "moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid; vidcontrol -m on" ## # This mouse is not recognised on most of my systems. ## # On host=laps with 6.0BETA2, it also isnt, if connected straight ## # but after I put it through a zediworks hub (powered or ## # unpowered irrelevant!) it then works ! ## # usbdevs -v : low speed, power 100 mA, config 1, rev 0.01 ## # ============================================================================= ## device "JHS: Mouse Generic" ## devname "ums[0-9]+" ## attach "moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid; vidcontrol -m on" ## # The entry below starts moused when a mouse is plugged in. Moused ## # stops automatically (actually it bombs :) when the device disappears. ## # ============================================================================= ## # HP ScanJet 4400c, Hewlett-Packard ## device "JHS: Scanner - HP ScanJet 4400c, Hewlett-Packard" ## vendor 0x03f0 ## product 0x0705 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## # 6.1-RELEASE custom kernel, patched, adds /dev/uscanner0 ## # 6.2-PRERELEASE generic kernel, unpatched, adds ugen0 ugen0.1 ugen0.2 ugen0.3 ## # ============================================================================= ## # Dymo LabelWriter 320 www.dymo.com ## # ulpt ## device "JHS: Dymo LabelWriter 320" ## vendor 0x0922 ## product 0x0010 ## release 0x0046 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## # attach "echo dont know what to do" ## # ============================================================================= ## # Default For Pretty Log Printing ## device "JHS: USB device - Generic" ## # ============================================================================= ## # YV Adaptor: Hauppage! WinTV USB ## device "JHS: TV from Francis" ## vendor 0x0573 ## product 0x4d21 ## release 0x0100 ## class 0x0000 ## subclass 0x0000 ## protocol 0x0000 ## # NT at ugen0 ## # ============================================================================= ## # "AVM ISDN-Controller FRITZ!Card USB, AVM Berlin:" ## # device ugen0 ## device "JHS ISDN from Francis" ## vendor 0x057c ## product 0x0c00 ## release 0x0300 ## class 0x00ff ## subclass 0x00ff ## protocol 0x00ff ## # =============================================================================