Adding USB support into firmware

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Sat Mar 08, 2008 17:02    Post subject: Reply with quote
What if we make and use /usb as default mount point?
Sponsor
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 08, 2008 18:26    Post subject: Reply with quote
Yes. That would be a good idea. On the other hand there are alot of setups that use /opt and /mnt. /mnt would be the data and /opt for programs that load on the routers. I just dropped a suggestion for possibly making it user configurable. Choices would be as follows but /usb as a default would be good since it would make it easy to find.

/usb
/opt (standard optional applications location)
/mnt (standard data partition mount)
User created folder in /tmp
User created folder in /jffs

Note that because of this last entry we should dis-allow mounting to /jffs from the web gui.

As of right now the following happens with jffs space.

* ipkg points there for new package installation -- this can be resolved with a new destination entry in ipkg.conf

* startup scripts are run from there during bootup. This could be resolved by adding additional lines to run scripts located on the drive post-mount during bootup. They would be located at the usual location of etc/config.

That would do it I think.
Trailblazer
DD-WRT Novice


Joined: 23 Nov 2007
Posts: 44

PostPosted: Sat Mar 08, 2008 19:39    Post subject: Dream come true... Reply with quote
Thanks for all your hard work guys! I really appreciate it!
_________________
DD-WRT Enabled Beasts:
WRT610N - CFE .16/7 13527M K2.6 Eko
WHR-HP-G54 - v.24 special build 12188
WRT-54Gv8 - V24 RC5 Micro
WTR54GS V2.0 - V24 Final Micro
khulit
DD-WRT Novice


Joined: 08 Mar 2008
Posts: 9

PostPosted: Sat Mar 08, 2008 22:45    Post subject: Reply with quote
I need some help making the webcams work off a USB hub... The cameras work if I use it direct to the ASUS WL500gP USB ports, but if I use a USB hub, all I get are broken links for the pics... I've tried putting one webcam direct to the port, and the other into the USB Hub... the one connected to the USB Hub doesn't show the pics... the other webcam works... here's my Dmesg:
---------------------
Quote:
CPU revision is: 00029006
Linux version 2.4.34 (root@dd-wrt) (gcc version 3.4.4 (OpenWrt-2.0)) #1950 Sat Jul 21 00:41:40 CEST 2007
Setting the PFC value as 0x15
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
CPU: BCM4704 rev 9 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 263.78 BogoMIPS
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-0Cool with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
Software Watchdog Timer: 0.05, timer margin: 60 sec
PCI: Setting latency timer of device 00:01.0 to 64
PCI: Setting latency timer of device 00:02.0 to 64
imq driver loaded.
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
Physically mapped flash: squashfs filesystem found at block 829
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x007f0000 : "linux"
0x000cf618-0x003fe53e : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x00400000-0x007f0000 : "ddwrt"
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus]
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
IPP2P v0.8.2 loading
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
cdp: Linux Cisco Discovery Protocol 0.2.3
cdp: 2002/03/07 C. Crowther and t. burkart
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
ds: no socket drivers loaded!
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
eth2: Broadcom BCM4318 802.11 Wireless Controller 3.90.39.0
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
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
device eth2 entered promiscuous mode
vlan1: Setting MAC address to 00 18 f3 85 6a 88.
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 c0006000
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
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 0x100, IRQ 2
usb.c: new USB bus registered, assigned bus number 2
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 0x120, IRQ 2
SCSI subsystem driver Revision: 1.00
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 01:03.2-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
Linux video capture interface: v1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
pwc Philips webcam module version 9.0.2 loaded.
pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
usb.c: registered new driver Philips webcam
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
pwc Philips webcam decompressor routines version 9.0-BETA-2
pwc Supports all cameras supported by the main module (pwc).
pwc Adding decompressor for model 645.
pwc Adding decompressor for model 646.
pwc Adding decompressor for model 675.
pwc Adding decompressor for model 680.
pwc Adding decompressor for model 690.
pwc Adding decompressor for model 720.
pwc Adding decompressor for model 730.
pwc Adding decompressor for model 740.
pwc Adding decompressor for model 750.
hub.c: new USB device 01:03.2-1.3, assigned address 3
usb.c: USB device 3 (vend/prod 0x46d/0x8a9) is not claimed by any active driver.
hub.c: new USB device 01:03.0-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x46d/0x8ad) is not claimed by any active driver.
usb.c: registered new driver spca5xx
drivers/usb/spca5xx.c: USB SPCA5XX camera found. Logitech QC Communicate STX
drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type JPEG
Journalled Block Device driver loaded
drivers/usb/zc3xx.h: [zc3xx_config:558] Find Sensor HV7131R(c)
drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 640 maxh 480 minw 176 minh 144
drivers/usb/spca5xx.c: USB SPCA5XX camera found. Logitech Notebooks Deluxe Zc0302 + Hdcs2020
drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type JPEG
drivers/usb/zc3xx.h: [zc3xx_config:558] Find Sensor HV7131R(c)
drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 640 maxh 480 minw 176 minh 144
drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registered
usb.c: registered new driver ov51x
ov51x.c: v1.65-1.12-mark : ov51x USB Camera Driver
ov511_decomp.c: v1.6 : OV511 Decompression Module
ov518_decomp.c: v1.3 : OV518 Decompression Module
hcd.c: use explicit queuing not urb->next
drivers/usb/spca5xx.c: init isoc: usb_submit_urb(0) ret -22
drivers/usb/spca5xx.c: [spca5xx_open:2437] DEALLOC error on init_Isoc
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 08, 2008 23:06    Post subject: Reply with quote
Is the hub powered? It may be that the webcam on the hub is getting insufficient power. I know my external hard drive needs to have an AC adapter connected to it to even get going even though it works fine on my laptop without.
extasy
DD-WRT User


Joined: 30 Oct 2007
Posts: 52

PostPosted: Sun Mar 09, 2008 1:11    Post subject: Reply with quote
Eko,

A quick question:
Have you added the serial modules in your mega release?
Will BS release also be built upon usb support for mega?

shinji257 are you still planing on continue your releases and add script for auto mounting etc? Or will you add this into the official releases?
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sun Mar 09, 2008 1:25    Post subject: Reply with quote
Actually the support I wanted is in the main releases now so there is no more real need for mine. On the other hand it wouldn't be too difficult to make a new modified build against the last one which would include serial support but I would cut out the ext3 and xfs modules.

OTOH I am planning on making a new nokaid usb build once I get another Asus router so if you are willing to wait I will be trying to integrate the serial support into subversion. The kernel code is there. It just isn't enabled and integrated. Trust me it is on my todo list. The following items are planned for purchase...

1x ASUS WL-500g Premium router
2x PPA 3321 USB to Serial converters
khulit
DD-WRT Novice


Joined: 08 Mar 2008
Posts: 9

PostPosted: Sun Mar 09, 2008 1:54    Post subject: Reply with quote
It is powered, and right now only the 2nd webcam is connected to it, while the 1st webcam is connected to the WL500gP's port (which is the current one working)... the 2nd webcam seems to be working, but there is no output on the web.

shinji257 wrote:
Is the hub powered? It may be that the webcam on the hub is getting insufficient power. I know my external hard drive needs to have an AC adapter connected to it to even get going even though it works fine on my laptop without.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sun Mar 09, 2008 2:15    Post subject: Reply with quote
Heh. I'll look into this when I get a chance. Do you have any issues with usb flash drives on your hub?

P.S. - I just connected and disconnected a flash drive to a hub without issue.

EDIT: Never did ask but which firmware are you using? The standard firmware does not have webcam support included yet. This may come once all the other issues are ironed out. I am going to work with mini and nokaid usb enabled builds.
khulit
DD-WRT Novice


Joined: 08 Mar 2008
Posts: 9

PostPosted: Sun Mar 09, 2008 4:44    Post subject: Reply with quote
I'm using dd-wrt.v23_vpn_generic.0721.usb-webcam-mod-0.3-allusbmodules.bin

Didn't try the usb hdd on the hub yet... I'm planning on putting a small USB m2 card reader for a 8GB memstick micro that I got for free and use it as a USB flash drive direct to the 1st USB port, and use the 2nd port to connect a USB powered hub and connect webcams and other devices... The USB Flash drive, I was planning to put optware for thttpd+php, samba, etc...

I could probably just put the USB flash on the USB hub, but I think it is better to plug it directly since it will also be a swap drive...

Thanks!!!

shinji257 wrote:
Heh. I'll look into this when I get a chance. Do you have any issues with usb flash drives on your hub?

P.S. - I just connected and disconnected a flash drive to a hub without issue.

EDIT: Never did ask but which firmware are you using? The standard firmware does not have webcam support included yet. This may come once all the other issues are ironed out. I am going to work with mini and nokaid usb enabled builds.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sun Mar 09, 2008 5:39    Post subject: Reply with quote
Ahh.. Ok. Then in that case you will want to ask CaScAdE why it isn't working in that one. This thread is concerning the official USB support that is being worked on. The builds that other forum members had created do not apply in this thread.
jnjn
DD-WRT User


Joined: 07 Jun 2006
Posts: 448
Location: PRC

PostPosted: Sun Mar 09, 2008 15:57    Post subject: Reply with quote
Bird333 wrote:
which directory do I put this in? I got p910nd in '/jffs/usr/sbin', and /jffs/etc/init.d. Will this finally allow bidirectional communication?


i think you can put it anywhere, just remember to call it when from where you put it. if you'd like to replace the old binary, you can put it in /jffs/usr/sbin.

i think the p910nd utility is always supposed to be allowing bidirectional comunication?
to my knowledge, some windows drivers won't work without bi-dir com. my printer (a canon pixma ip1 600) prints fine, but the printer monitor (in windows) won't show any status information of the printer, donno why.
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Sun Mar 09, 2008 16:00    Post subject: Reply with quote
Just to let you know, build 9281: mini_usb and mega have now also ext3 inside. Only nokaid_usb has only ext2.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sun Mar 09, 2008 16:55    Post subject: Reply with quote
According to the p910nd documentation you need to enable bi-directional support using -b switch. Try that and see if it works.
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Sun Mar 09, 2008 17:20    Post subject: Reply with quote
jnjn wrote:

i think you can put it anywhere, just remember to call it when from where you put it. if you'd like to replace the old binary, you can put it in /jffs/usr/sbin.

i think the p910nd utility is always supposed to be allowing bidirectional comunication?
to my knowledge, some windows drivers won't work without bi-dir com. my printer (a canon pixma ip1 600) prints fine, but the printer monitor (in windows) won't show any status information of the printer, donno why.


Yeah, print monitor info doesn't work still.
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next Display posts from previous:    Page 7 of 10
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum