[OpenWrt-Devel] [PATCH] Unable to get any OpenWrt version working on Asus WL-300g
Ondrej Zary
linux at rainbow-software.org
Wed Nov 2 11:11:58 EDT 2016
On Wednesday 02 November 2016, Ondrej Zary wrote:
> > 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.
>
> The lib/preinit/05_init_interfaces_brcm file is wrong, at least WL300G
> should be deleted from there.
> But the problem still persists. I can boot into failsafe mode (if forced in
> /lib/preinit/30_failsafe_wait). But after rm /tmp/.failsafe, the ethernet
> link goes down so I can't do any debugging.
Sorry, not "rm /tmp/.failsafe" but kill process "lock /tmp/.failsafe" to
continue boot.
Commenting-out contents of preinit_ip_deconfig()
in /lib/preinit/10_indicate_preinit allows to monitor the boot process then.
Looks like it oopses during b43 init:
[ 0.000000] Linux version 4.1.27 (zary at gsql) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 49975) ) #11 Wed Nov 2 14:47:46 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 80361e40, node_mem_map 803e4000
[ 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: 12200K/16384K available (2790K kernel code, 98K rwdata, 636K rodata, 172K init, 264K bss, 4184K reserved, 0K cma-reserved)
[ 0.000000] NR_IRQS:128
[ 0.000000] MIPS: machine is Asus WL300G
[ 0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30629173816 ns
[ 0.000066] sched_clock: 32 bits at 62MHz, resolution 16ns, wraps every 34414801911ns
[ 0.001391] Calibrating delay loop... 82.84 BogoMIPS (lpj=414208)
[ 0.090412] pid_max: default: 32768 minimum: 301
[ 0.092387] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092561] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.114277] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.121808] NET: Registered protocol family 16
[ 0.219037] Switched to clocksource MIPS
[ 0.231729] ssb: PCIcore in host mode found
[ 0.562067] PCI host bridge to bus 0000:00
[ 0.562285] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
[ 0.562470] pci_bus 0000:00: root bus resource [io 0x0100-0x07ff]
[ 0.562649] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.562814] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.563145] pci 0000:00:00.0: [14e4:4710] type 00 class 0x060000
[ 0.563279] ssb: PCI: Fixing up bridge 0000:00:00.0
[ 0.563412] ssb: PCI: Fixing up device 0000:00:00.0
[ 0.563550] ssb: PCI: Fixing latency timer of device 0000:00:00.0 to 168
[ 0.563782] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00001fff]
[ 0.563995] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x07ffffff pref]
[ 0.565886] pci 0000:00:02.0: [14e4:4320] type 00 class 0x028000
[ 0.566171] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x00001fff]
[ 0.566557] pci 0000:00:02.0: supports D1 D2
[ 0.566725] pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.568813] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.569293] pci 0000:00:02.0: BAR 0: assigned [mem 0x40000000-0x40001fff]
[ 0.577349] PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
[ 0.577477] ssb: PCI: Fixing up device 0000:00:02.0
[ 0.577789] ssb: Found chip with id 0x4306, rev 0x03 and package 0x00
[ 0.577947] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x04, vendor 0x4243)
[ 0.578093] ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x05, vendor 0x4243)
[ 0.578239] ssb: Core 2 found: PCMCIA (cc 0x80D, rev 0x02, vendor 0x4243)
[ 0.578377] ssb: Core 3 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
[ 0.578518] ssb: Core 4 found: PCI (cc 0x804, rev 0x09, vendor 0x4243)
[ 0.578759] ssb: chipcommon status is 0x0
[ 0.578922] ssb: SPROM offset is 0x1000
[ 0.582748] ssb: SPROM revision 1 detected
[ 0.585613] ssb: Sonics Silicon Backplane found on PCI device 0000:00:02.0
[ 0.587748] NET: Registered protocol family 2
[ 0.594320] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.594653] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.594929] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.595941] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.596253] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.598432] NET: Registered protocol family 1
[ 0.598975] PCI: CLS 0 bytes, default 16
[ 0.610336] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.646438] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.646626] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.658908] io scheduler noop registered
[ 0.659354] io scheduler deadline registered (default)
[ 0.661203] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[ 0.670110] physmap platform flash device: 00400001 at 1fc00000
[ 0.670899] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022a7
[ 0.671076] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.671212] Amd/Fujitsu Extended Query version 1.1.
[ 0.671319] physmap-flash.0: Swapping erase regions for top-boot CFI table.
[ 0.671424] number of CFI chips: 1
[ 0.674973] 6 bcm47xxpart partitions found on MTD device physmap-flash.0
[ 0.675091] Creating 6 MTD partitions on "physmap-flash.0":
[ 0.675240] 0x000000000000-0x000000040000 : "boot"
[ 0.682815] 0x000000040000-0x0000003f0000 : "firmware"
[ 0.689950] 0x00000004001c-0x000000040918 : "loader"
[ 0.696677] 0x000000040918-0x000000167000 : "linux"
[ 0.703808] 0x000000167000-0x0000003f0000 : "rootfs"
[ 0.711188] mtd: device 4 (rootfs) set to be root filesystem
[ 0.711457] 1 squashfs-split partitions found on MTD device rootfs
[ 0.711623] 0x000000350000-0x0000003f0000 : "rootfs_data"
[ 0.718957] 0x0000003f0000-0x000000400000 : "nvram"
[ 0.788266] libphy: Fixed MDIO Bus: probed
[ 0.789710] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version 2.0
[ 0.808175] libphy: b44_eth_mii: probed
[ 0.808764] b44 ssb0:2: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:00)
[ 0.808965] b44 ssb0:2 eth0: Broadcom 44xx/47xx 10/100 PCI ethernet driver 00:13:d4:0f:f3:17
[ 0.818624] libphy: b44_eth_mii: probed
[ 0.818773] libphy: PHY 2:0a not found
[ 0.818928] b44 ssb0:5: could not attach PHY at 10
[ 0.819750] b44 ssb0:5: Cannot register PHY, aborting
[ 0.833166] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[ 0.833886] GPIO_WDT: failed to register misc device
[ 0.837501] NET: Registered protocol family 10
[ 0.852430] NET: Registered protocol family 17
[ 0.853011] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.853233] 8021q: 802.1Q VLAN Support v1.8
[ 0.866942] Warning: unable to open an initial console.
[ 0.889415] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 0.893374] Freeing unused kernel memory: 172K (80375000 - 803a0000)
[ 5.444004] init: Console is alive
[ 5.445274] init: - watchdog -
[ 9.472893] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517
[ 9.488986] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517
[ 9.501196] init: - preinit -
[ 12.826509] b44 ssb0:2 eth0: Link is up at 100 Mbps, half duplex
[ 12.826694] b44 ssb0:2 eth0: Flow control is off for TX and off for RX
[ 13.098188] random: procd urandom read with 20 bits of entropy available
[ 15.049398] b44 ssb0:2 eth0: Link is up at 100 Mbps, half duplex
[ 15.049586] b44 ssb0:2 eth0: Flow control is off for TX and off for RX
[ 15.369594] b44 ssb0:2 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 80.709420] random: nonblocking pool is initialized
[ 116.615455] mount_root: Could not open mtd device: /dev/mtd5
[ 116.616072] mount_root: reading rootfs_data failed
[ 116.631104] mount_root: Could not open mtd device: /dev/mtd4
[ 116.631724] mount_root: reading rootfs failed
[ 116.633198] mount_root: mounting /dev/root
[ 121.989331] procd: - early -
[ 121.990004] procd: - watchdog -
[ 123.634669] procd: failed to set stdio
[ 123.635258] procd: - ubus -
[ 123.706913] procd: - init -
[ 183.946917] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 184.050965] Loading modules backported from Linux version wt-2016-05-12-0-g7a54796
[ 184.051081] Backport generated by backports.git backports-20160216-0-ge3c56e4
[ 184.081288] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 184.154967] nf_conntrack version 0.5.0 (193 buckets, 772 max)
[ 184.439576] xt_time: kernel timezone is -0000
[ 185.801571] PPP generic driver version 2.4.2
[ 185.834545] NET: Registered protocol family 24
[ 187.144096] CPU 0 Unable to handle kernel paging request at virtual address c06470f0, epc == c06470f0, ra == c0656328
[ 187.144232] Oops[#1]:
[ 187.144375] CPU: 0 PID: 504 Comm: kmodloader Not tainted 4.1.27 #11
[ 187.144504] task: 80913570 ti: 8055e000 task.ti: 8055e000
[ 187.144590] $ 0 : 00000000 10009400 00000005 00000005
[ 187.144788] $ 4 : c06a8160 00000dd8 00000000 00000000
[ 187.144985] $ 8 : 00000000 80005830 00000008 00000000
[ 187.145177] $12 : 80406000 00000024 00000000 ffffff80
[ 187.145372] $16 : 808bc858 c076669c 00000000 808bcb28
[ 187.145567] $20 : 803e0000 00000002 80984780 800613a4
[ 187.145761] $24 : 00000018 8009d9c4
[ 187.145955] $28 : 8055e000 8055fb98 00000124 c0656328
[ 187.146162] Hi : 00000000
[ 187.146248] Lo : 00000000
[ 187.146413] epc : c06470f0 0xc06470f0
[ 187.146928] ra : c0656328 ieee80211_alloc_hw_nm+0x114/0x4e4 [mac80211]
[ 187.147027] Status: 10009403 KERNEL EXL IE
[ 187.147172] Cause : 00800008
[ 187.147260] BadVA : c06470f0
[ 187.147360] PrId : 00024000 (Broadcom BMIPS32)
[ 187.147437] Modules linked in: b43(+) pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211
xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4
nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle
iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables
x_tables leds_gpio gpio_button_hotplug
[ 187.149267] Process kmodloader (pid: 504, threadinfo=8055e000, task=80913570, tls=77a88e50)
[ 187.149354] Stack : 00000000 808bc858 c07877c0 c07439e0 8032cb30 808bc858 00000000 808bc858
[ 187.149354] 808bcb28 c073f1b8 80370000 80eebcb8 80eebd58 808d2088 80eebd58 80eebcb8
[ 187.149354] 808d2088 8032cb30 00000001 00000002 00000017 800613a4 808bc858 00000000
[ 187.149354] c07877dc c07877c0 803e0000 00000002 00000017 800613a4 00000124 801c59c0
[ 187.149354] 803e0000 80191920 fffffffe 80984500 808cf038 80899600 80899634 c07877dc
[ 187.149354] ...
[ 187.150695] Call Trace:
[ 187.151260] [<c07439e0>] b43_bus_dev_ssb_init+0x20/0x13c [b43]
[ 187.151886] [<c073f1b8>] b43_wireless_core_reset+0x250/0xf38 [b43]
[ 187.152248] [<800613a4>] module_sect_show+0x0/0x18
[ 187.152454] [<800613a4>] module_sect_show+0x0/0x18
[ 187.152651] [<801c59c0>] ssb_device_probe+0x4c/0x7c
[ 187.152813] [<80191920>] driver_sysfs_add+0x6c/0xa0
[ 187.153107] [<80191f98>] driver_probe_device+0x10c/0x26c
[ 187.153258] [<80149244>] kvasprintf+0x70/0x94
[ 187.153544] [<801921d8>] __driver_attach+0x7c/0xb4
[ 187.153684] [<801903a8>] next_device+0x10/0x2c
[ 187.153881] [<8019215c>] __driver_attach+0x0/0xb4
[ 187.154021] [<80190458>] bus_for_each_dev+0x94/0xa4
[ 187.154237] [<802b6cd0>] klist_add_tail+0x24/0x50
[ 187.154426] [<80190244>] bus_get+0x2c/0x44
[ 187.154679] [<80191680>] bus_add_driver+0x108/0x1f0
[ 187.154925] [<8019269c>] driver_register+0xac/0x100
[ 187.155131] [<80033ccc>] __queue_work+0x224/0x258
[ 187.155637] [<80e40000>] init_module+0x0/0x74 [b43]
[ 187.156145] [<80e40000>] init_module+0x0/0x74 [b43]
[ 187.156697] [<80e40024>] init_module+0x24/0x74 [b43]
[ 187.156882] [<80042c94>] __wake_up+0x4c/0x74
[ 187.157384] [<80e40000>] init_module+0x0/0x74 [b43]
[ 187.157941] [<80e40000>] init_module+0x0/0x74 [b43]
[ 187.158115] [<8000a508>] do_one_initcall+0x1fc/0x228
[ 187.158620] [<80e40000>] init_module+0x0/0x74 [b43]
[ 187.158784] [<80031d18>] call_usermodehelper_exec+0x144/0x168
[ 187.159036] [<800613a4>] module_sect_show+0x0/0x18
[ 187.159248] [<80062514>] do_init_module+0x70/0x1b8
[ 187.159459] [<800968c0>] __vunmap+0xec/0x110
[ 187.159763] [<80063d54>] load_module+0x15fc/0x1a94
[ 187.159927] [<8006126c>] unknown_module_param_cb+0x0/0x68
[ 187.160076] [<8004026c>] put_prev_task_fair+0x2c/0x5c
[ 187.160316] [<8003c608>] update_rq_clock+0x28/0x84
[ 187.160582] [<800078c4>] preempt_schedule_common+0x20/0x48
[ 187.160750] [<80064260>] SyS_init_module+0x74/0x150
[ 187.160968] [<800642f8>] SyS_init_module+0x10c/0x150
[ 187.161315] [<800033c8>] handle_sys+0x128/0x14c
[ 187.161496] [<80005818>] __bzero+0xbc/0x164
[ 187.161656]
[ 187.161730]
[ 187.161730] Code: (Bad address in epc)
[ 187.161843]
[ 187.162169] ---[ end trace 83656aa3c1b8df4a ]---
But when I modprobe the b43 module manually in failsafe mode, it loads fine:
[ 71.869694] Loading modules backported from Linux version wt-2016-05-12-0-g7a54796
[ 71.869806] Backport generated by backports.git backports-20160216-0-ge3c56e4
[ 72.403100] b43-phy0: Broadcom 4306 WLAN found (core revision 5)
[ 72.483794] b43-phy0: Found PHY: Analog 2, Type 2 (G), Revision 2
[ 72.483977] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2050, Revision 2, Version 0
[ 72.504713] Broadcom 43xx driver loaded [ Features: PNL ]
[ 72.506041] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-517
[ 74.883484] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 79.509447] random: nonblocking pool is initialized
--
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