OpenWrt Forum Archive

Topic: Netgear WGT634U with USB not working, can anyone help???

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I flashed my Netgear WGT634U with Kamikaze 3587 and was able to get network working.
But I wasn't able to get USB up and running.
I have listed the dmesg and the list of installed package that's current install on the router.
Can someone help me figure out why it isn't working?
Thanks in advance.

root@OpenWrt:/# dmesg
Linux version 2.6.16.1 (root@HOME) (gcc version 3.4.6 (OpenWrt-2.0)) #1 Tue Apr
4 22:09:17 EDT 2006
CPU revision is: 00029007
early_nvram_init: WGT634U NVRAM found.
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
  DMA zone: 8192 pages, LIFO batch:1
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 0 pages, LIFO batch:0
  HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/pre
init noinitrd console=ttyS0,115200
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (19 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 100.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29652k/32768k available (2162k kernel code, 3100k reserved, 317k data, 1
24k init, 0k highmem)
Calibrating delay loop... 193.02 BogoMIPS (lpj=96512)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
NET: Registered protocol family 16
PCI: fixing up bridge
PCI: Setting latency timer of device 0000:01:00.0 to 64
PCI: Fixing up device 0000:01:00.0
squashfs: version 3.0 (2006/03/15) Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v0.97 (Nov 30, 2005)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:09:5b:f8:17:07
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=64
Flash device: 0x800000 at 0x1c000000
bootloader size flag: 3
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00060000 : "cfe"
0x000a0000-0x007e0000 : "linux"
0x00160000-0x007e0000 : "rootfs"
0x00060000-0x00080000 : "nvram"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (256 buckets, 2048 max) - 244 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (jffs2 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 124k freed
Algorithmics/MIPS FPU Emulator v1.5
Probing device eth0: found!
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
vlan0: Setting MAC address to  00 00 ba dc 0d ed.
device eth0 entered promiscuous mode
VLAN (vlan0):  Setting underlying device (eth0) to promiscious mode.
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: dev_set_promiscuity(master, 1)
device vlan0 entered promiscuous mode
vlan0: dev_set_allmulti(master, 1)
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
br0: port 1(vlan0) entering learning state
br0: topology change detected, propagating
br0: port 1(vlan0) entering forwarding state
nbd: registered device at major 43
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
PCI: Enabling device 0000:00:03.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:03.0 to 64
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:03.0: irq 6, io mem 0x18003000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
SCSI subsystem initialized
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
Initializing USB Mass Storage driver...
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 2.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 2.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 2.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 2.  Maybe the USB cable is bad?
usb 1-1: new low speed USB device using ohci_hcd and address 10
usb 1-1: device descriptor read/64, error -145
usb 1-1: device descriptor read/64, error -145
usb 1-1: new low speed USB device using ohci_hcd and address 11
usb 1-1: device descriptor read/64, error -145
usb 1-1: device descriptor read/64, error -145
usb 1-1: new low speed USB device using ohci_hcd and address 12
usb 1-1: device not accepting address 12, error -145
usb 1-1: new low speed USB device using ohci_hcd and address 13
usb 1-1: device not accepting address 13, error -145
usb 1-2: new low speed USB device using ohci_hcd and address 14
usb 1-2: device descriptor read/64, error -145
usb 1-2: device descriptor read/64, error -145
usb 1-2: new low speed USB device using ohci_hcd and address 15
usb 1-2: device descriptor read/64, error -145
usb 1-2: device descriptor read/64, error -145
usb 1-2: new low speed USB device using ohci_hcd and address 16
usb 1-2: device not accepting address 16, error -145
usb 1-2: new low speed USB device using ohci_hcd and address 17
usb 1-2: device not accepting address 17, error -145
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
USB Universal Host Controller Interface driver v2.3
root@OpenWrt:/#



root@OpenWrt:/# ipkg list_installed
base-files - 6 - OpenWrt filesystem structure and scripts
base-files-brcm-2.6 - 2 - Board/architecture specific files
bridge - 1.0.6-1 - Ethernet bridging tools
busybox - 1.1.1-1 - Core utilities for embedded Linux systems
dnsmasq - 2.27-1 - A lightweight DNS and DHCP server
dropbear - 0.48.1-1 - a small SSH 2 server/client designed for small memory envi
ronments.
fdisk - 2.12r-1 - Partition table manipulation utility
iptables - 1.3.5-1 - The netfilter firewalling software for IPv4
kernel - 2.6.16.1-brcm-1 -
kmod-fs-ext2 - 2.6.16.1-brcm-1 - Kernel modules for EXT2 filesystem support
kmod-fs-ext3 - 2.6.16.1-brcm-1 - Kernel modules for EXT3 filesystem support
kmod-fs-nfs - 2.6.16.1-brcm-1 - Kernel modules for NFS support
kmod-fs-vfat - 2.6.16.1-brcm-1 - Kernel modules for VFAT filesystem support
kmod-nbd - 2.6.16.1-brcm-1 - Kernel module for network block device
kmod-nls-base - 2.6.16.1-brcm-1 - Kernel modules for basic native language suppo
rt
kmod-nls-cp437 - 2.6.16.1-brcm-1 - Kernel module for codepage 437
kmod-nls-cp850 - 2.6.16.1-brcm-1 - Kernel module for codepage 850
kmod-nls-iso8859-1 - 2.6.16.1-brcm-1 - Kernel module for iso8859-1 charset suppo
rt
kmod-nls-iso8859-15 - 2.6.16.1-brcm-1 - Kernel module for iso8859-15 charset sup
port
kmod-nls-utf8 - 2.6.16.1-brcm-1 - Kernel module for utf8 support
kmod-ppp - 2.6.16.1-brcm-1 - PPP support
kmod-pppoe - 2.6.16.1-brcm-1 - PPP over Ethernet support
kmod-soundcore - 2.6.16.1-brcm-1 - Kernel support for audio soundcards
kmod-switch - 2.6.16.1-brcm-1 - switch driver for robo/admtek switch
kmod-usb-core - 2.6.16.1-brcm-1 - Kernel Support for USB
kmod-usb-ohci - 2.6.16.1-brcm-1 - Kernel driver for OHCI USB controllers
kmod-usb-storage - 2.6.16.1-brcm-1 - Kernel modules for USB storage support
kmod-usb-uhci - 2.6.16.1-brcm-1 - Kernel driver for UHCI USB controllers
kmod-usb2 - 2.6.16.1-brcm-1 - Kernel driver for USB2 controllers
libflac - 1.1.2-1 - Free Lossless Audio Codec library
libid3tag - 0.15.1b-1 - an ID3 tag manipulation library
libmad - 0.15.1b-1 - An high-quality MPEG audio decoding library
libncurses - 5.2-8 - a terminal handling library and common terminal definitions
libusb - 0.1.10a-1 - a Library for accessing Linux USB devices
libvorbisidec - 1.2.0-dave-1 - A fixed-point implementation (Tremor) of libogg/l
ibvorbis"
lsusb - 0.71-1 - A program to list USB devices
mpd - 0.12.0-1 - A music player for flac, mp3 and ogg.
mtd - 4 - Tool for modifying the flash chip
nano - 1.3.8-1 - An enhanced clone of the Pico text editor
ppp - 2.4.3-7 - a PPP (Point-to-Point Protocol) daemon (with MPPE/MPPC support)
ppp-mod-pppoe - 2.4.3-7 - a PPPoE (PPP over Ethernet) plugin for PPP
samba - 2.0.10-2 - NetBIOS/SMB file and print server
samba-client - 2.0.10-2 - NetBIOS/SMB client
uclibc - 0.9.28-6 - Standard C library for embedded Linux systems
wireless-tools - 28.pre13-1 - Tools for setting up WiFi cards using the Wireless
Extension
zlib - 1.2.3-3 - an implementation of the deflate compression method (library)
Done.
root@OpenWrt:/#

So far I have no luck in making it work.

Can someone send me a copy of your working image? Or provide a link on details on how to build my own?

Thanks in advance.

I just posted something on this.

Use the 2.4 kernel.  The 2.6 kernel's USB is broken.

Regards,

Vince

Kyukun,

Also, what kind of device are you trying to use, and what are you doing to test it  - "it doesn't work" isn't much information for us to go on.

As for docs on how to build your own image, start here: http://wiki.openwrt.org/

I hope you have some time on your hands - if you've never done it before, it'll take a little while to figure out all the little details.  Probably a few days.

WARNING - HAVE A SERIAL CONSOLE before trying your own image.

-Vince

vincef wrote:

Kyukun,

Also, what kind of device are you trying to use, and what are you doing to test it  - "it doesn't work" isn't much information for us to go on.

As for docs on how to build your own image, start here: http://wiki.openwrt.org/

I hope you have some time on your hands - if you've never done it before, it'll take a little while to figure out all the little details.  Probably a few days.

WARNING - HAVE A SERIAL CONSOLE before trying your own image.

-Vince

Thank you Vince.

I didn't know 2.6's usb is not working.  Thank you for pointing that out.
I have tried removing all usb related packages and reinstall it, but it didn't work either.
Also I thought it might not support my usb drive so I tried a 1GB Sandisk Cruzer Mini, PNY Attache 1G,
and USB External Hard Drive.  Turn out none of those works.

I read the wiki and posts by other users and found that some user made it work by installing additional packages that's not available from the ipkg installer.

So, that's why I ask if other user can let me have a copy of their working image or point me at the right direction at compiling my own image with the right package.

For the serial console cable, where do you buy the material to make one?
The one at Radioshack is kind of pricy.

I used the radio shack cable.  It works nicely, and its easy, even if it is pricy.

Google around - there are several suggestions on how to make a serial console for the WRT54G, which should work just as well with the WGT; just note that the serial header is very different on the WGT.

You might be able to use a very similar cable (it's a Nokia phone data cable) that you can source from ebay.com for under $10; but for the extra $12, you can be sure that it'll work by getting the radio shack cable.

I thought it was a good value.

Is there some reason you need a 2.6 kernel?  I found my app works just great with the 2.4 kernel.

Regards,

Vince

vincef wrote:

I just posted something on this.

Use the 2.4 kernel.  The 2.6 kernel's USB is broken.

Regards,

Vince

vincef / anybody,

in what was is the 2.6 kernel's USB not working ? i ask because i am running a wgt634u with kamakazi & 2.6 kernel. no my usb speeds are quite appaling but usb is working.

can you please clarify how usb is is broken in 2.6 ?

many thanks

adam

USB support on the WGT-634U with kernel 2.6 is definitely working, albeit in some cases you may need to create the device node by hand (i.e. /dev/usb/lp0).  As for packages to support USB, since there is no offical build for the WGT-634U I guess that would depend on where you got your pre-built image from...  wink

If you build from the Kamikaze trunk and use one of the later revisions, it should work fine on the WGT-634U.

just today I flashed a  wgt634u with kamikaze r3893  (compiled from svn a couple of days ago) "Linux OpenWrt 2.6.16.7 #1 Thu May 25 18:01:14 CEST 2006 mips unknown"
I can confirm that USB storage is working with a 128MB fat formatted usb-stick. I mean I could mount the disk and list the directory, I did not yet test more.

Yep I use it also with some USB wifi antennas and it's working perfectly ( didn't try usb-storage )
For the cable the best and most reusable I found was to take a USB - standard serial adapter ( to have a serial port on my laptop ) and to make a little serial level adapter ( for the voltage level ).

some of those serial adapters already have a level converter as part of their internals, so instead of using another converter, you can remove/bypass one..

I am having similar USB problems with the Asus WL-500G Deluxe.  I've built the kamikaze head (3905) (after some flub-dubbing around) and flshed it to my Asus.  All worked as expected except that when loading the usb modules, it doesn't seem to recognize the presence of the usb bus.   /proc/bus/usb is empty as well.

I have to use 2.6 b/c the usb driver for the device I'm wanting to use (PowerLinc USB x10 interface) is only available for 2.6.

I've included my dmesg output below.

Anybody have any leads on how to figure out why the bus isn't being seen?

Whoops - here's my dmesg output:

Linux version 2.6.16.7 (pete@localhost.localdomain) (gcc version 3.4.6 (OpenWrt-2.0)) #1 Sun Jun 11 10:33:56 EDT 2006
CPU revision is: 00029007
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
  DMA zone: 8192 pages, LIFO batch:1
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 0 pages, LIFO batch:0
  HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (19 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 100.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29912k/32768k available (1972k kernel code, 2840k reserved, 260k data, 120k init, 0k highmem)
Calibrating delay loop... 192.51 BogoMIPS (lpj=96256)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
NET: Registered protocol family 16
PCI: fixing up bridge
PCI: Setting latency timer of device 0000:01:00.0 to 64
PCI: Fixing up device 0000:01:00.0
PCI: Failed to allocate I/O resource #4:20@400 for 0000:01:02.0
PCI: Failed to allocate I/O resource #4:20@400 for 0000:01:02.1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v0.97 (Nov 30, 2005)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:13:d4:ad:66:0a
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x400000 at 0x1c000000
bootloader size flag: 0
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x003f0000 : "linux"
0x000f0000-0x003f0000 : "rootfs"
0x003f0000-0x00400000 : "nvram"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (256 buckets, 2048 max) - 244 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (jffs2 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 120k freed
Algorithmics/MIPS FPU Emulator v1.5
Probing device eth0: found!
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
vlan0: dev_set_allmulti(master, 1)
br0: port 1(vlan0) entering learning state
br0: topology change detected, propagating
br0: port 1(vlan0) entering forwarding state
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
usbcore: registered new driver usbfs
usbcore: registered new driver hub
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

it seems like you never loaded any usb drivers:

insmod either ohci-hcd or uhci-hcd, whatever works, and ehci-hcd for usb 2.0.

I can confirm that 2.6.16.7 works perfectly on my WGT634U (FTDI USB-Serial Converter, USB 2.0 Printer, USB 2.0 Hub).

greetings,
andy

I can confirm that UHCI on the Asus WL500g Premium seems to be broken, while EHCI works. I was pretty confused by the OHCI controller that sits on that board, too. Maybe an internal usb bus?

Here's the output from uhci loading:
USB Universal Host Controller Interface driver v3.0
PCI: Fixing up device 0000:01:03.0
uhci_hcd 0000:01:03.0: init 0000:01:03.0 fail, -16
uhci_hcd: probe of 0000:01:03.0 failed with error -16
PCI: Fixing up device 0000:01:03.1
uhci_hcd 0000:01:03.1: init 0000:01:03.1 fail, -16
uhci_hcd: probe of 0000:01:03.1 failed with error -16

Thats with r3962.

(Last edited by unverbraucht on 17 Jun 2006, 20:18)

unverbraucht wrote:

I can confirm that UHCI on the Asus WL500g Premium seems to be broken, while EHCI works. I was pretty confused by the OHCI controller that sits on that board, too. Maybe an internal usb bus?

Here's the output from uhci loading:
USB Universal Host Controller Interface driver v3.0
PCI: Fixing up device 0000:01:03.0
uhci_hcd 0000:01:03.0: init 0000:01:03.0 fail, -16
uhci_hcd: probe of 0000:01:03.0 failed with error -16
PCI: Fixing up device 0000:01:03.1
uhci_hcd 0000:01:03.1: init 0000:01:03.1 fail, -16
uhci_hcd: probe of 0000:01:03.1 failed with error -16

Thats with r3962.

Are you using 2.6.16.7 or the expermimental 2.6.17-rc6 i maild you?

Oops, that was with your experimental kernel Achim. I'm compiling a freshly checked out 2.6 right now, and will post about results there. Sorry for the mix-up sad

Hmm, still completely broken unfortunately. Same error messages as above. According to the sources this is because it can't find correctly assigned IO ports. And lspci -v shows this on a brand new kamikaze:

01:03.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
        Flags: medium devsel, IRQ 2
        I/O ports at <ignored> [disabled]
        Capabilities: [80] Power Management version 2

So the ioports are disabled. I tried tinkering with setpci BASE_ADDRESS_0=100 but without success sad

My WGT634U is running Kamikaze 3587 (Linux OpenWrt 2.6.16.1 #1 Tue Apr 4 22:09:17 EDT 2006 mips unknown)
Wireless and USB work just fine, stability is not the greatest (it hangs on occasion - heavy use, or uptime greater than a week, or phase of the moon or something).

Any particular reason I should upgrade?

The discussion might have continued from here.