0、故障发生
在清空闪存芯片后,只写入breed和固件后,启动过程中发生故障
1、尝试解决方案
- 校验固件完整
- 确保MAC信息存在
- 确保ART信息存在,可被读取(重要)
2、报错日志
[ 0.000000] Linux version 4.14.98 (openwrt@ubuntu) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9293-e3311cb138)) #0 Sat Feb 9 20:07:16 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros TP9343 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] random: get_random_bytes called from 0x8041b6e8 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-WR941ND-v6 console=ttyS0,115200 rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60296K/65536K available (3209K kernel code, 167K rwdata, 436K rodata, 212K init, 199K bss, 5240K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] Clocks: CPU:750.000MHz, DDR:400.000MHz, AHB:250.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5096694524 ns
[ 0.000008] sched_clock: 32 bits at 375MHz, resolution 2ns, wraps every 5726622718ns
[ 0.008693] Calibrating delay loop… 373.55 BogoMIPS (lpj=1867776)
[ 0.075709] pid_max: default: 32768 minimum: 301
[ 0.081060] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.088438] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.098458] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.109468] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.116747] NET: Registered protocol family 16
[ 0.123190] MIPS: machine is TP-LINK TL-WR941N/ND v6
[ 0.604369] Can’t analyze schedule() prologue at 8037ef1c
[ 0.622212] clocksource: Switched to clocksource MIPS
[ 0.628907] NET: Registered protocol family 2
[ 0.634550] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.642378] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.649472] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.656712] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.663272] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.670520] NET: Registered protocol family 1
[ 0.680024] Crashlog allocated RAM at address 0x3f00000
[ 0.687198] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.699135] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.705676] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
[ 0.725799] io scheduler noop registered
[ 0.730175] io scheduler deadline registered (default)
[ 0.736254] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.743731] console [ttyS0] disabled
[ 0.767782] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.777407] console [ttyS0] enabled
[ 0.777407] console [ttyS0] enabled
[ 0.784820] bootconsole [early0] disabled
[ 0.784820] bootconsole [early0] disabled
[ 0.797357] m25p80 spi0.0: found s25fl064k, expected m25p80
[ 0.811021] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.816339] 5 tp-link partitions found on MTD device spi0.0
[ 0.821992] Creating 5 MTD partitions on “spi0.0”:
[ 0.826889] 0x000000000000-0x000000020000 : “u-boot”
[ 0.833610] 0x000000020000-0x000000160654 : “kernel”
[ 0.840063] 0x000000160654-0x0000007f0000 : “rootfs”
[ 0.845951] mtd: device 2 (rootfs) set to be root filesystem
[ 0.851753] 1 squashfs-split partitions found on MTD device rootfs
[ 0.858083] 0x0000003a0000-0x0000007f0000 : “rootfs_data”
[ 0.866080] 0x0000007f0000-0x000000800000 : “art”
[ 0.872301] 0x000000020000-0x0000007f0000 : “firmware”
[ 0.880526] libphy: Fixed MDIO Bus: probed
[ 0.902928] libphy: ag71xx_mdio: probed
[ 1.536233] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[ 1.546124] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 2.183943] ag71xx-mdio.1: Found an AR934X built-in switch
[ 2.235799] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 2.244216] NET: Registered protocol family 10
[ 2.253767] Segment Routing with IPv6
[ 2.257587] NET: Registered protocol family 17
[ 2.262504] 8021q: 802.1Q VLAN Support v1.8
[ 2.275522] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.284067] Freeing unused kernel memory: 212K
[ 2.288572] This architecture does not have kernel memory protection.
[ 2.522225] random: fast init done
[ 3.550741] init: Console is alive
[ 3.554504] init: - watchdog -
[ 4.214121] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.223304] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.231538] init: - preinit -
[ 4.956805] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 4.983301] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 8.342826] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.372462] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.422089] procd: - early -
[ 8.425902] procd: - watchdog -
[ 8.976387] procd: - watchdog -
[ 8.979856] procd: - ubus -
[ 9.434165] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.441895] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.448882] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.456324] procd: - init -
Please press Enter to activate this console.
[ 10.059132] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.069290] ip6_tables: © 2000-2006 Netfilter Core Team
[ 10.085778] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[ 10.093426] Backport generated by backports.git v4.19.7-1-0-g148b072d
[ 10.102848] ip_tables: © 2000-2006 Netfilter Core Team
[ 10.115669] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 10.176123] xt_time: kernel timezone is -0000
[ 10.229894] PPP generic driver version 2.4.2
[ 10.236691] NET: Registered protocol family 24
[ 10.282317] Data bus error, epc == 801deee0, ra == 82d9fe0c
[ 10.287980] Oops[#1]:
[ 10.290288] CPU: 0 PID: 451 Comm: kmodloader Not tainted 4.14.98 #0
[ 10.296646] task: 838e2100 task.stack: 833bc000
[ 10.301235] $ 0 : 00000000 00000001 deadc0de 00014000
[ 10.306541] $ 4 : b81143fc 000143fc 00014000 00000004
[ 10.311847] $ 8 : 00000001 7c7c3c7c 7c7c7c7c 7c7c7c7c
[ 10.317154] $12 : 7c7c3c7c 82ca5900 ffffff80 7c7c7c3c
[ 10.322460] $16 : 838ee010 00000018 00000000 00030000
[ 10.327766] $20 : 00010000 00031018 00000004 000003ff
[ 10.333073] $24 : 00000000 00000000
[ 10.338379] $28 : 833bc000 833bda30 833bda84 82d9fe0c
[ 10.343686] Hi : 00000003
[ 10.346599] Lo : 000000ff
[ 10.349517] epc : 801deee0 0x801deee0
[ 10.353411] ra : 82d9fe0c 0x82d9fe0c [ath9k_hw@82d80000+0x51560]
[ 10.359763] Status: 1100fc03 KERNEL EXL IE
[ 10.364006] Cause : 4080801c (ExcCode 07)
[ 10.368072] PrId : 00019750 (MIPS 74Kc)
[ 10.372048] Modules linked in: ath9k(+) ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
[ 10.434005] Process kmodloader (pid: 451, threadinfo=833bc000, task=838e2100, tls=77f87df4)
[ 10.442465] Stack : 00000000 ffffffff 834b94c8 800a3c64 00000001 803f0000 000003ff 82da0000
[ 10.450948] 83301000 838ee010 833bdb14 00000004 82dccce8 838ee44c 00000001 82d9e9b4
[ 10.459432] 82cb0605 82c6ebf5 00000220 00000220 00008000 ffffffff 833bdb14 82da0a00
[ 10.467914] 803fbce0 82d83e08 b8100000 0000003f 10ffffff 010affff 000186a0 838ee010
[ 10.476398] 838ee010 838ee038 00008000 00000001 833bdb14 00000004 82dccce8 99999999
[ 10.484881] …
[ 10.487363] Call Trace:
[ 10.487370] [<800a3c64>] 0x800a3c64
[ 10.493381] [<82da0000>] 0x82da0000 [ath9k_hw@82d80000+0x51560]
[ 10.499406] [<82d9e9b4>] 0x82d9e9b4 [ath9k_hw@82d80000+0x51560]
[ 10.505415] [<82da0a00>] 0x82da0a00 [ath9k_hw@82d80000+0x51560]
[ 10.511420] [<82d83e08>] 0x82d83e08 [ath9k_hw@82d80000+0x51560]
[ 10.517427] [<82d93048>] 0x82d93048 [ath9k_hw@82d80000+0x51560]
[ 10.523428] [<800915e8>] 0x800915e8
[ 10.526969] [<82d8643c>] 0x82d8643c [ath9k_hw@82d80000+0x51560]
[ 10.532971] [<80226478>] 0x80226478
[ 10.536505] [<801c5ac8>] 0x801c5ac8
[ 10.540048] [<800915e8>] 0x800915e8
[ 10.543584] [<82de23f4>] 0x82de23f4 [ath9k@82de0000+0x156f0]
[ 10.549322] [<800ad7ac>] 0x800ad7ac
[ 10.552861] [<82d00998>] 0x82d00998 [mac80211@82d00000+0x5fcc0]
[ 10.558866] [<82dedd78>] 0x82dedd78 [ath9k@82de0000+0x156f0]
[ 10.564611] [<80224e88>] 0x80224e88
[ 10.568154] [<8016cb08>] 0x8016cb08
[ 10.571687] [<802235c8>] 0x802235c8
[ 10.575226] [<8036c2d8>] 0x8036c2d8
[ 10.578763] [<8022370c>] 0x8022370c
[ 10.582300] [<80221778>] 0x80221778
[ 10.585840] [<80223688>] 0x80223688
[ 10.589375] [<80221830>] 0x80221830
[ 10.592913] [<8036bec0>] 0x8036bec0
[ 10.596451] [<8022167c>] 0x8022167c
[ 10.599990] [<80222b64>] 0x80222b64
[ 10.603527] [<80223d30>] 0x80223d30
[ 10.607069] [<82dff000>] 0x82dff000 [ath9k@82de0000+0x156f0]
[ 10.612801] [<80223ed8>] 0x80223ed8
[ 10.616350] [<82dff018>] 0x82dff018 [ath9k@82de0000+0x156f0]
[ 10.622087] [<80060a00>] 0x80060a00
[ 10.625623] [<800e32a0>] 0x800e32a0
[ 10.629174] [<800ca0a4>] 0x800ca0a4
[ 10.632707] [<8010d530>] 0x8010d530
[ 10.636247] [<800c9a00>] 0x800c9a00
[ 10.639782] [<800c7870>] 0x800c7870
[ 10.643325] [<8010da9c>] 0x8010da9c
[ 10.646856] [<80117fc0>] 0x80117fc0
[ 10.650395] [<800c9d18>] 0x800c9d18
[ 10.653933] [<800c9df0>] 0x800c9df0
[ 10.657473] [<8007050c>] 0x8007050c
[ 10.661010] [<8037d1f4>] 0x8037d1f4
[ 10.664545] [<8006b0f0>] 0x8006b0f0
[ 10.668084]
[ 10.669593] Code: 26310001 8c820000 0000000f <03e00008> 00000000 27bdffe8 afbf0014 0c0187be 00000000
[ 10.679493]
[ 10.681085] —[ end trace 9aaad8400056b436 ]—
[ 10.687158] Kernel panic - not syncing: Fatal exception
[ 10.693213] Rebooting in 1 seconds…