I checked out your master branch and added the image profile to the Makefile, and changed the partition label, compatible and openwrt,ih-magic properties in the existing DTS. Boot hangs:
## Booting kernel from Legacy Image at 84f00000 ...
Image Name: MIPS OpenWrt Linux-5.10.64
Created: 2021-11-28 11:47:55 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 6070427 Bytes = 5.8 MB
Load Address: 80000000
Entry Point: 80000400
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 5.10.64 (MO\edwin@medusa) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r17632+4-ad28d094ff) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Sun Nov 28 11:47:55 2021
[ 0.000000] RTL838X model is ffffffff
[ 0.000000] RTL839X model is 83936802
[ 0.000000] SoC Type: RTL8393
[ 0.000000] Kernel command line:
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[ 0.000000] MIPS: machine is Zyxel GS1900-48
[ 0.000000] Registering _machine_restart
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Using appended Device Tree.
[ 0.000000] Primary instruction cache 32kB, 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-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] Normal zone: 288 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 114412K/131072K available (5464K kernel code, 610K rwdata, 1180K rodata, 7840K init, 203K bss, 16660K 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] random: get_random_bytes called from start_kernel+0x31c/0x50c with crng_init=0
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] CPU frequency from device tree: 700MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5460744132 ns
[ 0.000008] sched_clock: 32 bits at 350MHz, resolution 2ns, wraps every 6135667710ns
[ 0.009215] Calibrating delay loop... 464.48 BogoMIPS (lpj=2322432)
[ 0.076473] pid_max: default: 32768 minimum: 301
[ 0.082080] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.090664] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.102031] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.115814] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.127406] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.135509] pinctrl core: initialized pinctrl subsystem
[ 0.142255] NET: Registered protocol family 16
[ 0.204212] clocksource: Switched to clocksource MIPS
[ 0.211344] NET: Registered protocol family 2
[ 0.216655] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.225780] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.235690] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.244698] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.252984] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.260666] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.268382] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.276856] NET: Registered protocol family 1
[ 0.428809] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.440948] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.447832] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.462702] pinctrl-single bb001000.pinmux: 32 pins, size 4
[ 0.469762] Probing RTL8231 GPIOs
[ 0.473597] rtl8231_init called, MDIO bus ID: 3
[ 0.519507] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.752950] brd: module loaded
[ 0.757851] libphy: Fixed MDIO Bus: probed
[ 0.764928] Probing RTL838X eth device pdev: 81499a00, dev: 81499a10
[ 0.779666] rtl838x-eth bb00a300.ethernet: cannot obtain IRQ, using default 24
[ 0.788142] Found SoC ID: 8393: RTL8393, family 8390
[ 0.793988] Using MAC 0000588bf3fe05d5
[ 0.799585] libphy: rtl839x-eth-mdio: probed
[ 1.558817] rtl8393_serdes_probe: id: 48
[ 1.563369] Realtek RTL8393 SERDES mdio-bus:30: Detected internal RTL8390 SERDES
[ 1.586289] rtl8393_serdes_probe: id: 49
[ 1.590837] Realtek RTL8393 SERDES mdio-bus:31: Detected internal RTL8390 SERDES
[ 1.601798] NET: Registered protocol family 10
[ 1.612485] Segment Routing with IPv6
[ 1.616902] NET: Registered protocol family 17
[ 1.622382] 8021q: 802.1Q VLAN Support v1.8
[ 1.627916] i2c-gpio i2c-gpio-0: Slow GPIO pins might wreak havoc into I2C/SMBus bus timing
[ 1.637932] i2c-gpio i2c-gpio-0: using lines 184 (SDA) and 185 (SCL)
[ 1.645811] i2c-gpio i2c-gpio-1: Slow GPIO pins might wreak havoc into I2C/SMBus bus timing
[ 1.655785] i2c-gpio i2c-gpio-1: using lines 190 (SDA) and 191 (SCL)
[ 1.664348] libphy: SFP I2C Bus: probed
[ 1.669137] sfp sfp-p9: Host maximum power 1.0W
[ 1.678672] libphy: SFP I2C Bus: probed
[ 1.683487] sfp sfp-p10: Host maximum power 1.0W
[ 2.584201] random: fast init done
[ 133.784256] random: crng init done
So I recreated the patch for PHY_MAX_ADDR
:
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -566,7 +566,7 @@ int __mdiobus_register(struct mii_bus *b
goto error_reset_gpiod;
}
- for (i = 0; i < PHY_MAX_ADDR; i++) {
+ for (i = 0; i < 52; i++) {
if ((bus->phy_mask & (1 << i)) == 0) {
struct phy_device *phydev;
This causes a kernel panic:
## Booting kernel from Legacy Image at 84f00000 ...
Image Name: MIPS OpenWrt Linux-5.10.64
Created: 2021-11-28 11:47:55 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 6070427 Bytes = 5.8 MB
Load Address: 80000000
Entry Point: 80000400
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 5.10.64 (MO\edwin@medusa) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r17632+4-ad28d094ff) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Sun Nov 28 11:47:55 2021
[ 0.000000] RTL838X model is ffffffff
[ 0.000000] RTL839X model is 83936802
[ 0.000000] SoC Type: RTL8393
[ 0.000000] Kernel command line:
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[ 0.000000] MIPS: machine is Zyxel GS1900-48
[ 0.000000] Registering _machine_restart
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Using appended Device Tree.
[ 0.000000] Primary instruction cache 32kB, 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-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] Normal zone: 288 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000006
[ 0.000000] Readback ErrCtl register=00000006
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 114412K/131072K available (5464K kernel code, 610K rwdata, 1180K rodata, 7840K init, 203K bss, 16660K 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] random: get_random_bytes called from start_kernel+0x31c/0x50c with crng_init=0
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] CPU frequency from device tree: 700MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5460744132 ns
[ 0.000008] sched_clock: 32 bits at 350MHz, resolution 2ns, wraps every 6135667710ns
[ 0.009215] Calibrating delay loop... 464.48 BogoMIPS (lpj=2322432)
[ 0.076473] pid_max: default: 32768 minimum: 301
[ 0.082080] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.090663] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.102032] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.115807] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.127396] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.135500] pinctrl core: initialized pinctrl subsystem
[ 0.142248] NET: Registered protocol family 16
[ 0.204294] clocksource: Switched to clocksource MIPS
[ 0.211438] NET: Registered protocol family 2
[ 0.216749] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.225873] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.235783] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.244790] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.253077] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.260758] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.268476] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.276948] NET: Registered protocol family 1
[ 0.428924] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.441061] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.447944] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.462816] pinctrl-single bb001000.pinmux: 32 pins, size 4
[ 0.469875] Probing RTL8231 GPIOs
[ 0.473709] rtl8231_init called, MDIO bus ID: 3
[ 0.519631] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.752457] brd: module loaded
[ 0.757342] libphy: Fixed MDIO Bus: probed
[ 0.764410] Probing RTL838X eth device pdev: 81499a00, dev: 81499a10
[ 0.779150] rtl838x-eth bb00a300.ethernet: cannot obtain IRQ, using default 24
[ 0.787627] Found SoC ID: 8393: RTL8393, family 8390
[ 0.793473] Using MAC 0000588bf3fe05d5
[ 0.799079] libphy: rtl839x-eth-mdio: probed
[ 1.559052] rtl8393_serdes_probe: id: 48
[ 1.563602] Realtek RTL8393 SERDES mdio-bus:30: Detected internal RTL8390 SERDES
[ 1.586516] rtl8393_serdes_probe: id: 49
[ 1.591070] Realtek RTL8393 SERDES mdio-bus:31: Detected internal RTL8390 SERDES
[ 1.602025] NET: Registered protocol family 10
[ 1.612645] Segment Routing with IPv6
[ 1.617060] NET: Registered protocol family 17
[ 1.622541] 8021q: 802.1Q VLAN Support v1.8
[ 1.630519] i2c-gpio i2c-gpio-0: Slow GPIO pins might wreak havoc into I2C/SMBus bus timing
[ 1.640532] i2c-gpio i2c-gpio-0: using lines 184 (SDA) and 185 (SCL)
[ 1.648408] i2c-gpio i2c-gpio-1: Slow GPIO pins might wreak havoc into I2C/SMBus bus timing
[ 1.658383] i2c-gpio i2c-gpio-1: using lines 190 (SDA) and 191 (SCL)
[ 1.666952] libphy: SFP I2C Bus: probed
[ 1.671740] sfp sfp-p9: Host maximum power 1.0W
[ 1.677973] libphy: SFP I2C Bus: probed
[ 1.682794] sfp sfp-p10: Host maximum power 1.0W
[ 2.406319] libphy: rtl838x slave mii: probed
[ 2.426203] In rtl83xx_vlan_setup
[ 2.430038] UNKNOWN_MC_PMASK: 001fffffffffffff
[ 2.435334] VLAN profile 0: L2 learning: 1, UNKN L2MC FLD PMSK 511, UNKN IPMC FLD PMSK 511, UNKN IPv6MC FLD PMSK: 511
[ 2.435342] VLAN profile 0: raw 000001ff, 003fe3ff
[ 2.584282] random: fast init done
[ 4.585399] rtl83xx-switch switch@bb000000 lan01 (uninitialized): PHY [mdio-bus:00] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.601408] rtl83xx-switch switch@bb000000 lan02 (uninitialized): PHY [mdio-bus:01] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.617418] rtl83xx-switch switch@bb000000 lan03 (uninitialized): PHY [mdio-bus:02] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.633428] rtl83xx-switch switch@bb000000 lan04 (uninitialized): PHY [mdio-bus:03] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.649437] rtl83xx-switch switch@bb000000 lan05 (uninitialized): PHY [mdio-bus:04] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.665447] rtl83xx-switch switch@bb000000 lan06 (uninitialized): PHY [mdio-bus:05] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.681457] rtl83xx-switch switch@bb000000 lan07 (uninitialized): PHY [mdio-bus:06] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.697466] rtl83xx-switch switch@bb000000 lan08 (uninitialized): PHY [mdio-bus:07] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.713476] rtl83xx-switch switch@bb000000 lan09 (uninitialized): PHY [mdio-bus:08] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.729486] rtl83xx-switch switch@bb000000 lan10 (uninitialized): PHY [mdio-bus:09] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.745495] rtl83xx-switch switch@bb000000 lan11 (uninitialized): PHY [mdio-bus:0a] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.761505] rtl83xx-switch switch@bb000000 lan12 (uninitialized): PHY [mdio-bus:0b] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.777514] rtl83xx-switch switch@bb000000 lan13 (uninitialized): PHY [mdio-bus:0c] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.793525] rtl83xx-switch switch@bb000000 lan14 (uninitialized): PHY [mdio-bus:0d] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.809535] rtl83xx-switch switch@bb000000 lan15 (uninitialized): PHY [mdio-bus:0e] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.825544] rtl83xx-switch switch@bb000000 lan16 (uninitialized): PHY [mdio-bus:0f] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.841554] rtl83xx-switch switch@bb000000 lan17 (uninitialized): PHY [mdio-bus:10] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.857564] rtl83xx-switch switch@bb000000 lan18 (uninitialized): PHY [mdio-bus:11] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.873584] rtl83xx-switch switch@bb000000 lan19 (uninitialized): PHY [mdio-bus:12] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.889583] rtl83xx-switch switch@bb000000 lan20 (uninitialized): PHY [mdio-bus:13] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.905592] rtl83xx-switch switch@bb000000 lan21 (uninitialized): PHY [mdio-bus:14] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.921603] rtl83xx-switch switch@bb000000 lan22 (uninitialized): PHY [mdio-bus:15] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.937613] rtl83xx-switch switch@bb000000 lan23 (uninitialized): PHY [mdio-bus:16] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.953622] rtl83xx-switch switch@bb000000 lan24 (uninitialized): PHY [mdio-bus:17] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.969631] rtl83xx-switch switch@bb000000 lan25 (uninitialized): PHY [mdio-bus:18] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 4.985642] rtl83xx-switch switch@bb000000 lan26 (uninitialized): PHY [mdio-bus:19] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.001651] rtl83xx-switch switch@bb000000 lan27 (uninitialized): PHY [mdio-bus:1a] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.017661] rtl83xx-switch switch@bb000000 lan28 (uninitialized): PHY [mdio-bus:1b] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.033670] rtl83xx-switch switch@bb000000 lan29 (uninitialized): PHY [mdio-bus:1c] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.049681] rtl83xx-switch switch@bb000000 lan30 (uninitialized): PHY [mdio-bus:1d] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.065690] rtl83xx-switch switch@bb000000 lan31 (uninitialized): PHY [mdio-bus:1e] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.081700] rtl83xx-switch switch@bb000000 lan32 (uninitialized): PHY [mdio-bus:1f] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.097710] rtl83xx-switch switch@bb000000 lan33 (uninitialized): PHY [mdio-bus:20] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.113720] rtl83xx-switch switch@bb000000 lan34 (uninitialized): PHY [mdio-bus:21] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.129729] rtl83xx-switch switch@bb000000 lan35 (uninitialized): PHY [mdio-bus:22] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.145739] rtl83xx-switch switch@bb000000 lan36 (uninitialized): PHY [mdio-bus:23] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.161748] rtl83xx-switch switch@bb000000 lan37 (uninitialized): PHY [mdio-bus:24] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.177759] rtl83xx-switch switch@bb000000 lan38 (uninitialized): PHY [mdio-bus:25] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.193768] rtl83xx-switch switch@bb000000 lan39 (uninitialized): PHY [mdio-bus:26] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.209778] rtl83xx-switch switch@bb000000 lan40 (uninitialized): PHY [mdio-bus:27] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.225787] rtl83xx-switch switch@bb000000 lan41 (uninitialized): PHY [mdio-bus:28] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.241798] rtl83xx-switch switch@bb000000 lan42 (uninitialized): PHY [mdio-bus:29] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.257807] rtl83xx-switch switch@bb000000 lan43 (uninitialized): PHY [mdio-bus:2a] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.273832] rtl83xx-switch switch@bb000000 lan44 (uninitialized): PHY [mdio-bus:2b] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.289826] rtl83xx-switch switch@bb000000 lan45 (uninitialized): PHY [mdio-bus:2c] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.305836] rtl83xx-switch switch@bb000000 lan46 (uninitialized): PHY [mdio-bus:2d] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.321846] rtl83xx-switch switch@bb000000 lan47 (uninitialized): PHY [mdio-bus:2e] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.337855] rtl83xx-switch switch@bb000000 lan48 (uninitialized): PHY [mdio-bus:2f] driver [Realtek RTL8218B (external)] (irq=POLL)
[ 5.355374] rtl83xx-switch switch@bb000000: configuring for fixed/qsgmii link mode
[ 5.364737] DSA: tree 0 setup
[ 5.368226] LINK state irq: -517
[ 5.371956] rtl83xx-switch switch@bb000000: Error setting up switch interrupt.
[ 5.380522] In rtl83xx_setup_qos
[ 5.384294] Setting up RTL839X QoS
[ 5.388286] RTL839X_PRI_SEL_TBL_CTRL(i): 01112111
[ 5.393836] Current Intprio2queue setting: 00000000
[ 5.399607] QM_PKT2CPU_INTPRI_MAP: 00fac688
[ 5.404570] rtl838x_dbgfs_init called
[ 5.450179] Kernel bug detected[#1]:
[ 5.454323] CPU: 0 PID: 927 Comm: kworker/0:2 Not tainted 5.10.64 #0
[ 5.461831] Workqueue: events deferred_probe_work_func
[ 5.467877] $ 0 : 00000000 00000001 00000001 8034f6e0
[ 5.474043] $ 4 : 814bd000 00000001 00000001 824dcc00
[ 5.480209] $ 8 : 00000def 80f54614 00090020 00000001
[ 5.486376] $12 : 00080020 00000001 00000001 00000000
[ 5.492542] $16 : 82658e00 82658d00 8274fd78 81499c10
[ 5.498708] $20 : 00000037 80ef0000 00000005 fffffffe
[ 5.504875] $24 : 8182e720 00000004
[ 5.511041] $28 : 8274e000 8274fd68 80690000 8031630c
[ 5.517207] Hi : 002889b6
[ 5.520599] Lo : 1a803a30
[ 5.524012] epc : 8035c944 mdiobus_free+0x14/0x30
[ 5.529766] ra : 8031630c release_nodes+0x78/0xb0
[ 5.535604] Status: 11008003 KERNEL EXL IE
[ 5.540538] Cause : 10800034 (ExcCode 0d)
[ 5.545265] PrId : 00019555 (MIPS 34Kc)
[ 5.549888] Modules linked in:
[ 5.553491] Process kworker/0:2 (pid: 927, threadinfo=(ptrval), task=(ptrval), tls=00000000)
[ 5.563455] Stack : 8070fe68 80ef0000 00000005 8030e624 814be000 816a2a00 81499c10 00000000
[ 5.573320] ffffffea 80ef0000 8070fe68 80311bf8 8070fe68 8274fe08 8070fe68 80312344
[ 5.583186] 807153ec 00000000 8274fe08 803122c4 8070aa00 80710000 00000000 80700000
[ 5.593052] fffffffe 8030f6f4 8142b730 00000009 8068c660 8004f778 8141555c 824c3bb4
[ 5.602918] 81499c10 00000001 81499c54 803120cc 81499c10 8030bd6c 8142b730 8142b730
[ 5.612784] ...
[ 5.615663] Call Trace:
[ 5.618547] [<8035c944>] mdiobus_free+0x14/0x30
[ 5.623890]
[ 5.625631] Code: 10450007 38420003 0002102b <00020336> 24020004 ac820868 080c29e7 24840870 08051194
[ 5.637140]
[ 5.638977] ---[ end trace 6cb1ce6561e2e97c ]---
[ 5.644355] Kernel panic - not syncing: Fatal exception
[ 5.650508] Rebooting in 1 seconds..
[ 6.650096] System restart.II: Copied Preloader data from 0x9fc00000(15804B) to 0x9f000000.