Mt7612e causes system hang up
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 888
- Forks
- 436
- PR merge metrics
- No merged PRs in 30d
Description
Openwrt version: 19.07.5
mt76 version:mt76-2020-03-10-08054d5a
Hardware:My own development board using mt7628an + mt7612e
When the serial port prints "mt76x2e 0000:01:00.0: Build Time: 201507311614____", the system is hung up, the serial port can not input and output, can not enter the page, the whole system is blocked in the mt7612e program.
log :
- [ 0.000000] Linux version 4.14.209 (ubuntu@ubuntu) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11257-5090152ae3)) #0 Sun Dec 6 07:31:03 2020
- [ 0.000000] Board has DDR2
- [ 0.000000] Analog PMU set to hw control
- [ 0.000000] Digital PMU set to hw control
- [ 0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
- [ 0.000000] bootconsole [early0] enabled
- [ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
- [ 0.000000] MIPS: machine is Wavlink WL-WN575A3
- [ 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, PIPT, no 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 start_kernel+0x90/0x47c with crng_init=0
- [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
- [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
- [ 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=00036450
- [ 0.000000] Readback ErrCtl register=00036450
- [ 0.000000] Memory: 58696K/65536K available (3715K kernel code, 168K rwdata, 868K rodata, 1192K init, 200K bss, 6840K reserved, 0K cma-reserved)
- [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
- [ 0.000000] NR_IRQS: 256
- [ 0.000000] intc: using register map from devicetree
- [ 0.000000] CPU Clock: 580MHz
- [ 0.000000] timer_probe: no matching timers found
- [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
- [ 0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
- [ 0.015375] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
- [ 0.087604] pid_max: default: 32768 minimum: 301
- [ 0.096949] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.109909] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.129576] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
- [ 0.148950] futex hash table entries: 256 (order: -1, 3072 bytes)
- [ 0.161047] pinctrl core: initialized pinctrl subsystem
- [ 0.172350] NET: Registered protocol family 16
- [ 0.289241] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
- [ 0.450309] PCI host bridge /pcie@10140000 ranges:
- [ 0.459659] MEM 0x0000000020000000..0x000000002fffffff
- [ 0.469971] IO 0x0000000010160000..0x000000001016ffff
- [ 0.498215] mt7621_gpio 10000600.gpio: registering 32 gpios
- [ 0.509407] mt7621_gpio 10000600.gpio: registering 32 gpios
- [ 0.520534] mt7621_gpio 10000600.gpio: registering 32 gpios
- [ 0.532356] PCI host bridge to bus 0000:00
- [ 0.540323] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
- [ 0.553954] pci_bus 0000:00: root bus resource [io 0xffffffff]
- [ 0.565615] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
- [ 0.579030] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
- [ 0.595160] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
- [ 0.611657] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
- [ 0.624655] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
- [ 0.638380] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
- [ 0.651797] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
- [ 0.666072] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
- [ 0.679497] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
- [ 0.693957] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
- [ 0.708212] pci 0000:00:00.0: PCI bridge to [bus 01]
- [ 0.718000] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
- [ 0.731433] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
- [ 0.750235] clocksource: Switched to clocksource MIPS
- [ 0.761349] NET: Registered protocol family 2
- [ 0.770720] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.784422] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.796949] TCP: Hash tables configured (established 1024 bind 1024)
- [ 0.809658] UDP hash table entries: 256 (order: 0, 4096 bytes)
- [ 0.821131] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- [ 0.833743] NET: Registered protocol family 1
- [ 0.845696] Crashlog allocated RAM at address 0x3f00000
- [ 0.857588] workingset: timestamp_bits=30 max_order=14 bucket_order=0
- [ 0.875969] squashfs: version 4.0 (2009/01/31) Phillip Lougher
- [ 0.887417] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
- [ 0.917251] io scheduler noop registered
- [ 0.924927] io scheduler deadline registered (default)
- [ 0.935881] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
- [ 0.949511] console [ttyS0] disabled
- [ 0.956541] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
- [ 0.974374] console [ttyS0] enabled
- [ 0.974374] console [ttyS0] enabled
- [ 0.988105] bootconsole [early0] disabled
- [ 0.988105] bootconsole [early0] disabled
- [ 1.005241] spi-mt7621 10000b00.spi: sys_freq: 193333333
- [ 1.029248] m25p80 spi0.0: w25q128 (16384 Kbytes)
- [ 1.038659] 4 fixed-partitions partitions found on MTD device spi0.0
- [ 1.051254] Creating 4 MTD partitions on "spi0.0":
- [ 1.060761] 0x000000000000-0x000000030000 : "u-boot"
- [ 1.071549] 0x000000030000-0x000000040000 : "u-boot-env"
- [ 1.082978] 0x000000040000-0x000000050000 : "factory"
- [ 1.093932] 0x000000050000-0x000000800000 : "firmware"
- [ 1.107835] 2 uimage-fw partitions found on MTD device firmware
- [ 1.119630] Creating 2 MTD partitions on "firmware":
- [ 1.129483] 0x000000000000-0x0000001863e2 : "kernel"
- [ 1.140309] 0x0000001863e2-0x0000007b0000 : "rootfs"
- [ 1.150976] mtd: device 5 (rootfs) set to be root filesystem
- [ 1.163746] 1 squashfs-split partitions found on MTD device rootfs
- [ 1.176058] 0x000000670000-0x0000007b0000 : "rootfs_data"
- [ 1.188384] libphy: Fixed MDIO Bus: probed
- [ 1.207508] rt3050-esw 10110000.esw: link changed 0x00
- [ 1.218626] mtk_soc_eth 10100000.ethernet: generated random MAC address a2:35:59:49:3e:4f
- [ 1.235599] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
- [ 1.253753] NET: Registered protocol family 10
- [ 1.266678] Segment Routing with IPv6
- [ 1.274128] NET: Registered protocol family 17
- [ 1.283004] 8021q: 802.1Q VLAN Support v1.8
- [ 1.300949] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
- [ 1.321477] Freeing unused kernel memory: 1192K
- [ 1.330472] This architecture does not have kernel memory protection.
- [ 2.595103] init: Console is alive
- [ 2.602180] init: - watchdog -
- [ 2.720248] random: fast init done
- [ 4.585658] kmodloader: loading kernel modules from /etc/modules-boot.d/*
- [ 4.741643] usbcore: registered new interface driver usbfs
- [ 4.752690] usbcore: registered new interface driver hub
- [ 4.763350] usbcore: registered new device driver usb
- [ 4.779550] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- [ 4.794480] ehci-platform: EHCI generic platform driver
- [ 4.815192] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
- [ 4.828482] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
- [ 4.838854] ehci-platform 101c0000.ehci: EHCI Host Controller
- [ 4.850308] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
- [ 4.866127] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
- [ 4.900329] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
- [ 4.913754] hub 1-0:1.0: USB hub found
- [ 4.921640] hub 1-0:1.0: 1 port detected
- [ 4.932990] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- [ 4.947104] ohci-platform: OHCI generic platform driver
- [ 4.957786] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
- [ 4.971316] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
- [ 4.987117] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
- [ 5.065189] hub 2-0:1.0: USB hub found
- [ 5.073129] hub 2-0:1.0: 1 port detected
- [ 5.084483] uhci_hcd: USB Universal Host Controller Interface driver
- [ 5.124028] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
- [ 5.148921] init: - preinit -
- [ 6.413728] rt3050-esw 10110000.esw: link changed 0x00
- 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
- [ 9.967047] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
- [ 10.032765] urandom-seed: Seed file not found (/etc/urandom.seed)
- [ 10.157314] procd: - early -
- [ 10.163978] procd: - watchdog -
- [ 10.734975] rt3050-esw 10110000.esw: link changed 0x08
- [ 10.934229] procd: - watchdog -
- [ 10.940914] procd: - ubus -
- [ 11.203601] random: ubusd: uninitialized urandom read (4 bytes read)
- [ 11.424198] random: ubusd: uninitialized urandom read (4 bytes read)
- [ 11.437397] random: ubusd: uninitialized urandom read (4 bytes read)
- [ 11.451158] procd: - init -
- Please press Enter to activate this console.
- [ 12.778655] kmodloader: loading kernel modules from /etc/modules.d/*
- [ 13.110769] ip6_tables: (C) 2000-2006 Netfilter Core Team
- [ 13.176800] Netfilter messages via NETLINK v0.30.
- [ 13.222914] ip_set: protocol 6
- [ 13.357826] usbcore: registered new interface driver cdc_wdm
- [ 13.401795] Loading modules backported from Linux version v4.19.137-0-gc076c79e03c6
- [ 13.417028] Backport generated by backports.git v4.19.137-1-0-g60c3a249
- [ 13.483575] ip_tables: (C) 2000-2006 Netfilter Core Team
- [ 13.534711] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
- [ 13.652298] urngd: v1.0.2 started.
- [ 13.714854] usbcore: registered new interface driver usbserial
- [ 13.726600] usbcore: registered new interface driver usbserial_generic
- [ 13.739665] usbserial: USB Serial support registered for generic
- [ 13.862960] xt_time: kernel timezone is -0000
- [ 13.882540] usbcore: registered new interface driver cdc_ether
- [ 13.913998] usbcore: registered new interface driver cdc_ncm
- [ 13.941627] usbcore: registered new interface driver cdc_subset
- [ 14.101902] usbcore: registered new interface driver huawei_cdc_ncm
- [ 14.190161] random: crng init done
- [ 14.196947] random: 7 urandom warning(s) missed due to ratelimiting
- [ 14.222289] mt76_wmac 10300000.wmac: ASIC revision: 76280001
- [ 15.272579] mt76_wmac 10300000.wmac: Firmware Version: 20151201
- [ 15.284377] mt76_wmac 10300000.wmac: Build Time: 20151201183641
- [ 15.320273] mt76_wmac 10300000.wmac: firmware init done
- [ 15.546998] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
- [ 15.559523] mt76x2e 0000:01:00.0: ASIC revision: 76120044
- [ 15.649933] mt76x2e 0000:01:00.0: EEPROM data check failed: ffff
- [ 16.560286] mt76x2e 0000:01:00.0: Invalid MAC address, using random address 22:09:51:fd:74:39
- [ 16.669347] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
- [ 16.687425] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
- [ 16.698368] mt76x2e 0000:01:00.0: Build: 1
- [ 16.706494] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the hang on the stated OpenWrt 19.07.5, Linux 4.14.209, MT7628AN and MT7612E setup, using the provided boot log as the failure boundary. Inspect the mt7612e probe or initialization path around the “Build Time” message; done means the system completes initialization without losing console, network, or web access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- embedded-iot, networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100