openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
20.32k stars 10.51k forks source link

IPQ806x: TP-Link Archer VR2600v, Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) #9467

Closed botischroeder closed 2 years ago

botischroeder commented 2 years ago

The TP-Link Archer VR2600v is stuck in a boot loop on written snapshot image. It's able to boot using the snapshot uimage though, but there ath10k firmware can't be found. 21.02.2 release version doesn't have either problem. @chunkeey: You recently made some changes for that target related to partitions. Could you please check if your changes are causing the boot loop? Thank you!

Log from openwrt-ipq806x-generic-tplink_vr2600v-squashfs-sysupgrade.bin

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.103 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19085-289fbc5102) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Mar 10 02:43:32 2022
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: TP-Link Archer VR2600v
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121800
[    0.000000] Kernel command line:
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8 root=mtd:rootfs rootfstype=squashfs
[    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: 475432K/491520K available (6977K kernel code, 615K rwdata, 1688K rodata, 1024K init, 241K bss, 16088K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of 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+0x3a0/0x54c with crng_init=0
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000007] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000024] Switching to timer-based delay loop, resolution 160ns
[    0.000293] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000324] pid_max: default: 32768 minimum: 301
[    0.000502] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000523] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001625] CPU: Testing write buffer coherency: ok
[    0.001916] qcom_scm: convention: smc legacy
[    0.002853] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003027] rcu: Hierarchical SRCU implementation.
[    0.003311] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003554] smp: Bringing up secondary CPUs ...
[    0.005478] smp: Brought up 1 node, 2 CPUs
[    0.005502] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.005516] CPU: All CPU(s) started in SVC mode.
[    0.016351] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.016526] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016559] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.016710] pinctrl core: initialized pinctrl subsystem
[    0.018000] NET: Registered protocol family 16
[    0.018332] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.019698] thermal_sys: Registered thermal governor 'step_wise'
[    0.021868] cpuidle: using governor ladder
[    0.021952] cpuidle: using governor menu
[    0.066821] usbcore: registered new interface driver usbfs
[    0.066910] usbcore: registered new interface driver hub
[    0.066986] usbcore: registered new device driver usb
[    0.067050] pps_core: LinuxPPS API ver. 1 registered
[    0.067066] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.067105] PTP clock support registered
[    0.069307] clocksource: Switched to clocksource dg_timer
[    0.070412] NET: Registered protocol family 2
[    0.070583] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.071553] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.071614] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.071658] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.071713] TCP: Hash tables configured (established 4096 bind 4096)
[    0.071825] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.071861] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.072096] NET: Registered protocol family 1
[    0.072155] PCI: CLS 0 bytes, default 64
[    0.073652] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.079599] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.079621] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.181898] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.184004] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.184269] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.184392] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.184689] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.184782] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x000fe00000
[    0.184827] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.405003] qcom-pcie 1b500000.pci: Link up
[    0.405182] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.405213] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.405239] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xfe00000-0xfe0ffff])
[    0.405262] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.405346] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.405506] pci 0000:00:00.0: supports D1
[    0.405526] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.410436] PCI: bus0: Fast back to back transfers disabled
[    0.410967] pci 0000:01:00.0: [168c:0040] type 00 class 0x028000
[    0.411265] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.412643] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.417727] PCI: bus1: Fast back to back transfers disabled
[    0.417831] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.417861] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.418015] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.418042] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.419017] pcieport 0000:00:00.0: AER: enabled with IRQ 43
[    0.420220] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.420502] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.420628] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.420908] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.420990] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0031e00000
[    0.421035] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    1.569812] qcom-pcie 1b700000.pci: Phy link never came up
[    1.571835] qcom-pcie 1b700000.pci: cannot initialize host
[    1.572453] qcom-pcie: probe of 1b700000.pci failed with error -110
[    1.574919] L2 @ QSB rate. Forcing new rate.
[    1.575144] L2 @ 384000 KHz
[    1.575340] CPU0 @ 800000 KHz
[    1.575356] CPU1 @ QSB rate. Forcing new rate.
[    1.575489] CPU1 @ 384000 KHz
[    1.579972] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    1.582220] gsbi 1a200000.gsbi: GSBI port protocol: 3 crci: 0
[    1.584699] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.587247] msm_serial 16340000.serial: msm_serial: detected port #0
[    1.587305] msm_serial 16340000.serial: uartclk = 7372800
[    1.587385] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 44, base_baud = 460800) is a MSM
[    1.587431] msm_serial: console setup on port #0
[    2.330619] printk: console [ttyMSM0] enabled
[    2.335748] msm_serial: driver initialized
[    2.345163] loop: module loaded
[    2.346414] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    2.349427] spi-nor spi0.0: w25q128fw (16384 Kbytes)
[    2.354550] 14 fixed-partitions partitions found on MTD device spi0.0
[    2.359448] Creating 14 MTD partitions on "spi0.0":
[    2.365882] 0x000000000000-0x000000020000 : "SBL1"
[    2.371224] 0x000000020000-0x000000040000 : "MIBIB"
[    2.375931] 0x000000040000-0x000000080000 : "SBL2"
[    2.380708] 0x000000080000-0x000000100000 : "SBL3"
[    2.385501] 0x000000100000-0x000000110000 : "DDRCONFIG"
[    2.390368] 0x000000110000-0x000000120000 : "SSD"
[    2.395385] 0x000000120000-0x0000001a0000 : "TZ"
[    2.400321] 0x0000001a0000-0x000000220000 : "RPM"
[    2.404942] 0x000000220000-0x0000002a0000 : "APPSBL"
[    2.409667] 0x0000002a0000-0x0000002e0000 : "APPSBLENV"
[    2.414599] 0x0000002e0000-0x000000320000 : "OLDART"
[    2.419673] 0x000000320000-0x000000f80000 : "firmware"
[    2.432612] random: fast init done
[    2.462200] 0x000000faf100-0x000000faf300 : "default-mac"
[    2.462844] 0x000000fc0000-0x000001000000 : "ART"
[    2.492360] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.316695] ar8327: qca,phy-rgmii-en is not specified
[    3.317829] ipq806x-gmac-dwmac 37200000.ethernet: IRQ eth_wake_irq not found
[    3.320835] ipq806x-gmac-dwmac 37200000.ethernet: IRQ eth_lpi not found
[    3.328499] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[    3.334975] ipq806x-gmac-dwmac 37200000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.340885] ipq806x-gmac-dwmac 37200000.ethernet:    DWMAC1000
[    3.348254] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[    3.354146] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[    3.361861] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[    3.369765] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[    3.375509] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[    3.382960] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[    3.389725] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[    3.397212] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[    3.404318] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.412380] ipq806x-gmac-dwmac 37400000.ethernet: IRQ eth_wake_irq not found
[    3.419088] ipq806x-gmac-dwmac 37400000.ethernet: IRQ eth_lpi not found
[    3.426790] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[    3.432916] ipq806x-gmac-dwmac 37400000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.439056] ipq806x-gmac-dwmac 37400000.ethernet:    DWMAC1000
[    3.446611] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[    3.452442] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[    3.460141] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[    3.467955] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[    3.473860] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[    3.481229] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[    3.487924] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[    3.495539] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[    3.502575] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.510722] i2c /dev entries driver
[    3.522074] sdhci: Secure Digital Host Controller Interface driver
[    3.522112] sdhci: Copyright(c) Pierre Ossman
[    3.527150] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.534306] NET: Registered protocol family 10
[    3.538797] Segment Routing with IPv6
[    3.541759] NET: Registered protocol family 17
[    3.545385] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.550742] 8021q: 802.1Q VLAN Support v1.8
[    3.562919] Registering SWP/SWPB emulation handler
[    3.590156] qcom_rpm 108000.rpm: RPM firmware 3.0.16777342
[    3.606522] s1a: Bringing 0uV into 1050000-1050000uV
[    3.606799] s1a: supplied by regulator-dummy
[    3.610782] s1b: Bringing 0uV into 1050000-1050000uV
[    3.615030] s1b: supplied by regulator-dummy
[    3.619970] s2a: Bringing 0uV into 800000-800000uV
[    3.624224] s2a: supplied by regulator-dummy
[    3.628762] s2b: Bringing 0uV into 800000-800000uV
[    3.633329] s2b: supplied by regulator-dummy
[    3.639587] thermal thermal_zone0: failed to read out thermal zone (-110)
[    3.656054] /dev/root: Can't open blockdev
[    3.656078] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.659036] Please append a correct "root=" boot option; here are the available partitions:
[    3.666681] 1f00             128 mtdblock0
[    3.666686]  (driver?)
[    3.678913] 1f01             128 mtdblock1
[    3.678918]  (driver?)
[    3.685424] 1f02             256 mtdblock2
[    3.685428]  (driver?)
[    3.691999] 1f03             512 mtdblock3
[    3.692003]  (driver?)
[    3.698443] 1f04              64 mtdblock4
[    3.698447]  (driver?)
[    3.704955] 1f05              64 mtdblock5
[    3.704960]  (driver?)
[    3.711525] 1f06             512 mtdblock6
[    3.711530]  (driver?)
[    3.717975] 1f07             512 mtdblock7
[    3.717979]  (driver?)
[    3.724485] 1f08             512 mtdblock8
[    3.724489]  (driver?)
[    3.731048] 1f09             256 mtdblock9
[    3.731052]  (driver?)
[    3.737507] 1f0a             256 mtdblock10
[    3.737512]  (driver?)
[    3.744366] 1f0b           12672 mtdblock11
[    3.744369]  (driver?)
[    3.751011] 1f0c               0 mtdblock12
[    3.751016]  (driver?)
[    3.757559] 1f0d             256 mtdblock13
[    3.757563]  (driver?)
[    3.764155] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.767261] CPU1: stopping
[    3.774581] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.103 #0
[    3.777268] Hardware name: Generic DT based system
[    3.783456] [<c030e32c>] (unwind_backtrace) from [<c030a1ac>] (show_stack+0x14/0x20)
[    3.788137] [<c030a1ac>] (show_stack) from [<c062fe48>] (dump_stack+0x94/0xa8)
[    3.796034] [<c062fe48>] (dump_stack) from [<c030d050>] (do_handle_IPI+0x140/0x184)
[    3.803063] [<c030d050>] (do_handle_IPI) from [<c030d0b0>] (ipi_handler+0x1c/0x2c)
[    3.810615] [<c030d0b0>] (ipi_handler) from [<c03712b4>] (__handle_domain_irq+0x90/0xf4)
[    3.818257] [<c03712b4>] (__handle_domain_irq) from [<c064a1a0>] (gic_handle_irq+0x90/0xb8)
[    3.826502] [<c064a1a0>] (gic_handle_irq) from [<c0300b0c>] (__irq_svc+0x6c/0x90)
[    3.834564] Exception stack(0xc146df18 to 0xc146df60)
[    3.842205] df00:                                                       00000000 00000000
[    3.847258] df20: 1cf5b000 ddba1cc0 00000001 e0278900 c1c83040 00000001 ddba0fb0 00000000
[    3.855418] df40: 00000000 00000000 00044fc0 c146df68 c07ba73c c07ba75c 60000013 ffffffff
[    3.863572] [<c0300b0c>] (__irq_svc) from [<c07ba75c>] (cpuidle_enter_state+0x180/0x380)
[    3.871726] [<c07ba75c>] (cpuidle_enter_state) from [<c07ba9ac>] (cpuidle_enter+0x3c/0x5c)
[    3.879887] [<c07ba9ac>] (cpuidle_enter) from [<c034e108>] (do_idle+0x208/0x2a4)
[    3.887957] [<c034e108>] (do_idle) from [<c034e460>] (cpu_startup_entry+0x1c/0x20)
[    3.895509] [<c034e460>] (cpu_startup_entry) from [<4230152c>] (0x4230152c)
[    3.902887] Rebooting in 1 seconds..

