I'm struggling second day with installing a Gargoyle version of firmware on my Asus WL500GP. The firmware seams to work ok besides that I'm unable to make him to recognize the USB device (disk). This device is working correct on luci version of Openwrt. Firmware which I'm installing is: gargoyle_1.4.0-brcm47xx-squashfs.trx (also tried versions: 1.2.0 and 1.3.16). From what I understand this firmware should have a usb handling installed by default (plugin-gargoyle-usb-storage) which is handling the device discovery and automounting. After installing this version the usb-storage is not installed. Some outputs from router with version 1.3.16 installed disk is connected:
dmesg
Code: Select all
Linux version 2.6.32.27 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #1 Mon Jun 27 00:12:26 EDT 2011
CPU revision is: 00029006 (Broadcom BCM3302)
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x03, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 2 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x02, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x00, vendor 0x4243)
ssb: Core 6 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
ssb: Core 7 found: IPSEC (cc 0x80B, rev 0x00, vendor 0x4243)
ssb: Core 8 found: MEMC SDRAM (cc 0x80F, rev 0x00, vendor 0x4243)
ssb: chipcommon status is 0x0
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 4 => 4
ssb: set_irq: core 0x0806, irq 5 => 5
ssb: set_irq: core 0x0808, irq 6 => 2
ssb: set_irq: core 0x0804, irq 2 => 6
ssb: after irq reconfiguration
ssb: core 0x0800, irq : 2(S) 3* 4 5 6 D I
ssb: core 0x0806, irq : 2(S) 3 4* 5 6 D I
ssb: core 0x0806, irq : 2(S) 3 4 5* 6 D I
ssb: core 0x0808, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x0804, irq : 2(S) 3 4 5 6* D I
ssb: core 0x0816, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x0807, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x080b, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x080f, irq : 2(S) 3 4 5 6 D I*
ssb: Sonics Silicon Backplane found at address 0x18000000
Serial init done.
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 8028e0b0, node_mem_map 81000000
Normal zone: 64 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Memory: 29576k/32768k available (2264k kernel code, 3192k reserved, 349k data, 136k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [ttyS0] enabled
Calibrating delay loop... 263.16 BogoMIPS (lpj=526336)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
ssb: PCIcore in host mode found
PCI: Fixing up bridge 0000:00:00.0
PCI: Setting latency timer of device 0000:00:00.0 to 64
PCI: Fixing up device 0000:00:00.0
PCI: Fixing latency timer of device 0000:00:00.0 to 168
pci 0000:00:00.0: reg 10 32bit mmio: [0x000000-0x001fff]
pci 0000:00:00.0: reg 14 32bit mmio pref: [0x000000-0x7ffffff]
pci 0000:00:02.0: reg 10 32bit mmio: [0x000000-0x001fff]
pci 0000:00:03.0: reg 20 io port: [0xfce0-0xfcff]
pci 0000:00:03.0: supports D1 D2
pci 0000:00:03.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:03.0: PME# disabled
pci 0000:00:03.1: reg 20 io port: [0xfce0-0xfcff]
pci 0000:00:03.1: supports D1 D2
pci 0000:00:03.1: PME# supported from D0 D1 D2 D3hot
pci 0000:00:03.1: PME# disabled
pci 0000:00:03.2: reg 10 32bit mmio: [0x000000-0x0000ff]
pci 0000:00:03.2: supports D1 D2
pci 0000:00:03.2: PME# supported from D0 D1 D2 D3hot
pci 0000:00:03.2: PME# disabled
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
PCI: Fixing up device 0000:00:02.0
PCI: Setting latency timer of device 0000:00:02.0 to 64
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0D, vendor 0x4243)
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x09, vendor 0x4243)
ssb: Core 2 found: PCI (cc 0x804, rev 0x0C, vendor 0x4243)
ssb: Core 3 found: PCMCIA (cc 0x80D, rev 0x07, vendor 0x4243)
ssb: chipcommon status is 0x0
ssb: SPROM offset is 0x1000
ssb: SPROM revision 2 detected.
ssb: Sonics Silicon Backplane found on PCI device 0000:00:02.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
flash init: 0x1c000000 0x02000000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
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 mfr 0x00000001
CFI id 0x00001301
Amd/Fujitsu Extended Query Table at 0x0040
Amd/Fujitsu Extended Query version 1.3.
Physically mapped flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x800000 at 0x1fc00000
bootloader size: 262144
Updating TRX offsets and length:
old trx = [0x0000001c, 0x00000974, 0x000d5800], len=0x00331000 crc32=0x5d86d359
new trx = [0x0000001c, 0x00000974, 0x000d5800], len=0x000d5800 crc32=0xcb6e7c37
Done
Creating 4 MTD partitions on "Physically mapped flash":
0x000000000000-0x000000040000 : "cfe"
0x000000040000-0x0000007f0000 : "linux"
0x000000115800-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=350000, len=4A0000
0x000000350000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "nvram"
b44.c:v2.0
eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:1f:c6:36:e7:8c
b44: eth1: PHY Reset would not complete.
eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
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 on device 31:2.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
diag: Detected 'ASUS WL-500g Premium'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found a 5325! It's a 5350.
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
b44: eth0: powering down PHY
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-04-14
Backport based on wireless-testing.git master-2011-04-19
cfg80211: Calling CRDA to update world regulatory domain
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
cfg80211: World regulatory domain updated:
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::assoc
Registered led device: b43-phy0::radio
Broadcom 43xx driver loaded [ Features: PL, GPIO LED Mask: 0x000f, Firmware-ID: FW13 ]
Broadcom 43xx-legacy driver loaded [ Features: PLID, Firmware-ID: FW10 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (464 buckets, 1856 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
Hooked IMQ after mangle on PREROUTING
Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
ipt_bandwidth: timezone shift detected, adjusting
br-lan: port 1(eth0.0) entering disabled state
device eth0 left promiscuous mode
device eth0.0 left promiscuous mode
br-lan: port 1(eth0.0) entering disabled state
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering forwarding state
ipt_bandwidth: timezone shift detected, adjusting
opkg list_installed
Code: Select all
base-files - 43.20-unknown
bin2trx - 1.3.16-1
bridge - 1.4-1
busybox - 1.15.3-2
bwmon-gargoyle - 1.3.16-1
crda - 1.1.1-1
ddns-gargoyle - 1.3.16-1
dnsmasq - 2.55-6
dropbear - 0.52-4
ebtables - 2.0.9-1-1
ewget - 1.3.16-1
firewall - 2-26
gargoyle - 1.3.16-6
gargoyle-firewall-util - 1.3.16-1
haserl - 0.9.26-1
hotplug2 - 1.0-beta-3
httpd-gargoyle - 1.3.16-1
ip - 2.6.29-1-2
iptables - 1.4.6-2
iptables-mod-bandwidth - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-conntrack-extra - 1.4.6-2
iptables-mod-filter - 1.4.6-2
iptables-mod-imq - 1.4.6-2
iptables-mod-ipopt - 1.4.6-2
iptables-mod-iprange - 1.4.6-2
iptables-mod-nat - 1.4.6-2
iptables-mod-nat-extra - 1.4.6-2
iptables-mod-timerange - 1.4.6-2
iptables-mod-webmon - 1.4.6-2
iptables-mod-weburl - 1.4.6-2
iw - 0.9.22-2
kernel - 2.6.32.27-1
kmod-b43 - 2.6.32.27+2011-04-19-3
kmod-b43legacy - 2.6.32.27+2011-04-19-3
kmod-cfg80211 - 2.6.32.27+2011-04-19-3
kmod-crc-ccitt - 2.6.32.27-1
kmod-crypto-aes - 2.6.32.27-1
kmod-crypto-arc4 - 2.6.32.27-1
kmod-crypto-core - 2.6.32.27-1
kmod-diag - 2.6.32.27-7.1
kmod-ebtables - 2.6.32.27-1
kmod-ipt-bandwidth - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-conntrack-extra - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-filter - 2.6.32.27-1
kmod-ipt-imq - 2.6.32.27-1
kmod-ipt-ipopt - 2.6.32.27-1
kmod-ipt-iprange - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-ipt-nat-extra - 2.6.32.27-1
kmod-ipt-nathelper - 2.6.32.27-1
kmod-ipt-timerange - 2.6.32.27-1
kmod-ipt-webmon - 2.6.32.27-1
kmod-ipt-weburl - 2.6.32.27-1
kmod-mac80211 - 2.6.32.27+2011-04-19-3
kmod-ppp - 2.6.32.27-1
kmod-pppoe - 2.6.32.27-1
kmod-sched - 2.6.32.27-1
kmod-switch - 2.6.32.27-4
kmod-textsearch - 2.6.32.27-1
libc - 0.9.30.1-43.20
libcyassl - 1.6.5-3
libericstools - 1.3.16-1
libgcc - 4.3.3+cs-43.20
libip4tc - 1.4.6-2
libip6tc - 1.4.6-2
libiptbwctl - 1.3.16-1
libiptc - 1.4.6-2
libnl-tiny - 0.1-1
libuci - 12012009.6-3
libxtables - 1.4.6-2
miniupnpd - 1.5.20110309-1
mtd - 13
ntpclient - 2007_365_1-1
nvram - 7
opkg - 576-1
ppp - 2.4.4-16
ppp-mod-pppoe - 2.4.4-16
qos-gargoyle - 1.3.16-1
sha1sum - 1.3.16-1
tc - 2.6.29-1-2
uci - 12012009.6-3
udevtrigger - 106-1
webmon-gargoyle - 1.3.16-1
wireless-tools - 29-4
wol - 0.7.1-2
wpad-mini - 20110527-1
Code: Select all
opkg install kmod-usb-core kmod-usb2 kmod-usb-storage
opkg install block-mount block-hotplug
opkg install kmod-fs-ext2 kmod-fs-ext3 kmod-ext4
dmesg
Code: Select all
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
PCI: Enabling device 0000:00:03.2 (0000 -> 0002)
PCI: Fixing up device 0000:00:03.2
ehci_hcd 0000:00:03.2: EHCI Host Controller
ehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:03.2: Enabling legacy PCI PM
ehci_hcd 0000:00:03.2: irq 6, io mem 0x40002000
ehci_hcd 0000:00:03.2: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
usb 1-2: new high speed USB device using ehci_hcd and address 2
usb 1-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access SAMSUNG HM320II PQ: 0 ANSI: 4
usb-storage: device scan complete
sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
Code: Select all
mount -t ext2 /dev/sda1 /mnt
mount: mounting /dev/sda1 on /mnt failed: Invalid argument
Code: Select all
Aug 28 12:38:44 Gargoyle user.warn kernel: ------------[ cut here ]------------
Aug 28 12:38:44 Gargoyle user.warn kernel: WARNING: at fs/inode.c:1277 0x800aa14c()
Aug 28 12:38:44 Gargoyle user.warn kernel: [truncated] Modules linked in: ext3 jbd ext2 mbcache ehci_hcd usb_storage sd_mod scsi_mod usbcore nls_base ebt_arpnat ebt_redirect ebt_mark ebt_vlan ebt_stp ebt_pkttype ebt_mark_m ebt_limit ebt_among ebt_802_3 ebtable_nat ebtab
Aug 28 12:38:44 Gargoyle user.warn kernel: Call Trace:[<800258c8>] 0x800258c8
Aug 28 12:38:44 Gargoyle user.warn kernel: [<8000a23c>] 0x8000a23c
Aug 28 12:38:44 Gargoyle user.warn kernel: [<8000a23c>] 0x8000a23c
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800244c0>] 0x800244c0
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800aa14c>] 0x800aa14c
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800aa14c>] 0x800aa14c
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80fb488c>] 0x80fb488c
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800ab124>] 0x800ab124
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80fb8e04>] 0x80fb8e04
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80096398>] 0x80096398
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800e69a0>] 0x800e69a0
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80096a44>] 0x80096a44
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80095438>] 0x80095438
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80075a00>] 0x80075a00
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80fb7324>] 0x80fb7324
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80fb8314>] 0x80fb8314
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800954e0>] 0x800954e0
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800ace00>] 0x800ace00
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800955d8>] 0x800955d8
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800b0a90>] 0x800b0a90
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800ae788>] 0x800ae788
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80236c58>] 0x80236c58
Aug 28 12:38:44 Gargoyle user.warn kernel: [<800b0be0>] 0x800b0be0
Aug 28 12:38:44 Gargoyle user.warn kernel: [<80003230>] 0x80003230
Aug 28 12:38:44 Gargoyle user.warn kernel: ---[ end trace 9483dceda9870ce9 ]---
Aug 28 12:38:44 Gargoyle user.err kernel: EXT2-fs: corrupt root inode, run e2fsck
Regards,
bbrowaros