some usb-related modules not registering

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
darkeye
DD-WRT Novice


Joined: 11 Dec 2006
Posts: 3

PostPosted: Sun Jan 04, 2009 10:28 am    Post subject: some usb-related modules not registering Reply with quote
I'm trying to access a USB storage device from my ASUS WL-500gP V2, but it doesn't seem to work. I'm using the dd-wrt.v24_mega_generic.bin firmware, and I also read the thread at http://dd-wrt.com/phpBB2/viewtopic.php?t=33484| and the page at http://dd-wrt.com/wiki/index.php/USB_storage

having enabled USB at the admin page, etc., I can't be able to load some of the related modules. I'm staring with:

Code:

# lsmod
Module                  Size  Used by
ip_nat_pptp             2428   0 (unused)
ip_conntrack_pptp       2860   1
ip_nat_proto_gre        1664   0 (unused)
ip_conntrack_proto_gre    2568   0 [ip_nat_pptp ip_conntrack_pptp]
jffs2                 159080   1
switch-robo             5356   0 (unused)
switch-core             6416   0 [switch-robo]


then starting to load the modules:

Code:

insmod usbcore
insmod ehci-hcd


gives me:

Code:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:03.1: PCI device 14e4:471a
ehci_hcd 00:03.1: irq 6, pci mem b8003800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:03.1: illegal capability!
ehci_hcd 00:03.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:03.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:03.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)


and trying to load additional modules, like scsi-mod, usb-storage simply doesn't work:

Code:

root@DD-WRT:~# insmod scsi-mod
root@DD-WRT:~# insmod usb-storage
root@DD-WRT:~# lsmod   
Module                  Size  Used by
ehci-hcd               22060   0 (unused)
usbcore                81880   0 [ehci-hcd]
ip_nat_pptp             2428   0 (unused)
ip_conntrack_pptp       2860   1
ip_nat_proto_gre        1664   0 (unused)
ip_conntrack_proto_gre    2568   0 [ip_nat_pptp ip_conntrack_pptp]
jffs2                 159080   1
switch-robo             5356   0 (unused)


maybe I'm missing something obvious - what am I doing wrong?
Sponsor
staticsage
DD-WRT Novice


Joined: 14 Jun 2006
Posts: 6

PostPosted: Sat Jan 17, 2009 5:54 am    Post subject: Reply with quote
You need usb-ohci.o instead of ehci-hcd
skygunner
DD-WRT User


Joined: 28 Dec 2008
Posts: 82

PostPosted: Sat Jan 17, 2009 7:50 am    Post subject: Reply with quote
you need to use at least svn 10404 tng to get USB work properly on wl-500g P v2

v24 sp1 is 10012

I'm using svn 11296, sometimes it still can't find the usb device after reboot. Need to plug out and plug into another usb port. Most of the time it works fine. The latest svn is recommended.

dmesg output


Quote:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
USB20H syn01 register : 0xfe00fe
USB20H syn03 register : 0x1
PCI: Setting latency timer of device 00:03.1 to 64
ehci_hcd 00:03.1: PCI device 14e4:471a
ehci_hcd 00:03.1: irq 6, pci mem b8003800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:03.1: illegal capability!
ehci_hcd 00:03.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.
Journalled Block Device driver loaded
hub.c: new USB device 00:03.1-1, assigned address 2
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
hub.c: new USB device 00:03.1-1.1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
hub.c: new USB device 00:03.1-1.1, assigned address 4
usb.c: USB device not accepting new address=4 (error=-71)
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: del 01:00:5e:00:00:01 mcast address from vlan interface
vlan0: del 01:00:5e:00:00:01 mcast address from master interface
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 eth1 entered promiscuous mode
device vlan1 entered promiscuous mode
vlan1: Setting MAC address to 00 1f c6 2e b0 88.
vlan1: dev_set_promiscuity(master, 1)
vlan1: dev_set_allmulti(master, 1)
vlan1: dev_set_promiscuity(master, -1)
device vlan1 left promiscuous mode
vlan1: dev_set_allmulti(master, -1)
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
etherip: Ethernet over IPv4 tunneling driver
vlan1: dev_set_allmulti(master, 1)
vlan1: add 01:00:5e:00:00:02 mcast address to master interface
hub.c: new USB device 00:03.1-1.1, assigned address 5
usb.c: USB device not accepting new address=5 (error=-71)
hub.c: new USB device 00:03.1-1.1, assigned address 6
usb.c: USB device not accepting new address=6 (error=-71)
hub.c: new USB device 00:03.1-1.2, assigned address 7
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: HTS54804 Model: 0M9AT00 Rev: 0811
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 7
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Adding Swap: 522104k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,4), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.


lsmod output
Quote:

Module Size Used by
ip_nat_pptp 2432 0 (unused)
ip_conntrack_pptp 2860 1
ip_nat_proto_gre 1664 0 (unused)
ip_conntrack_proto_gre 2568 0 [ip_nat_pptp ip_conntrack_pptp]
etherip 5104 0 (unused)
jffs2 97848 1
printer 10316 0 (unused)
ext3 76884 3
jbd 58280 3 [ext3]
ext2 43912 0 (unused)
usb-storage 36552 4
sd_mod 13092 8
scsi_mod 100304 2 [usb-storage sd_mod]
ehci-hcd 22060 0 (unused)
usbcore 82000 0 [printer usb-storage ehci-hcd]
switch-robo 5356 0 (unused)
switch-core 6416 0 [switch-robo]