Log from openwrt-ipq806x-generic-tplink_vr2600v-initramfs-uImage

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.103 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19093-9851d4b6ce) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Mar 12 11:13:54 2022
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: TP-Link Archer VR2600v
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121800
[    0.000000] Kernel command line:
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8
[    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: 466220K/491520K available (6977K kernel code, 615K rwdata, 1688K rodata, 10240K init, 241K bss, 25300K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of 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+0x3a0/0x54c with crng_init=0
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000008] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000025] Switching to timer-based delay loop, resolution 160ns
[    0.000299] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000330] pid_max: default: 32768 minimum: 301
[    0.000507] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000528] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001638] CPU: Testing write buffer coherency: ok
[    0.001933] qcom_scm: convention: smc legacy
[    0.002868] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003040] rcu: Hierarchical SRCU implementation.
[    0.003326] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003574] smp: Bringing up secondary CPUs ...
[    0.005517] smp: Brought up 1 node, 2 CPUs
[    0.005540] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.005554] CPU: All CPU(s) started in SVC mode.
[    0.016379] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.016551] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016585] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.016732] pinctrl core: initialized pinctrl subsystem
[    0.018012] NET: Registered protocol family 16
[    0.018342] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.019707] thermal_sys: Registered thermal governor 'step_wise'
[    0.021876] cpuidle: using governor ladder
[    0.021959] cpuidle: using governor menu
[    0.066863] usbcore: registered new interface driver usbfs
[    0.066953] usbcore: registered new interface driver hub
[    0.067030] usbcore: registered new device driver usb
[    0.067094] pps_core: LinuxPPS API ver. 1 registered
[    0.067110] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.067148] PTP clock support registered
[    0.069349] clocksource: Switched to clocksource dg_timer
[    0.070456] NET: Registered protocol family 2
[    0.070631] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.071598] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.071658] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.071701] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.071759] TCP: Hash tables configured (established 4096 bind 4096)
[    0.071868] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.071907] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.072144] NET: Registered protocol family 1
[    0.072204] PCI: CLS 0 bytes, default 64
[    0.221890] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.227705] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.227726] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.333394] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.335714] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.335976] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.336095] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.336395] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.336486] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x000fe00000
[    0.336531] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.566922] qcom-pcie 1b500000.pci: Link up
[    0.567102] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.567130] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.567154] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xfe00000-0xfe0ffff])
[    0.567177] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.567264] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.567420] pci 0000:00:00.0: supports D1
[    0.567440] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.572333] PCI: bus0: Fast back to back transfers disabled
[    0.572870] pci 0000:01:00.0: [168c:0040] type 00 class 0x028000
[    0.573167] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.574542] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.579606] PCI: bus1: Fast back to back transfers disabled
[    0.579806] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.579836] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.579990] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.580018] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.580997] pcieport 0000:00:00.0: AER: enabled with IRQ 43
[    0.582068] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.582326] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.582443] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.582731] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.582810] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0031e00000
[    0.582854] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    1.728827] qcom-pcie 1b700000.pci: Phy link never came up
[    1.730847] qcom-pcie 1b700000.pci: cannot initialize host
[    1.731469] qcom-pcie: probe of 1b700000.pci failed with error -110
[    1.733946] L2 @ QSB rate. Forcing new rate.
[    1.734184] L2 @ 384000 KHz
[    1.734376] CPU0 @ 800000 KHz
[    1.734392] CPU1 @ QSB rate. Forcing new rate.
[    1.734525] CPU1 @ 384000 KHz
[    1.738857] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    1.741200] gsbi 1a200000.gsbi: GSBI port protocol: 3 crci: 0
[    1.743694] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.746215] msm_serial 16340000.serial: msm_serial: detected port #0
[    1.746277] msm_serial 16340000.serial: uartclk = 7372800
[    1.746361] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 44, base_baud = 460800) is a MSM
[    1.746410] msm_serial: console setup on port #0
[    2.486543] printk: console [ttyMSM0] enabled
[    2.491770] msm_serial: driver initialized
[    2.501157] loop: module loaded
[    2.502375] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    2.505377] spi-nor spi0.0: w25q128fw (16384 Kbytes)
[    2.510646] 14 fixed-partitions partitions found on MTD device spi0.0
[    2.515442] Creating 14 MTD partitions on "spi0.0":
[    2.521868] 0x000000000000-0x000000020000 : "SBL1"
[    2.527121] 0x000000020000-0x000000040000 : "MIBIB"
[    2.532022] 0x000000040000-0x000000080000 : "SBL2"
[    2.536629] 0x000000080000-0x000000100000 : "SBL3"
[    2.541561] 0x000000100000-0x000000110000 : "DDRCONFIG"
[    2.546258] 0x000000110000-0x000000120000 : "SSD"
[    2.551466] 0x000000120000-0x0000001a0000 : "TZ"
[    2.556235] 0x0000001a0000-0x000000220000 : "RPM"
[    2.561018] 0x000000220000-0x0000002a0000 : "APPSBL"
[    2.565552] 0x0000002a0000-0x0000002e0000 : "APPSBLENV"
[    2.570664] 0x0000002e0000-0x000000320000 : "OLDART"
[    2.575592] 0x000000320000-0x000000f80000 : "firmware"
[    2.588620] random: fast init done
[    2.618134] 0x000000faf100-0x000000faf300 : "default-mac"
[    2.618779] 0x000000fc0000-0x000001000000 : "ART"
[    2.672149] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.518229] ar8327: qca,phy-rgmii-en is not specified
[    3.519383] ipq806x-gmac-dwmac 37200000.ethernet: IRQ eth_wake_irq not found
[    3.522370] ipq806x-gmac-dwmac 37200000.ethernet: IRQ eth_lpi not found
[    3.530092] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[    3.536413] ipq806x-gmac-dwmac 37200000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.542416] ipq806x-gmac-dwmac 37200000.ethernet:    DWMAC1000
[    3.549869] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[    3.555612] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[    3.563393] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[    3.571297] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[    3.577047] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[    3.584494] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[    3.591257] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[    3.598750] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[    3.605850] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.613944] ipq806x-gmac-dwmac 37400000.ethernet: IRQ eth_wake_irq not found
[    3.620722] ipq806x-gmac-dwmac 37400000.ethernet: IRQ eth_lpi not found
[    3.628275] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[    3.634446] ipq806x-gmac-dwmac 37400000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.640714] ipq806x-gmac-dwmac 37400000.ethernet:    DWMAC1000
[    3.648054] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[    3.653962] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[    3.661677] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[    3.669493] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[    3.675387] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[    3.682762] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[    3.689462] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[    3.697068] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[    3.704107] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.712233] i2c /dev entries driver
[    3.723576] sdhci: Secure Digital Host Controller Interface driver
[    3.723616] sdhci: Copyright(c) Pierre Ossman
[    3.728653] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.735728] NET: Registered protocol family 10
[    3.740437] Segment Routing with IPv6
[    3.743154] NET: Registered protocol family 17
[    3.746890] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.752460] 8021q: 802.1Q VLAN Support v1.8
[    3.764406] Registering SWP/SWPB emulation handler
[    3.791663] qcom_rpm 108000.rpm: RPM firmware 3.0.16777342
[    3.805452] s1a: Bringing 0uV into 1050000-1050000uV
[    3.805725] s1a: supplied by regulator-dummy
[    3.809608] s1b: Bringing 0uV into 1050000-1050000uV
[    3.814064] s1b: supplied by regulator-dummy
[    3.818817] s2a: Bringing 0uV into 800000-800000uV
[    3.823261] s2a: supplied by regulator-dummy
[    3.827673] s2b: Bringing 0uV into 800000-800000uV
[    3.832237] s2b: supplied by regulator-dummy
[    3.840625] thermal thermal_zone0: failed to read out thermal zone (-110)
[    3.860844] Freeing unused kernel memory: 10240K
[    3.900992] Run /init as init process
[    4.207362] init: Console is alive
[    4.207528] init: - watchdog -
[    4.210118] init: Watchdog has previously reset the system
[    4.233544] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.240275] genirq: irq_chip msmgpio did not update eff. affinity mask of irq 46
[    4.244951] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.251262] SCSI subsystem initialized
[    4.263856] ehci-fsl: Freescale EHCI Host controller driver
[    4.264544] ehci-platform: EHCI generic platform driver
[    4.273604] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.274164] ohci-platform: OHCI generic platform driver
[    4.282160] dwc3-qcom 110f8800.usb3: IRQ hs_phy_irq not found
[    4.284812] dwc3-qcom 110f8800.usb3: IRQ dp_hs_phy_irq not found
[    4.290795] dwc3-qcom 110f8800.usb3: IRQ dm_hs_phy_irq not found
[    4.296791] dwc3-qcom 110f8800.usb3: IRQ ss_phy_irq not found
[    4.304833] dwc3-qcom 100f8800.usb3: IRQ hs_phy_irq not found
[    4.308423] dwc3-qcom 100f8800.usb3: IRQ dp_hs_phy_irq not found
[    4.314234] dwc3-qcom 100f8800.usb3: IRQ dm_hs_phy_irq not found
[    4.320301] dwc3-qcom 100f8800.usb3: IRQ ss_phy_irq not found
[    4.530328] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.530389] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    4.534913] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    4.542443] xhci-hcd xhci-hcd.0.auto: irq 51, io mem 0x11000000
[    4.552832] hub 1-0:1.0: USB hub found
[    4.557613] hub 1-0:1.0: 1 port detected
[    4.561824] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.565455] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    4.570845] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    4.579606] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.585623] hub 2-0:1.0: USB hub found
[    4.593361] hub 2-0:1.0: 1 port detected
[    4.597029] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.600860] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    4.606208] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    4.613708] xhci-hcd xhci-hcd.1.auto: irq 52, io mem 0x10000000
[    4.623779] hub 3-0:1.0: USB hub found
[    4.628920] hub 3-0:1.0: 1 port detected
[    4.632964] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.636797] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    4.642170] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    4.649778] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.656576] hub 4-0:1.0: USB hub found
[    4.664596] hub 4-0:1.0: 1 port detected
[    4.670074] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.681630] init: - preinit -
[    4.875502] random: jshn: uninitialized urandom read (4 bytes read)
[    4.908075] random: jshn: uninitialized urandom read (4 bytes read)
[    4.987678] random: jshn: uninitialized urandom read (4 bytes read)
[    6.017238] urandom_read: 2 callbacks suppressed
[    6.017245] random: procd: uninitialized urandom read (4 bytes read)
[    6.026871] dwmac1000: Master AXI performs any burst length
[    6.027276] ipq806x-gmac-dwmac 37400000.ethernet eth1: No Safety Features support found
[    6.042676] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[    6.042901] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[    6.051539] ipq806x-gmac-dwmac 37400000.ethernet eth1: configuring for fixed/sgmii link mode
[    6.058124] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[    6.066668] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
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.247802] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Down
[    9.333561] procd: - early -
[    9.333882] procd: - watchdog -
[    9.335798] procd: Watchdog has previously reset the system
[    9.901586] procd: - watchdog -
[    9.901827] procd: Watchdog has previously reset the system
[    9.904238] procd: - ubus -
[    9.920128] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.960247] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.961125] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.972305] procd: - init -
Please press Enter to activate this console.
[   10.207961] urngd: v1.0.2 started.
[   10.239695] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.245043] Loading modules backported from Linux version v5.15.8-0-g43e577d7a2cb
[   10.245110] Backport generated by backports.git v5.15.8-1-0-g83f664bb
[   10.247577] random: crng init done
[   10.258936] random: 1 urandom warning(s) missed due to ratelimiting
[   10.302867] PPP generic driver version 2.4.2
[   10.304021] NET: Registered protocol family 24
[   10.320678] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x40.
[   10.321236] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[   10.328133] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   11.427268] ath10k_pci 0000:01:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA99X0/hw2.0: -12
[   11.427319] ath10k_pci 0000:01:00.0: could not fetch firmware files (-12)
[   11.437046] ath10k_pci 0000:01:00.0: could not probe fw (-12)
[   11.450203] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.933607] dwmac1000: Master AXI performs any burst length
[   27.933647] ipq806x-gmac-dwmac 37400000.ethernet eth1: No Safety Features support found
[   27.948004] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   27.948145] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[   27.956020] ipq806x-gmac-dwmac 37400000.ethernet eth1: configuring for fixed/sgmii link mode
[   27.963097] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   27.971581] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   27.983625] br-lan: port 1(eth1.1) entered blocking state
[   27.986290] br-lan: port 1(eth1.1) entered disabled state
[   27.992121] device eth1.1 entered promiscuous mode
[   27.997175] device eth1 entered promiscuous mode
[   28.004710] br-lan: port 1(eth1.1) entered blocking state
[   28.006691] br-lan: port 1(eth1.1) entered forwarding state
[   28.022046] dwmac1000: Master AXI performs any burst length
[   28.022082] ipq806x-gmac-dwmac 37200000.ethernet eth0: No Safety Features support found
[   28.036444] ipq806x-gmac-dwmac 37200000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   28.036593] ipq806x-gmac-dwmac 37200000.ethernet eth0: registered PTP clock
[   28.047396] ipq806x-gmac-dwmac 37200000.ethernet eth0: configuring for fixed/rgmii link mode
[   28.051554] ipq806x-gmac-dwmac 37200000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   28.079968] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.971157] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
chunkeey commented 2 years ago

@chunkeey: You recently made some changes for that target related to partitions. Could you please check if your changes are causing the boot loop? Thank you!

very likely yes. The vr2600v ran out of space for its kernel partition on the flash. From you bootlog, I can see that the uImage mtdsplitter doesn't pick up on the uImage header. I didn't notice this earlier, but there's an 512-byte padding in front of the sysupgrade production rule under image/generic.mk. I "think" this fixed it?

Can you apply this patch, compile an image for your vr2600v and report back whenever this helped?

diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
index 8fa0a5d291..a3fd867e2a 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
@@ -257,7 +257,8 @@
                partition@320000 {
                    label = "firmware";
                    reg = <0x320000 0xc60000>;
-                   compatible = "denx,uimage";
+                   compatible = "openwrt,uimage";
+                   openwrt,offset = <512>; /* account for pad-extra 512 */
                };

                /* hole 0xf80000 - 0xfaf100 */
botischroeder commented 2 years ago

Thank you for your super fast response! The patch fixes both problems.

chunkeey commented 2 years ago

The same fix was just merged.