Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 23:15:16 -0500
From:      "Michael E. Mercer" <mmercer@nc.rr.com>
To:        freebsd-stable@freebsd.org
Cc:        Julian Elischer <julian@elischer.org>
Subject:   Re: USB2 device
Message-ID:  <1080620116.348.3.camel@fast.mmercer.com>
In-Reply-To: <1080619808.348.1.camel@fast.mmercer.com>
References:  <Pine.BSF.4.21.0403291600580.29660-100000@InterJet.elischer.org> <1080619808.348.1.camel@fast.mmercer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The SlimHub does get seen by the EHCI device.

later
Michael

On Mon, 2004-03-29 at 23:10, Michael E. Mercer wrote:
> Julian,
> 
> It works if I plug it directly into a usb port on my PC. But it does not
> get seen if I plug it into a SIIG SlimHub 2.0.
> 
> Any ideas?
> Michael
> 
> On Mon, 2004-03-29 at 19:17, Julian Elischer wrote:
> > here's mine:
> > Copyright (c) 1992-2003 The FreeBSD Project.
> > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> >         The Regents of the University of California. All rights
> > reserved.
> > FreeBSD 4.8-RELEASE-p15 #13: Mon Mar 29 13:34:08 PST 2004
> > 
> > root@teraserver.dev.vicor-nb.com:/usr/obj/usr/prod/system/VERS_4_8_BRANCH/src/sys/VICOR
> > Timecounter "i8254"  frequency 1193182 Hz
> > Timecounter "TSC"  frequency 2800107696 Hz
> > CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2800.11-MHz 686-class CPU)
> >   Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5
> > 
> > Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> >   Hyperthreading: 2 logical CPUs
> > real memory  = 1073659904 (1048496K bytes)
> > avail memory = 1040945152 (1016548K bytes)
> > Preloaded elf kernel "k2" at 0xc0456000.
> > Pentium Pro MTRR support enabled
> > md0: Malloc disk
> > Using $PIR table, 12 entries at 0xc00f23c0
> > npx0: <math processor> on motherboard
> > npx0: INT 16 interface
> > pcib0: <Host to PCI bridge> on motherboard
> > pci0: <PCI bus> on pcib0
> > pcib1: <PCI to PCI bridge (vendor=8086 device=2561)> at device 1.0 on
> > pci0
> > pci1: <PCI bus> on pcib1
> > uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xd800-0xd81f
> > irq 5 at device 29.0 on pci0
> > usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
> > usb0: USB revision 1.0
> > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > uhub0: 2 ports with 2 removable, self powered
> > uscanner0: Hewlett-Packard HP ScanJet 6200C, rev 1.00/1.00, addr 2
> > uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xd400-0xd41f
> > irq 9 at device 29.1 on pci0
> > usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
> > usb1: USB revision 1.0
> > uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > uhub1: 2 ports with 2 removable, self powered
> > uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xd000-0xd01f
> > irq 9 at device 29.2 on pci0
> > usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
> > usb2: USB revision 1.0
> > uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > uhub2: 2 ports with 2 removable, self powered
> > ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf7000000-0xf70003ff irq
> > 11 at device 29.7 on pci0
> > ehci_pci_attach: companion usb0
> > ehci_pci_attach: companion usb1
> > ehci_pci_attach: companion usb2
> > usb3: EHCI version 1.0
> > usb3: companion controllers, 2 ports each: usb0 usb1 usb2
> > usb3: <EHCI (generic) USB 2.0 controller> on ehci0
> > usb3: USB revision 2.0
> > uhub3: (0x8086) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
> > uhub3: 6 ports with 6 removable, self powered
> > pcib2: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on
> > pci0
> > pci2: <PCI bus> on pcib2
> > bfe0: <Broadcom BCM4401 Fast Ethernet> mem 0xf6800000-0xf6801fff irq 10
> > at device 5.0 on pci2
> > bfe0: Ethernet address: 00:0e:a6:18:a4:72
> > miibus0: <MII bus> on bfe0
> > ukphy0: <Generic IEEE 802.3u media interface> on miibus0
> > ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> > pci2: <ATI Mach64-GR graphics accelerator> at 9.0 irq 9
> > ahc0: <Adaptec 2940A Ultra SCSI adapter> port 0xb400-0xb4ff mem
> > 0xf4000000-0xf4000fff irq 9 at device 10.0 on pci2
> > aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
> > pcm0: <Creative CT5880-E> port 0xb000-0xb03f irq 10 at device 12.0 on
> > pci2
> > pcm0: <unknown ac97 codec> (id=0x454d4328)
> > fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xa800-0xa83f mem
> > 0xf3000000-0xf301ffff,0xf3800000-0xf3800fff irq 9 at device 13.0 on pci2
> > fxp0: Ethernet address 00:02:b3:ea:e7:d6
> > inphy0: <i82555 10/100 media interface> on miibus1
> > inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> > isab0: <PCI to ISA bridge (vendor=8086 device=24c0)> at device 31.0 on
> > pci0
> > isa0: <ISA bus> on isab0
> > atapci0: <Intel ICH4 ATA100 controller> port
> > 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 irq 9 at device 31.1 on pci0
> > ata0: at 0x1f0 irq 14 on atapci0
> > ata1: at 0x170 irq 15 on atapci0
> > pcm1: <Intel 82801DB (ICH4)> port 0x9400-0x943f,0x9800-0x98ff mem
> > 0xf2000000-0xf20000ff,0xf2800000-0xf28001ff irq 9 at device 31.5 on pci0
> > pcm1: <unknown ac97 codec> (id=0x41445370)
> > orm0: <Option ROMs> at iomem
> > 0xc0000-0xc7fff,0xc8000-0xc87ff,0xcc000-0xcd7ff on isa0
> > fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
> > isa0
> > fdc0: FIFO enabled, 8 bytes threshold
> > fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> > atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> > atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> > kbd0 at atkbd0
> > psm0: <PS/2 Mouse> irq 12 on atkbdc0
> > psm0: model Generic PS/2 mouse, device ID 0
> > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
> > isa0
> > sc0: <System console> at flags 0x100 on isa0
> > sc0: VGA <16 virtual consoles, flags=0x100>
> > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
> > sio0: type 16550A, console
> > sio1 at port 0x2f8-0x2ff irq 3 on isa0
> > sio1: type 16550A
> > ppc0: <Parallel port> at port 0x378-0x37f on isa0
> > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
> > ppc0: FIFO with 16/16/16 bytes threshold
> > lpt0: <Printer> on ppbus0
> > lpt0: Polled port
> > IP packet filtering initialized, divert enabled, rule-based forwarding
> > enabled, default to accept, logging disabled
> > IPsec: Initialized Security Association Processing.
> > ad0: 117246MB <Maxtor 6Y120L0> [238216/16/63] at ata0-master UDMA100
> > Waiting 4 seconds for SCSI devices to settle
> > uscanner0: at uhub0 port 2 (addr 2) disconnected
> > uscanner0: detached
> > uscanner0: Hewlett-Packard HP ScanJet 6200C, rev 1.00/1.00, addr 2
> > Mounting root from ufs:/dev/ad0s1a
> > umass0: LEXAR   MEDIA JUMPDRIVE PRO, rev 2.00/0.00, addr 2
> > da0 at umass-sim0 bus 0 target 0 lun 0
> > da0: <LEXAR JUMPDRIVE PRO 0> Removable Direct Access SCSI-2 device 
> > da0: 650KB/s transfers
> > da0: 246MB (503808 512 byte sectors: 64H 32S/T 246C)
> > (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, increasing
> > minimum_cmd_size to 10.
> > 
> > 
> > jtest# usbdevs -v
> > Controller /dev/usb0:
> > addr 1: low speed, self powered, config 1, UHCI root hub(0x0000),
> > Intel(0x0000), rev 1.00
> >  port 1 powered
> >  port 2 addr 2: low speed, self powered, config 1, HP ScanJet
> > 6200C(0x0201), Hewlett-Packard(0x03f0), rev 1.00
> > Controller /dev/usb1:
> > addr 1: low speed, self powered, config 1, UHCI root hub(0x0000),
> > Intel(0x0000), rev 1.00
> >  port 1 powered
> >  port 2 powered
> > Controller /dev/usb2:
> > addr 1: low speed, self powered, config 1, UHCI root hub(0x0000),
> > Intel(0x0000), rev 1.00
> >  port 1 powered
> >  port 2 powered
> > Controller /dev/usb3:
> > addr 1: low speed, self powered, config 1, EHCI root hub(0x0000),
> > (0x8086)(0x0000), rev 1.00
> >  port 1 powered
> >  port 2 powered
> >  port 3 powered
> >  port 4 powered
> >  port 5 powered
> >  port 6 addr 2: low speed, power 200 mA, config 1, JUMPDRIVE
> > PRO(0x0200), LEXAR   MEDIA(0x05dc), rev 0.00
> > jtest# 
> > jtest# dd if=/dev/da0 of=/dev/null bs=64k
> > Mar 29 19:01:32 jtest /k2: (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not
> > supported, increasing minimum_cmd_size to 10.
> > Mar 29 19:01:32 jtest /k2: (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not
> > supported, increasing minimum_cmd_size to 10.
> > 3936+0 records in
> > 3936+0 records out
> > 257949696 bytes transferred in 47.199914 secs (5465046 bytes/sec)
> > jtest# 
> > jtest# cat VICOR
> > machine         i386
> > cpu             I586_CPU
> > cpu             I686_CPU
> > ident           VICOR
> > maxusers        256
> > 
> > makeoptions     DEBUG=-g
> > 
> > options         INET                    #InterNETworking
> > options         FFS                     #Berkeley Fast Filesystem
> > options         FFS_ROOT                #FFS usable as root device [keep
> > this!]
> > options         SOFTUPDATES             #Enable FFS soft updates support
> > options         UFS_DIRHASH             #Faster in large dirs (memory
> > tradeoff)
> > options         MFS                     #Memory Filesystem
> > options         NFS                     #Network Filesystem
> > options         MSDOSFS                 #MSDOS Filesystem
> > options         CD9660                  #ISO 9660 Filesystem
> > options         PROCFS                  #Process filesystem
> > options         COMPAT_43               #Compatible with BSD 4.3 [KEEP
> > THIS!]
> > options         SCSI_DELAY=4000 #Delay (in ms) before probing SCSI
> > options         UCONSOLE                #Allow users to grab the console
> > options         USERCONFIG              #boot -c editor
> > options         SYSVSHM                 #SYSV-style shared memory
> > options         SYSVMSG                 #SYSV-style message queues
> > options         SYSVSEM                 #SYSV-style semaphores
> > options         P1003_1B                #Posix P1003_1B real-time
> > extensions
> > options         _KPOSIX_PRIORITY_SCHEDULING
> > options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
> > options         INCLUDE_CONFIG_FILE     # Include this file in kernel
> > options         DDB
> > #options        DDB_UNATTENDED
> > options         KTRACE                  #kernel tracing
> > options         IPDIVERT                #Divert sockets
> > options         IPSEC                   #IP security
> > options         IPSEC_ESP               #IP security (crypto; define w/
> > IPSEC)
> > options         IPFIREWALL              #Packet firewall
> > options         IPFIREWALL_DEFAULT_TO_ACCEPT #Only block on firewall
> > machines
> > options         IPFIREWALL_FORWARD
> > options         MAXDSIZ=(2047*1024*1024)
> > 
> > #options        SMP                     # Symmetric MultiProcessor
> > Kernel
> > #options        APIC_IO                 # Symmetric (APIC) I/O
> > #options        HTT                     # HyperThreading Technology
> > 
> > device          isa
> > device          pci
> > 
> > device          fdc0    at isa? port IO_FD1 irq 6 drq 2
> > device          fd0     at fdc0 drive 0
> > 
> > device          ata0    at isa? port IO_WD1 irq 14
> > device          ata1    at isa? port IO_WD2 irq 15
> > device          ata
> > device          atadisk                 # ATA disk drives
> > device          atapicd                 # ATAPI CDROM drives
> > options         ATA_STATIC_ID           #Static device numbering
> > 
> > device          ahc             # AHA2940 and onboard AIC7xxx devices
> > device          dpt                     # DPT Smartcache - See LINT for
> > options!
> > device          mlx
> > device          mly
> > device          twe
> > 
> > device          scbus                   # SCSI bus (required)
> > device          da                      # Direct Access (disks)
> > device          sa                      # Sequential Access (tape etc)
> > device          cd                      # CD
> > device          pass                    # Passthrough dev (direct SCSI
> > access)
> > device          pt
> > device          ch
> > device          ses
> > 
> > device          atkbdc0 at isa? port IO_KBD
> > device          atkbd0  at atkbdc? irq 1 flags 0x1
> > device          psm0    at atkbdc? irq 12
> > 
> > device          vga0    at isa?
> > 
> > pseudo-device   splash
> > 
> > device          sc0     at isa? flags 0x100
> > 
> > device          npx0    at nexus? port IO_NPX irq 13
> > 
> > device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
> > device          sio1    at isa? port IO_COM2 irq 3
> > 
> > device          ppc0    at isa? 
> > device          ppbus
> > device          lpt
> > 
> > device          em                      # Intel PRO/1000 adapter Gigabit
> > Ethernet Card (``Wiseman'')
> > device          miibus
> > device          bfe                     # Broadcom BCM440x
> > device          bge                     # Broadcom BCM570x (``Tigon
> > III'') 
> > device          fxp
> > 
> > device          pcm
> > 
> > device          xdcp
> > device          cy0
> > #options        CY_PCI_FASTINTR         # Use with cy_pci unless irq is
> > shared
> > 
> > pseudo-device   loop                    # Network loopback
> > pseudo-device   ether                   # Ethernet support
> > pseudo-device   pty                     # Pseudo-ttys (telnet etc)
> > pseudo-device   md                      # Memory "disks"
> > pseudo-device   bpf                     #Berkeley packet filter
> > pseudo-device   vn
> > pseudo-device   gif                     #IPv6 and IPv4 tunneling
> > pseudo-device   speaker
> > 
> > # USB support
> > device          ehci                    # EHCI PCI->USB interface
> > device          uhci                    # UHCI PCI->USB interface
> > device          ohci                    # OHCI PCI->USB interface
> > device          usb                     # USB Bus (required)
> > device          ugen                    # Generic
> > device          uhid                    # "Human Interface Devices"
> > #device         ukbd                    # Keyboard
> > device          ulpt                    # Printer
> > device          umass                   # Disks/Mass storage - Requires
> > scbus and da
> > device          ums                     # Mouse
> > device          uscanner                # Scanners
> > 
> > device          firewire                # Generic
> > device          fwe                     # Generic
> > device          sbp                     # Generic
> > 
> > jtest#  
> > 
> > ignore the xdcp entry... it's local.
> > 
> > I don;t see any mention of cam or SCSI in your config..
> > umass requires cam asn they implement SCSI-over-USB
> > to get the disk function.
> > 
> > This is not however perfect.. I get hangs on boot if the drive is
> > already inserted, and sometimes it doesn't notice that it is removed...
> > 
> > but it does give me 5.4MBytes/sec which is > than teh theoretical
> > maximum of about 1.5MB/sec for USB1.1
> > 
> > julian
> > 
> > 
> > _______________________________________________
> > freebsd-stable@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> 
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1080620116.348.3.camel>