urtwn0: timeout waiting for MAC auto ON

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

urtwn0: timeout waiting for MAC auto ON

hepta tor
Hi
I run OpenBSD in a VMware workstation and I would like to connect the
Edimax EW-7811Un nano USB wireless adapter:
http://www.edimax.com/en/produce_detail.php?pd_id=347&pl1_id=1&pl2_id=44.
I get the error:
           urtwn0: timeout waiting for MAC auto ON
Below are the ifconfig and dmesg outputs.

Anyone experienced this type of a problem before? Have you
successfully connected a nano USB wireless adapter before (if so which
type)?

A question for those running OpenBSD in VMware: are there any guides
on how to install VMware tools/Unity with OpenBSD as guest?

Thanks
-heptas


------------------------------------------------------------------------------------------------------------
ifconfig:

urtwn0: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr XX:XX:XX:XX:XX:XX
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect
        status: no network
        ieee80211: nwid XXX wpakey XXX wpaprotos wpa1,wpa2 wpaakms psk
wpaciphers tkip,ccmp wpagroupcipher tkip
        inet6 XXX%urtwn0 prefixlen 64 scopeid 0x4


---------------------------------------------------------------------------------------------------------------------------
dmesg:

OpenBSD 5.2 (GENERIC.MP)
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz ("GenuineIntel"
686-class) 2.40 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,HTT,NXE,SSE3,SSSE3,SSE4.1,x2APIC
real mem  = 536342528 (511MB)
avail mem = 516694016 (492MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/02/12, BIOS32 rev. 0 @
0xfd780, SMBIOS rev. 2.4 @ 0xe0010 (364 entries)
bios0: vendor Phoenix Technologies LTD version "6.00" date 07/02/2012
bios0: VMware, Inc. VMware Virtual Platform
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP BOOT APIC MCFG SRAT HPET WAET
acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3)
S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3)
S10F(S3) S11F(S3) S12F(S3) S13F(S3) S14F(S3) S15F(S3) S16F(S3)
S17F(S3) S18F(S3) S19F(S3) S20F(S3) S21F(S3) S22F(S3) S23F(S3)
S24F(S3) S25F(S3) S26F(S3) S27F(S3) S28F(S3) S29F(S3) S30F(S3)
S31F(S3) S32F(S3) P2P1(S3) S1F0(S3) S2F0(S3) S3F0(S3) S4F0(S3)
S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3) S10F(S3) S11F(S3)
S12F(S3) S13F(S3) S14F(S3) S15F(S3) S16F(S3) S17F(S3) S18F(S3)
S19F(S3) S20F(S3) S21F(S3) S22F(S3) S23F(S3) S24F(S3) S25F(S3)
S26F(S3) S27F(S3) S28F(S3) S29F(S3) S30F(S3) S31F(S3) S32F(S3)
P2P2(S3) S1F0(S3) S2F0(S3) S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3)
S7F0(S3) S8F0(S3) S9F0(S3) S10F(S3) S11F(S3) S12F(S3) S13F(S3)
S14F(S3) S15F(S3) S16F(S3) S17F(S3) S18F(S3) S19F(S3) S20F(S3)
S21F(S3) S22F(S3) S23F(S3) S24F(S3) S25F(S3) S26F(S3) S27F(S3)
S28F(S3) S29F(S3) S30F(S3) S31F(S3) S32F(S3) P2P3(S3) S1F0(S3)
S2F0(S3) S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3)
S9F0(S3) S10F(S3) S11F(S3) S12F(S3) S13F(S3) S14F(S3) S15F(S3)
S16F(S3) S17F(S3) S18F(S3) S19F(S3) S20F(S3) S21F(S3) S22F(S3)
S23F(S3) S24F(S3) S25F(S3) S26F(S3) S27F(S3) S28F(S3) S29F(S3)
S30F(S3) S31F(S3) S32F(S3) PE40(S3) S1F0(S3) PE50(S3) S1F0(S3)
PE60(S3) S1F0(S3) PE70(S3) S1F0(S3) PE80(S3) S1F0(S3) PE90(S3)
S1F0(S3) PEA0(S3) S1F0(S3) PEB0(S3) S1F0(S3) PEC0(S3) S1F0(S3)
PED0(S3) S1F0(S3) PEE0(S3) S1F0(S3) PE41(S3) S1F0(S3) PE42(S3)
S1F0(S3) PE43(S3) S1F0(S3) PE44(S3) S1F0(S3) PE45(S3) S1F0(S3)
PE46(S3) S1F0(S3) PE47(S3) S1F0(S3) PE51(S3) S1F0(S3) PE52(S3)
S1F0(S3) PE53(S3) S1F0(S3) PE54(S3) S1F0(S3) PE55(S3) S1F0(S3)
PE56(S3) S1F0(S3) PE57(S3) S1F0(S3) PE61(S3) S1F0(S3) PE62(S3)
S1F0(S3) PE63(S3) S1F0(S3) PE64(S3) S1F0(S3) PE65(S3) S1F0(S3)
PE66(S3) S1F0(S3) PE67(S3) S1F0(S3) PE71(S3) S1F0(S3) PE72(S3)
S1F0(S3) PE73(S3) S1F0(S3) PE74(S3) S1F0(S3) PE75(S3) S1F0(S3)
PE76(S3) S1F0(S3) PE77(S3) S1F0(S3) PE81(S3) S1F0(S3) PE82(S3)
S1F0(S3) PE83(S3) S1F0(S3) PE84(S3) S1F0(S3) PE85(S3) S1F0(S3)
PE86(S3) S1F0(S3) PE87(S3) S1F0(S3) PE91(S3) S1F0(S3) PE92(S3)
S1F0(S3) PE93(S3) S1F0(S3) PE94(S3) S1F0(S3) PE95(S3) S1F0(S3)
PE96(S3) S1F0(S3) PE97(S3) S1F0(S3) PEA1(S3) S1F0(S3) PEA2(S3)
S1F0(S3) PEA3(S3) S1F0(S3) PEA4(S3) S1F0(S3) PEA5(S3) S1F0(S3)
PEA6(S3) S1F0(S3) PEA7(S3) S1F0(S3) PEB1(S3) S1F0(S3) PEB2(S3)
S1F0(S3) PEB3(S3) S1F0(S3) PEB4(S3) S1F0(S3) PEB5(S3) S1F0(S3)
PEB6(S3) S1F0(S3) PEB7(S3) S1F0(S3) SLPB(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 66MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz ("GenuineIntel"
686-class) 2.50 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,HTT,NXE,SSE3,SSSE3,SSE4.1,x2APIC
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibat0 at acpi0: BAT1 not present
acpibat1 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1000 0xdc000/0x4000! 0xe0000/0x8000!
vmt0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <VMware Virtual IDE Hard Drive>
wd0: 64-sector PIO, LBA, 8192MB, 16777216 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <NECVMWar, VMware IDE CDR10, 1.00> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x08: SMBus disabled
"VMware Virtual Machine Communication Interface" rev 0x10 at pci0 dev
7 function 7 not configured
vga1 at pci0 dev 15 function 0 "VMware Virtual SVGA II" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
bha3 at pci0 dev 16 function 0 "BusLogic MultiMaster" rev 0x01: apic 2
int 17, BusLogic 9xxC SCSI
bha3: model BT-958, firmware 5.07B
bha3: sync, parity
scsibus1 at bha3: 8 targets, initiator 7
ppb1 at pci0 dev 17 function 0 "VMware Virtual PCI-PCI" rev 0x02
pci2 at ppb1 bus 2
vic0 at pci2 dev 0 function 0 "AMD 79c970 PCnet-PCI" rev 0x10: apic 2
int 18, address 00:0c:29:d2:a1:f4
eap0 at pci2 dev 1 function 0 "Ensoniq AudioPCI97" rev 0x02: apic 2 int 19
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
audio0 at eap0
midi0 at eap0: <AudioPCI MIDI UART>
ehci0 at pci2 dev 3 function 0 "VMware Virtual EHCI" rev 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "VMware EHCI root hub" rev 2.00/1.00 addr 1
uhci0 at pci2 dev 4 function 0 vendor "VMware", unknown product 0x0774
rev 0x00: apic 2 int 18
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "VMware UHCI root hub" rev 1.00/1.00 addr 1
ppb2 at pci0 dev 21 function 0 "VMware Virtual PCIE-PCIE" rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 21 function 1 "VMware Virtual PCIE-PCIE" rev 0x01
pci4 at ppb3 bus 4
ppb4 at pci0 dev 21 function 2 "VMware Virtual PCIE-PCIE" rev 0x01
pci5 at ppb4 bus 5
ppb5 at pci0 dev 21 function 3 "VMware Virtual PCIE-PCIE" rev 0x01
pci6 at ppb5 bus 6
ppb6 at pci0 dev 21 function 4 "VMware Virtual PCIE-PCIE" rev 0x01
pci7 at ppb6 bus 7
ppb7 at pci0 dev 21 function 5 "VMware Virtual PCIE-PCIE" rev 0x01
pci8 at ppb7 bus 8
ppb8 at pci0 dev 21 function 6 "VMware Virtual PCIE-PCIE" rev 0x01
pci9 at ppb8 bus 9
ppb9 at pci0 dev 21 function 7 "VMware Virtual PCIE-PCIE" rev 0x01
pci10 at ppb9 bus 10
ppb10 at pci0 dev 22 function 0 "VMware Virtual PCIE-PCIE" rev 0x01
pci11 at ppb10 bus 11
ppb11 at pci0 dev 22 function 1 "VMware Virtual PCIE-PCIE" rev 0x01
pci12 at ppb11 bus 12
ppb12 at pci0 dev 22 function 2 "VMware Virtual PCIE-PCIE" rev 0x01
pci13 at ppb12 bus 13
ppb13 at pci0 dev 22 function 3 "VMware Virtual PCIE-PCIE" rev 0x01
pci14 at ppb13 bus 14
ppb14 at pci0 dev 22 function 4 "VMware Virtual PCIE-PCIE" rev 0x01
pci15 at ppb14 bus 15
ppb15 at pci0 dev 22 function 5 "VMware Virtual PCIE-PCIE" rev 0x01
pci16 at ppb15 bus 16
ppb16 at pci0 dev 22 function 6 "VMware Virtual PCIE-PCIE" rev 0x01
pci17 at ppb16 bus 17
ppb17 at pci0 dev 22 function 7 "VMware Virtual PCIE-PCIE" rev 0x01
pci18 at ppb17 bus 18
ppb18 at pci0 dev 23 function 0 "VMware Virtual PCIE-PCIE" rev 0x01
pci19 at ppb18 bus 19
ppb19 at pci0 dev 23 function 1 "VMware Virtual PCIE-PCIE" rev 0x01
pci20 at ppb19 bus 20
ppb20 at pci0 dev 23 function 2 "VMware Virtual PCIE-PCIE" rev 0x01
pci21 at ppb20 bus 21
ppb21 at pci0 dev 23 function 3 "VMware Virtual PCIE-PCIE" rev 0x01
pci22 at ppb21 bus 22
ppb22 at pci0 dev 23 function 4 "VMware Virtual PCIE-PCIE" rev 0x01
pci23 at ppb22 bus 23
ppb23 at pci0 dev 23 function 5 "VMware Virtual PCIE-PCIE" rev 0x01
pci24 at ppb23 bus 24
ppb24 at pci0 dev 23 function 6 "VMware Virtual PCIE-PCIE" rev 0x01
pci25 at ppb24 bus 25
ppb25 at pci0 dev 23 function 7 "VMware Virtual PCIE-PCIE" rev 0x01
pci26 at ppb25 bus 26
ppb26 at pci0 dev 24 function 0 "VMware Virtual PCIE-PCIE" rev 0x01
pci27 at ppb26 bus 27
ppb27 at pci0 dev 24 function 1 "VMware Virtual PCIE-PCIE" rev 0x01
pci28 at ppb27 bus 28
ppb28 at pci0 dev 24 function 2 "VMware Virtual PCIE-PCIE" rev 0x01
pci29 at ppb28 bus 29
ppb29 at pci0 dev 24 function 3 "VMware Virtual PCIE-PCIE" rev 0x01
pci30 at ppb29 bus 30
ppb30 at pci0 dev 24 function 4 "VMware Virtual PCIE-PCIE" rev 0x01
pci31 at ppb30 bus 31
ppb31 at pci0 dev 24 function 5 "VMware Virtual PCIE-PCIE" rev 0x01
pci32 at ppb31 bus 32
ppb32 at pci0 dev 24 function 6 "VMware Virtual PCIE-PCIE" rev 0x01
pci33 at ppb32 bus 33
ppb33 at pci0 dev 24 function 7 "VMware Virtual PCIE-PCIE" rev 0x01
pci34 at ppb33 bus 34
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
urtwn0 at uhub0 port 1 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 2
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address 80:1f:02:82:98:89
uhidev0 at uhub1 port 1 configuration 1 interface 0 "VMware VMware
Virtual USB Mouse" rev 1.10/1.02 addr 2
uhidev0: iclass 3/0
ums0 at uhidev0: 16 buttons, Z dir
wsmouse1 at ums0 mux 0
uhidev1 at uhub1 port 1 configuration 1 interface 1 "VMware VMware
Virtual USB Mouse" rev 1.10/1.02 addr 2
uhidev1: iclass 3/0
ums1 at uhidev1: 16 buttons, Z dir
wsmouse2 at ums1 mux 0
uhub2 at uhub1 port 2 "vendor 0x0e0f VMware Virtual USB Hub" rev
1.10/1.00 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (be543c2b32d3d809.a) swap on wd0b dump on wd0b
urtwn0: timeout waiting for MAC auto ON
urtwn0: timeout waiting for MAC auto ON
urtwn0: timeout waiting for MAC auto ON

Reply | Threaded
Open this post in threaded view
|

Re: urtwn0: timeout waiting for MAC auto ON

Stefan Sperling-8
On Sat, Dec 01, 2012 at 05:15:22PM +0000, Heptas Torres wrote:
> Hi
> I run OpenBSD in a VMware workstation and I would like to connect the
> Edimax EW-7811Un nano USB wireless adapter:
> http://www.edimax.com/en/produce_detail.php?pd_id=347&pl1_id=1&pl2_id=44.
> I get the error:
>            urtwn0: timeout waiting for MAC auto ON

The driver believes that it is failing to power up the hardware.

If the dongle works with OpenBSD on real hardware there is probably
some problem with the way VMware handles USB devices. Do other USB
devices work?

Perhaps things just happen slower than the driver is expecting?
The driver waits for 5 miliseconds before giving up.
You could try increasing the timeout a little by tweaking the code as
shown below. However, if this fixes the problem the driver might end
up timing out elsewhere, so quite a few timeouts in the driver may
need to be tweaked.

Index: if_urtwn.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.23
diff -u -p -r1.23 if_urtwn.c
--- if_urtwn.c 17 Sep 2012 15:14:14 -0000 1.23
+++ if_urtwn.c 1 Dec 2012 17:49:53 -0000
@@ -2066,13 +2066,13 @@ urtwn_power_on(struct urtwn_softc *sc)
  /* Auto enable WLAN. */
  urtwn_write_2(sc, R92C_APS_FSMCO,
     urtwn_read_2(sc, R92C_APS_FSMCO) | R92C_APS_FSMCO_APFM_ONMAC);
- for (ntries = 0; ntries < 1000; ntries++) {
+ for (ntries = 0; ntries < 10000; ntries++) {
  if (urtwn_read_2(sc, R92C_APS_FSMCO) &
     R92C_APS_FSMCO_APFM_ONMAC)
  break;
  DELAY(5);
  }
- if (ntries == 1000) {
+ if (ntries == 10000) {
  printf("%s: timeout waiting for MAC auto ON\n",
     sc->sc_dev.dv_xname);
  return (ETIMEDOUT);

Reply | Threaded
Open this post in threaded view
|

Re: urtwn0: timeout waiting for MAC auto ON

hepta tor
On 12/1/12, Stefan Sperling <[hidden email]> wrote:
> On Sat, Dec 01, 2012 at 05:15:22PM +0000, Heptas Torres wrote:
>> Hi
>> I run OpenBSD in a VMware workstation and I would like to connect the
>> Edimax EW-7811Un nano USB wireless adapter:
>> http://www.edimax.com/en/produce_detail.php?pd_id=347&pl1_id=1&pl2_id=44.
>> I get the error:
>>            urtwn0: timeout waiting for MAC auto ON
>
> The driver believes that it is failing to power up the hardware.

As it looks from outside the dongle is not powered up.

> If the dongle works with OpenBSD on real hardware there is probably
> some problem with the way VMware handles USB devices. Do other USB
> devices work?

Yes. I have tried with a Linksys USB wifi adapter and that worked (a
different driver is used though).

I have tried with VirtualBox and none of the Wifi USB adapters worked.
I got the error "uhub0: device problem, disabling port 1".

The adapters normally work fine (tried both of them under Linux in a
VBox and they worked fine).

> Perhaps things just happen slower than the driver is expecting?
> The driver waits for 5 miliseconds before giving up.
> You could try increasing the timeout a little by tweaking the code as
> shown below. However, if this fixes the problem the driver might end
> up timing out elsewhere, so quite a few timeouts in the driver may
> need to be tweaked.

Did not work, same problem...
-heptas

> Index: if_urtwn.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/if_urtwn.c,v
> retrieving revision 1.23
> diff -u -p -r1.23 if_urtwn.c
> --- if_urtwn.c 17 Sep 2012 15:14:14 -0000 1.23
> +++ if_urtwn.c 1 Dec 2012 17:49:53 -0000
> @@ -2066,13 +2066,13 @@ urtwn_power_on(struct urtwn_softc *sc)
>   /* Auto enable WLAN. */
>   urtwn_write_2(sc, R92C_APS_FSMCO,
>      urtwn_read_2(sc, R92C_APS_FSMCO) | R92C_APS_FSMCO_APFM_ONMAC);
> - for (ntries = 0; ntries < 1000; ntries++) {
> + for (ntries = 0; ntries < 10000; ntries++) {
>   if (urtwn_read_2(sc, R92C_APS_FSMCO) &
>      R92C_APS_FSMCO_APFM_ONMAC)
>   break;
>   DELAY(5);
>   }
> - if (ntries == 1000) {
> + if (ntries == 10000) {
>   printf("%s: timeout waiting for MAC auto ON\n",
>      sc->sc_dev.dv_xname);
>   return (ETIMEDOUT);

Reply | Threaded
Open this post in threaded view
|

Re: urtwn0: timeout waiting for MAC auto ON

frantisek holop
In reply to this post by Stefan Sperling-8
hmm, on Sat, Dec 01, 2012 at 06:58:28PM +0100, Stefan Sperling said that

> On Sat, Dec 01, 2012 at 05:15:22PM +0000, Heptas Torres wrote:
> > Hi
> > I run OpenBSD in a VMware workstation and I would like to connect the
> > Edimax EW-7811Un nano USB wireless adapter:
> > http://www.edimax.com/en/produce_detail.php?pd_id=347&pl1_id=1&pl2_id=44.
> > I get the error:
> >            urtwn0: timeout waiting for MAC auto ON
>
> The driver believes that it is failing to power up the hardware.
>
> If the dongle works with OpenBSD on real hardware there is probably
> some problem with the way VMware handles USB devices. Do other USB
> devices work?

i get this problem fairly often (and others) on real hardware
all the time.  i have a D-Link DWA-121 and
"urtwn0: could not send firmware command 5"
is the order of the day.  get it every couple of hours,
sometimes much worse.

this just happened 7 minutes ago:

urtwn0: could not send firmware command 5
urtwn0: could not send firmware command 5
urtwn0: could not send firmware command 5
ehci_idone: ex=0xd1f65100 is done!
urtwn0 detached
urtwn0 at uhub0 port 6 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 4
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address cc:b2:55:55:b1:55

and the dongle wasnt even removed when it said it detached,
the hw just went away.

i tried another firmware from the linux driver, and it seems
to be marginally better, now i dont get the command 5 every
20 minutes but maybe every 3 hours.  if anyone wants to try
here is the other file http://obiit.org/f/urtwn-rtl8192cfwU
copy it into /etc/firmware and rename the old one.

in the end, i cannot point fingers because the usb ports
seem to be totally shitty on this lenovo ideapad netbook.
or maybe the dongle is dodgy.  or maybe the driver is really
strict with its timeout :] sigh.

-f
--
you ate a lot of wall paint as a kid, huh?  you mean wall candy?