XGS1250-12 installation failed

I wanted to install OpenWRT on my XGS1250-12.
When uploading the firmware from the web console, I selected sysupgrade instead of initramfs.
After that, when booting XGS1250-12, I get a kernel panic as shown below and cannot boot properly.
What should I do to get it to boot normally?

U-Boot Version V1.0.0.2 (Aug 11 2020 - 14:10:19)

Board: RTL9300 CPU:800MHz LX:175MHz DDR:600MHz
DRAM:  128 MB
SPI-F: MXIC/C22018/MMIO16-1/ModeC 1x16 MB (plr_flash_info @ 83f747e4)
Loading 65536B env. variables from offset 0xe0000
Net:   Net Initialization Skipped
No ethernet found.
 0 
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-5.10.146
   Created:      2022-10-14  22:44:41 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    3184378 Bytes = 3 MB
   Load Address: 80000000
   Entry Point:  80000400
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 5.10.146 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19803-9a599fee93) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Oct 14 22:44:41 2022
[    0.000000] RTL838X model is 0
[    0.000000] RTL839X model is 0
[    0.000000] RTL93XX model is 93021001
[    0.000000] SoC Type: RTL9302B
[    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 XGS1250-12 Switch
[    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=00008670
[    0.000000] Readback ErrCtl register=00008670
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 121092K/131072K available (5878K kernel code, 627K rwdata, 720K rodata, 1216K init, 211K bss, 9980K 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] CPU frequency from device tree: 800MHz
[    0.000000] rtl9300_clockevent_init called for cpu0
[    0.000000] rtl9300_clockevent_init using IRQ 8
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4778151116 ns
[    0.000008] sched_clock: 32 bits at 400MHz, resolution 2ns, wraps every 5368709118ns
[    0.008558] Calibrating delay loop... 531.66 BogoMIPS (lpj=2658304)
[    0.067048] pid_max: default: 32768 minimum: 301
[    0.072231] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.080098] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.091022] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.102210] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112886] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.120361] pinctrl core: initialized pinctrl subsystem
[    0.128323] NET: Registered protocol family 16
[    0.187408] clocksource: Switched to clocksource MIPS
[    0.194110] NET: Registered protocol family 2
[    0.199071] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.207736] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.216797] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.225138] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.232760] TCP: Hash tables configured (established 1024 bind 1024)
[    0.239797] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.246841] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.254796] NET: Registered protocol family 1
[    0.266441] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.277672] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.283934] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.297329] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.306715] realtek_gpio_probe probing RTL GPIO
[    0.348617] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.358337] printk: console [ttyS0] disabled
[    0.362977] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 30, base_baud = 10937500) is a 16550A
[    0.372549] printk: console [ttyS0] enabled
[    0.372549] printk: console [ttyS0] enabled
[    0.381782] printk: bootconsole [early0] disabled
[    0.381782] printk: bootconsole [early0] disabled
[    0.635708] brd: module loaded
[    0.643352] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    0.649210] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.656309] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    0.663367] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    0.670646] Creating 7 MTD partitions on "spi0.0":
[    0.675984] 0x000000000000-0x0000000e0000 : "u-boot"
[    0.684259] 0x0000000e0000-0x0000000f0000 : "u-boot-env"
[    0.691365] 0x0000000f0000-0x000000100000 : "u-boot-env2"
[    0.700338] 0x000000100000-0x000000200000 : "jffs"
[    0.706770] 0x000000200000-0x000000300000 : "jffs2"
[    0.715075] 0x000000300000-0x000000fe0000 : "firmware"
[    0.729338] 0x000000fe0000-0x000001000000 : "log"
[    0.742643] Probing RTL838X eth device pdev: 82080a00, dev: 82080a10
[    0.769206] Found SoC ID: 9302: RTL9302B, family 9300
[    0.774901] Using MAC 000000e04c000000
[    0.779159] set sds port 0 to 2
[    0.782678] set sds port 24 to 6
[    0.786262] set sds port 25 to 7
[    0.789888] set sds port 26 to 8
[    0.793476] set sds port 27 to 9
[    0.797916] c45_mask: 000e0000
[    0.870248] REALTEK RTL9300 SERDES mdio-bus:1b: Detected internal RTL9300 Serdes
[    0.878554] rtl9300_configure_serdes: Port 27, SerDes is 9
[    0.888694] rtl9300_configure_serdes CMU BAND is 16
[    0.894113] rtl9300_sds_rst 31
[    0.917506] rtl9300_configure_serdes PATCHING SerDes 9
[    0.924249] rtl9300_phy_enable_10g_1g 1gbit phy: 00001140
[    0.930273] rtl9300_phy_enable_10g_1g 1gbit phy enabled: 00001140
[    0.938072] rtl9300_phy_enable_10g_1g 10gbit phy: 00002040
[    0.944169] rtl9300_phy_enable_10g_1g 10gbit phy after: 00002040
[    0.951869] rtl9300_phy_enable_10g_1g set medium: 00000000
[    0.957999] rtl9300_phy_enable_10g_1g set medium after: 00000002
[    0.984665] rtl9300_configure_serdes: Configuring RTL9300 SERDES 9, mode 1a
[    0.994430] rtl9300_serdes_mac_link_config: registers before 00000000 00001403
[    1.004491] rtl9300_serdes_mac_link_config: registers after 00000000 00001403
[    1.032422] rtl9300_force_sds_mode --------------------- serdes 9 forcing to 0 ...
[    1.040864] rtl9300_force_sds_mode: SDS: 9, mode 0
[    1.046185] rtl9300_force_sds_mode: SDS mode 1f
[    1.054244] rtl9300_force_sds_mode --------------------- serdes 9 forcing to 0 ...
[    1.062686] rtl9300_force_sds_mode: SDS: 9, mode 25
[    1.068135] rtl9300_force_sds_mode: SDS mode 1a
[    5.784314] rtl9300_force_sds_mode --------------------- serdes 9 forced to 1a DONE
[    5.792862] start_1.1.1 initial value for sds 9
[    5.825903] end_1.1.1 --
[    5.828750] start_1.1.2 Load DFE init. value
[    5.834489] end_1.1.2
[    5.837002] start_1.1.3 disable LEQ training,enable DFE clock
[    5.849411] end_1.1.3 --
[    5.852222] start_1.1.4 offset cali setting
[    5.857884] end_1.1.4
[    5.860402] start_1.1.5 LEQ and DFE setting
[    5.872061] end_1.1.5
[    5.881589] start_1.2.1 ForegroundOffsetCal_Manual
[    5.888936] end_1.2.1
[    5.896920] start_1.2.3 Foreground Calibration
[    5.910404] rtl9300_do_rx_calibration_2_3: fgcal_gray: 20, fgcal_binary 20
[    5.919074] rtl9300_do_rx_calibration_2_3: end_1.2.3
[    5.924589] start_1.4.1
[    6.146229] end_1.4.1
[    6.148976] start_1.4.2
[    6.157517] vth_set_bin = 4
[    6.160229] vth_set_bin = 2
[    6.164316] Vth Maunal = 1
[    6.276255] Tap0 Sign : +
[    6.279289] tap0_coef_bin = 20
[    6.283194] tap0 manual = 1
[    6.289601] end_1.4.2
[    6.292703] start_1.5.2
[    6.369121] end_1.5.2
[    6.456688] i2c /dev entries driver
[    6.463315] rtl9300_i2c_probe probing I2C adapter
[    6.468655] i2c-rtl9300 1b00036c.i2c-rtl9300: SCL speed 100000, mode is 0
[    6.476201] rtl9300_i2c_probe scl_num 0
[    6.480514] rtl9300_i2c_probe sda_num 1
[    6.486762] NET: Registered protocol family 10
[    6.502506] Segment Routing with IPv6
[    6.506684] NET: Registered protocol family 17
[    6.511796] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    6.526599] 8021q: 802.1Q VLAN Support v1.8
[    6.532524] sfp sfp-p12: Host maximum power 1.0W
[    6.585907] REALTEK RTL9300 SERDES rtl838x slave mii-0:1b: Detected internal RTL9300 Serdes
[    6.595284] REALTEK RTL9300 SERDES rtl838x slave mii-0:1b: No DT node.
[    6.602609] REALTEK RTL9300 SERDES: probe of rtl838x slave mii-0:1b failed with error -22
[    6.615597] REALTEK RTL9300 SERDES rtl838x slave mii-0:3f: Detected internal RTL9300 Serdes
[    6.624968] REALTEK RTL9300 SERDES rtl838x slave mii-0:3f: No DT node.
[    6.632292] REALTEK RTL9300 SERDES: probe of rtl838x slave mii-0:3f failed with error -22
[    6.641498] rtl83xx_mdio_probe found port 0
[    6.646146] rtl83xx_mdio_probe port 0 has phandle
[    6.651410] rtl83xx_mdio_probe sds port 0 is 2
[    6.656340] rtl83xx_mdio_probe port 2 has SDS
[    6.661221] rtl83xx_mdio_probe found port 1
[    6.665866] rtl83xx_mdio_probe port 1 has phandle
[    6.671124] rtl83xx_mdio_probe port -1 has SDS
[    6.676061] rtl83xx_mdio_probe found port 2
[    6.680738] rtl83xx_mdio_probe port 2 has phandle
[    6.685964] rtl83xx_mdio_probe port -1 has SDS
[    6.690940] rtl83xx_mdio_probe found port 3
[    6.695586] rtl83xx_mdio_probe port 3 has phandle
[    6.700853] rtl83xx_mdio_probe port -1 has SDS
[    6.705798] rtl83xx_mdio_probe found port 4
[    6.710480] rtl83xx_mdio_probe port 4 has phandle
[    6.715701] rtl83xx_mdio_probe port -1 has SDS
[    6.720676] rtl83xx_mdio_probe found port 5
[    6.725323] rtl83xx_mdio_probe port 5 has phandle
[    6.730581] rtl83xx_mdio_probe port -1 has SDS
[    6.735517] rtl83xx_mdio_probe found port 6
[    6.740195] rtl83xx_mdio_probe port 6 has phandle
[    6.745420] rtl83xx_mdio_probe port -1 has SDS
[    6.750396] rtl83xx_mdio_probe found port 7
[    6.755042] rtl83xx_mdio_probe port 7 has phandle
[    6.760300] rtl83xx_mdio_probe port -1 has SDS
[    6.765237] rtl83xx_mdio_probe found port 24
[    6.770010] rtl83xx_mdio_probe port 24 has phandle
[    6.775334] rtl83xx_mdio_probe sds port 24 is 6
[    6.780397] rtl83xx_mdio_probe port 6 has SDS
[    6.785241] rtl83xx_mdio_probe found port 25
[    6.790014] rtl83xx_mdio_probe port 25 has phandle
[    6.795337] rtl83xx_mdio_probe sds port 25 is 7
[    6.800399] rtl83xx_mdio_probe port 7 has SDS
[    6.805243] rtl83xx_mdio_probe found port 26
[    6.810025] rtl83xx_mdio_probe port 26 has phandle
[    6.815349] rtl83xx_mdio_probe sds port 26 is 8
[    6.820415] rtl83xx_mdio_probe port 8 has SDS
[    6.825257] rtl83xx_mdio_probe found port 27
[    6.830038] rtl83xx_mdio_probe port 27 has phandle
[    6.835361] rtl83xx_mdio_probe sds port 27 is 9
[    6.840423] rtl83xx_mdio_probe port 9 has SDS
[    6.845268] rtl83xx_mdio_probe found port 28
[    6.851412] rtl93xx_setup called
[    6.855041] In rtl83xx_vlan_setup
[    6.858778] In rtl930x_vlan_profile_setup
[    6.863227] In rtl930x_vlan_profile_setup
[    6.867720] UNKNOWN_MC_PMASK: 000000001fffffff
[    6.872659] VLAN 0: L2 learn: 0; Unknown MC PMasks: L2 1fffffff, IPv4 1fffffff, IPv6: 1fffffff
[    6.872665]   Routing enabled: IPv4 UC y, IPv6 UC y, IPv4 MC y, IPv6 MC y
[    6.889819]   Bridge enabled: IPv4 MC n, IPv6 MC n,
[    6.895241] VLAN profile 0: raw 00033000 00000000 1fffffff 1fffffff 1fffffff
[    7.917420] rtl83xx_enable_phy_polling:          f0000ff
[    7.923333] rtl930x_pie_init
[    7.926743] rtl930x_led_init called
[    7.930757] rtl930x_led_init bb00cc00: 01057659
[    7.935786] rtl930x_led_init bb00cc04: aaaa5555
[    7.940848] rtl930x_led_init bb00cc08: 007faaaa
[    7.945879] rtl930x_led_init bb00cc0c: 0a400a80
[    7.950939] rtl930x_led_init bb00cc10: 0a200a01
[    7.955973] rtl930x_led_init bb00cc14: 0000ffff
[    7.961032] rtl930x_led_init bb00cc18: 0a200a01
[    7.966058] rtl930x_led_init bb00cc1c: 0a0b0a28
[    7.971118] rtl930x_led_init bb00cc20: 0a820a0b
[    7.976152] rtl930x_led_init bb00cc24: 0000ffff
[    7.981211] rtl930x_led_init bb00cc28: 0a200b80
[    7.986245] rtl930x_led_init bb00cc2c: 00000000
[    7.991305] rtl930x_led_init bb00cc30: 00950000
[    7.996339] rtl930x_led_init bb00cc34: 00000000
[    8.001401] rtl930x_led_init bb00cc38: 00950000
[    8.006433] rtl930x_led_init bb00cc3c: 0f0000ff
[    8.011493] rtl930x_led_init bb00cc40: 0f0000ff
[    8.016527] rtl930x_led_init bb00cc44: 0f0000ff
[    8.021603] rtl930x_led_init bb00cc48: 00000000
[    8.026638] rtl930x_led_init bb00cc4c: 00000000
[    8.031707] rtl930x_led_init bb00cc50: 00000000
[    8.036741] rtl930x_led_init bb00cc54: 00000000
[    8.041803] rtl930x_led_init bb00cc58: 00000000
[    8.046834] rtl930x_led_init bb00cc5c: 00000000
[    8.052329] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [REALTEK RTL8218D] (irq=POLL)
[    8.066141] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [REALTEK RTL8218D] (irq=POLL)
[    8.079954] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [REALTEK RTL8218D] (irq=POLL)
[    8.093767] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [REALTEK RTL8218D] (irq=POLL)
[    8.107582] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:04] driver [REALTEK RTL8218D] (irq=POLL)
[    8.121391] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:05] driver [REALTEK RTL8218D] (irq=POLL)
[    8.135203] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:06] driver [REALTEK RTL8218D] (irq=POLL)
[    8.149015] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:07] driver [REALTEK RTL8218D] (irq=POLL)
[    8.164375] Aquantia AQR113C mdio-bus:18: FW 5.4, Build 10, Provisioning 1
[    8.185183] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [mdio-bus:18] driver [Aquantia AQR113C] (irq=POLL)
[    8.200533] Aquantia AQR113C mdio-bus:19: FW 5.4, Build 10, Provisioning 1
[    8.217721] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [mdio-bus:19] driver [Aquantia AQR113C] (irq=POLL)
[    8.233071] Aquantia AQR113C mdio-bus:1a: FW 5.4, Build 10, Provisioning 1
[    8.252431] rtl83xx-switch switch@1b000000 lan11 (uninitialized): PHY [mdio-bus:1a] driver [Aquantia AQR113C] (irq=POLL)
[    8.266633] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode
[    8.275342] rtl93xx_phylink_mac_config port 28, mode 1, phy-mode: internal, speed 10000, link 0
[    8.285383] DSA: tree 0 setup
[    8.288793] LINK state irq: 23
[    8.292212] In rtl83xx_setup_qos
[    8.295843] L3_IPUC_ROUTE_CTRL 00002000, IPMC_ROUTE 00000500, IP6UC_ROUTE 00014580, IP6MC_ROUTE 00012880
[    8.306427] L3_IPUC_ROUTE_CTRL 00002001, IPMC_ROUTE 00000501, IP6UC_ROUTE 00014581, IP6MC_ROUTE 00012881
[    8.316991] L3_IP_ROUTE_CTRL 00000130
[    8.321196] rtl930x_dbgfs_init called
[    8.328836] rtl93xx_phylink_mac_config port 28, mode 1, phy-mode: internal, speed 10000, link 1
[    8.338596] rtl83xx-switch switch@1b000000: Link is Up - 10Gbps/Full - flow control off
[    8.348067] /dev/root: Can't open blockdev
[    8.352638] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.361014] Please append a correct "root=" boot option; here are the available partitions:
[    8.370341] 0100            4096 ram0 
[    8.370346]  (driver?)
[    8.377113] 0101            4096 ram1 
[    8.377116]  (driver?)
[    8.383921] 0102            4096 ram2 
[    8.383926]  (driver?)
[    8.390733] 0103            4096 ram3 
[    8.390737]  (driver?)
[    8.397539] 0104            4096 ram4 
[    8.397543]  (driver?)
[    8.404313] 0105            4096 ram5 
[    8.404315]  (driver?)
[    8.411123] 0106            4096 ram6 
[    8.411127]  (driver?)
[    8.417929] 0107            4096 ram7 
[    8.417933]  (driver?)
[    8.424701] 0108            4096 ram8 
[    8.424704]  (driver?)
[    8.431511] 0109            4096 ram9 
[    8.431516]  (driver?)
[    8.438319] 010a            4096 ram10 
[    8.438323]  (driver?)
[    8.445187] 010b            4096 ram11 
[    8.445190]  (driver?)
[    8.452093] 010c            4096 ram12 
[    8.452098]  (driver?)
[    8.459007] 010d            4096 ram13 
[    8.459011]  (driver?)
[    8.465875] 010e            4096 ram14 
[    8.465878]  (driver?)
[    8.472782] 010f            4096 ram15 
[    8.472786]  (driver?)
[    8.479685] 1f00             896 mtdblock0 
[    8.479690]  (driver?)
[    8.486941] 1f01              64 mtdblock1 
[    8.486944]  (driver?)
[    8.494233] 1f02              64 mtdblock2 
[    8.494237]  (driver?)
[    8.501527] 1f03            1024 mtdblock3 
[    8.501531]  (driver?)
[    8.508817] 1f04            1024 mtdblock4 
[    8.508821]  (driver?)
[    8.516072] 1f05           13184 mtdblock5 
[    8.516075]  (driver?)
[    8.523365] 1f06             128 mtdblock6 
[    8.523370]  (driver?)
[    8.530666] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.539851] Rebooting in 1 seconds..