[OpenWrt-Devel] Unable to get any OpenWrt version working on Asus WL-300g

Ondrej Zary linux at rainbow-software.org
Thu Oct 27 08:19:01 EDT 2016


Forced failsafe mode by building an image with modified
/lib/preinit/30_failsafe_wait (added "FAILSAFE=true" line) and successfully
sshd into the router.

Problems I see:
1. The machine type is misidentified as WL500G so the overrides in
/lib/preinit/05_init_interfaces_brcm and /etc/board.d/01_detect expecting
"WL300G" do not work.
[    0.000000] MIPS: machine is Asus WL500G

2. The overrides are probably wrong as there's no eth1 interface. If I change
them to "WL500G" so they get activated, I don't get even the preinit UDP
packets.

3. The button method for activating failsafe mode probably fails because of:
[    6.729435] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517
[    6.745728] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517

BusyBox v1.24.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 DESIGNATED DRIVER (Bleeding Edge, 12009)
 -----------------------------------------------------
  * 2 oz. Orange Juice         Combine all juices in a
  * 2 oz. Pineapple Juice      tall glass filled with
  * 2 oz. Grapefruit Juice     ice, stir well.
  * 2 oz. Cranberry Juice
 -----------------------------------------------------
================= FAILSAFE MODE active ================
special commands:
* firstboot          reset settings to factory defaults
* mount_root     mount root-partition with config files

after mount_root:
* passwd                         change root's password
* /etc/config               directory with config files

for more help see:
http://wiki.openwrt.org/doc/howto/generic.failsafe
=======================================================

