Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9684 closed defect (fixed)

Buffalo WZR-HP-AG300H (Atheros AR7161): no power on USB port

Reported by: technozen Owned by: nbd
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Buffalo WZR-HP-AG300H, usb, AR7161, ar71xx-ehci, ar71xx-ohci Cc:

Description

OpenWRT loaded OK on (Japanese) Buffalo AirStation WZR-HP-AG300H. Nearly everything works great on this 802.11abgn Gigabit router, THANK YOU devs!

However, the built-in USB 2.0 port is unavailable. Testing with a few USB keys with LEDs shows the USB port receives no power (no light).

Same issue was also reported by other users (incl. a voltmeter check):
https://forum.openwrt.org/viewtopic.php?id=30737

OHCI & EHCI drivers are already included in the base image (ar71xx-ehci & ar71xx-ohci). Installed some optional usb modules, no change.

Relevant dmesg, lsmod, lsusb and cpuinfo outputs below.

Used current OpenWRT trunk r27340 "squashfs-factory.bin" firmware image dated "02-Jul-2011 05:48" from:

http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-factory.bin
http://downloads.openwrt.org/snapshots/trunk/ar71xx/

Downloaded .bin file, and successfully flashed from original manufacturer firmware upgrade web page (for reference, Buffalo default http://192.168.11.1/ with login/password "root"/"").

Happy to run any debug commands or tests as requested.

root@OpenWrt:/# dmesg | egrep -i 'usb|.hci|hub'
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR71xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ar71xx-ohci ar71xx-ohci: Atheros AR71xx built-in OHCI controller
ar71xx-ohci ar71xx-ohci: new USB bus registered, assigned bus number 2
ar71xx-ohci ar71xx-ohci: irq 14, io mem 0x1c000000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
root@OpenWrt:/#
root@OpenWrt:/# lsmod | egrep -i 'usb|.hci|hub'
usb_storage            33024  0
usbserial              22912  0
ohci_hcd               15984  0
ledtrig_usbdev          2032  0
ehci_hcd               31568  0
usbcore                96288  6 usb_storage,usbserial,ohci_hcd,ledtrig_usbdev,ehci_hcd
scsi_mod               68384  2 usb_storage,sd_mod
nls_base                4544  2 nls_cp437,usbcore
root@OpenWrt:/#
root@OpenWrt:/# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@OpenWrt:/#
root@OpenWrt:/# lsusb -v

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.39.2 ehci_hcd
  iProduct                2 Atheros AR71xx built-in EHCI controller
  iSerial                 1 ar71xx-ehci
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.39.2 ohci_hcd
  iProduct                2 Atheros AR71xx built-in OHCI controller
  iSerial                 1 ar71xx-ohci
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x0012
    No power switching (usb 1.0)
    No overcurrent protection
  bPwrOn2PwrGood        2 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/cpuinfo
system type             : Atheros AR7161 rev 2
machine                 : Buffalo WZR-HP-AG300H
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 452.19
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:/#
root@OpenWrt:/# dmesg | egrep -i 'cpu|soc|clocks'
CPU revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7161 rev 2
Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Switching to clocksource MIPS
Initializing XFRM netlink socket
root@OpenWrt:/#

Attachments (0)

Change History (7)

comment:1 Changed 7 years ago by jow

  • Owner changed from developers to juhosg
  • Status changed from new to assigned

comment:2 Changed 7 years ago by juhosg

  • Owner changed from juhosg to nbd

Reassign due to -ENOBOARD.

comment:3 Changed 7 years ago by randallhobbs@…

I have the non-Japanese version of this model as well. It has a great system on it, and I'd love to get the USB working on it. I wouldn't mind letting a developer have control of my router for awhile if he wants it (remotely), so that he can gleen whatever information out of it he needs, and maybe he can figure out the USB issue. If that's the case, someone can just email me and let me know they want access to it, and I'll hand it over for a given amount of time. You can then do what you want to do on it to test it, and then I will reflash it once it's done (unless there's been no major changes to the router and I can still get in OK with my credentials). Either way, please let me know. It's a router on the internet (on Knology's network), and I can give you access as fast as you need it.

Thanks.

comment:4 Changed 7 years ago by af+openwrt@…

The USB power regulator is enabled/disabled through GPIO pin #2.

You can enable USB power using the following shell command sequence:

echo 2 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio2/direction
echo 1 > /sys/class/gpio/gpio2/value

Andreas

comment:5 Changed 7 years ago by Randall Hobbs <randallhobbs@…>

That appears to work like a charm. I'll be able to test more once I get home from work, but it appears to solve that problem.

Thanks Andreas...

comment:6 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in r27739

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.