First of all: thx a lot for all the good work on this!
Now my question is, do you have any plans or a roadmap for working on the 5GHz issues? That would be awesome if you get that to work again. And is there anything we can help you with to get this working? some logs? tests? etc?
Posted: Thu Nov 24, 2011 18:26 Post subject: NEWS update
I just wanted to update everyone I went through svn/trac and am attempting to trace down where in trac the usb automount gets broke... I can confirm 100% USB automount with build 17300 std_usb_nas
EDIT: Confirmed 100% WORKING 17348
My guess is it is 17349/17350 break it.. then it never gets fixed... I will continue to narrow this down further!!.... Wanted to keep the community informed.. I will be posting soon as I update to narrow it down to specific buid.
-Fractal
here is the serial output when it mounts:
Code:
ApplyTake:submit_button=[USB] service=[usbdrivers] sleep_time=[0] action=[3]
function stop_drivers not found
[USB] checking...
/bin/sh: hdparm: not found
[USB Device] partition:
Posted: Thu Nov 24, 2011 19:37 Post subject: 17349 100% Breaks USB hotplug
I now can confirm with 100% confidence that 17349 breaks USB automount and detection..
I initially thought it was the linero 4.5.2 toolchain, because 17201 is built on gcc-4.1.2, but after going to build 17300 with linero 4.5.2 usb was still working.. I then followed trac to where redhawk0 and kong thought it might be broke at 17349/17350 and at 17348 - USB is 100% working.. So 17349 breaks USB on my E3000 broadcom router. I am going to put in a trac ticket, but if anyone wants to dissect 17349's changes we can start another thread or continue this one.
I am enclosing COMPLETE serial output of 17349, and u can see usb fails..
What happens is [USB] Checking .... and does nothing just hangs, where 17348 shows the FAT32/FS partions.
After thanksgiving dinner I my try and disect it myself. hope everyone is having a great holiday.
-Fractal
Code:
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Oct 21 12:10:06 CST 2010 (lzh@team2-complier)
Copyright (C) 2000-2008 Broadcom Corporation.
Init Arena
Init Devs.
No DPN
This is a Parallel Flash
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.51
CPU type 0x19740: 480MHz
Tot mem: 65536 KBytes
mac_init(): Find mac [C0:C1:C0:30:30:21] in location 0
Nothing...
country_init(): Find country code in location 0
The country is same
Device eth0: hwaddr C0-C1-C0-30-30-21, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Check CRC of image1
Header CRC: 0xCF60F2EA
Calculate CRC: 0xCF60F2EA
Image 1 is OK
Try to load image 1.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3916 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
Linux version 2.6.24.111 (compiler@Fractal) (gcc version 4.1.2) #3 Thu Nov 24 11
:23:11 PST 2011
CPU revision is: 00019740
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0 -> 16384
HighMem 16384 -> 16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 16384
Built 1 zonelists in Zone order. Total pages: 16384
Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 512 (order: 9, 2048 bytes)
CPU: BCM4716 rev 1 at 480 MHz
Using 240.000 MHz high precision timer.
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 58672k/65536k available (3387k kernel code, 6804k reserved, 1436k data,
216k init, 0k highmem)
Mount-cache hash table entrie
NET: Registered protocol family 16
Generic PHY: Registered new driver
PCI: Using membase 8000000
PCI: Initializing host
PCI: Reset RC
PCI: no core
PCI: Fixing up bus 0
PCI/PCIe coreunit 0 is set to bus 1.
PCI: Fixing up bridge
PCI: Fixing up bridge
PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
PCI: Fixing up bus 1
Device 0 map irq 0
result->irq 6
HND PCIE device corerev 14 found at 1/0/0
Device 0 map irq 0
result->irq 6
HND PCIE device corerev 14 found at 1/0/1
Device 1 map irq 0
result->irq 6
HND PCIE device corerev 11 found at 1/1/0
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
WRT610Nv2/E3000 GPIO Init
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/
io scheduler noop registered
io scheduler deadline registered (default)
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 8) is a 16550A
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver,
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.127.4
PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
Physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
nvram size: 61440
Physically mapped flash: Filesystem type: squashfs, size=0x3f8593
partition size = 4217856
Updating TRX offsets and length:
old trx = [0x0000001c, 0x000009d0, 0x0015a400], len=0x00554000 crc32=0xcf60f2ea
new trx = [0x0000001c, 0x000009d0, 0x0015a400], len=0x00560000 crc32=0xbcfccecb
Done
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x0019a400-0x005a0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force rea
nly
0x007f0000-0x00800000 : "nvram"
0x005a0000-0x007f0000 : "ddwrt"
Found a 0MB serial flash
sflash: found no supported devices
Broadcom Watchdog Timer: 0.07 initialized.
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length 128 bytes
PF_RING: ring slots 4096
PF_RING: sample rate 1 [1=no sampling]
PF_RING: capture TX No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized c
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode 1f02
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 216k freed
start service
starting Architecture code for broadcom
starting hotplug
done
Booting device: Linksys E3000
loading bcm57xx
loading switch-core
loading switch-robo
[USB] checking...
/etc/preinit: line 66: can't create /proc/sys/net/ipv4/ip_con
tent directory
/etc/preinit: line 66: can't create /proc/sys/net/ipv4/ip_conntrack_max: nonexis
tent directory
eth2: Operation not supported
wl1.1: No such device
wl1.2: No such device
wl1.3: No such device
eth2: Operation not permitted
eth2: Numerical result out of range
eth2: Invalid argument
eth2: Invalid argument
eth2: Operation not supported
eth2: Operation not supported
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
eth2: Invalid argument
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-arptables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-ip6tables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-iptables: nonexistent
directory
br0: No such file or directory
br0: No such file or directory
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Operation not permitted
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Operation not supported
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
br0: No such file or directory
eth2: Operation not supported
wl1.1: No such device
wl1.2: No such device
wl1.3: No such device
eth2: Operation not permitted
eth2: Numerical result out of range
eth2: Invalid argument
eth2: Invalid argument
eth2: Operation not supported
eth2: Operation not supported
eth2: Invalid argument
svqos: No such file or directory
svqos: No such file or directory
svqos: No such file or directory
svqos: No such file or directory
vlan2: No such process
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-arptables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-ip6tables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-iptables: nonexistent
directory
svqos: No such file or directory
svqos: No such file or directory
svqos: No such file or directory
svqos: No such file or directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-arptables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-ip6tables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-iptables: nonexistent
directory
svqos: No such file or directory
svqos: No such file or directory
svqos: No such file or directory
svqos: No such file or directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-arptables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-ip6tables: nonexistent
directory
/bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-iptables: nonexistent
directory
Posted: Fri Nov 25, 2011 0:36 Post subject: fixed it
the problem with broken usb was in usb_hotplug.c was changeset 17349 line 267
Code:
memset(mounted,sizeof(mounted),0);
The correct use should be
Code:
memset(mounted, 0, sizeof(mounted));
I have tested with this change to 17349 and it is now 100% working... I have added this to dd-wrt trac/svn hopefully sebhastian or eko will fix it in upstream mod.
All right! Thanks man, I'm actually going to try it out right now on my E4200. I'm still new to this whole DD-WRT. I previously had a DIR-825A1 so I couldn't flash it. Everything is so vague right now but I have Thanksgiving break to play with it.
Part 1 & 3 report ext4 (can't mount /opt)
part 4 does report ext2
17920_std_usb_nas on an RT-N16
btw... 17893 using the uuid to mount in the gui, that looked like it mounted after a reboot but the /opt partition was not accessable. _________________ [Moderator Deleted]
Joined: 08 Jun 2006 Posts: 247 Location: Prince Edward Island - Canada
Posted: Fri Nov 25, 2011 15:25 Post subject:
kt_haddock wrote:
http://svn.dd-wrt.com:8000/changeset/17924
I have to set something straight. It was fractal who found and documented the bug. I sent along the fix directly to BS so he wouldn't miss it (and he credited me in TRAC.
Sorry Fractal - You're the one who should be listed in 17924!
Part 1 & 3 report ext4 (can't mount /opt)
part 4 does report ext2
17920_std_usb_nas on an RT-N16
btw... 17893 using the uuid to mount in the gui, that looked like it mounted after a reboot but the /opt partition was not accessable.
Thanks barry and everyone else for testing!!!, I had a usb thumbdrive with FAT32 and also made a linux swap partition both mounted correctly. So we can say Automount works as intended lol...
Btw... testing helps guys, you rock, if you get me good feedback fixes can come more quickly.
I am making a ext2/3 on the drive as well to mount... I believe I found the problem all ready.
Changeset 17840 -starting at line 215 trumps everything else.
maybe you can address an other problem too, which i already mentioned to kong. if you want to mount a volume automatic by name, fi volume Mnt mounts to /mnt, than this will not work with a FAT32 volume because windows insists on volume names in uppercase. so in this example the volume name becomes MNT which != Mnt. please make the comparison case insensitive. _________________ now running tomato by shibby
E4200v1 cfe 2010.09.20.0