coolsnowwolf / lede

Lean's LEDE source
Other
29.59k stars 19.51k forks source link

4a-gigabit不启动,反复重启。 #9317

Open yuzhe1129 opened 2 years ago

yuzhe1129 commented 2 years ago

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

2. 详细叙述

(1) 具体问题

A:

(2) 路由器型号和固件版本

4a-gigabit 小米4A千兆版, 4.26更新源码了还是不启动,可以维护修复下吗 A:

(3) 详细日志

Boot and Recovery Environment for Embedded Devices Copyright (C) 2021 HackPascal hackpascal@gmail.com Build date 2021-12-15 [git-f9b74d0] Version 1.1 (r1337)

DRAM: 128MB Platform: MediaTek MT7621A ver 1, eco 3 Board: PandoraBox PBR-M1 / Newifi Y2S Clocks: CPU: 880MHz, DDR: 1040MHz, Bus: 220MHz, Ref: 40MHz Flash: GigaDevice GD25Q128 (16MB) on mt7621-spi.0 rt2880-eth: MAC address from EEPROM is invalid, using default settings. rt2880-eth: Using MAC address 00:0c:43:00:00:01 eth0: MediaTek MT7530 Gigabit switch

Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0

Press any key to interrupt autoboot ... 0

Trying to boot firmware from 0x00050000 in flash bank 0 ... Reading data into memory ... U-Boot firmware image header detected. Image Name: MIPS OpenWrt Linux-5.4.190 Data Size: 2538146 Bytes Load Address: 80001000 Entry Point: 80001000 Flushing cache ... done.

Starting kernel at 0x80001000...

OpenWrt kernel loader for MIPS based SoC Copyright (C) 2011 Gabor Juhos juhosg@openwrt.org Decompressing kernel... done! Starting kernel at 80001000...

