Topic: USB2 on WGT634U (kamikaze, 2.6 kernel)

Hi. Any USB gurus out there?

I'm running kamikaze 5435 on a Netgear WGT634U, hooking up a USB2.0 sound dongle (C-media).

It seems to work when connected through an external 4-port USB2 hub, IOGear model GUH276. At least I get sound when I cat a file to /dev/sound/dsp .  However lsusb reports nothing and /proc/bus/usb is empty. That seems odd.

ehci_hcd is loaded but not ohci or uhci.

If I unplug the hub and insert the sound dongle directly into the WGT634U, it does not get detected and the USB bus seems to be hung forever. Here is dmesg from the direct insertion event:

<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
<7>hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
<7>hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
<7>ehci_hcd 0000:01:02.2: port 1 full speed --> companion
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT

Judging from the full dmesg transcript (boot, install external hub, install dongle, remove hub, insert dongle) below, it looks as if the C-media dongle installs as 12Mb/s on the hub and 480Mb/s direct. Anyone know how stable USB2.0 480Mb/s is on this platform?

Thanks,
  Chuck

<5>Linux version 2.6.17 (chuck@Debbie) (gcc version 3.4.6 (OpenWrt-2.0)) #2 Sat Nov 11 11:23:56 PST 2006
<4>CPU revision is: 00029007
<4>early_nvram_init: WGT634U NVRAM found.
<4>Determined physical RAM map:
<4> memory: 02000000 @ 00000000 (usable)
<7>On node 0 totalpages: 8192
<7>  DMA zone: 8192 pages, LIFO batch:1
<4>Built 1 zonelists
<5>Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
<4>Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
<4>Primary data cache 4kB, 2-way, linesize 16 bytes.
<4>Synthesized TLB refill handler (19 instructions).
<4>Synthesized TLB load handler fastpath (31 instructions).
<4>Synthesized TLB store handler fastpath (31 instructions).
<4>Synthesized TLB modify handler fastpath (30 instructions).
<4>PID hash table entries: 256 (order: 8, 1024 bytes)
<4>Using 100.000 MHz high precision timer.
<4>Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
<4>Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>Memory: 29976k/32768k available (1926k kernel code, 2776k reserved, 262k data, 128k init, 0k highmem)
<7>Calibrating delay loop... 196.09 BogoMIPS (lpj=98048)
<4>Mount-cache hash table entries: 512
<4>Checking for 'wait' instruction...  unavailable.
<6>NET: Registered protocol family 16
<4>PCI: fixing up bridge
<7>PCI: Setting latency timer of device 0000:01:00.0 to 64
<4>PCI: Fixing up device 0000:01:00.0
<6>NET: Registered protocol family 2
<4>IP route cache hash table entries: 256 (order: -2, 1024 bytes)
<4>TCP established hash table entries: 1024 (order: 0, 4096 bytes)
<4>TCP bind hash table entries: 512 (order: -1, 2048 bytes)
<6>TCP: Hash tables configured (established 1024 bind 512)
<6>TCP reno registered
<6>squashfs: version 3.0 (2006/03/15) Phillip Lougher
<6>devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
<6>devfs: boot_options: 0x1
<6>JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
<6>Initializing Cryptographic API
<6>io scheduler noop registered
<6>io scheduler deadline registered (default)
<6>Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
<6>serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
<6>serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
<6>b44.c:v1.00 (Apr 7, 2006)
<4>PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
<7>PCI: Setting latency timer of device 0000:00:01.0 to 64
<6>eth0: Broadcom 47xx 10/100BaseT Ethernet 00:0f:b5:0b:2e:7a
<6>Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
<7>Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
<7>Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
<7>Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
<4> Intel/Sharp Extended Query Table at 0x0031
<6>Using buffer write method
<5>cfi_cmdset_0001: Erase suspend on write enabled
<7>erase region 0: offset=0x0,size=0x20000,blocks=64
<5>Flash device: 0x800000 at 0x1fc00000
<5>bootloader size: 655360
<6>Physically mapped flash: Filesystem type: squashfs, size=0x1af138
<5>Creating 5 MTD partitions on "Physically mapped flash":
<5>0x00000000-0x000a0000 : "cfe"
<5>0x000a0000-0x007e0000 : "linux"
<5>0x0014a800-0x00300000 : "rootfs"
<4>mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
<5>0x007e0000-0x00800000 : "nvram"
<5>0x00300000-0x007e0000 : "OpenWrt"
<4>ip_conntrack version 2.4 (256 buckets, 2048 max) - 236 bytes per conntrack
<4>ip_tables: (C) 2000-2006 Netfilter Core Team
<6>TCP vegas registered
<6>NET: Registered protocol family 1
<6>NET: Registered protocol family 17
<6>802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
<6>All bugs added by David S. Miller <davem@redhat.com>
<4>VFS: Mounted root (squashfs filesystem) readonly.
<6>Mounted devfs on /dev
<6>Freeing unused kernel memory: 128k freed
<4>Algorithmics/MIPS FPU Emulator v1.5
<6>b44: eth0: Link is up at 100 Mbps, full duplex.
<6>b44: eth0: Flow control is off for TX and off for RX.
<6>eth0.0: dev_set_promiscuity(master, 1)
<6>device eth0 entered promiscuous mode
<6>device eth0.0 entered promiscuous mode
<6>br-lan: port 1(eth0.0) entering learning state
<6>br-lan: topology change detected, propagating
<6>br-lan: port 1(eth0.0) entering forwarding state
<4>Probing device eth0: found!
<4>BFL_ENETADM not set in boardflags. Use force=1 to ignore.
<6>usbcore: registered new driver usbfs
<6>usbcore: registered new driver hub
<6>CSLIP: code copyright 1989 Regents of the University of California
<6>PPP generic driver version 2.4.2
<6>wlan: 0.8.4.2 (0.9.2)
<4>ath_hal: module license 'Proprietary' taints kernel.
<6>ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)
<6>ath_rate_sample: 1.2 (0.9.2)
<6>wlan: mac acl policy registered
<6>ath_pci: 0.9.4.5 (0.9.2)
<7>ehci_hcd: block sizes: qh 128 qtd 96 itd 192 sitd 96
<4>PCI: Enabling device 0000:01:02.2 (0000 -> 0002)
<4>PCI: Fixing up device 0000:01:02.2
<6>ehci_hcd 0000:01:02.2: EHCI Host Controller
<7>drivers/usb/core/inode.c: creating file 'devices'
<7>drivers/usb/core/inode.c: creating file '001'
<6>ehci_hcd 0000:01:02.2: new USB bus registered, assigned bus number 1
<7>ehci_hcd 0000:01:02.2: reset hcs_params 0x2192 dbg=0 cc=2 pcc=1 ports=2
<7>ehci_hcd 0000:01:02.2: reset portroute 1 0 
<7>ehci_hcd 0000:01:02.2: reset hcc_params e806 thresh 0 uframes 256/512/1024 park
<7>ehci_hcd 0000:01:02.2: park 0
<7>ehci_hcd 0000:01:02.2: MWI active
<7>ehci_hcd 0000:01:02.2: ...powerdown ports...
<7>ehci_hcd 0000:01:02.2: supports USB remote wakeup
<6>ehci_hcd 0000:01:02.2: irq 2, io mem 0x40000000
<7>ehci_hcd 0000:01:02.2: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
<7>ehci_hcd 0000:01:02.2: init command 010009 (park)=0 ithresh=1 period=256 RUN
<6>ehci_hcd 0000:01:02.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
<7>usb usb1: default language 0x0409
<7>usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
<6>usb usb1: Product: EHCI Host Controller
<6>usb usb1: Manufacturer: Linux 2.6.17 ehci_hcd
<6>usb usb1: SerialNumber: 0000:01:02.2
<7>usb usb1: uevent
<6>usb usb1: configuration #1 chosen from 1 choice
<7>usb usb1: adding 1-0:1.0 (config #1, interface 0)
<7>usb 1-0:1.0: uevent
<7>hub 1-0:1.0: usb_probe_interface
<7>hub 1-0:1.0: usb_probe_interface - got id
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 2 ports detected
<7>hub 1-0:1.0: standalone hub
<7>hub 1-0:1.0: individual port power switching
<7>hub 1-0:1.0: individual port over-current protection
<7>hub 1-0:1.0: Single TT
<7>hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
<7>hub 1-0:1.0: power on to power good time: 20ms
<7>hub 1-0:1.0: local power source is good
<7>hub 1-0:1.0: enabling power on all ports
<7>hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
<7>drivers/usb/core/inode.c: creating file '001'
<7>eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
<5>SCSI subsystem initialized
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new driver usb-storage
<6>USB Mass Storage support registered.
<6>i2c /dev entries driver
<6>usbcore: registered new driver snd-usb-audio
<7>hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
<7>hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
<7>hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
<7>ehci_hcd 0000:01:02.2: port 1 high speed
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 001005 POWER sig=se0 PE CONNECT
<6>usb 1-1: new high speed USB device using ehci_hcd and address 2
<7>ehci_hcd 0000:01:02.2: port 1 high speed
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 001005 POWER sig=se0 PE CONNECT
<7>usb 1-1: new device strings: Mfr=0, Product=0, SerialNumber=0
<7>usb 1-1: uevent
<6>usb 1-1: configuration #1 chosen from 1 choice
<7>usb 1-1: adding 1-1:1.0 (config #1, interface 0)
<7>usb 1-1:1.0: uevent
<7>hub 1-1:1.0: usb_probe_interface
<7>hub 1-1:1.0: usb_probe_interface - got id
<6>hub 1-1:1.0: USB hub found
<6>hub 1-1:1.0: 4 ports detected
<7>hub 1-1:1.0: standalone hub
<7>hub 1-1:1.0: ganged power switching
<7>hub 1-1:1.0: global over-current protection
<7>hub 1-1:1.0: Single TT
<7>hub 1-1:1.0: TT requires at most 16 FS bit times (1332 ns)
<7>hub 1-1:1.0: Port indicators are supported
<7>hub 1-1:1.0: power on to power good time: 0ms
<7>hub 1-1:1.0: local power source is good
<7>hub 1-1:1.0: no over-current condition exists
<7>hub 1-1:1.0: enabling power on all ports
<7>usb 1-1: link qh256-0001/a1d0d100 start 255 [1/0 us]
<7>drivers/usb/core/inode.c: creating file '002'
<7>hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0000
<7>hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0010
<7>hub 1-1:1.0: port 4, status 0101, change 0001, 12 Mb/s
<7>hub 1-1:1.0: debounce: port 4: total 100ms stable 100ms status 0x101
<7>hub 1-1:1.0: port 4 not reset yet, waiting 10ms
<6>usb 1-1.4: new full speed USB device using ehci_hcd and address 3
<7>hub 1-1:1.0: port 4 not reset yet, waiting 10ms
<7>usb 1-1.4: skipped 10 descriptors after interface
<7>usb 1-1.4: skipped 2 descriptors after interface
<7>usb 1-1.4: skipped 1 descriptor after endpoint
<7>usb 1-1.4: skipped 2 descriptors after interface
<7>usb 1-1.4: skipped 1 descriptor after endpoint
<7>usb 1-1.4: skipped 1 descriptor after interface
<7>usb 1-1.4: default language 0x0409
<7>usb 1-1.4: new device strings: Mfr=0, Product=1, SerialNumber=0
<6>usb 1-1.4: Product: C-Media USB Headphone Set  
<7>usb 1-1.4: uevent
<6>usb 1-1.4: configuration #1 chosen from 1 choice
<7>usb 1-1.4: adding 1-1.4:1.0 (config #1, interface 0)
<7>usb 1-1.4:1.0: uevent
<7>snd-usb-audio 1-1.4:1.0: usb_probe_interface
<7>snd-usb-audio 1-1.4:1.0: usb_probe_interface - got id
<7>usb 1-1.4: adding 1-1.4:1.1 (config #1, interface 1)
<7>usb 1-1.4:1.1: uevent
<7>usb 1-1.4: adding 1-1.4:1.2 (config #1, interface 2)
<7>usb 1-1.4:1.2: uevent
<7>usb 1-1.4: adding 1-1.4:1.3 (config #1, interface 3)
<7>usb 1-1.4:1.3: uevent
<7>drivers/usb/core/inode.c: creating file '003'
<7>hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0010
<7>hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 001002 POWER sig=se0 CSC
<7>hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
<6>usb 1-1: USB disconnect, address 2
<6>usb 1-1.4: USB disconnect, address 3
<7>usb 1-1.4: usb_disable_device nuking all URBs
<7>usb 1-1.4: unregistering interface 1-1.4:1.0
<7>usb 1-1.4:1.0: uevent
<7>usb 1-1.4: unregistering interface 1-1.4:1.1
<7>usb 1-1.4:1.1: uevent
<7>usb 1-1.4: unregistering interface 1-1.4:1.2
<7>usb 1-1.4:1.2: uevent
<7>ehci_hcd 0000:01:02.2: devpath 1 ep1in 3strikes
<7>hub 1-1:1.0: transfer --> -71
<7>usb 1-1: unlink qh256-0001/a1d0d100 start 255 [1/0 us]
<7>ehci_hcd 0000:01:02.2: reused qh a1d0d100 schedule
<7>usb 1-1: link qh256-0001/a1d0d100 start 255 [1/0 us]
<7>usb 1-1: unlink qh256-0001/a1d0d100 start 255 [1/0 us]
<7>usb 1-1.4: unregistering interface 1-1.4:1.3
<7>usb 1-1.4:1.3: uevent
<7>usb 1-1.4: unregistering device
<7>usb 1-1.4: uevent
<7>usb 1-1: usb_disable_device nuking all URBs
<7>usb 1-1: unregistering interface 1-1:1.0
<7>usb 1-1:1.0: uevent
<7>usb 1-1: unregistering device
<7>usb 1-1: uevent
<7>hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
<7>hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
<7>hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
<7>hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
<7>ehci_hcd 0000:01:02.2: port 1 full speed --> companion
<7>ehci_hcd 0000:01:02.2: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

ohci_hcd is required for usb, then ehci_hcd enhances it with usb2.0 support.  so ohci_hcd is a pre-req.  you wont get much over 11 mbps with usb 2.0, at least i havent.  however, having the extra overhead for commands makes things a little better if you've got a lot of devices plugged in (whereas you'll be bandwidth limited and there'll be no place for commands on a usb1.1 connection).  it wont make a difference for your C-Media, although there may be some small tiny difference with a C-Media and a hard drive.

its cpu limited currently.  there's some decent DMA enginges onboard, but i dont think they're used.  i'd be interested in knowing how dma is usually accessed & enabled in linux.  i suspect its assumed to be part of the ide or usb driver normally.

rektide

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

Rektide: thanks!
I also found a good USB rundown at http://www.linux-usb.org/usb2.html.

The evidence tells me my sound dongle, despite the "USB2.0" assertions on the box, is really a USB 1.1 device. (Specifically, /proc/bus/usb/devices shows

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0d8c ProdID=000c Rev= 1.00
S:  Product=C-Media USB Headphone Set
...

It therefore needs to activate the "companion" ohci hub in order to talk directly to the WGT634U, although it uses the hub's embedded transaction translator (TT) when connected thru the external hub and therefore works with the ehci_hcd driver alone in that configuration.

Note for other soundcard users: according to the above site, streaming audio uses isochronous transfers that require some tricky driver operations when running a USB1.1 device thru a USB2.0 hub, due to the transaction translator (TT) operations. It may be more robust in pure 1.1 mode.

I don't know if this is "normal" for the kamikaze builds, but I had to do a manual mount

mount -t usbfs none /proc/bus/usb

in order for lsusb to work.

The NEC D720101 host controller shows up as four (!) busses - an ehci and three ohci's - even though the description here http://www.necel.com/usb/en/product/upd720101.html indicates there are only two ohci's. When ohci_hcd is loaded there are a lot of errors like this during boot:

<3>usb 1-2: device descriptor read/64, error -145
<6>usb 1-2: new low speed USB device using ohci_hcd and address 8
<3>usb 1-2: device not accepting address 8, error -145

which is disconcerting but doesn't seem to keep things from working.

Cheers,
  Chuck

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

wow thanks for the great link, that really makes usb a lot clearer.  i actually just updated my wgt634u's and sure enough, i had the same issue you ahd until i did "mount -t usbfs none /proc/bus/usb".  worked like a charm.

i was hoping the new alsa lib would let me run alsa, but i'm still not getting any apps working with it.  although mpd compiles fine.

cheers mate!

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

Rektide wrote:

i was hoping the new alsa lib would let me run alsa, but i'm still not getting any apps working with it.  although mpd compiles fine.

I've discovered that, in my Kamikaze build,alsa.conf did not get copied over from build_mipsel/alsa-lib-1.0.13/src/conf to /usr/share/alsa/alsa.conf on the WGT634U. Adding that file got me to this point:

root@OpenWrt:~# ls -l /usr/share/alsa
-rw-r--r--    1 root     root         7701 Jan  1 23:45 alsa.conf
root@OpenWrt:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: default [C-Media USB Headphone Set  ], device 0: USB Audio
[USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@OpenWrt:~# aplay -D plughw:0,0  /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

...and sound coming out the headphones. Kewl.
HTH,
  Chuck

6 (edited by sneakywombat 2006-12-23 19:58:49)

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

Heh, thanks for the "mount -t usbfs none /proc/bus/usb" tip.  That helped me too.  I don't suppose either of you guys are using MPD are you?  I just loaded up a wgt634u and i'm pretty excited.  I think I have it "working", but i can't seem to get it to play sound.  Here's what's going down:

root@OpenWrt:/usr/lib/ipkg/info# cat /etc/mpd.conf|less
# MPD CONFIG FILE
# For a full description of all config parameters,
# Check the mpd man page, "man mpd".

##################### REQUIRED ###########################
music_directory         "/tmp" "#"~/music"
playlist_directory      "/tmp" #"~/music"
DB_file                 "/tmp/mpd.db"
log_file                "/tmp/mpd.log"
error_file              "/tmp/mpd.error"
pid_file                "/tmp/mpd.pid"
##########################################################
root@OpenWrt:~# mpd /etc/mpd.conf
Aborted

See the aborted?  sad  I'm totally stumped as to why this is happenning.  More info...

root@OpenWrt:~# ls -la
drwxrwxrwt    6 root     root          240 Jan  1 00:13 .
drwxr-xr-x    7 root     root            0 Jan  1  1970 ..
-rw-r--r--    1 root     root      4042867 Dec 20  2006 02WhyGeorgia.ogg
-rw-r--r--    1 root     root            0 Jan  1 00:00 dhcp.leases
drwxr-xr-x    2 root     root           40 Jan  1 00:00 lock
drwxr-xr-x    2 root     root           80 Jan  1 00:00 log
-rw-r--r--    1 root     root            0 Jan  1 00:03 mpd.error
-rw-r--r--    1 root     root            0 Jan  1 00:03 mpd.log
-rw-r--r--    1 root     root            0 Jan  1 00:03 mpd.pid
-rw-r--r--    1 root     root           67 Jan  1 00:00 resolv.conf
drwxr-xr-x    2 root     root          100 Jan  1 00:00 run
drwxr-xr-x    3 root     root           60 Jan  1 00:00 spool

root@OpenWrt:~# lsusb -vs 002

Bus 002 Device 002: ID 1130:f211 Tenx Technology, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1130 Tenx Technology, Inc.
  idProduct          0xf211
  bcdDevice            1.0b
  iManufacturer           0
  iProduct                2 USB  AUDIO
  iSerial                 0
  bNumConfigurations      1

Any ideas? ...and the lsusb dump of my usb audio "device"

7 (edited by sneakywombat 2006-12-22 22:41:49)

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

good news, i finally got the usb sound to work, no short of a miracle.  Anyway, i've been testing it and although it plays, the sound quality is, well, less that great.  Lots of crackling sounds - i'm continuing to investigate, but I was wondering if anyone had any insight on this, ideas perhaps.

I'm not using alsa, can't seem to get that to work, instead i'm using oss.  Not sure if that matters.  It's either the sound card i'm using, the software, or the encoded music, but i'm pretty sure it's not the music b/c I just ripped it right from the cd, no transcoding involved, just one encode operation to the standard ogg quality, q6.  Also, when playing that same file using foobar2000 in windows, it sounds great. sad

I found this post http://forum.openwrt.org/viewtopic.php?id=6412 and tried using usb 1.1 but it seems to yield the same result.  lots of background noise.  I have also since tried using an mp3 file - same story.

-j

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

Ok, so for the sake of maybe alleviating someone else’s' pain, here's my last update to this thread. Hopefully someone finds it useful. I sort of feel like i'm talking to myself. lol.  anyway, I picked up three different usb audio sticks and that definitely made the difference.  Two are based off of the c-media chipset and work great.  The other is a turtlebeach chipset and has an optical out - which sounds amazing.  So, bottom line, if you don't have a good usb stick, your sound is going to suck whether you use oss or alsa.  Now time for the fun part. smile  The web interface.

-j

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

sneakywombat -- did you figure out why mpd said "aborted" ?

I'm currently at that spot.

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

yeah, the mpd ipkg i was using was too old.  I'm guessing here, but it must have been for the 2.4 kernel.  Since i'm using the 2.6 kernel, i had to compile it myself.  You can get the makefiles for it from here:

https://dev.openwrt.org/wiki <---instructions
svn co https://svn.openwrt.org/openwrt/trunk/ <---kamikaze
svn co https://svn.openwrt.org/openwrt/packages  <---tons of makefiles for a lot of different packages, including everything you need for mpd + mpc.

I pulled everything from svn from both sites and symlinked the two package directories and then re-ran menuconfig and of course, the entire make process.  I can't seem to get individual packages to compile for me so I have to go through the whole stinking (4 hour) process of hitting everything. sad

-j

Re: USB2 on WGT634U (kamikaze, 2.6 kernel)

make package/foo-compile V=99