Subject: Re: recommendations on USB2.0 cardbus adapters?
To: nick thompson <nicholas.thompson1@mchsi.com>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-users
Date: 06/08/2006 11:27:15
On Sun, Jun 04, 2006 at 11:43:18PM -0500, nick thompson wrote:
|> I have an aging IBM thinkpad on which the only USB1.0 port has died[1].
|> Unfortunately it was running my NetGear USB NIC, since the laptop
|> doesn't have one built-in.
|
|Malcolm,
| I use an adaptec USB2connect AUA-1420A it has two usb 2.0 ports, and
|has a plug for external power but nothing I used it with required the
|power adapter so I never got one. Anyway, when I got it it was around
|$65 at compusa. I think you can get em on ebay for like 30-40 now,
|anyway just my two cents. Also, to be honest my laptop runs gentoo
|gnu/linux, but I would really have to think netbsd supports this.

hmmm ... well I ended up buying the one at my local supplier because it
was $AU35 which is pretty cheap, but it seems that it has a VIA chipset
which I'm having some issues getting running:

|bahram# diff -u GENERIC_LAPTOP MAJA
|--- GENERIC_LAPTOP      2005-10-16 07:36:52.000000000 +1000
|+++ MAJA        2006-06-08 01:18:51.000000000 +1000
|@@ -625,7 +625,8 @@
| uhci*  at pci? dev ? function ?        # Universal Host Controller (Intel)
| 
| # CardBus USB controllers
|-#ohci* at cardbus? dev ? function ?    # Open Host Controller
|+ohci*  at cardbus? dev ? function ?    # Open Host Controller
|+ehci*  at cardbus? dev ? function ?    # Enhanced Host Controller
| 
| # USB bus support
| usb*   at ehci?

... I wasn't sure whether 'ehci*  at cardbus' worked or not but config
seemed to think it was OK.  It complained about 'uhci*  at cardbus' 
and refused to compile ...

OK, so built a kernel using the MAJA config and it boots as follows:

|Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|    The NetBSD Foundation, Inc.  All rights reserved.
|Copyright (c) 1982, 1986, 1989, 1991, 1993
|    The Regents of the University of California.  All rights reserved.
|
|NetBSD 3.0.0_STABLE (MAJA) #0: Thu Jun  8 01:38:02 EST 2006
|	root@bahram.internal:/usr/obj/sys/arch/i386/compile.i386/MAJA
|total memory = 159 MB
|avail memory = 149 MB
|BIOS32 rev. 0 found at 0xf0210
|PCI BIOS rev. 2.1 found at 0xf0200
:
:
|cpu0 at mainbus0: (uniprocessor)
|cpu0: Intel Pentium/MMX (Tillamook) (586-class), 299.96 MHz, id 0x582
|cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
|cpu0: features 8001bf<MMX>
|pci0 at mainbus0 bus 0: configuration mode 1
|pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
|pchb0 at pci0 dev 0 function 0
|pchb0: Acer Labs M1531 Host-PCI Bridge (rev. 0xb3)
|pcib0 at pci0 dev 2 function 0
|pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x0a)
|cbb0 at pci0 dev 5 function 0: O2 Micro OZ6832/OZ6833 PCI-CardBus Bridge (rev. 0x34)
|cbb1 at pci0 dev 5 function 1: O2 Micro OZ6832/OZ6833 PCI-CardBus Bridge (rev. 0x34)
|vga1 at pci0 dev 6 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
|wsdisplay0 at vga1 kbdmux 1
|wsmux1: connecting to wsdisplay0
:
:
|ohci0 at pci0 dev 15 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
|ohci0: interrupting at irq 10
|ohci0: OHCI version 1.0, legacy support
|usb0 at ohci0: USB revision 1.0
|uhub0 at usb0
|uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
|uhub0: 2 ports with 2 removable, self powered
:
:
|cbb0: interrupting at irq 9
|cardslot0 at cbb0 slot 0 flags 0
|cardbus0 at cardslot0: bus 1 device 0
|pcmcia0 at cardslot0
|cbb1: interrupting at irq 9
|cardslot1 at cbb1 slot 1 flags 0
|cardbus1 at cardslot1: bus 2 device 0
|pcmcia1 at cardslot1
|apm0 at mainbus0: Power Management spec V1.2
|fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
|Kernelized RAIDframe activated
|cbb1: wait took 0.053835s
| VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at cardbus1 dev 0 function 0 not configured
| VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x61) at cardbus1 dev 0 function 1 not configured
|ehci0 at cardbus1 dev 0 function 2: VIA Technologies VT8237 EHCI USB Controller (rev. 0x63)
|ehci0: interrupting at 9
|ehci0: EHCI version 1.0
|ehci0: wrong number of companions (2 != 0)
|usb1 at ehci0: USB revision 2.0
|uhub1 at usb1
|uhub1: VIA Technologie EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
|uhub1: single transaction translator
|uhub1: 4 ports with 4 removable, self powered
:
:

now although uhub1 is there, devices plugged into it don't get recognised
(although they do get power, for some reason) - other machines I have
with a GENERIC kernel have the same VT83C572 device and they work
fine - what do I need to enable in the MAJA config above to get the
USB controller to work?

-- 
Malcolm Herbert                                This brain intentionally
mjch@mjch.net                                                left blank