Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3217 - UniElec U7623 doesn't boot. #8077

Closed
openwrt-bot opened this issue Jul 7, 2020 · 2 comments
Closed

FS#3217 - UniElec U7623 doesn't boot. #8077

openwrt-bot opened this issue Jul 7, 2020 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

dwmw2:

OpenWrt master as of today at d8ab321

The 5.4 kernel doesn't finish booting. Just hangs during PCIe setup.

MT7623> bootm
bootm flag=0, states=70f

Booting kernel from Legacy Image at 84000000 ...

Image Name: ARM OpenWrt Linux-5.4.50
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4316275 Bytes = 4.1 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.50 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13704-982468de35)) #0 SMP PREEMPT Mon Jul 6 18:23:33 2020
[ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: UniElec U7623-02 eMMC (512M RAM)
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 15 pages/cpu s30220 r8192 d23028 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootfstype=squashfs,f2fs
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 505132K/524288K available (7168K kernel code, 215K rwdata, 1664K rodata, 4096K init, 240K bss, 19156K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x4a4 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.000016] Switching to timer-based delay loop, resolution 76ns
[ 0.000173] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[ 0.000189] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[ 0.000459] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[ 0.000473] pid_max: default: 32768 minimum: 301
[ 0.000630] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000643] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001446] CPU: Testing write buffer coherency: ok
[ 0.060045] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.080032] rcu: Hierarchical SRCU implementation.
[ 0.120099] smp: Bringing up secondary CPUs ...
[ 0.360606] smp: Brought up 1 node, 4 CPUs
[ 0.360622] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[ 0.360628] CPU: All CPU(s) started in SVC mode.
[ 0.370565] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[ 0.370957] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.370979] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.371196] pinctrl core: initialized pinctrl subsystem
[ 0.372113] NET: Registered protocol family 16
[ 0.372351] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.373194] No ATAGs?
[ 0.457116] usbcore: registered new interface driver usbfs
[ 0.457173] usbcore: registered new interface driver hub
[ 0.457287] usbcore: registered new device driver usb
[ 0.458697] clocksource: Switched to clocksource arch_sys_counter
[ 0.459521] thermal_sys: Registered thermal governor 'step_wise'
[ 0.459947] NET: Registered protocol family 2
[ 0.460860] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.460899] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.460941] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.461001] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.461107] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.461139] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.461341] NET: Registered protocol family 1
[ 0.461378] PCI: CLS 0 bytes, default 64
[ 0.524240] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.529661] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.529675] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.582893] mtk-scpsys 10006000.scpsys: Failed to power on domain mfg
[ 1.583478] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 1.585804] printk: console [ttyS0] disabled
[ 1.606064] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 198, base_baud = 1625000) is a ST16650V2
[ 2.037227] printk: console [ttyS0] enabled
[ 2.042067] mtk_rng 1020f000.rng: registered RNG driver
[ 2.042214] random: fast init done
[ 2.050996] random: crng init done
[ 2.051865] loop: module loaded
[ 2.058467] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[ 2.073853] libphy: Fixed MDIO Bus: probed
[ 2.101171] libphy: mdio: probed
[ 2.110525] mtk_soc_eth 1b100000.ethernet: generated random MAC address 76:ea:77:3c:b5:94
[ 2.119205] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xe08e0000, irq 204
[ 2.128893] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[ 2.134142] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[ 2.144655] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[ 2.153785] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000
[ 2.160362] hub 1-0:1.0: USB hub found
[ 2.164151] hub 1-0:1.0: 1 port detected
[ 2.168425] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[ 2.173695] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[ 2.181116] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[ 2.187454] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.196053] hub 2-0:1.0: USB hub found
[ 2.199858] hub 2-0:1.0: 1 port detected
[ 2.204430] i2c /dev entries driver
[ 2.208454] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[ 2.218201] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 2.226452] cpu cpu0: dummy supplies not allowed for exclusive requests
[ 2.234652] sdhci: Secure Digital Host Controller Interface driver
[ 2.240877] sdhci: Copyright(c) Pierre Ossman
[ 2.246868] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 111 (MSDC0_DAT7) as part of deactivating group MSDC0_DAT7 - it is already used for some other setting
[ 2.262207] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 112 (MSDC0_DAT6) as part of deactivating group MSDC0_DAT6 - it is already used for some other setting
[ 2.277670] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 113 (MSDC0_DAT5) as part of deactivating group MSDC0_DAT5 - it is already used for some other setting
[ 2.292979] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 114 (MSDC0_DAT4) as part of deactivating group MSDC0_DAT4 - it is already used for some other setting
[ 2.308276] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 118 (MSDC0_DAT3) as part of deactivating group MSDC0_DAT3 - it is already used for some other setting
[ 2.323706] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 119 (MSDC0_DAT2) as part of deactivating group MSDC0_DAT2 - it is already used for some other setting
[ 2.339011] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 120 (MSDC0_DAT1) as part of deactivating group MSDC0_DAT1 - it is already used for some other setting
[ 2.354306] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 121 (MSDC0_DAT0) as part of deactivating group MSDC0_DAT0 - it is already used for some other setting
[ 2.369603] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 116 (MSDC0_CMD) as part of deactivating group MSDC0_CMD - it is already used for some other setting
[ 2.384724] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 117 (MSDC0_CLK) as part of deactivating group MSDC0_CLK - it is already used for some other setting
[ 2.399846] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 115 (MSDC0_RSTB) as part of deactivating group MSDC0_RSTB - it is already used for some other setting
[ 2.440697] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.449281] NET: Registered protocol family 10
[ 2.454679] Segment Routing with IPv6
[ 2.458452] NET: Registered protocol family 17
[ 2.463141] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.476389] 8021q: 802.1Q VLAN Support v1.8
[ 2.480782] ThumbEE CPU extension supported.
[ 2.485193] Registering SWP/SWPB emulation handler
[ 2.515399] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[ 2.522026] mtk-pcie 1a140000.pcie: IO 0x1a160000..0x1a16ffff -> 0x1a160000
[ 2.529325] mtk-pcie 1a140000.pcie: MEM 0x60000000..0x6fffffff -> 0x60000000

@openwrt-bot
Copy link
Author

dwmw2:

The 4.14 kernel from 19.07 looks like this during this part of the boot (and boots successfully). It looks like it's probing the eMMC at the same time:

[ 2.234289] ThumbEE CPU extension supported. [ 2.238552] Registering SWP/SWPB emulation handler [ 2.274805] mmc0: new high speed MMC card at address 0001 [ 2.280602] mmcblk0: mmc0:0001 008G70 7.28 GiB [ 2.285375] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00 [ 2.291542] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff]) [ 2.300991] mmcblk0boot0: mmc0:0001 008G70 partition 1 4.00 MiB [ 2.306961] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] [ 2.313830] mmcblk0boot1: mmc0:0001 008G70 partition 2 4.00 MiB [ 2.319796] mmcblk0rpmb: mmc0:0001 008G70 partition 3 4.00 MiB, chardev (250:0) [ 2.327391] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.333512] PCI: bus0: Fast back to back transfers disabled [ 2.339112] mmcblk0: p1 p2 p3 [ 2.343053] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring …

Now I note all the complaints from mediatek-mt2701-pinctrl about setting up the MSDC0 pins...

@openwrt-bot
Copy link
Author

dwmw2:

The failure to boot is fixed by #3066

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant