Ok so after the “softbrick” a couple of days ago where I was stuck in a boot wait. I just booted the system fine and eth0 was LAN and eth1 WAN as they should be.
For reference I kept the udev rules unchanged trhoughout this testing post using my kernal agnostic method:
tee /etc/udev/rules.d/99-dietpi-nanopir5c.rules > /dev/null <<'EOT'
SUBSYSTEM=="net", KERNEL=="eth0", ENV{DEVPATH}==*/3c0800000.pcie/*, RUN:="/bin/true"
SUBSYSTEM=="net", KERNEL=="eth1", ENV{DEVPATH}==*/3c0400000.pcie/*, NAME="to_eth0", RUN:="/bin/true"
SUBSYSTEM=="net", KERNEL=="to_eth0", RUN="/bin/ip l s dev eth0 name eth1", RUN+="/bin/ip l s dev to_eth0 name eth0", RUN+="/bin/udevadm trigger -c add /sys/class/net/eth0 /sys/class/net/eth1"
EOT
So I didn’t touch the physical cables. I moved the led rules out of the way for testing sudo mv rules.d/dietpi-eth-leds.rules ~/ and uncommented udev_log=info in /etc/udev/udev.conf for debugging. I then reloaded the rules sudo udevadm control --reload-rules && sudo udevadm trigger and rebooted.
After rebooting eth0 is WAN and eth1 is LAN.
After a 2nd reboot they swap back to how they should be mapped.
I ran sudo journalctl -k > ~/boot.log in both caes and compared the data.
Apologies for the length of this post @MichaIng, but as you say there is a log of logging so I have tried to break it down the best I can. Note: The datetime, hostname and Kernel: have been omitted for readability.
The first 270 lines are identical up to this section:
Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
fe660000.serial: ttyS2 at MMIO 0xfe660000 (irq = 38, base_baud = 1500000) is a 16550A
Serial: AMBA driver
platform fdea0000.video-codec: Adding to iommu group 0
platform fdee0000.video-codec: Adding to iommu group 1
platform fe040000.vop: Adding to iommu group 2
loop: module loaded
Key type psk registered
thunder_xcv, ver 1.0
thunder_bgx, ver 1.0
nicpf, ver 1.0
Then on the faulty (eth0 is WAN) boot I get this from line 271:
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c_dev: i2c /dev entries driver
fan53555-regulator 0-001c: FAN53555 Option[12] Rev[15] Detected!
Whereas on the correct (eh0 is LAN) boot I get this from line 271:
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000808002000010
xhci-hcd xhci-hcd.0.auto: irq 42, io mem 0xfcc00000
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.18
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: xHCI Host Controller
usb usb1: Manufacturer: Linux 6.18.5-current-rockchip64 xhci-hcd
usb usb1: SerialNumber: xhci-hcd.0.auto
ehci-platform fd880000.usb: EHCI Host Controller
ohci-platform fd8c0000.usb: Generic Platform OHCI controller
ehci-platform fd800000.usb: EHCI Host Controller
ohci-platform fd840000.usb: Generic Platform OHCI controller
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.18
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 6.18.5-current-rockchip64 xhci-hcd
usb usb2: SerialNumber: xhci-hcd.0.auto
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ehci-platform fd880000.usb: new USB bus registered, assigned bus number 3
ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
ehci-platform fd800000.usb: new USB bus registered, assigned bus number 5
xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
ehci-platform fd880000.usb: irq 45, io mem 0xfd880000
ohci-platform fd8c0000.usb: irq 47, io mem 0xfd8c0000
ehci-platform fd800000.usb: irq 44, io mem 0xfd800000
xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 6
ohci-platform fd840000.usb: new USB bus registered, assigned bus number 7
ohci-platform fd840000.usb: irq 46, io mem 0xfd840000
xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000808002000010
xhci-hcd xhci-hcd.1.auto: irq 43, io mem 0xfd000000
xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 8
xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
usb usb6: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.18
usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb6: Product: xHCI Host Controller
usb usb6: Manufacturer: Linux 6.18.5-current-rockchip64 xhci-hcd
usb usb6: SerialNumber: xhci-hcd.1.auto
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 1 port detected
usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.18
usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb8: Product: xHCI Host Controller
usb usb8: Manufacturer: Linux 6.18.5-current-rockchip64 xhci-hcd
usb usb8: SerialNumber: xhci-hcd.1.auto
hub 8-0:1.0: USB hub found
hub 8-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c_dev: i2c /dev entries driver
ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.18
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: EHCI Host Controller
usb usb3: Manufacturer: Linux 6.18.5-current-rockchip64 ehci_hcd
usb usb3: SerialNumber: fd880000.usb
fan53555-regulator 0-001c: FAN53555 Option[12] Rev[15] Detected!
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.18
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: EHCI Host Controller
usb usb5: Manufacturer: Linux 6.18.5-current-rockchip64 ehci_hcd
usb usb5: SerialNumber: fd800000.usb
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 1 port detected
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.18
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: Generic Platform OHCI controller
usb usb4: Manufacturer: Linux 6.18.5-current-rockchip64 ohci_hcd
usb usb4: SerialNumber: fd8c0000.usb
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.18
usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb7: Product: Generic Platform OHCI controller
usb usb7: Manufacturer: Linux 6.18.5-current-rockchip64 ohci_hcd
usb usb7: SerialNumber: fd840000.usb
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 1 port detected
Then on the faulty boot I get the DW MMC controller on irw 71 and arm-scmi on 6:
dwmmc_rockchip fe2b0000.mmc: DW MMC controller at irq 71,32 bit host data width,256 deep fifo
arm-scmi arm-scmi.6.auto: Using scmi_smc_transport
arm-scmi arm-scmi.6.auto: SCMI max-rx-timeout: 30ms / max-msg-size: 104bytes / max-msg: 20
scmi_protocol scmi_dev.1: Enabled polling mode TX channel - prot_id:16
arm-scmi arm-scmi.6.auto: SCMI Notifications - Core Enabled.
arm-scmi arm-scmi.6.auto: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
arm-scmi arm-scmi.6.auto: Enabling SCMI Quirk [quirk_clock_rates_triplet_out_of_spec]
Whereas on the correct boot I get the DW MMC controller on irw 77 and arm-scmi on 8:
dwmmc_rockchip fe2b0000.mmc: DW MMC controller at irq 77,32 bit host data width,256 deep fifo
arm-scmi arm-scmi.8.auto: Using scmi_smc_transport
arm-scmi arm-scmi.8.auto: SCMI max-rx-timeout: 30ms / max-msg-size: 104bytes / max-msg: 20
scmi_protocol scmi_dev.1: Enabled polling mode TX channel - prot_id:16
arm-scmi arm-scmi.8.auto: SCMI Notifications - Core Enabled.
arm-scmi arm-scmi.8.auto: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
arm-scmi arm-scmi.8.auto: Enabling SCMI Quirk [quirk_clock_rates_triplet_out_of_spec]
Then both boots run through USB HDU, SDHCI controller through to AppArmor the same:
SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
hid: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
rockchip-dfi fe230000.dfi: dfi initialized, dram type: 0x8, channels: 1
hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 (0,8000003f) counters available
mmc_host mmc0: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
NET: Registered PF_INET6 protocol family
Segment Routing with IPv6
In-situ OAM (IOAM) with IPv6
NET: Registered PF_PACKET protocol family
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Key type dns_resolver registered
mmc1: SDHCI controller on fe310000.mmc [fe310000.mmc] using ADMA
registered taskstats version 1
Loading compiled-in X.509 certificates
zswap: loaded using pool zstd
Demotion targets for Node 0: null
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Key type encrypted registered
AppArmor: AppArmor sha256 policy hashing enabled
At this point the faulty boot loads xhci-hcd and USB like the correct boot did back on line 271.
Then by line 437 both systems are essentially the same (only difference is rk808-rtc.3.auto on the correct boot and rk808-rtc.5.auto on the faulty one) the with this block:
input: adc-keys as /devices/platform/adc-keys/input/input6
rockchip-drm display-subsystem: bound fe040000.vop (ops vop2_component_ops [rockchipdrm])
dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver
rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
[drm] Initialized rockchip 1.0.0 for display-subsystem on minor 0
rk808-rtc rk808-rtc.3.auto: registered as rtc0
rk808-rtc rk808-rtc.3.auto: setting system clock to 2026-01-14T17:25:25 UTC (1768411525)
rtc-hym8563 5-0051: /aliases ID 0 not available
rtc-hym8563 5-0051: no valid clock/calendar values available
rtc-hym8563 5-0051: registered as rtc1
Console: switching to colour frame buffer device 240x67
rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
phy phy-fe8c0000.phy.7: lane number 0, val 1
phy phy-fe8c0000.phy.7: lane number 1, val 2
phy phy-fe8c0000.phy.7: bifurcation enabled
At this point the 3c0800000 device (WAN) loads first on the faulty boot and 3c0400000 (LAN) loads on the correct boot.
Faulty boot:
rockchip-dw-pcie 3c0400000.pcie: host bridge /pcie@fe270000 ranges:
rockchip-dw-pcie 3c0400000.pcie: IO 0x00f2100000..0x00f21fffff -> 0x00f2100000
rockchip-dw-pcie 3c0400000.pcie: MEM 0x00f2200000..0x00f3ffffff -> 0x00f2200000
rockchip-dw-pcie 3c0400000.pcie: MEM 0x0340000000..0x037fffffff -> 0x0040000000
rockchip-dw-pcie 3c0400000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G
rockchip-dw-pcie 3c0400000.pcie: PCI host bridge to bus 0001:10
pci_bus 0001:10: root bus resource [bus 10-1f]
pci_bus 0001:10: root bus resource [io 0x100000-0x1fffff] (bus address [0xf2100000-0xf21fffff])
pci_bus 0001:10: root bus resource [mem 0xf2200000-0xf3ffffff]
pci_bus 0001:10: root bus resource [mem 0x340000000-0x37fffffff] (bus address [0x40000000-0x7fffffff])
pci 0001:10:00.0: [1d87:3566] type 01 class 0x060400 PCIe Root Port
pci 0001:10:00.0: ROM [mem 0x00000000-0x0000ffff pref]
pci 0001:10:00.0: PCI bridge to [bus 01-ff]
pci 0001:10:00.0: bridge window [io 0x0000-0x0fff]
pci 0001:10:00.0: bridge window [mem 0x00000000-0x000fffff]
pci 0001:10:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
pci 0001:10:00.0: supports D1 D2
pci 0001:10:00.0: PME# supported from D0 D1 D3hot
pci 0001:10:00.0: Primary bus is hard wired to 0
pci 0001:10:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
pci 0001:11:00.0: [10ec:8125] type 00 class 0x020000 PCIe Endpoint
pci 0001:11:00.0: BAR 0 [io 0x0000-0x00ff]
pci 0001:11:00.0: BAR 2 [mem 0x00000000-0x0000ffff 64bit]
pci 0001:11:00.0: BAR 4 [mem 0x00000000-0x00003fff 64bit]
pci 0001:11:00.0: supports D1 D2
pci 0001:11:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0001:11:00.0: ASPM: default states L0s L1
pci_bus 0001:11: busn_res: [bus 11-1f] end is updated to 11
pci 0001:10:00.0: bridge window [mem 0xf2200000-0xf22fffff]: assigned
pci 0001:10:00.0: ROM [mem 0xf2300000-0xf230ffff pref]: assigned
pci 0001:10:00.0: bridge window [io 0x100000-0x100fff]: assigned
pci 0001:11:00.0: BAR 2 [mem 0xf2200000-0xf220ffff 64bit]: assigned
pci 0001:11:00.0: BAR 4 [mem 0xf2210000-0xf2213fff 64bit]: assigned
pci 0001:11:00.0: BAR 0 [io 0x100000-0x1000ff]: assigned
pci 0001:10:00.0: PCI bridge to [bus 11]
pci 0001:10:00.0: bridge window [io 0x100000-0x100fff]
pci 0001:10:00.0: bridge window [mem 0xf2200000-0xf22fffff]
pci_bus 0001:10: resource 4 [io 0x100000-0x1fffff]
pci_bus 0001:10: resource 5 [mem 0xf2200000-0xf3ffffff]
pci_bus 0001:10: resource 6 [mem 0x340000000-0x37fffffff]
pci_bus 0001:11: resource 0 [io 0x100000-0x100fff]
pci_bus 0001:11: resource 1 [mem 0xf2200000-0xf22fffff]
pcieport 0001:10:00.0: PME: Signaling with IRQ 98
pcieport 0001:10:00.0: AER: enabled with IRQ 99
r8169 0001:11:00.0: enabling device (0000 -> 0003)
r8169 0001:11:00.0 eth0: RTL8125B, ##:##:##:##:##:58, XID 641, IRQ 100
r8169 0001:11:00.0 eth0: jumbo features [frames: 16362 bytes, tx checksumming: ko]
rockchip-dw-pcie 3c0800000.pcie: host bridge /pcie@fe280000 ranges:
rockchip-dw-pcie 3c0800000.pcie: IO 0x00f0100000..0x00f01fffff -> 0x00f0100000
rockchip-dw-pcie 3c0800000.pcie: MEM 0x00f0200000..0x00f1ffffff -> 0x00f0200000
rockchip-dw-pcie 3c0800000.pcie: MEM 0x0380000000..0x03bfffffff -> 0x0040000000
rockchip-dw-pcie 3c0800000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G
rockchip-dw-pcie 3c0800000.pcie: PCI host bridge to bus 0002:20
pci_bus 0002:20: root bus resource [bus 20-2f]
pci_bus 0002:20: root bus resource [io 0x200000-0x2fffff] (bus address [0xf0100000-0xf01fffff])
EXT4-fs (mmcblk1p1): mounted filesystem f4e38404-a5ad-429a-8345-bd4607c449db ro with ordered data mode. Quota mode: none.
pci_bus 0002:20: root bus resource [mem 0xf0200000-0xf1ffffff]
pci_bus 0002:20: root bus resource [mem 0x380000000-0x3bfffffff] (bus address [0x40000000-0x7fffffff])
pci 0002:20:00.0: [1d87:3566] type 01 class 0x060400 PCIe Root Port
pci 0002:20:00.0: BAR 0 [mem 0x00000000-0x3fffffff]
pci 0002:20:00.0: BAR 1 [mem 0x00000000-0x3fffffff]
pci 0002:20:00.0: ROM [mem 0x00000000-0x0000ffff pref]
pci 0002:20:00.0: PCI bridge to [bus 01-ff]
pci 0002:20:00.0: bridge window [io 0x0000-0x0fff]
pci 0002:20:00.0: bridge window [mem 0x00000000-0x000fffff]
pci 0002:20:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
pci 0002:20:00.0: supports D1 D2
pci 0002:20:00.0: PME# supported from D0 D1 D3hot
pci 0002:20:00.0: Primary bus is hard wired to 0
pci 0002:20:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
pci 0002:21:00.0: [10ec:8125] type 00 class 0x020000 PCIe Endpoint
pci 0002:21:00.0: BAR 0 [io 0x0000-0x00ff]
pci 0002:21:00.0: BAR 2 [mem 0x00000000-0x0000ffff 64bit]
pci 0002:21:00.0: BAR 4 [mem 0x00000000-0x00003fff 64bit]
pci 0002:21:00.0: supports D1 D2
pci 0002:21:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0002:21:00.0: ASPM: default states L0s L1
pci_bus 0002:21: busn_res: [bus 21-2f] end is updated to 21
pci 0002:20:00.0: BAR 0 [mem 0x380000000-0x3bfffffff]: assigned
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: can't assign; no space
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: failed to assign
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]: assigned
pci 0002:20:00.0: ROM [mem 0xf0300000-0xf030ffff pref]: assigned
pci 0002:20:00.0: bridge window [io 0x200000-0x200fff]: assigned
pci 0002:20:00.0: BAR 0 [mem 0x380000000-0x3bfffffff]: releasing
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]: releasing
pci 0002:20:00.0: ROM [mem 0xf0300000-0xf030ffff pref]: releasing
pci 0002:20:00.0: BAR 0 [mem 0x380000000-0x3bfffffff]: assigned
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: can't assign; no space
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: failed to assign
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]: assigned
pci 0002:21:00.0: BAR 2 [mem 0xf0200000-0xf020ffff 64bit]: assigned
pci 0002:21:00.0: BAR 4 [mem 0xf0210000-0xf0213fff 64bit]: assigned
pci 0002:21:00.0: BAR 0 [io 0x200000-0x2000ff]: assigned
pci 0002:20:00.0: PCI bridge to [bus 21]
pci 0002:20:00.0: bridge window [io 0x200000-0x200fff]
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]
pci_bus 0002:20: Some PCI device resources are unassigned, try booting with pci=realloc
pci_bus 0002:20: resource 4 [io 0x200000-0x2fffff]
pci_bus 0002:20: resource 5 [mem 0xf0200000-0xf1ffffff]
pci_bus 0002:20: resource 6 [mem 0x380000000-0x3bfffffff]
pci_bus 0002:21: resource 0 [io 0x200000-0x200fff]
pci_bus 0002:21: resource 1 [mem 0xf0200000-0xf02fffff]
pcieport 0002:20:00.0: PME: Signaling with IRQ 112
pcieport 0002:20:00.0: AER: enabled with IRQ 113
r8169 0002:21:00.0: enabling device (0000 -> 0003)
r8169 0002:21:00.0 eth1: RTL8125B, ##:##:##:##:##:59, XID 641, IRQ 114
Correct boot:
rockchip-dw-pcie 3c0800000.pcie: host bridge /pcie@fe280000 ranges:
rockchip-dw-pcie 3c0800000.pcie: IO 0x00f0100000..0x00f01fffff -> 0x00f0100000
rockchip-dw-pcie 3c0800000.pcie: MEM 0x00f0200000..0x00f1ffffff -> 0x00f0200000
rockchip-dw-pcie 3c0800000.pcie: MEM 0x0380000000..0x03bfffffff -> 0x0040000000
rockchip-dw-pcie 3c0800000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G
rockchip-dw-pcie 3c0800000.pcie: PCI host bridge to bus 0002:20
pci_bus 0002:20: root bus resource [bus 20-2f]
pci_bus 0002:20: root bus resource [io 0x100000-0x1fffff] (bus address [0xf0100000-0xf01fffff])
pci_bus 0002:20: root bus resource [mem 0xf0200000-0xf1ffffff]
pci_bus 0002:20: root bus resource [mem 0x380000000-0x3bfffffff] (bus address [0x40000000-0x7fffffff])
pci 0002:20:00.0: [1d87:3566] type 01 class 0x060400 PCIe Root Port
pci 0002:20:00.0: BAR 0 [mem 0x00000000-0x3fffffff]
pci 0002:20:00.0: BAR 1 [mem 0x00000000-0x3fffffff]
pci 0002:20:00.0: ROM [mem 0x00000000-0x0000ffff pref]
pci 0002:20:00.0: PCI bridge to [bus 01-ff]
pci 0002:20:00.0: bridge window [io 0x0000-0x0fff]
pci 0002:20:00.0: bridge window [mem 0x00000000-0x000fffff]
pci 0002:20:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref]
pci 0002:20:00.0: supports D1 D2
pci 0002:20:00.0: PME# supported from D0 D1 D3hot
pci 0002:20:00.0: Primary bus is hard wired to 0
pci 0002:20:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
pci 0002:21:00.0: [10ec:8125] type 00 class 0x020000 PCIe Endpoint
pci 0002:21:00.0: BAR 0 [io 0x0000-0x00ff]
pci 0002:21:00.0: BAR 2 [mem 0x00000000-0x0000ffff 64bit]
pci 0002:21:00.0: BAR 4 [mem 0x00000000-0x00003fff 64bit]
pci 0002:21:00.0: supports D1 D2
pci 0002:21:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0002:21:00.0: ASPM: default states L0s L1
pci_bus 0002:21: busn_res: [bus 21-2f] end is updated to 21
pci 0002:20:00.0: BAR 0 [mem 0x380000000-0x3bfffffff]: assigned
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: can't assign; no space
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: failed to assign
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]: assigned
pci 0002:20:00.0: ROM [mem 0xf0300000-0xf030ffff pref]: assigned
pci 0002:20:00.0: bridge window [io 0x100000-0x100fff]: assigned
pci 0002:20:00.0: BAR 0 [mem 0x380000000-0x3bfffffff]: releasing
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]: releasing
pci 0002:20:00.0: ROM [mem 0xf0300000-0xf030ffff pref]: releasing
pci 0002:20:00.0: BAR 0 [mem 0x380000000-0x3bfffffff]: assigned
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: can't assign; no space
pci 0002:20:00.0: BAR 1 [mem size 0x40000000]: failed to assign
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]: assigned
pci 0002:21:00.0: BAR 2 [mem 0xf0200000-0xf020ffff 64bit]: assigned
pci 0002:21:00.0: BAR 4 [mem 0xf0210000-0xf0213fff 64bit]: assigned
pci 0002:21:00.0: BAR 0 [io 0x100000-0x1000ff]: assigned
pci 0002:20:00.0: PCI bridge to [bus 21]
pci 0002:20:00.0: bridge window [io 0x100000-0x100fff]
pci 0002:20:00.0: bridge window [mem 0xf0200000-0xf02fffff]
pci_bus 0002:20: Some PCI device resources are unassigned, try booting with pci=realloc
pci_bus 0002:20: resource 4 [io 0x100000-0x1fffff]
pci_bus 0002:20: resource 5 [mem 0xf0200000-0xf1ffffff]
pci_bus 0002:20: resource 6 [mem 0x380000000-0x3bfffffff]
pci_bus 0002:21: resource 0 [io 0x100000-0x100fff]
pci_bus 0002:21: resource 1 [mem 0xf0200000-0xf02fffff]
pcieport 0002:20:00.0: PME: Signaling with IRQ 98
pcieport 0002:20:00.0: AER: enabled with IRQ 99
r8169 0002:21:00.0: enabling device (0000 -> 0003)
r8169 0002:21:00.0 eth0: RTL8125B, ##:##:##:##:##:59, XID 641, IRQ 100
r8169 0002:21:00.0 eth0: jumbo features [frames: 16362 bytes, tx checksumming: ko]
To help make sense of this I ran the diff output through ChatGPT and got the following:
On the faulty boot we get:
xhci-hcd xhci-hcd.0.auto
xhci-hcd xhci-hcd.1.auto
...
pci_bus 0001:10: root bus resource [io 0x200000-0x2fffff]
On the correct boot we get:
xhci-hcd xhci-hcd.7.auto
xhci-hcd xhci-hcd.8.auto
..
pci_bus 0001:10: root bus resource [io 0x100000-0x1fffff]
I really hope that helps narrow things down a little. There really isn’t much indication as to why usb starts on one boot sooner than the other. If there is any more tested I can do I am happy to help out!