[ 0.000000] Linux version 5.4.190 (bbb@ubuntu) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r4479-2a91c7245)) #0 SMP Mon Apr 25 11:18:22 2022 [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc) [ 0.000000] MIPS: machine is Xiaomi Mi Router 4A Gigabit Edition [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] VPE topology {2,2} total 4 [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] percpu: Embedded 14 pages/cpu s26992 r8192 d22160 u57344 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480 [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.000000] Writing ErrCtl register=00000e0c [ 0.000000] Readback ErrCtl register=00000e0c [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 120324K/131072K available (6144K kernel code, 254K rwdata, 1288K rodata, 1260K init, 238K bss, 10748K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 256 [ 0.000000] random: get_random_bytes called from start_kernel+0x36c/0x584 with crng_init=0 [ 0.000000] CPU Clock: 880MHz [ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns [ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns [ 0.007814] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688) [ 0.073980] pid_max: default: 32768 minimum: 301 [ 0.078780] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.085980] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.096657] rcu: Hierarchical SRCU implementation. [ 0.102025] smp: Bringing up secondary CPUs ... [ 3.490765] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 3.490775] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 3.490789] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 3.490901] CPU1 revision is: 0001992f (MIPS 1004Kc) [ 0.166821] Synchronize counters for CPU 1: done. [ 3.213645] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 3.213653] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 3.213661] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 3.213719] CPU2 revision is: 0001992f (MIPS 1004Kc) [ 0.257606] Synchronize counters for CPU 2: done. [ 3.303081] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 3.303089] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 3.303097] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 3.303164] CPU3 revision is: 0001992f (MIPS 1004Kc) [ 0.342791] Synchronize counters for CPU 3: done. [ 0.372662] smp: Brought up 1 node, 4 CPUs [ 0.381273] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.391072] futex hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.398101] pinctrl core: initialized pinctrl subsystem [ 0.405034] NET: Registered protocol family 16 [ 0.440432] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512 [ 0.451825] clocksource: Switched to clocksource GIC [ 0.458752] NET: Registered protocol family 2 [ 0.463275] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.470986] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.479369] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.486967] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.493953] TCP: Hash tables configured (established 1024 bind 1024) [ 0.500416] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.506908] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.514068] NET: Registered protocol family 1 [ 0.518358] PCI: CLS 0 bytes, default 32 [ 0.761741] 4 CPUs re-calibrate udelay(lpj = 2924544) [ 0.768452] workingset: timestamp_bits=14 max_order=15 bucket_order=1 [ 0.775490] random: fast init done [ 0.790092] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.795871] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.808884] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.814789] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.820617] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.827069] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled [ 0.834861] printk: console [ttyS0] disabled [ 0.839123] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A [ 0.848134] printk: console [ttyS0] enabled [ 0.848134] printk: console [ttyS0] enabled [ 0.856390] printk: bootconsole [early0] disabled [ 0.856390] printk: bootconsole [early0] disabled [ 0.868671] spi-mt7621 1e000b00.spi: sys_freq: 220000000 [ 0.876881] spi-nor spi0.0: gd25q128 (16384 Kbytes) [ 0.881913] 8 fixed-partitions partitions found on MTD device spi0.0 [ 0.888237] Creating 8 MTD partitions on "spi0.0": [ 0.893048] 0x000000000000-0x000000030000 : "u-boot" [ 0.899306] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.905968] 0x000000040000-0x000000050000 : "Bdata" [ 0.912293] 0x000000050000-0x000000060000 : "factory" [ 0.918711] 0x000000060000-0x000000070000 : "crash" [ 0.924977] 0x000000070000-0x000000080000 : "cfg_bak" [ 0.931339] 0x000000080000-0x000000180000 : "overlay" [ 0.937787] 0x000000180000-0x000001000000 : "firmware" [ 0.992435] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module [ 1.001193] mtk_soc_eth 1e100000.ethernet: generated random MAC address ce:5b:2b:eb:fd:43 [ 1.010267] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 22 [ 1.020974] mt7621-pci 1e140000.pcie: Parsing DT failed [ 1.028675] NET: Registered protocol family 10 [ 1.034678] Segment Routing with IPv6 [ 1.038432] NET: Registered protocol family 17 [ 1.043235] 8021q: 802.1Q VLAN Support v1.8 [ 1.050923] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module [ 1.068993] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] [ 1.078866] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] [ 1.088716] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] [ 1.098491] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode [ 1.109765] DSA: tree 0 setup [ 1.113132] rt2880-pinmux pinctrl: pcie is already enabled [ 1.118752] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1) [ 1.126359] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0) [ 1.233789] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz [ 1.239352] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz [ 1.344833] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK) [ 1.351783] mt7621-pci 1e140000.pcie: PCIE0 enabled [ 1.356637] mt7621-pci 1e140000.pcie: PCIE1 enabled [ 1.361496] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002 [ 1.370950] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00 [ 1.377307] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff] [ 1.384169] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] [ 1.391013] pci_bus 0000:00: root bus resource [bus 00-ff] [ 1.396539] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400 [ 1.402568] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff] [ 1.408809] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff] [ 1.415133] pci 0000:00:00.0: supports D1 [ 1.419126] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 1.425258] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400 [ 1.431269] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff] [ 1.437533] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff] [ 1.443849] pci 0000:00:01.0: supports D1 [ 1.447840] pci 0000:00:01.0: PME# supported from D0 D1 D3hot [ 1.455181] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000 [ 1.461220] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit] [ 1.468039] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref] [ 1.474830] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold [ 1.482398] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 1.487612] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff] [ 1.493694] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff] [ 1.500451] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref] [ 1.507660] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 1.514493] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000 [ 1.520518] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff] [ 1.526925] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold [ 1.534439] pci 0000:00:01.0: PCI bridge to [bus 02-ff] [ 1.539650] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff] [ 1.545738] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff] [ 1.552513] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref] [ 1.559708] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02 [ 1.566358] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000] [ 1.572957] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000] [ 1.579890] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000] [ 1.586486] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000] [ 1.593444] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff] [ 1.600202] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref] [ 1.607409] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff] [ 1.614185] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref] [ 1.621376] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff] [ 1.628154] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff] [ 1.634932] pci 0000:00:00.0: BAR 7: assigned [io 0x1e160000-0x1e160fff] [ 1.641689] pci 0000:00:01.0: BAR 7: assigned [io 0x1e161000-0x1e161fff] [ 1.648473] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit] [ 1.655785] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref] [ 1.662990] pci 0000:00:00.0: PCI bridge to [bus 01] [ 1.667934] pci 0000:00:00.0: bridge window [io 0x1e160000-0x1e160fff] [ 1.674705] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff] [ 1.681463] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref] [ 1.688675] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff] [ 1.695450] pci 0000:00:01.0: PCI bridge to [bus 02] [ 1.700393] pci 0000:00:01.0: bridge window [io 0x1e161000-0x1e161fff] [ 1.707165] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff] [ 1.713937] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref] [ 1.721712] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off [ 1.722188] hctosys: unable to open rtc device (rtc0) [ 1.734494] /dev/root: Can't open blockdev [ 1.738585] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [ 1.746057] Please append a correct "root=" boot option; here are the available partitions: [ 1.754395] 1f00 192 mtdblock0 [ 1.754399] (driver?) [ 1.760902] 1f01 64 mtdblock1 [ 1.760904] (driver?) [ 1.767422] 1f02 64 mtdblock2 [ 1.767425] (driver?) [ 1.773944] 1f03 64 mtdblock3 [ 1.773947] (driver?) [ 1.780449] 1f04 64 mtdblock4 [ 1.780451] (driver?) [ 1.786971] 1f05 64 mtdblock5 [ 1.786974] (driver?) [ 1.793493] 1f06 1024 mtdblock6 [ 1.793496] (driver?) [ 1.799996] 1f07 14848 mtdblock7 [ 1.799999] (driver?) [ 1.806516] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 1.814780] Rebooting in 1 seconds..

Boot and Recovery Environment for Embedded Devices Copyright (C) 2021 HackPascal hackpascal@gmail.com Build date 2021-12-15 [git-f9b74d0] Version 1.1 (r1337)

DRAM: 128MB Platform: MediaTek MT7621A ver 1, eco 3 Board: PandoraBox PBR-M1 / Newifi Y2S Clocks: CPU: 880MHz, DDR: 1040MHz, Bus: 220MHz, Ref: 40MHz Flash: GigaDevice GD25Q128 (16MB) on mt7621-spi.0 rt2880-eth: MAC address from EEPROM is invalid, using default settings. rt2880-eth: Using MAC address 00:0c:43:00:00:01 eth0: MediaTek MT7530 Gigabit switch

Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0

Press any key to interrupt autoboot ... 2▒▒▒▒▒▒▒▒▒p▒▒

WYC-2020 commented 2 years ago

你是提起好玩吗?开了一个贴还开,有人不是给你回复了咋搞,自己搞嘛

yuzhe1129 commented 2 years ago

你提起了很好玩吗?发现一个贴子还开着,有人不是给你回复了咋搞,自己搞嘛

21号lean更新了,我这再编译还是不成功,这不是反馈BUG吗?如果更新了源码还是不启动不能反馈,那lean还更新源码做什么?干脆删仓库跑路算了

Plutonium141 commented 2 years ago

https://github.com/Plutonium141/XiaoMi-R4A-Gigabit-Actions-OpenWrt 也许可以解决你的问题

chobitsos commented 2 years ago

你是提起好玩吗?开了一个贴还开,有人不是给你回复了咋搞,自己搞嘛

https://github.com/Plutonium141/XiaoMi-R4A-Gigabit-Actions-OpenWrt 也许可以解决你的问题

你提起了很好玩吗?发现一个贴子还开着,有人不是给你回复了咋搞,自己搞嘛

21号lean更新了,我这再编译还是不成功,这不是反馈BUG吗?如果更新了源码还是不启动不能反馈,那lean还更新源码做什么?干脆删仓库跑路算了

他这个问题目前无解,应该是新的一批R4A,用的闪存openwrt不识别,但是毛子固件没问题 新批次的R4A全部都是用 Eon EN25QX128 16MB的闪存,所以openwrt还没适配dts,所以无限重启,只能等官方适配了自己改下DTS就行了 https://forum.openwrt.org/t/openwrt-on-xiaomi-4a-gigabit-will-infinite-restart/124496 有人在上面提了