OpenWrt Forum Archive

Topic: Kamikaze brcm47xx-2.6 on WL500G - USB not working...

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

I have a Diamond Digital R100, which we all know is just a normal WL-500G in a slightly different case. Inspection of the board itself reveals that the board says WL-500G... so it's the same device.

But anyway, I'm running the brcm47xx branch on it because I need the 2.6 kernel to be able to drive two UVC webcams. It has been flashed with openwrt-brcm47xx-2.6-squashfs.trx.

I installed kmod-usb-uhci, kmod-usb-ohci and usbutils, and mounted usbfs on /proc/bus/usb. However, it is empty.

root@OpenWrt:/# dmesg | grep USB
USB Universal Host Controller Interface driver v3.0
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver

seems to indicate that the USB drivers loaded but couldn't see any hardware. Following the same steps when the unit is running brcm-2.4 results in it seeing the USB controller, USB hub and the two cameras. However, I can't use the cameras because... linux-UVC isn't supported on 2.4 kernels.

I don't really care about the Broadcom wifi not working on this branch as there is no WiFi card in the unit (I removed it to go somewhere else). I'm using it as a webcam server (or at least wanting to).

So is there a way to exit this catch-22? I'm looking for:
a) a way to get the USB bus working on the 2.6 kernel
b) a backport of linux-UVC to the 2.4 kernel
c) another device that supports this better (thinking of going to PC Engines ALIX, but that might be overkill...)

Have I overlooked something very simple?

(Last edited by themacuser on 22 Nov 2007, 09:35)

I have an similar situation with wl-700ge. I wrote about the issue to wl700ge forum, but did not receive any replies. I hope someone could help out. Could this be due wrong modules or what could be the reason?

Please help!

http://wl500g.info/showthread.php?t=11652

---------------klipeti klip -------------------------------------

I have Asus wl-700ge with Kamikaze 7.09 from http://wl700g.homelinux.net/portal/c...egory/5/16/30/

I installed this version as I had problems with booting from HDD, with other versions.

But. Now I'm not able to find USB devices. Currently I have USB disk and USB sound gateway plugged into the router.

root@storm:~# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


If I do lsusb -v, there is still not hdd or audio gw. Instead I get the following errors to my dmesg

usbdevfs: USBDEVFS_CONTROL failed dev 1 rqt 128 rq 6 len 10 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 1 rqt 128 rq 6 len 4 ret -32


Any advice? I'm pretty confused with the usb ehci, ohci, uhci etc.


lsmod