I don't enable usb 1.1 in the web gui[/quote]

_________________
wl-500gP v2 BS v24-sp2 mega - 13525
DIR600 Rev.B BS v24-sp2 std - 14311
darkeye
DD-WRT Novice


Joined: 11 Dec 2006
Posts: 3

PostPosted: Sat Jan 17, 2009 9:42 am    Post subject: Reply with quote
skygunner wrote:
you need to use at least svn 10404 tng to get USB work properly on wl-500g P v2

v24 sp1 is 10012

I'm using svn 11296, sometimes it still can't find the usb device after reboot. Need to plug out and plug into another usb port. Most of the time it works fine. The latest svn is recommended.


thanks for the info. are their builds available for these svn versions, or would I have to build everything myself?
skygunner
DD-WRT User


Joined: 28 Dec 2008
Posts: 82

PostPosted: Sat Jan 17, 2009 9:56 am    Post subject: Reply with quote
The unstable SVN version is in the others/EKO directory

Eko TNG svn 11296
http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FV24_TNG%2Fsvn11296/

dd-wrt.v24-11296_NEWD_mega.bin
TNG means the next generation,V24 SP2
NEWD means new driver, 500gpv2 should use NEWD version


BrainSlayer's 24 preSP2
http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FBrainSlayer-V24-preSP2%2F160109%2Fbroadcom/

dd-wrt.v24_mega_generic.bin

This one is in BS's directory,I havn't tested it (yet).See this thread http://www.dd-wrt.com/phpBB2/viewtopic.php?t=45701&sid=5c1053aff4dbd4ba914bf0aa3a5c3355

_________________
wl-500gP v2 BS v24-sp2 mega - 13525
DIR600 Rev.B BS v24-sp2 std - 14311
sibble
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 2

PostPosted: Mon Jul 27, 2009 12:59 am    Post subject: Reply with quote
skygunner wrote:
The unstable SVN version is in the others/EKO directory

Eko TNG svn 11296
http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FV24_TNG%2Fsvn11296/

dd-wrt.v24-11296_NEWD_mega.bin
TNG means the next generation,V24 SP2
NEWD means new driver, 500gpv2 should use NEWD version


Excellent! USB and Auto-mount worked out of the box... however I have 4 partitions on the USB hard drive so I'm not sure what was automatically mounted (at this point), but it definitely mounted something as I can see "lost+found" in /mnt/ =D

This is on my WRT350N... I felt a little confident upgrading to this firmware as I see you are using the same router Wink

cheers
sibble
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 2

PostPosted: Mon Jul 27, 2009 1:08 am    Post subject: Reply with quote
Just noticed 'Disk Info' tab populated after mounting...
Code:
--- /dev/discs/disc0/disc
Block device, size 931.5 GiB (1000204886016 bytes)
DOS/MBR partition map
Partition 1: 1.953 GiB (2097414144 bytes, 4096512 sectors from 63)
Type 0x83 (Linux)
Ext3 file system
UUID 78C7B83E-5256-4B19-8EFE-C0142370D266 (DCE, v4)
Volume size 1.953 GiB (2097414144 bytes, 512064 blocks of 4 KiB)
Partition 2: 258.9 MiB (271434240 bytes, 530145 sectors from 4096575)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 258.9 MiB (271425536 bytes, 66266 pages of 4 KiB)
Partition 3: 1.953 GiB (2097446400 bytes, 4096575 sectors from 4626720)
Type 0x83 (Linux)
Ext3 file system
UUID D2244954-5B23-4FD3-8ED8-EFFCB215C129 (DCE, v4)
Volume size 1.953 GiB (2097442816 bytes, 512071 blocks of 4 KiB)
Partition 4: 927.4 GiB (995735946240 bytes, 1944796770 sectors from 8723295)
Type 0x0B (Win95 FAT32)
FAT32 file system (hints score 5 of 5)
Volume size 926.9 GiB (995249963008 bytes, 60745237 clusters of 16 KiB)
Volume name "MYBOOK-002"
Status: Mounted on /mnt


So I'm guessing the FAT32 partition named "MYBOOK-002" was the one that automatically mounted.

I've been following the wiki...
http://dd-wrt.com/wiki/index.php/USB_storage#Step_1_-_Partition_and_format_your_USB_drive

Quote:
one: for optware packages - make it 32MB - 2GB - use ext2/3 as the format
two: for swap file - make it 16-256 MB - format it as linux swap file
three: for data space - make it fit the rest of the disk - use ext2/3 or FAT32 as the format
four: for jffs space - make it 32MB - 2GB - use ext2/3 as the format


Except I switched 3&4, so 4th partition is the FAT32 with the left-over space. Hopefully things will be smooth sailing now.
Display posts from previous:    Page 1 of 1
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