While I try to figure out the 5.15 phy regs I decided to build a sysupgrade with the Zyxel fwid to see if I can finally flash and boot a firmware with zloader.
To recap I've ubi and ubi2 and zloader is responsible to load one or the other.
So I started with the Zyxel firmware on ubi and via web gui i flashed my custom firmware and it is successfully flashed into ubi2 thanks to the Zyxel build scripts.
The router than reboots and i see that the boot cmdline mentions rootubi=ubi2 which is perfect!
The problem is that a some point I think it's ignoring the command line and loading mtd6 which is ubi!!!
UBI: auto-attach mtd6
The result is the kernel loaded from my firmware but the rootfs loaded from ubi instead of ubi2(i think), a complete mess
Here is the bootlog of my custom firmware flashed on ubi2
ubi0: attaching mtd8
ubi0: scanning is finished
ubi0: attached mtd8 (name "ubi2", size 64 MiB)
ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
ubi0: good PEBs: 256, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 5, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 52/44, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 0, total reserved PEBs: 256, PEBs reserved for bad PEB handling: 38
Reading from volume 'kernel' to 0x46000000, size 0x0 ... OK
##
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.238 (piameruo@compiler) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r20110-eab0d53b0d)) #0 SMP Tue Apr 11 14:32:10 2023
[ 0.000000] Machine model: MediaTek MT7986a RFB
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] On node 0 totalpages: 261136
[ 0.000000] DMA32 zone: 4096 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
[ 0.000000] DMA32 zone: 261136 pages, LIFO batch:63
[ 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.0
[ 0.000000] percpu: Embedded 20 pages/cpu s44056 r8192 d29672 u81920
[ 0.000000] pcpu-alloc: s44056 r8192 d29672 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 257040
[ 0.000000] Kernel command line: console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 rootubi=ubi2
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1013472K/1044544K available (7230K kernel code, 528K rwdata, 2012K rodata, 448K init, 290K bss, 31072K 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] rcu: CONFIG_RCU_FANOUT set to non-default value of 32.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[ 0.000000] arch_timer: cp15 timer(s) running at 12.98MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2feb955e7, max_idle_ns: 440795202655 ns
[ 0.000002] sched_clock: 56 bits at 12MHz, resolution 77ns, wraps every 4398046511072ns
[ 0.008210] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.97 BogoMIPS (lpj=51944)
[ 0.018536] pid_max: default: 32768 minimum: 301
[ 0.023245] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.030687] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.039361] ASID allocator initialised with 65536 entries
[ 0.044842] rcu: Hierarchical SRCU implementation.
[ 0.049954] smp: Bringing up secondary CPUs ...
[ 0.054750] Detected VIPT I-cache on CPU1
[ 0.054769] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[ 0.054789] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.055037] Detected VIPT I-cache on CPU2
[ 0.055048] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[ 0.055057] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.055278] Detected VIPT I-cache on CPU3
[ 0.055286] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[ 0.055293] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.055320] smp: Brought up 1 node, 4 CPUs
[ 0.111934] SMP: Total of 4 processors activated.
[ 0.116661] CPU features: detected: 32-bit EL0 Support
[ 0.121826] CPU features: detected: CRC32 instructions
[ 0.127079] CPU: All CPU(s) started at EL2
[ 0.131202] alternatives: patching kernel code
[ 0.137896] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.147720] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.154720] pinctrl core: initialized pinctrl subsystem
[ 0.160491] NET: Registered protocol family 16
[ 0.165144] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.171965] pstore: Registered ramoops as persistent store backend
[ 0.178195] ramoops: using 0x10000@0x42ff0000, ecc: 0
[ 0.191162] cryptd: max_cpu_qlen set to 1000
[ 0.196637] SCSI subsystem initialized
[ 0.200494] libata version 3.00 loaded.
[ 0.204548] usbcore: registered new interface driver usbfs
[ 0.210086] usbcore: registered new interface driver hub
[ 0.215444] usbcore: registered new device driver usb
[ 0.221215] Bluetooth: Core ver 2.22
[ 0.224833] NET: Registered protocol family 31
[ 0.229298] Bluetooth: HCI device and connection manager initialized
[ 0.235689] Bluetooth: HCI socket layer initialized
[ 0.240591] Bluetooth: L2CAP socket layer initialized
[ 0.245672] Bluetooth: SCO socket layer initialized
[ 0.251294] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
[ 0.257253] pci_bus 0000:00: root bus resource [mem 0x18000000-0x18ffffff]
[ 0.264168] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.269682] pci_bus 0000:00: scanning bus
[ 0.273720] pci 0000:00:00.0: [14c3:7986] type 00 class 0x000280
[ 0.279768] pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x1800000f 64bit]
[ 0.286594] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0000000f]
[ 0.292896] pci 0000:00:00.0: reg 0x1c: [mem 0x00000000-0x0000000f]
[ 0.299197] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x0000000f]
[ 0.305499] pci 0000:00:00.0: reg 0x24: [mem 0x00000000-0x0000000f]
[ 0.312620] pci_bus 0000:00: fixups for bus
[ 0.316825] pci_bus 0000:00: bus scan returning with max=00
[ 0.322689] clocksource: Switched to clocksource arch_sys_counter
[ 0.329448] thermal_sys: Registered thermal governor 'fair_share'
[ 0.329452] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.335592] thermal_sys: Registered thermal governor 'step_wise'
[ 0.341631] thermal_sys: Registered thermal governor 'user_space'
[ 0.347670] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.354015] NET: Registered protocol family 2
[ 0.365044] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.372879] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.381300] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.389121] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.396459] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.402912] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.409576] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.416741] NET: Registered protocol family 1
[ 0.421140] PCI: CLS 0 bytes, default 64
[ 0.425757] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 0.434338] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.440224] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.457864] NET: Registered protocol family 38
[ 0.471557] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.478413] printk: console [ttyS0] disabled
[ 0.502827] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 11, base_baud = 2500000) is a ST16650V2
[ 0.512043] printk: console [ttyS0] enabled
[ 0.512043] printk: console [ttyS0] enabled
[ 0.520401] printk: bootconsole [uart8250] disabled
[ 0.520401] printk: bootconsole [uart8250] disabled
[ 0.550491] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 12, base_baud = 1625000) is a ST16650V2
[ 0.579931] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 13, base_baud = 1625000) is a ST16650V2
[ 0.589497] mtk_rng 1020f000.trng: registered RNG driver
[ 0.589703] random: crng init done
[ 0.594934] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.605941] loop: module loaded
[ 0.609791] mt7986-pinctrl 1001f000.pinctrl: pin_config_set op failed for pin 36
[ 0.617186] mtk-spi 1100a000.spi: Error applying setting, reverse things back
[ 0.624714] spi-nor spi0.0: unrecognized JEDEC id bytes: ff 2c 34 2c 34 2c
[ 0.631599] spi-nor: probe of spi0.0 failed with error -2
[ 0.637208] spi-nand spi0.1: Micron SPI NAND was found.
[ 0.642437] spi-nand spi0.1: 512 MiB, block size: 256 KiB, page size: 4096, OOB size: 256
[ 0.652433] [mtk_hw_init] reset_lock:0, force:0
[ 0.656988] [mtk_hw_init] execute fe cold reset
[ 0.772780] mtk_soc_eth 15100000.ethernet: generated random MAC address 56:38:e6:59:64:90
[ 0.781177] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc011780000, irq 122
[ 0.790319] mtk_soc_eth 15100000.ethernet: generated random MAC address ae:33:34:c2:4d:9d
[ 0.798646] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc011780000, irq 122
[ 0.807769] (unnamed net_device) (dummy): netif_napi_add() called with weight 256
[ 0.815472] xhci-mtk 11200000.xhci: 11200000.xhci supply vbus not found, using dummy regulator
[ 0.824103] xhci-mtk 11200000.xhci: 11200000.xhci supply vusb33 not found, using dummy regulator
[ 0.832995] phy phy-usb-phy@11e10000.1: try to get sw efuse
[ 0.838558] phy phy-usb-phy@11e10000.1: try to get sw efuse+
[ 0.844218] phy phy-usb-phy@11e10000.1: u2 auto load valid efuse: ENABLE with value: 1
[ 0.852127] phy phy-usb-phy@11e10000.1: u2 efuse - intr 13
[ 0.857607] phy phy-usb-phy@11e10000.2: try to get sw efuse
[ 0.863167] phy phy-usb-phy@11e10000.2: try to get sw efuse+
[ 0.868820] phy phy-usb-phy@11e10000.2: u3 auto load valid efuse: ENABLE with value: 1
[ 0.876739] phy phy-usb-phy@11e10000.2: u3 efuse - intr 28, rx_imp f, tx_imp f
[ 0.883952] phy phy-usb-phy@11e10000.3: try to get sw efuse
[ 0.889513] phy phy-usb-phy@11e10000.3: try to get sw efuse+
[ 0.895170] phy phy-usb-phy@11e10000.3: u2 auto load valid efuse: ENABLE with value: 1
[ 0.903082] phy phy-usb-phy@11e10000.3: u2 efuse - intr 13
[ 0.908971] xhci-mtk 11200000.xhci: xHCI Host Controller
[ 0.914285] xhci-mtk 11200000.xhci: new USB bus registered, assigned bus number 1
[ 0.924820] xhci-mtk 11200000.xhci: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[ 0.934063] xhci-mtk 11200000.xhci: irq 132, io mem 0x11200000
[ 0.939960] xhci-mtk 11200000.xhci: xHCI Host Controller
[ 0.945265] xhci-mtk 11200000.xhci: new USB bus registered, assigned bus number 2
[ 0.952739] xhci-mtk 11200000.xhci: Host supports USB 3.2 Enhanced SuperSpeed
[ 0.960143] hub 1-0:1.0: USB hub found
[ 0.963907] hub 1-0:1.0: 2 ports detected
[ 0.968134] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.976407] hub 2-0:1.0: USB hub found
[ 0.980162] hub 2-0:1.0: 1 port detected
[ 0.984373] usbcore: registered new interface driver uas
[ 0.989716] usbcore: registered new interface driver usb-storage
[ 0.995811] i2c /dev entries driver
[ 1.000411] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 1.008320] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[ 1.016829] Bluetooth: HCI UART driver ver 2.3
[ 1.021265] Bluetooth: HCI UART protocol H4 registered
[ 1.026393] Bluetooth: HCI UART protocol BCSP registered
[ 1.031747] Bluetooth: HCI UART protocol Broadcom registered
[ 1.037410] Bluetooth: HCI UART protocol QCA registered
[ 1.043014] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[ 1.056933] Initializing XFRM netlink socket
[ 1.061460] NET: Registered protocol family 10
[ 1.066383] Segment Routing with IPv6
[ 1.070102] NET: Registered protocol family 17
[ 1.074566] Bridge firewalling registered
[ 1.078635] 8021q: 802.1Q VLAN Support v1.8
[ 1.083286] pstore: Using crash dump compression: deflate
[ 1.095498] nmbm nmbm_spim_nand: Signature found at block 2047 [0x1ffc0000]
[ 1.104886] nmbm nmbm_spim_nand: First info table with writecount 0 found in block 1920
[ 1.120245] nmbm nmbm_spim_nand: Second info table with writecount 0 found in block 1923
[ 1.128331] nmbm nmbm_spim_nand: NMBM has been successfully attached
[ 1.134894] 8 fixed-partitions partitions found on MTD device nmbm_spim_nand
[ 1.141935] Creating 8 MTD partitions on "nmbm_spim_nand":
[ 1.147413] 0x000000000000-0x000000100000 : "BL2"
[ 1.152552] 0x000000100000-0x000000180000 : "u-boot-env"
[ 1.158188] 0x000000180000-0x000000380000 : "Factory"
[ 1.163543] 0x000000380000-0x000000540000 : "FIP"
[ 1.168528] 0x000000540000-0x000000580000 : "zloader"
[ 1.173871] 0x000000580000-0x000004580000 : "ubi"
[ 1.178909] 0x000004580000-0x000008580000 : "ubi2"
[ 1.184021] 0x000008580000-0x00001e000000 : "zyubi"
[ 1.399679] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[ 1.409119] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 1.418460] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[ 1.427435] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[ 1.434583] DSA: tree 0 setup
[ 1.434832] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 1.437542] mt7530-nl: genl_register_family_with_ops
[ 1.450585] UBI: auto-attach mtd6
[ 1.453899] ubi0: attaching mtd6
[ 1.753874] ubi0: scanning is finished
[ 1.765123] ubi0: attached mtd6 (name "ubi", size 64 MiB)
[ 1.770517] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.777378] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.784153] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.791101] ubi0: good PEBs: 256, bad PEBs: 0, corrupted PEBs: 0
[ 1.797095] ubi0: user volume: 5, internal volumes: 1, max. volumes count: 128
[ 1.804304] ubi0: max/mean erase counter: 47/10, WL threshold: 4096, image sequence number: 1658393161
[ 1.813594] ubi0: available PEBs: 1, total reserved PEBs: 255, PEBs reserved for bad PEB handling: 38
[ 1.822803] ubi0: background thread "ubi_bgt0d" started, PID 809
[ 1.823752] block ubiblock0_1: created from ubi0:1(rootfs)
[ 1.834276] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[ 1.841230] hctosys: unable to open rtc device (rtc0)
[ 1.851167] VFS: Mounted root (squashfs filesystem) readonly on device 253:0.
[ 1.858457] Freeing unused kernel memory: 448K
[ 1.878721] Run /sbin/init as init process
[ 2.077908] init: Console is alive
[ 2.081453] init: - watchdog -
[ 2.097940] kmodloader: no module folders for kernel version 5.4.238 found
[ 2.114996] init: - preinit -
[ 2.704337] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 2.712663] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
/etc/preinit: line 30: lock: not found
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
/etc/preinit: line 67: lock: not found
/etc/preinit: line 39: lock: not found
rm: can't remove '/tmp/tmp.bOCJlo': No such file or directory
/etc/preinit: line 72: lock: not found
[ 4.777816] mount_root: loading kmods from internal overlay
[ 4.786424] kmodloader: no module folders for kernel version 5.4.238 found
[ 4.793536] mount_root: failed to launch kmodloader from internal overlay
[ 7.220157] UBIFS (ubi0:4): Mounting in unauthenticated mode
[ 7.225898] UBIFS (ubi0:4): background thread "ubifs_bgt0_4" started, PID 870
[ 7.297990] UBIFS (ubi0:4): recovery needed
[ 7.585932] UBIFS (ubi0:4): recovery completed
[ 7.590446] UBIFS (ubi0:4): UBIFS: mounted UBI device 0, volume 4, name "rootfs_data"
[ 7.598271] UBIFS (ubi0:4): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 7.608173] UBIFS (ubi0:4): FS size: 8380416 bytes (7 MiB, 33 LEBs), journal size 2031617 bytes (1 MiB, 6 LEBs)
[ 7.618249] UBIFS (ubi0:4): reserved for root: 395827 bytes (386 KiB)
[ 7.624684] UBIFS (ubi0:4): media format: w5/r0 (latest is w5/r0), UUID 6E0B34AB-5019-4D60-815A-29C24B4432A2, small LPT model
[ 7.639593] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 7.657253] block: extroot: not configured
[ 7.661441] UBIFS (ubi0:4): un-mount UBI device 0
[ 7.666147] UBIFS (ubi0:4): background thread "ubifs_bgt0_4" stops
[ 7.675639] UBIFS (ubi0:4): Mounting in unauthenticated mode
[ 7.681353] UBIFS (ubi0:4): background thread "ubifs_bgt0_4" started, PID 873
[ 7.815907] UBIFS (ubi0:4): UBIFS: mounted UBI device 0, volume 4, name "rootfs_data"
[ 7.823736] UBIFS (ubi0:4): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 7.833637] UBIFS (ubi0:4): FS size: 8380416 bytes (7 MiB, 33 LEBs), journal size 2031617 bytes (1 MiB, 6 LEBs)
[ 7.843709] UBIFS (ubi0:4): reserved for root: 395827 bytes (386 KiB)
[ 7.850139] UBIFS (ubi0:4): media format: w5/r0 (latest is w5/r0), UUID 6E0B34AB-5019-4D60-815A-29C24B4432A2, small LPT model
[ 7.869794] mount_root: loading kmods from internal overlay
[ 7.881671] kmodloader: no module folders for kernel version 5.4.238 found
[ 7.888731] mount_root: failed to launch kmodloader from internal overlay
[ 10.248113] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 10.264018] block: extroot: not configured
[ 10.270852] mount_root: switching to ubifs overlay
[ 10.346674] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 10.410741] procd: - early -
[ 10.413639] procd: - watchdog -
[ 10.926273] procd: - watchdog -
[ 10.930829] procd: - ubus -
[ 10.983733] procd: - init -
Please press Enter to activate this console.
[ 11.279901] urngd: v1.0.2 started.
[ 11.334745] kmodloader: no module folders for kernel version 5.4.238 found
[ 12.614612] mtk_soc_eth 15100000.ethernet eth0: TX vlan offload cannot be enabled when dsa is attached.
[ 12.624518] mtk_soc_eth 15100000.ethernet eth0: TX vlan offload cannot be enabled when dsa is attached.
[ 15.174308] /dev/ubi0_3: Can't open blockdev
[ 15.242900] block ubiblock0_3: created from ubi0:3(zydefault)
[ 15.268051] ubi1: attaching mtd8
[ 16.874652] ubi1: scanning is finished
[ 16.886361] ubi1: attached mtd8 (name "zyubi", size 346 MiB)
[ 16.892023] ubi1: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 16.898888] ubi1: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 16.905664] ubi1: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 16.912612] ubi1: good PEBs: 1386, bad PEBs: 0, corrupted PEBs: 0
[ 16.918692] ubi1: user volume: 5, internal volumes: 1, max. volumes count: 128
[ 16.925902] ubi1: max/mean erase counter: 8/4, WL threshold: 4096, image sequence number: 2420492800
[ 16.935019] ubi1: available PEBs: 0, total reserved PEBs: 1386, PEBs reserved for bad PEB handling: 38
[ 16.944315] ubi1: background thread "ubi_bgt1d" started, PID 1263
[ 16.966883] UBIFS (ubi1:3): Mounting in unauthenticated mode
[ 16.972615] UBIFS (ubi1:3): background thread "ubifs_bgt1_3" started, PID 1271
[ 17.130380] UBIFS (ubi1:3): UBIFS: mounted UBI device 1, volume 3, name "data"
[ 17.137601] UBIFS (ubi1:3): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 17.147503] UBIFS (ubi1:3): FS size: 18538496 bytes (17 MiB, 73 LEBs), journal size 2031617 bytes (1 MiB, 6 LEBs)
[ 17.157748] UBIFS (ubi1:3): reserved for root: 875618 bytes (855 KiB)
[ 17.164180] UBIFS (ubi1:3): media format: w5/r0 (latest is w5/r0), UUID B6227958-D77B-4218-93A3-024B2D1DEA2B, small LPT model
[ 17.190663] UBIFS (ubi1:4): Mounting in unauthenticated mode
[ 17.196397] UBIFS (ubi1:4): background thread "ubifs_bgt1_4" started, PID 1276
[ 17.348209] UBIFS (ubi1:4): UBIFS: mounted UBI device 1, volume 4, name "misc"
[ 17.355435] UBIFS (ubi1:4): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 17.365337] UBIFS (ubi1:4): FS size: 310583296 bytes (296 MiB, 1223 LEBs), journal size 15491072 bytes (14 MiB, 61 LEBs)
[ 17.376189] UBIFS (ubi1:4): reserved for root: 4952683 bytes (4836 KiB)
[ 17.382794] UBIFS (ubi1:4): media format: w5/r0 (latest is w5/r0), UUID C74F7EC9-F1F8-487B-A585-A684B2F89030, small LPT model
Fortunately i switch back via zloader to ubi and it loads again the firmware on ubi successfully, hence i can do multiple tests...
Here is an example bootlog of the firmware loaded from ubi2, same thing but I read that:
UBI: plan to attach ubi2
UBI: auto-attach mtd7
Full bootlog on ubi2
Everything loads fine of course... But why my firmware is ignoring the boot args that i read in the bootlog?