Hello,
I am trying to boot a dev snapshot of openwrt located here, specifically the download designated for the 8040. I have the kernel booting but there is an rcu stall detected by cpu 1 on cpu 3.
I will note that this doesn’t happen on the solid-run provided debian image. The openwrt image is stored on a usb device. I am hoping to install it on an mSATA card I have attached to con3
. the usb thumb drive and mSATA card are recognized by u-boot.
This is the command I use to boot from u-boot
usb start; usb dev 0; ext4load usb 0:1 $kernel_addr_r Image; ext4load usb 0:1 $fdt_addr_r armada-8040-db.dtb; ext4load usb 0:1 $ramdisk_addr_r openwrt-mvebu-cortexa72-marvell_armada8040-db-initramfs-kernel.bin; fdt addr $fdt_addr_r; setenv bootargs root=UUID=03300eec-02 ; booti $kernel_addr_r $ramdisk_addr_r:21231624 $fdt_addr_r
I have tried to boot the debian image, then use it to install openwrt but the boot still hangs.
I have replaced the openwrt provided device tree file with the file from solid-run.
below is the output of the bootup:
=> usb start; usb dev 0; ext4load usb 0:1 $kernel_addr_r Image; ext4load usb 0:1 $fdt_addr_r armada-8040-db.dtb; ext4load usb 0:1 $ramdisk_addr_r openwrt-mvebu-cortexa72-marvell_armada8040-db-initramfs-kernel.bin; fdt addr $fdt_addr_r; setenv bootargs root=UUID=ff313567-e9f1-5a5d-9895-3ba130b4a864 ; booti $kernel_addr_r $ramdisk_addr_r:21231624 $fdt_addr_r
starting USB...
Bus usb3@500000: Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb3@500000 for devices... cannot reset port 2!?
2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Device 0: Vendor: MUSHKIN Rev: PMAP Prod: MKNUFDVS16GB
Type: Removable Hard Disk
Capacity: 15112.0 MB = 14.7 GB (30949376 x 512)
... is now current device
11859976 bytes read in 94 ms (120.3 MiB/s)
32006 bytes read in 26 ms (1.2 MiB/s)
21231624 bytes read in 144 ms (140.6 MiB/s)
## Flattened Device Tree blob at 04f00000
Booting using the fdt blob at 0x4f00000
Loading Ramdisk to 5e8f8000, end 7fb29624 ... OK
Loading Device Tree to 000000005e8ed000, end 000000005e8f7d05 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd081]
[ 0.000000] Linux version 5.10.113 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19616-98bb26f9f7) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sun May 8 08:05:14 2022
[ 0.000000] Machine model: Marvell Armada 8040 DB board
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x000000023fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] node 0: [mem 0x0000000004000000-0x00000000041fffff]
[ 0.000000] node 0: [mem 0x0000000004200000-0x00000000bfffffff]
[ 0.000000] node 0: [mem 0x0000000100000000-0x000000023fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000023fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 16 pages/cpu s27672 r8192 d29672 u65536
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2064384
[ 0.000000] Kernel command line: root=UUID=ff313567-e9f1-5a5d-9895-3ba130b4a864
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x00000000bc000000-0x00000000c0000000] (64MB)
[ 0.000000] Memory: 7621980K/8388608K available (8062K kernel code, 894K rwdata, 2092K rodata, 448K init, 284K bss, 766628K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, 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: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f022f000
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:160, num:32)
[ 0.000000] GICv2m: range[mem 0xf0280000-0xf0280fff], SPI[160:191]
[ 0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:192, num:32)
[ 0.000000] GICv2m: range[mem 0xf0290000-0xf0290fff], SPI[192:223]
[ 0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:224, num:32)
[ 0.000000] GICv2m: range[mem 0xf02a0000-0xf02a0fff], SPI[224:255]
[ 0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:256, num:32)
[ 0.000000] GICv2m: range[mem 0xf02b0000-0xf02b0fff], SPI[256:287]
[ 0.000000] random: get_random_bytes called from start_kernel+0x3a0/0x4e4 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[ 0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[ 0.000067] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[ 0.000073] pid_max: default: 32768 minimum: 301
[ 0.000139] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000166] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000645] rcu: Hierarchical SRCU implementation.
[ 0.000691] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.000824] smp: Bringing up secondary CPUs ...
[ 0.001077] Detected PIPT I-cache on CPU1
[ 0.001108] CPU1: Booted secondary processor 0x0000000001 [0x410fd081]
[ 0.001385] Detected PIPT I-cache on CPU2
[ 0.001408] CPU2: Booted secondary processor 0x0000000100 [0x410fd081]
[ 0.001684] Detected PIPT I-cache on CPU3
[ 0.001699] CPU3: Booted secondary processor 0x0000000101 [0x410fd081]
[ 0.001731] smp: Brought up 1 node, 4 CPUs
[ 0.001740] SMP: Total of 4 processors activated.
[ 0.001743] CPU features: detected: 32-bit EL0 Support
[ 0.001746] CPU features: detected: CRC32 instructions
[ 0.001776] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.001780] CPU: All CPU(s) started at EL2
[ 0.001791] alternatives: patching kernel code
[ 0.003747] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.003756] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.003800] pinctrl core: initialized pinctrl subsystem
[ 0.004239] NET: Registered protocol family 16
[ 0.004548] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.004697] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.004845] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.004983] thermal_sys: Registered thermal governor 'step_wise'
[ 0.005315] cpuidle: using governor ladder
[ 0.005344] ASID allocator initialised with 65536 entries
[ 0.013966] cryptd: max_cpu_qlen set to 1000
[ 0.014848] SCSI subsystem initialized
[ 0.015036] usbcore: registered new interface driver usbfs
[ 0.015052] usbcore: registered new interface driver hub
[ 0.015067] usbcore: registered new device driver usb
[ 0.015513] clocksource: Switched to clocksource arch_sys_counter
[ 0.015720] NET: Registered protocol family 2
[ 0.015960] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.017565] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.017610] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.017815] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.018316] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.018373] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.018453] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.018586] NET: Registered protocol family 1
[ 0.018600] PCI: CLS 0 bytes, default 64
[ 0.018651] Unpacking initramfs...
[ 0.018656] Initramfs unpacking failed: invalid magic at start of compressed archive
[ 0.140853] Freeing initrd memory: 542916K
[ 0.141261] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[ 0.142493] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.142497] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.142818] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.144294] armada-ap806-pinctrl f06f4000.system-controller:pinctrl: registered pinctrl driver
[ 0.144544] armada-cp110-pinctrl f2440000.system-controller:pinctrl: registered pinctrl driver
[ 0.144714] armada-cp110-pinctrl f4440000.system-controller:pinctrl: registered pinctrl driver
[ 0.146847] mv_xor_v2 f0400000.xor: Marvell Version 2 XOR driver
[ 0.147122] mv_xor_v2 f0420000.xor: Marvell Version 2 XOR driver
[ 0.147384] mv_xor_v2 f0440000.xor: Marvell Version 2 XOR driver
[ 0.147647] mv_xor_v2 f0460000.xor: Marvell Version 2 XOR driver
[ 0.147959] mv_xor_v2 f26a0000.xor: Marvell Version 2 XOR driver
[ 0.148234] mv_xor_v2 f26c0000.xor: Marvell Version 2 XOR driver
[ 0.148542] mv_xor_v2 f46a0000.xor: Marvell Version 2 XOR driver
[ 0.148817] mv_xor_v2 f46c0000.xor: Marvell Version 2 XOR driver
[ 0.148912] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.149644] printk: console [ttyS0] disabled
[ 0.169789] f0512000.serial: ttyS0 at MMIO 0xf0512000 (irq = 17, base_baud = 12500000) is a 16550A
[ 0.895335] printk: console [ttyS0] enabled
[ 0.899968] omap_rng f2760000.trng: Random Number Generator ver. 203b34c
[ 0.900293] random: fast init done
[ 0.906816] omap_rng f4760000.trng: Random Number Generator ver. 203b34c
[ 0.910134] random: crng init done
[ 0.921489] loop: module loaded
[ 0.924656] Loading iSCSI transport class v2.0-870.
[ 0.930084] ahci f2540000.sata: supply ahci not found, using dummy regulator
[ 0.937225] ahci f2540000.sata: supply phy not found, using dummy regulator
[ 0.944344] platform f2540000.sata:sata-port@0: supply target not found, using dummy regulator
[ 0.953198] ahci f4540000.sata: supply ahci not found, using dummy regulator
[ 0.960313] ahci f4540000.sata: supply phy not found, using dummy regulator
[ 0.967409] platform f4540000.sata:sata-port@0: supply target not found, using dummy regulator
[ 0.976755] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[ 0.983663] spi-nor: probe of spi0.0 failed with error -2
[ 0.989704] spi-nor spi4.0: s25fl064k (8192 Kbytes)
[ 0.994663] 3 fixed-partitions partitions found on MTD device spi4.0
[ 1.001055] Creating 3 MTD partitions on "spi4.0":
[ 1.005868] 0x000000000000-0x000000200000 : "Boot"
[ 1.010818] 0x000000200000-0x000000f00000 : "Filesystem"
[ 1.016155] mtd: partition "Filesystem" extends beyond the end of device "spi4.0" -- size truncated to 0x600000
[ 1.026392] 0x000000f00000-0x000001000000 : "Boot_2nd"
[ 1.031550] mtd: partition "Boot_2nd" is out of reach -- disabled
[ 1.039445] hwmon hwmon0: temp1_input not attached to any thermal zone
[ 1.046305] mvpp2 f2000000.ethernet: using 8 per-cpu buffers
[ 1.061803] mvpp2 f2000000.ethernet eth0: Using random mac address 62:ca:e4:67:63:1d
[ 1.071108] mvpp2 f2000000.ethernet eth1: Using random mac address 8e:07:ce:3e:f6:80
[ 1.086199] mvpp2 f4000000.ethernet: using 8 per-cpu buffers
[ 1.103076] mvpp2 f4000000.ethernet eth2: Using random mac address 0a:a0:1d:59:ca:40
[ 1.112410] mvpp2 f4000000.ethernet eth3: Using random mac address ea:d5:4c:93:5f:b9
[ 1.127296] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.133853] ehci-pci: EHCI PCI platform driver
[ 1.138341] ehci-platform: EHCI generic platform driver
[ 1.143677] ehci-orion: EHCI orion driver
[ 1.148119] xhci-hcd f4510000.usb3: xHCI Host Controller
[ 1.153457] xhci-hcd f4510000.usb3: new USB bus registered, assigned bus number 1
[ 1.161028] xhci-hcd f4510000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[ 1.170309] xhci-hcd f4510000.usb3: irq 61, io mem 0xf4510000
[ 1.176278] hub 1-0:1.0: USB hub found
[ 1.180052] hub 1-0:1.0: 1 port detected
[ 1.184058] xhci-hcd f4510000.usb3: xHCI Host Controller
[ 1.189399] xhci-hcd f4510000.usb3: new USB bus registered, assigned bus number 2
[ 1.196916] xhci-hcd f4510000.usb3: Host supports USB 3.0 SuperSpeed
[ 1.203313] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.211555] hub 2-0:1.0: USB hub found
[ 1.215327] hub 2-0:1.0: 1 port detected
[ 1.219440] usbcore: registered new interface driver usb-storage
[ 1.225663] armada38x-rtc f4284000.rtc: registered as rtc0
[ 1.231181] armada38x-rtc f4284000.rtc: setting system clock to 2022-05-09T16:45:56 UTC (1652114756)
[ 1.240396] i2c /dev entries driver
[ 1.244116] pca953x 1-0021: supply vcc not found, using dummy regulator
[ 1.250806] pca953x 1-0021: using no AI
[ 1.254781] pca953x 1-0021: failed writing register
[ 1.259724] pca953x: probe of 1-0021 failed with error -5
[ 1.265193] pca953x 1-0025: supply vcc not found, using dummy regulator
[ 1.271870] pca953x 1-0025: using no AI
[ 1.275839] pca953x 1-0025: failed writing register
[ 1.280767] pca953x: probe of 1-0025 failed with error -5
[ 1.287624] sdhci: Secure Digital Host Controller Interface driver
[ 1.293840] sdhci: Copyright(c) Pierre Ossman
[ 1.298445] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.305889] NET: Registered protocol family 10
[ 1.311121] Segment Routing with IPv6
[ 1.314820] NET: Registered protocol family 17
[ 1.319304] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.328118] mmc0: SDHCI controller on f06e0000.sdhci [f06e0000.sdhci] using ADMA 64-bit
[ 1.328122] mmc1: SDHCI controller on f2780000.sdhci [f2780000.sdhci] using ADMA 64-bit
[ 1.332373] 8021q: 802.1Q VLAN Support v1.8
[ 1.355527] armada8k-pcie f4600000.pcie: host bridge /cp1/pcie@f4600000 ranges:
[ 1.362879] armada8k-pcie f4600000.pcie: MEM 0x00fa000000..0x00faefffff -> 0x00fa000000
[ 1.492953] mmc0: new high speed MMC card at address 0001
[ 22.385512] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 22.391479] rcu: 3-...0: (0 ticks this GP) idle=a0a/1/0x4000000000000000 softirq=56/56 fqs=751
[ 22.400312] (detected by 1, t=2103 jiffies, g=-1107, q=186)
[ 22.406000] Task dump for CPU 3:
[ 22.409246] task:kworker/3:3 state:R running task stack: 0 pid: 615 ppid: 2 flags:0x0000000a
[ 22.419244] Workqueue: events deferred_probe_work_func
[ 22.424412] Call trace:
[ 22.426882] __switch_to+0x9c/0xfc
[ 22.430308] deferred_probe_work_func+0x54/0xb4