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
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 0:45    Post subject: Reply with quote
Now then I get that setup how do I make my initial compile run? The docs on the wiki are not that great considering they are geared towards v23 and I saw that you were having some issue so I was wondering how you got to where you are.
Sponsor
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 112

PostPosted: Sat Mar 01, 2008 6:25    Post subject: Reply with quote
Not works for my :

My config WRZ-RS-G54HP moded to USB !

My recent firmware is
"dd-wrt.v24_std_generic.RC5.usb-webcam-mod-automount-thttpd-samba-swat-xinetd-proftpd-portmap-unfsd-e2fsprogs-busybox-swap.bin" and it's works FINE !

I have changed to this build 's and my PEN DRIVE is not detected !

My nvram set

nvram set usb_enable=1
nvram set usb_uhci=1
nvram set usb_usb2=1
nvram set usb_printer=1
nvram set usb_storage=1
nvram set usb_fs_ext2=1
nvram set usb_fs_ext3=1
nvram set usb_fs_fat=1
nvram set usb_fs_xfs=1
nvram commit

and reboot
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 7:22    Post subject: Reply with quote
Please post the following for me.

Dmesg output
/tmp/usb_lsmod.txt
/tmp/usb_nvram.txt

The last two if they exist.

I think I remember CaScAdE doing something specific for that model.
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 112

PostPosted: Sat Mar 01, 2008 12:36    Post subject: Reply with quote
Code:

DD-WRT v24 std (c) 2007 NewMedia-NET GmbH
Release: 11/22/07 (SVN revision: 8422)

DD-WRT login: root
Password:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.4.2 (2007-11-24 17:34:58 CET) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# dmesg
CPU revision is: 00029006
Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.4 (OpenWrt-2.0)) #2715 Sat N
ov 24 17:38:59 CET 2007
Setting the PFC to its default value
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons
ole=ttyS0,115200
CPU: BCM4704 rev 8 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 262.96 BogoMIPS
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
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-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
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
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.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x3af497
Updating TRX offsets and length:
old trx = [0x0000001c, 0x000008e4, 0x000897b0], len=0x0043a000 crc32=0x2a8e21f9
new trx = [0x0000001c, 0x000008e4, 0x000897b0], len=0x00440000 crc32=0x8bc5870e
Done
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000c97b0-0x00480000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x007f0000-0x00800000 : "nvram"
0x00480000-0x007f0000 : "ddwrt"
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_osf: Startng OS fingerprint matching module.
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
PCI: Setting latency timer of device 01:01.0 to 64
PCI: Enabling device 01:01.0 (0004 -> 0006)
eth2: Broadcom BCM4320 802.11 Wireless Controller 4.80.56.0
device eth0 entered promiscuous mode
device eth2 entered promiscuous mode
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:18:16 Feb  3 2007
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uhci.c: USB Universal Host Controller Interface driver v1.1
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 1
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
usb-uhci.c: $Revision: 1.275 $ time 13:18:16 Feb  3 2007
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Linux video capture interface: v1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:03.0-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: BUFFALO   Model: ClipDrive         Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
pwc Philips webcam module version 9.0.2 loaded.
pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC
830/840.
pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 a
nd 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
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
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.
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
Partition check:
 /dev/scsi/host0/bus0/target0/lun0: p1 p2
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
device eth1 entered promiscuous mode
device br0 entered promiscuous mode
usb.c: registered new driver spca5xx
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
usb.c: registered new driver quickcam
Journalled Block Device driver loaded
MASQUERADE: Route sent us somewhere else.
MASQUERADE: Route sent us somewhere else.
device br0 left promiscuous mode
device eth1 left promiscuous mode
MASQUERADE: Route sent us somewhere else.
device eth0 left promiscuous mode
device eth2 left promiscuous mode
device eth0 entered promiscuous mode
device eth2 entered promiscuous mode
device eth1 entered promiscuous mode
device br0 entered promiscuous mode
root@DD-WRT:~#
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 112

PostPosted: Sat Mar 01, 2008 12:54    Post subject: Reply with quote
firmware 9134

Code:

usb_nvram.txt

usb_storage=1
usb_fs_ext2=1
usb_fs_ext3=1
usb_printer=1
usb_usb2=1
usb_fs_xfs=1
usb_fs_fat=1
usb_uhci=1
usb_enable=1

usb_lsmod.txt