Module Size Used by Tainted: P
snd-usb-audio 51944 0 (unused)
snd-usb-lib 11380 0 [snd-usb-audio]
snd-pcm-oss 40372 0 (unused)
snd-mixer-oss 14632 0 [snd-pcm-oss]
snd-pcm 67012 0 [snd-usb-audio snd-pcm-oss]
snd-timer 18632 0 [snd-pcm]
snd-hwdep 6008 0 [snd-usb-audio]
snd-rawmidi 17352 0 [snd-usb-lib]
snd 42840 0 [snd-usb-audio snd-usb-lib snd-pcm-oss snd-mixer-oss snd-pcm snd-time
r snd-hwdep snd-rawmidi]
snd-page-alloc 6688 0 [snd-usb-audio snd-mixer-oss snd-pcm snd-timer snd-hwdep snd-rawmidi
snd]
videodev 8016 0 (unused)
printer 9852 0 (unused)
usb-ohci 19252 0 (unused)
wlcompat 14944 0 (unused)
uhci 29044 0 (unused)
ip_nat_snmp_basic 8912 0 (unused)
ip_nat_pptp 2412 0 (unused)
ip_conntrack_pptp 2940 1
ip_nat_rtsp 5488 0 (unused)
ip_conntrack_rtsp 4816 1
ip_nat_mms 3040 0 (unused)
ip_conntrack_mms 3344 1
ip_nat_h323 2248 0 (unused)
ip_conntrack_h323 2320 1
ip_nat_proto_gre 1552 0 (unused)
ip_conntrack_proto_gre 2256 0 [ip_nat_pptp ip_conntrack_pptp]
ip_conntrack_amanda 1232 0 (unused)
ip_conntrack_tftp 1712 0 (unused)
ip_nat_irc 2336 0 (unused)
ip_conntrack_irc 3128 1
ip_nat_ftp 2960 0 (unused)
ip_conntrack_ftp 4272 1
ipt_NETMAP 624 0 (unused)
ipt_REDIRECT 640 0 (unused)
ipt_MIRROR 1296 0 (unused)
soundcore 4048 0 [snd]
ppp_async 7884 0 (unused)
vfat 11340 0 (unused)
fat 34448 0 [vfat]
nfsd 93128 0 (unused)
nfs 88712 0 (unused)
lockd 61804 0 [nfsd nfs]
sunrpc 76912 0 [nfsd nfs lockd]
ext2 40304 0 (unused)
pppoe 9320 1
pppox 1196 1 [pppoe]
wl 630776 0 (unused)
ppp_generic 22300 3 [ppp_async pppoe pppox]
slhc 6064 0 [ppp_generic]
usb-storage 68240 0 (unused)
sd_mod 12500 0 (unused)
scsi_mod 66048 1 [usb-storage sd_mod]
ehci-hcd 20556 0 (unused)
usbcore 71296 1 [snd-usb-audio snd-usb-lib printer usb-ohci uhci usb-storage ehci-hcd
]
ext3 71388 2
jbd 51136 2 [ext3]
ide-disk 16412 3
ide-detect 188 0 (unused)
aec62xx 6892 1
ide-core 113088 3 [ide-disk ide-detect aec62xx]
switch-robo 4540 0 (unused)
switch-core 4864 0 [switch-robo]
diag 25520 0 (unused)


dmesg (partly)


Journalled Block Device driver loaded
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 2, pci mem c0122000
usb.c: new USB bus registered, assigned bus number 1
EHCI: Enabling VIA 6212 workarounds
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.


uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Enabling device 01:03.0 (0000 -> 0001)
uhci.c: USB UHCI at I/O 0x200, IRQ 2
usb.c: new USB bus registered, assigned bus number 2
uhci: USBCMD_HCRESET timed out!
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Enabling device 01:03.1 (0000 -> 0001)
uhci.c: USB UHCI at I/O 0x220, IRQ 2
usb.c: new USB bus registered, assigned bus number 3
uhci: USBCMD_HCRESET timed out!
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: $Revision: 1.275 $ time 14:41:48 Oct 12 2007
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Setting latency timer of device 00:03.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:4715
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Linux video capture interface: v1.00
usb.c: registered new driver snd-usb-audio

usbdevfs: USBDEVFS_CONTROL failed dev 1 rqt 128 rq 6 len 10 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 1 rqt 128 rq 6 len 4 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 1 rqt 128 rq 6 len 10 ret -32
usbdevfs: USBDEVFS_CONTROL failed dev 1 rqt 128 rq 6 len 4 ret -32

# ipkg list_installed

