USB Loading problems, WRT350N, Followed Wiki

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Fri Sep 26, 2008 22:10    Post subject: USB Loading problems, WRT350N, Followed Wiki Reply with quote
After finding that I needed to go from the mega install to the standard due to jffs size restrictions I followed the wiki to a T and my mass storage device (External 1TB Hard Drive) does not mount properly. If anyone has any tips, I am relatively new to DD-WRT and mildly new to linux in general. My dmesg output is below I have bolded the sections that do not seem right to me. I am sure it is a noob mistake but any help is greatly appreciated.

CPU revision is: 0002901a
Linux version 2.4.36 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #312 Sun Jul 27 16:42:02 CEST 2008
Setting the PFC to its default value
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: BCM4785 rev 2 at 300 MHz
Using 150.000 MHz high precision timer.
Calibrating delay loop... 299.82 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: Initializing host
PCI: Enabling CardBus
PCI: Ignoring BAR0-1 of IDE controller 00:06.0
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 = 2) is a 16550A
ttyS01 at 0xb8000400 (irq = 2) is a 16550A
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
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=64
Using buffer write method
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x2b3b55
partition size = 2876436
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007e0000 : "linux"
0x00121bec-0x003e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007e0000-0x00800000 : "nvram"
0x003e0000-0x007e0000 : "ddwrt"
sflash not supported on this router
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
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>
WRT350N GPIO Init
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Broadcom Gigabit Ethernet Driver bcm5700 ver. 8.3.14 (11/2/05)
PCI: Setting latency timer of device 00:01.0 to 64
PHY ID unknown, assume it is a copper PHY.
bcm_robo_attach: Resetting 539x robo switch
Enable WRT350 LED fix
eth1: Broadcom BCM4785 10/100/1000 Integrated Controller found at mem 18010000, IRQ 5, node addr 001a70fc702e
eth1: tranceiver BC050CD0
eth1: tbiflags 0
eth1: Unknown transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
eth1: Using PCI INTX interrupt
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
vlan1: dev_set_promiscuity(master, 1)
device eth1 entered promiscuous mode
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
device vlan2 entered promiscuous mode
vlan2: Setting MAC address to 00 1a 70 fc 70 2f.
vlan2: dev_set_promiscuity(master, 1)
vlan2: dev_set_allmulti(master, 1)
vlan2: dev_set_promiscuity(master, -1)
device vlan2 left promiscuous mode
vlan2: dev_set_allmulti(master, -1)
vlan2: add 01:00:5e:00:00:01 mcast address to master interface
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Setting latency timer of device 00:02.1 to 64
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)

SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.

This was the end of the output...
Sponsor
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Sat Sep 27, 2008 0:13    Post subject: Also.... Reply with quote
I am getting the following when trying to install optware:
conffile /opt/etc/ipkg.conf has no md5sum

anything I can do to resolve this so I can get optware installed?
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Sat Sep 27, 2008 7:46    Post subject: Reply with quote
Sorry for the bump, loaded mega firmware and problem persists. Any help would be greatly appreciated.
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Sun Sep 28, 2008 5:19    Post subject: Reply with quote
I have been playing around all day with a new 350 I got from newegg (v1). I also had a lot of problem just getting it to read a memory stick ..
the only way I could get it to work was disabling USB2 support and enabling both of the usb1.1 support options...
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Sun Sep 28, 2008 6:46    Post subject: Reply with quote
Got this to work finaly....

copy paste this under the Administration-->commands tab in the commands windows then save startup......

The following is posted in the forums but there is an incorrect line for the new version of firmware that I have corrected......

This works. Just reboot and do dmesg from a telnet session and you will see that it resets the usb several times and then (hopefully) it recognizes the flash..