Module         Size  Used by
printer                 9788   0 (unused)
xfs                   561120   0 (unused)
vfat                   11692   0 (unused)
fat                    36840   0 [vfat]
ext3                   72788   0 (unused)
jbd                    54904   0 [ext3]
ext2                   41512   0 (unused)
usb-storage            65328   0 (unused)
sd_mod                 12452   0 (unused)
ip_nat_pptp             2428   0 (unused)
ip_conntrack_pptp       2860   1
ip_nat_proto_gre        1664   0 (unused)
scsi_mod               70488   1 [usb-storage sd_mod]
ip_conntrack_proto_gre    2568   0 [ip_nat_pptp ip_conntrack_pptp]
usbcore                74792   0 [printer usb-storage]

and

dmesg


DD-WRT v24 std (c) 2008 NewMedia-NET GmbH
Release: 02/27/08 (SVN revision: 9134)

DD-WRT login: root
Password:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.9.0 (2008-02-27 06:44:04 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# dmesg
CPU revision is: 00029006
Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #748 Wed Fe
b 27 06:47:42 CET 2008
Setting the PFC to its default value
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons
ole=ttyS0,115200
CPU: BCM4704 rev 8 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 263.78 BogoMIPS
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
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-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
Broadcom Watchdog Timer: 0.05, timer margin: 30 sec
PCI: Setting latency timer of device 00:01.0 to 64
PCI: Setting latency timer of device 00:02.0 to 64
PCI: Setting latency timer of device 01:01.0 to 64
PCI: Enabling device 01:01.0 (0004 -> 0006)
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.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x2fd102
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x00121500-0x00420000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x007f0000-0x00800000 : "nvram"
0x00420000-0x007f0000 : "ddwrt"
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_osf: Startng OS fingerprint matching module.
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
device eth0 entered promiscuous mode
device eth2 entered promiscuous mode
device eth1 entered promiscuous mode
device eth1 left promiscuous mode
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Journalled Block Device driver loaded
SGI XFS with no debug enabled
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
root@DD-WRT:~#
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 15:21    Post subject: Reply with quote
Heh. Odd. I'll send over a PM to CaScAdE and see what he did to get it to work on that model.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 15:40    Post subject: Reply with quote
Ahh... I think I see where it is going wrong. I opted to not include the ohci usb modules where CaScAdE has done so. I think OHCI is also USB 1.1 support so I will add the module, rebuild the firmware, test it, then release it as build 4.

BTW, Since typically you probably will only need either uhci or ohci I will leave them seperately configurable.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 16:18    Post subject: Reply with quote
@braza

Ok. I've built and tested a new firmware on my router. I've also uploaded a new public build onto the website. It is Build 4. Make sure you enable usb_ohci and commit it so that it loads the module. I've also updated my readme file and the build log on the first post.
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Sat Mar 01, 2008 16:36    Post subject: Reply with quote
shinji257

I am going to work on update the below thread for instructions on how to compile for svn. The few roadblocks I ran into will be explained there.

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=153563#153563
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 17:57    Post subject: Reply with quote
Thanks! :wink:

*bookmarks the article and hurries up to gets VPC 2007 from MS TechNet just for this purpose*

*finds that he can't access TechNet :'(*
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Sat Mar 01, 2008 18:17    Post subject: Reply with quote
shinji257 wrote:
Thanks! :wink:

*bookmarks the article and hurries up to gets VPC 2007 from MS TechNet just for this purpose*

*finds that he can't access TechNet :'(*



http://www.microsoft.com/windows/downloads/virtualpc/default.mspx

The steps posted so far should get you to compile a mini version.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat Mar 01, 2008 18:19    Post subject: Reply with quote
I knew that but now I need to call Microsoft and ask what is going on with TechNet. Wink
braza
DD-WRT User


Joined: 09 Oct 2006
Posts: 112

PostPosted: Sun Mar 02, 2008 5:01    Post subject: Reply with quote
@shinji257
Perfect..the build B4 detects my pen drive !
Very Happy

hehe.. wzr-rs-g54HP with usb mod..so happy !
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sun Mar 02, 2008 5:04    Post subject: Reply with quote
Glad you like it. Maybe I'll see about trying to get the web gui integration to work. I am also setting up a build environment so I may get 2.4.35 native modules into the firmware.
mauzer
DD-WRT Novice


Joined: 23 Feb 2008
Posts: 5

PostPosted: Sun Mar 02, 2008 22:09    Post subject: Reply with quote
@shinji257
hi, is your firmware compatible with 5354 broadcom chips? like eko's NEWD firmwares? if not, can i bother you to do one? i would really appreciate it. Very Happy thanks and more power
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next Display posts from previous:    Page 2 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