alsa-lib - 1.0.13-1 -
alsa-utils - 1.0.13-1 -
base-files-brcm-2.4 - 10-9364 -
bridge - 1.0.6-1 -
busybox - 1.4.2-2 -
dnsmasq - 2.39-1 -
dropbear - 0.50-2 -
e2fsprogs - 1.39-1 -
empcd - 2005.12.12-1 -
ethtool - 3-0 -
ez-ipupdate - 3.0.11b8-3 -
fdisk - 2.12r-2 -
haserl - 0.8.0-2 -
ip - 2.6.20-070313-1 -
ipkg-opt - 0.99.163-9 -
iptables - 1.3.7-1 -
iptables-mod-nat - 1.3.7-1 -
kernel - 2.4.34-brcm-1 -
kismet-server - 2007-01-R1a-1 -
kmod-brcm-wl - 2.4.34+4.80.53.0-1 -
kmod-diag - 2+2.4.34-brcm-1 -
kmod-fs-ext2 - 2.4.34-brcm-1 -
kmod-fs-ext3 - 2.4.34-brcm-1 -
kmod-fs-nfs - 2.4.34-brcm-1 -
kmod-fs-nfsd - 2.4.34-brcm-1 -
kmod-fs-vfat - 2.4.34-brcm-1 -
kmod-ide-aec62xx - 2.4.34-brcm-1 -
kmod-ide-core - 2.4.34-brcm-1 -
kmod-ipt-nat - 2.4.34-brcm-1 -
kmod-ipt-nathelper - 2.4.34-brcm-1 -
kmod-ipt-nathelper-extra - 2.4.34-brcm-1 -
kmod-ppp - 2.4.34-brcm-1 -
kmod-pppoe - 2.4.34-brcm-1 -
kmod-scsi-core - 2.4.34-brcm-1 -
kmod-sound-core - 2.4.34-brcm-1 -
kmod-switch - 2.4.34-brcm-1 -
kmod-usb-core - 2.4.34-brcm-1 -
kmod-usb-ohci - 2.4.34-brcm-1 -
kmod-usb-printer - 2.4.34-brcm-1 -
kmod-usb-storage - 2.4.34-brcm-1 -
kmod-usb-uhci - 2.4.34-brcm-1 -
kmod-usb-uhci-iv - 2.4.34-brcm-1 -
kmod-usb2 - 2.4.34-brcm-1 -
kmod-videodev - 2.4.34-brcm-1 -
kmod-wlcompat - 2.4.34+brcm-6 -
libelf - 0.8.8-1 -
libflac - 1.1.2-1 -
libgcc - 3.4.6-10 -
libgpg-error - 1.0-1 -
libid3tag - 0.15.1b-1 -
libmad - 0.15.1b-1 -
libncurses - 5.6-1 -
libnetsnmp - 5.1.2-2.3 -
libpcap - 0.9.4-1 -
libpcre - 7.2-2 -
libpopt - 1.7-4 -
libpthread - 0.9.28-10 -
libusb - 0.1.12-1 -
libuuid - 1.39-1 -
libvorbisidec - 1.2.0-dave-1 -
maradns - 1.2.12.06-1 -
mpc - 0.12.1-1 -
mpd - 0.13.0-1 -
mtd - 5 -
nano - 2.0.6-1 -
nas - 4.80.53.0-1 -
nvram - 1 -
pciutils - 2.2.1-1 -
ppp - 2.4.3-8 -
ppp-mod-pppoe - 2.4.3-8 -
privoxy - 3.0.6-3 -
rsync - 2.6.5-1 -
screen - 4.0.3-1 -
snmpd - 5.1.2-2.3 -
swap-utils - 2.12r-2 -
uclibc - 0.9.28-10 -
uclibc-opt - 0.9.28-12 -
uclibcxx - 0.2.2-1 -
usbutils - 0.72-1 -
vsftpd - 2.0.5-2 -
webif - 0.3-8 -
webif-theme-xwrt-mini - 0.3-8 -
wireless-tools - 29-1 -
wlc - 4.80.53.0-1 -
xinetd - 2.3.13-2 -
zlib - 1.2.3-4 -

----------- klipeti klip ----------------

@themacuser:

Hello,
I wrote the linux-uvc Makefile for Kamikaze and tested it with Asus WL-500gP and uvc_streamer/mjpg-streamer. This works well with the integrated USB2 ports. I also have a quite old WL-500g with an USB1.1 port which was used with a Philips Webcam (PVC690 and PVC680 or so). I had issues with uhci and ohci modules installed in parallel. Just install the ohci modules and try again, perhaps your issues are gone. In general the USB port is working for the Asus 500g, of course it is just the slow USB1.1 but most Linux-UVC compatible cameras should work (with low resolution perhaps) and be visible at least. Can you try just to use the ohci modules please?

Greetings,
Tom

(Last edited by Tom on 26 Nov 2007, 14:26)

The discussion might have continued from here.