root@(none):~# dmesg
[    0.000000] Linux version 4.1.27 (openwrt at 8f4d2b68729d) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 12009) ) #1 Thu Oct 20 00:55:20 UTC 2016
[    0.000000] CPU0 revision is: 00024000 (Broadcom BMIPS32)
[    0.000000] bcm47xx: Using ssb bus
[    0.000000] ssb: Found chip with id 0x4710, rev 0x00 and package 0x00
[    0.000000] ssb: Core 0 found: SDRAM (cc 0x803, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 1 found: ILine 20 (cc 0x801, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 2 found: Fast Ethernet (cc 0x806, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 3 found: V90 (cc 0x807, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 4 found: USB 1.1 Hostdev (cc 0x808, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 5 found: PCI (cc 0x804, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 6 found: MIPS (cc 0x805, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 7 found: EXTIF (cc 0x811, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 8 found: Fast Ethernet (cc 0x806, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Initializing MIPS core...
[    0.000000] ssb: set_irq: core 0x0806, irq 4 => 4
[    0.000000] ssb: set_irq: core 0x0811, irq 7 => 2
[    0.000000] ssb: set_irq: core 0x0801, irq 5 => 2
[    0.000000] ssb: set_irq: core 0x0806, irq 7 => 5
[    0.000000] ssb: after irq reconfiguration
[    0.000000] ssb: core 0x0803, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] ssb: core 0x0801, irq : 2(S)* 3  4  5  6  D  I
[    0.000000] ssb: core 0x0806, irq : 2(S)  3  4* 5  6  D  I
[    0.000000] ssb: core 0x0807, irq : 2(S)  3  4  5  6  D* I
[    0.000000] ssb: core 0x0808, irq : 2(S)  3* 4  5  6  D  I
[    0.000000] ssb: core 0x0804, irq : 2(S)  3  4  5  6* D  I
[    0.000000] ssb: core 0x0805, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] ssb: core 0x0811, irq : 2(S)* 3  4  5  6  D  I
[    0.000000] ssb: core 0x0806, irq : 2(S)  3  4  5* 6  D  I
[    0.000000] bcm47xx: Couldn't parse nvram board type entry with value "bcm94710dev"
[    0.000000] ssb: Sonics Silicon Backplane found at address 0x18000000
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] On node 0 totalpages: 4096
[    0.000000] free_area_init_node: node 0, pgdat 8038c040, node_mem_map 80415000
[    0.000000]   Normal zone: 32 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 4096 pages, LIFO batch:0
[    0.000000] Enabling BCM4710A0 cache workarounds.
[    0.000000] Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 4kB, 2-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 12004K/16384K available (2933K kernel code, 106K rwdata, 660K rodata, 192K init, 269K bss, 4380K reserved, 0K cma-reserved)
[    0.000000] NR_IRQS:128
[    0.000000] MIPS: machine is Asus WL500G
[    0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30629173816 ns
[    0.000067] sched_clock: 32 bits at 62MHz, resolution 16ns, wraps every 34414801911ns
[    0.001451] Calibrating delay loop... 82.84 BogoMIPS (lpj=414208)
[    0.090427] pid_max: default: 32768 minimum: 301
[    0.092418] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092581] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114243] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.124929] NET: Registered protocol family 16
[    0.223268] Switched to clocksource MIPS
[    0.234788] ssb: PCIcore in host mode found
[    0.566448] PCI host bridge to bus 0000:00
[    0.566640] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
[    0.566799] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.566949] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.567087] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.567391] pci 0000:00:00.0: [14e4:4710] type 00 class 0x060000
[    0.567519] ssb: PCI: Fixing up bridge 0000:00:00.0
[    0.567647] ssb: PCI: Fixing up device 0000:00:00.0
[    0.567779] ssb: PCI: Fixing latency timer of device 0000:00:00.0 to 168
[    0.568004] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00001fff]
[    0.568207] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x07ffffff pref]
[    0.570114] pci 0000:00:02.0: [14e4:4320] type 00 class 0x028000
[    0.570379] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x00001fff]
[    0.570742] pci 0000:00:02.0: supports D1 D2
[    0.570884] pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.572876] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.573125] pci 0000:00:02.0: BAR 0: assigned [mem 0x40000000-0x40001fff]
[    0.581364] PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
[    0.581483] ssb: PCI: Fixing up device 0000:00:02.0
[    0.581804] ssb: Found chip with id 0x4306, rev 0x03 and package 0x00
[    0.581951] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x04, vendor 0x4243)
[    0.582084] ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x05, vendor 0x4243)
[    0.582215] ssb: Core 2 found: PCMCIA (cc 0x80D, rev 0x02, vendor 0x4243)
[    0.582340] ssb: Core 3 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
[    0.582467] ssb: Core 4 found: PCI (cc 0x804, rev 0x09, vendor 0x4243)
[    0.582702] ssb: chipcommon status is 0x0
[    0.582866] ssb: SPROM offset is 0x1000
[    0.586685] ssb: SPROM revision 1 detected
[    0.589502] ssb: Sonics Silicon Backplane found on PCI device 0000:00:02.0
[    0.591578] NET: Registered protocol family 2
[    0.598777] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.599104] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.599370] TCP: Hash tables configured (established 1024 bind 1024)
[    0.600346] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.600649] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.602734] NET: Registered protocol family 1
[    0.603581] PCI: CLS 0 bytes, default 16
[    0.614576] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.650532] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.650725] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.658904] io scheduler noop registered
[    0.659100] io scheduler deadline registered (default)
[    0.661425] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.691140] physmap platform flash device: 00400001 at 1fc00000
[    0.691929] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022a7
[    0.692105] Amd/Fujitsu Extended Query Table at 0x0040
[    0.692232]   Amd/Fujitsu Extended Query version 1.1.
[    0.692328] physmap-flash.0: Swapping erase regions for top-boot CFI table.
[    0.692418] number of CFI chips: 1
[    0.695619] 6 bcm47xxpart partitions found on MTD device physmap-flash.0
[    0.695727] Creating 6 MTD partitions on "physmap-flash.0":
[    0.695861] 0x000000000000-0x000000040000 : "boot"
[    0.703480] 0x000000040000-0x0000003f0000 : "firmware"
[    0.710564] 0x00000004001c-0x000000040918 : "loader"
[    0.717840] 0x000000040918-0x000000174000 : "linux"
[    0.725338] 0x000000174000-0x0000003f0000 : "rootfs"
[    0.732761] mtd: device 4 (rootfs) set to be root filesystem
[    0.732953] 1 squashfs-split partitions found on MTD device rootfs
[    0.733108] 0x000000370000-0x0000003f0000 : "rootfs_data"
[    0.740971] 0x0000003f0000-0x000000400000 : "nvram"
[    0.828288] libphy: Fixed MDIO Bus: probed
[    0.829511] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version 2.0
[    0.848478] libphy: b44_eth_mii: probed
[    0.849063] b44 ssb0:2: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:00)
[    0.849233] b44 ssb0:2 eth0: Broadcom 44xx/47xx 10/100 PCI ethernet driver 00:13:d4:0f:f3:17
[    0.859025] libphy: b44_eth_mii: probed
[    0.859158] libphy: PHY 2:0a not found
[    0.859288] b44 ssb0:5: could not attach PHY at 10
[    0.859855] b44 ssb0:5: Cannot register PHY, aborting
[    0.873197] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    0.874117] GPIO_WDT: failed to register misc device
[    0.877515] NET: Registered protocol family 10
[    0.892161] NET: Registered protocol family 17
[    0.892759] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.893151] Bridge firewalling registered
[    0.893590] 8021q: 802.1Q VLAN Support v1.8
[    0.907465] Warning: unable to open an initial console.
[    0.919459] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.924070] Freeing unused kernel memory: 192K (803a0000 - 803d0000)
[    4.028093] init: Console is alive
[    4.029341] init: - watchdog -
[    6.729435] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517
[    6.745728] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517
[    6.758607] init: - preinit -
[    8.196601] b44 ssb0:2 eth0: Link is up at 100 Mbps, half duplex
[    8.196762] b44 ssb0:2 eth0: Flow control is off for TX and off for RX
[    8.466339] random: procd urandom read with 13 bits of entropy available
[   11.043577] b44 ssb0:2 eth0: Link is up at 100 Mbps, half duplex
[   11.043742] b44 ssb0:2 eth0: Flow control is off for TX and off for RX
[   11.063791] b44 ssb0:2 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
root@(none):~# cat /proc/cpuinfo
system type             : Broadcom BCM4710
machine                 : Asus WL500G
processor               : 0
cpu model               : Broadcom BMIPS32 V0.0
BogoMIPS                : 82.84
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : no
isa                     : mips1 mips2 mips32r1
ASEs implemented        :
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@(none):~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:13:D4:0F:F3:17
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::213:d4ff:fe0f:f317/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17354 (16.9 KiB)  TX bytes:27405 (26.7 KiB)
          Interrupt:4

lo        Link encap:Local Loopback
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



-- 
Ondrej Zary
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list