By the way I have enabled Core USB support, USB 2 support and all the different file systems... ( do not have enabled any 1.1 support...
and am running
DD-WRT v24-sp1 (07/27/0Cool mega(SVN revision 10012)

Good Luck...

###############################################

# If rc_startup is being run at some point after bootup
# (later than 2 minutes after uptime)
# then we quit immediately. This should ONLY run at bootup.

# Get uptime and round it to nearest integer
uptime=`cat /proc/uptime | awk -F\. '{print $1}'`

if [ $uptime -gt 120 ]
then
echo "Did not run because uptime is $uptime." >> /tmp/rc_startup.log
exit
fi

# Loop until drive is detected
while [ 1 -eq 1 ]
do
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/ehci-hcd.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
insmod /jffs/lib/modules/2.4.30/sd_mod.o

sleep 4

if dmesg | tail -n10 | grep 'Attached scsi removable disk sda at scsi0' 2>/dev/null 1>/dev/null
then
break
else
rmmod sd_mod
rmmod usb-storage
rmmod scsi_mod
rmmod ehci-hcd
rmmod usbcore

gpio disable 4
sleep 2
gpio enable 4
fi
done
###############################################
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Sun Sep 28, 2008 17:48    Post subject: Well, making headway Reply with quote
I think it might be a problem with my external HDD. It is a Seagate FreeAgent 1TB, and I believe it has a "sleep" setting associated with it. I finally got it to see it thanks to your post, but it disconnects after it is found....dmesg is as follows:

ed new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Seagate Model: FreeAgentDesktop Rev: 100F
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 1953525168 512-byte hdwr sectors (1000205 MB)
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: deregistering driver usb-storage
scsi : 0 hosts left.
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB disconnect on device 00:02.1-1 address 3
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Seagate Model: FreeAgentDesktop Rev: 100F
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 1953525168 512-byte hdwr sectors (1000205 MB)
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: deregistering driver usb-storage
scsi : 0 hosts left.
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB disconnect on device 00:02.1-1 address 3
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Seagate Model: FreeAgentDesktop Rev: 100F
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 1953525168 512-byte hdwr sectors (1000205 MB)
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
usb.c: deregistering driver usb-storage
scsi : 0 hosts left.
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB disconnect on device 00:02.1-1 address 2
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
usb.c: deregistering driver usb-storage
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Seagate Model: FreeAgentDesktop Rev: 100F
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 1953525168 512-byte hdwr sectors (1000205 MB)
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: deregistering driver usb-storage
scsi : 0 hosts left.
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB disconnect on device 00:02.1-1 address 3
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)

Also, I think that loop is not stopping, dmesg contantly changing. I down graded to the standard because I ran out of JFFS space with the mega. My goal with this is to put samba and Ushare on the router to allow NAS and streaming to my xbox 360. I am going to ensure that the USB drivers are installed correctly. I appreciate your help thus far and at least I have it recognizing now....
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Sun Sep 28, 2008 21:01    Post subject: Reply with quote
Ok, I think I might have resolved 1 problem but in the process I may have created a few new ones. I searched the forums and google...let me know what you think. The following is my dmesg output:

Code:
CPU revision is: 0002901a
Linux version 2.4.36 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #312 Sun Jul 27 16:42:02 CEST 2008
Setting the PFC to its default value
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: BCM4785 rev 2 at 300 MHz
Using 150.000 MHz high precision timer.
Calibrating delay loop... 299.82 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: Initializing host
PCI: Enabling CardBus
PCI: Ignoring BAR0-1 of IDE controller 00:06.0
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 enabled
ttyS00 at 0xb8000300 (irq = 2) is a 16550A
ttyS01 at 0xb8000400 (irq = 2) is a 16550A
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
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=64
Using buffer write method
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x2b3b55
partition size = 2876436
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007e0000 : "linux"
0x00121bec-0x003e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007e0000-0x00800000 : "nvram"
0x003e0000-0x007e0000 : "ddwrt"
sflash not supported on this router
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
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
All bugs added by David S. Miller
WRT350N GPIO Init
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Broadcom Gigabit Ethernet Driver bcm5700 ver. 8.3.14 (11/2/05)
PCI: Setting latency timer of device 00:01.0 to 64
PHY ID unknown, assume it is a copper PHY.
bcm_robo_attach: Resetting 539x robo switch
Enable WRT350 LED fix
eth1: Broadcom BCM4785 10/100/1000 Integrated Controller found at mem 18010000, IRQ 5, node addr 001a70fc702e
eth1: tranceiver BC050CD0
eth1: tbiflags 0
eth1: Unknown transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
eth1: Using PCI INTX interrupt
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
vlan1: dev_set_promiscuity(master, 1)
device eth1 entered promiscuous mode
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
device vlan2 entered promiscuous mode
vlan2: Setting MAC address to  00 1a 70 fc 70 2f.
vlan2: dev_set_promiscuity(master, 1)
vlan2: dev_set_allmulti(master, 1)
vlan2: dev_set_promiscuity(master, -1)
device vlan2 left promiscuous mode
vlan2: dev_set_allmulti(master, -1)
vlan2: add 01:00:5e:00:00:01 mcast address to master interface
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Setting latency timer of device 00:02.1 to 64
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device 2 (vend/prod 0xbc2/0x3000) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Seagate   Model: FreeAgentDesktop  Rev: 100F
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 1953525168 512-byte hdwr sectors (1000205 MB)
Partition check:
 /dev/scsi/host0/bus0/target0/lun0: p1
Journalled Block Device driver loaded
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
FAT: Did not find valid FSINFO signature.
Found signature1 0x4e0005 signature2 0xd6e80000 sector=1.
Unable to handle kernel paging request at virtual address 02802260, epc == 80064558, ra == 80066d6c
Oops in fault.c::do_page_fault, line 206:
$0 : 00000000 1000fc00 00000000 00000000 0280225c 80377385 7fff738f 7fff739c
$8 : 80000000 00000002 00000001 00000003 81ac3abc 818b1f08 00000010 00000000
$16: 00000000 80377340 81a82a40 ffffffea 80379420 802da750 0000001e 8004c6ec
$24: 00000000 00000003                   818b0000 818b1e80 818b1f08 80066d6c
Hi : 00000147
Lo : ae147c00
epc   : 80064558    Not tainted
Status: 1000fc03
Cause : 00000008
PrId  : 0002901a
Process dropbear (pid: 674, stackpage=818b0000)
Stack:    00000001 818b1ee0 81a82a40 8188e420 0000001d 00000000 00000000
 00000002 8188e420 81a82a40 8188e4b0 fffffffe 8188e490 818b1f08 8004c6ec
 0000000a 7fff7590 8004bfd0 7fff7619 80038820 8004583c 00000000 fffffff7
 81a82a40 7fff71c0 000003d8 00454aa0 00000400 2ac1bde0 8004c844 00000001
 81a82a40 8004b474 8004b468 7fff739c 7fff738c 000001fc ffffffea 004549b0
 00000009 ...
Call Trace:   [<8004c6ec>] [<8004bfd0>] [<80038820>] [<8004583c>] [<8004c844>]
 [<8004b474>] [<8004b468>] [<800093a0>] [<800093a0>] [<8005f8e8>]
Code: 00000000  10800006  00000000  24420001  e0820004  1040fffc  00000000  03e00008
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Sun Sep 28, 2008 21:31    Post subject: Reply with quote
Looks like you have a big drive connected... whats it formatted with ???
max size for fat is 4g so maybe you have fat32 ???
try formatting the drive with ext2 or ext3. Also do you have usb 1.1 support enabled?? if so disable it and see what happens...
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Sun Sep 28, 2008 22:20    Post subject: Reply with quote
Its formatted with NTFS....if I disable USB 1.1 and enable 2.0 it doesnt see it at all but it is a USB 2.0 compatible device
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Sun Sep 28, 2008 22:53    Post subject: Reply with quote
I was originally working with a flash drive but am now trying a hard drive..
This is what I found...

The drive was originally formatted with fat32. I was not able to mount it so I reformatted the drive to ext2. To do this from windows I downloaded Paragon partition manager trial software and installed it on my XP machine. I then formatted the drive (160g maxtor ultra touch III) using ext2.
I then disabled fat support in dd-wrt and left only:
Core USB Support
USB 2 Support
USB Storage Support
ext2/ext3 File System Support

Dont forget your mount command
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt


this is the dmesg:
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 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.
hub.c: new USB device 00:02.1-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor Model: OneTouch III Rev: 0343
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
root@DD-WRT:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 5.9M 5.9M 0 100% /
/dev/root 5.9M 5.9M 0 100% /
/dev/mtdblock/4 896.0k 732.0k 164.0k 82% /jffs
/dev/scsi/host0/bus0/target0/lun0/part1
133.5G 13.0k 126.0G 0% /mnt



I modified the loop statement again to work correctly and changed this line :

From : if dmesg | tail -n10 | grep 'Attached scsi removable disk sda at scsi0' 2>/dev/null 1>/dev/null

TO: if dmesg | tail -n10 | grep 'Attached scsi' 2>/dev/null 1>/dev/null

So it will work with either Hard drive or flash...
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Mon Sep 29, 2008 0:39    Post subject: Reply with quote
Ok let me give this a try, when I try to ipkg install kmod-usb2 it does not work, but I just want to make sure the HDD mounts properly and I will work on the USB2 support later on...
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Mon Sep 29, 2008 1:18    Post subject: Reply with quote
I don't understand..

Why are you loading kmod-usb2 ????
Everything is built in to this version..
DD-WRT v24-sp1 (07/27/0Cool mega (SVN revision 10012)..
Everything is done from the web interface...
Are you running this version ?????

You don't need to load anything else to get this working....
jonathancnewcomb
DD-WRT Novice


Joined: 23 Sep 2008
Posts: 10

PostPosted: Mon Sep 29, 2008 3:21    Post subject: Reply with quote
No, I downgraded to standard because of JFFS limitations, I couldnt run Ushare (Upnp) and Samba with the mega installed, so I flashed standard. Current running version is: DD-WRT v24-sp1 (07/27/0Cool std
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Mon Sep 29, 2008 6:08    Post subject: Reply with quote
I will try the standard and let you know...
csalcedo
DD-WRT Novice


Joined: 09 Jun 2006
Posts: 15

PostPosted: Mon Sep 29, 2008 7:27    Post subject: Reply with quote
Ok....
Loaded the DD-WRT v24-sp1 (07/27/0Cool std
(SVN revision 10011) version and followed the Wiki here
https://www.dd-wrt.com/wiki/index.php/USB_storage

loaded these modules:
ipkg install kmod-usb-core
ipkg install kmod-usb2
ipkg install kmod-usb-storage

Loaded these files systems:
ipkg install kmod-ext2
ipkg install kmod-vfat


created a usb.startup (in the wiki)
with these lines:
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
insmod /jffs/lib/modules/2.4.30/vfat.o
insmod /jffs/lib/modules/2.4.30/ext2.o

Put this in the web gui commands screen:
for I in `/bin/ls /jffs/etc/config/*.startup`
do
sh $I &
done
###############################################

# If rc_startup is being run at some point after bootup
# (later than 2 minutes after uptime)
# then we quit immediately. This should ONLY run at bootup.

# Get uptime and round it to nearest integer
uptime=`cat /proc/uptime | awk -F\. '{print $1}'`

if [ $uptime -gt 120 ]
then
echo "Did not run because uptime is $uptime." >> /tmp/rc_startup.log
exit
fi

# Loop until drive is detected
while [ 1 -eq 1 ]
do
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/ehci-hcd.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
insmod /jffs/lib/modules/2.4.30/sd_mod.o

sleep 4

if dmesg | tail -n10 | grep 'Attached scsi' 2>/dev/null 1>/dev/null
then
break
else
rmmod sd_mod
rmmod usb-storage
rmmod scsi_mod
rmmod ehci-hcd
rmmod usbcore

gpio disable 4
sleep 2
gpio enable 4
fi
done
###############################################
sleep 2
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt


And got this on my dmesg:
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:02.1-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor Model: OneTouch III Rev: 0343
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

did a mount command:
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt

did df -h and got this:
root@DD-WRT:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 2.8M 2.8M 0 100% /
/dev/root 2.8M 2.8M 0 100% /
/dev/mtdblock/4 4.0M 968.0k 3.1M 24% /jffs
/dev/scsi/host0/bus0/target0/lun0/part1
133.5G 13.0k 126.0G
0% /mnt

So it works for me at usb 2.0 with out any problems (it will loop a few times until it sees the drive that's why you need the command script..)

I even disconnected the hard drive then reconnected it, when I did this it started with the -71 errors again so in the telnet session I cut pasted this :
rmmod sd_mod
rmmod usb-storage
rmmod scsi_mod
rmmod ehci-hcd
rmmod usbcore

then I cut pasted this :
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/ehci-hcd.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
insmod /jffs/lib/modules/2.4.30/sd_mod.o

I did this a couple of time until it recognized the drive again....

So I don't know what you may have going on but it does work for me without any problems....(once I do all the craziness..)
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum 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