Kernel do not see a UBI

Hello!
Allwinner T113, SPI-NAND
Uboot log:

U-Boot SPL 2024.04-rc2-OpenWrt-r26116-51ee74b262 (Apr 29 2024 - 06:33:27 +0000)
DRAM: 128 MiB
Trying to boot from sunxi SPI NAND


U-Boot 2024.04-rc2-OpenWrt-r26116-51ee74b262 (Apr 29 2024 - 06:33:27 +0000) Allwinner Technology

CPU:   Allwinner R528 (SUN8I)
Model: MangoPi MQDual T113
DRAM:  128 MiB
Core:  41 devices, 18 uclasses, devicetree: separate
WDT:   Not starting watchdog@20500a0
MMC:   mmc@4020000: 0, mmc@4021000: 1
Loading Environment from UBI... ubi0: default fastmap pool size: 50
ubi0: default fastmap WL pool size: 25
ubi0: attaching mtd2
ubi0: scanning is finished
ubi0: attached mtd2 (name "ubi", size 127 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 1016, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 5, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1714372407
ubi0: available PEBs: 0, total reserved PEBs: 1016, PEBs reserved for bad PEB handling: 20
Read 126976 bytes from volume ubootenv to 47d04ec0
Read 126976 bytes from volume ubootenv2 to 47d23f00
*** Warning - bad CRC, using default environment

In:    serial@2500c00
Out:   serial@2500c00
Err:   serial@2500c00
Net:   No ethernet found.
Hit any key to stop autoboot:  0
No size specified -> Using max size (4444160)
Read 4444160 bytes from volume kernel to 45000000

## Checking Image at 45000000 ...
   FIT image found
   FIT description: ARM OpenWrt FIT (Flattened Image Tree)
    Image 0 (kernel-1)
     Description:  ARM OpenWrt Linux-6.6.29
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x450000e4
     Data Size:    4203476 Bytes = 4 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40008000
     Entry Point:  0x40008000
     Hash algo:    crc32
     Hash value:   d75c0de0
     Hash algo:    sha1
     Hash value:   82f154cc566c837f0b44fa8e62243bf0d9441d12
    Image 1 (fdt-1)
     Description:  ARM OpenWrt widora_mangopi-mqdual-t113 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x454025fc
     Data Size:    18625 Bytes = 18.2 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   d0b81355
     Hash algo:    sha1
     Hash value:   d12b6533106b2ca39a6673370ff77d17457412b6
    Default Configuration: 'config-1'
    Configuration 0 (config-1)
     Description:  OpenWrt widora_mangopi-mqdual-t113
     Kernel:       kernel-1
     FDT:          fdt-1
## Checking hash(es) for FIT Image at 45000000 ...
   Hash(es) for Image 0 (kernel-1): crc32+ sha1+
   Hash(es) for Image 1 (fdt-1): crc32+ sha1+
## Loading kernel from FIT Image at 45000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM OpenWrt Linux-6.6.29
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x450000e4
     Data Size:    4203476 Bytes = 4 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40008000
     Entry Point:  0x40008000
     Hash algo:    crc32
     Hash value:   d75c0de0
     Hash algo:    sha1
     Hash value:   82f154cc566c837f0b44fa8e62243bf0d9441d12
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 45000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM OpenWrt widora_mangopi-mqdual-t113 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x454025fc
     Data Size:    18625 Bytes = 18.2 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   d0b81355
     Hash algo:    sha1
     Hash value:   d12b6533106b2ca39a6673370ff77d17457412b6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x454025fc
Working FDT set to 454025fc
   Uncompressing Kernel Image to 40008000
   Loading Device Tree to 46d36000, end 46d3d8c0 ... OK
Working FDT set to 46d36000

Starting kernel ...

and Kernel log:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.6.29 (toweroff@debian) (arm-openwrt-linux-gnueabi-gcc (OpenWrt GCC 13.2.0 r26116-51ee74b262) 13.2.0, GNU ld (GNU Binutils) 2.42) #0 SMP Mon Apr 29 06:33:27 2024
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MangoPi MQDual T113
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 13 pages/cpu s20948 r8192 d24108 u53248
[    0.000000] Kernel command line:
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 114112K/131072K available (8851K kernel code, 878K rwdata, 2428K rodata, 2048K init, 260K bss, 16960K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000014] Switching to timer-based delay loop, resolution 41ns
[    0.000160] Console: colour dummy device 80x30
[    0.000176] printk: console [tty0] enabled
[    0.000580] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000614] CPU: Testing write buffer coherency: ok
[    0.000664] pid_max: default: 32768 minimum: 301
[    0.007429] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.007467] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.013169] /cpus/cpu@0 missing clock-frequency property
[    0.013234] /cpus/cpu@1 missing clock-frequency property
[    0.013258] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.014358] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.014569] Setting up static identity map for 0x40200000 - 0x40200060
[    0.014770] rcu: Hierarchical SRCU implementation.
[    0.014795] rcu:     Max phase no-delay instances is 1000.
[    0.015394] smp: Bringing up secondary CPUs ...
[    0.016182] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.016343] smp: Brought up 1 node, 2 CPUs
[    0.016390] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.016409] CPU: All CPU(s) started in HYP mode.
[    0.016422] CPU: Virtualization extensions available.
[    0.022756] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.023075] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023121] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.027512] pinctrl core: initialized pinctrl subsystem
[    0.029451] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.029786] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.031040] thermal_sys: Registered thermal governor 'step_wise'
[    0.031109] No ATAGs?
[    0.048416] SCSI subsystem initialized
[    0.049399] usbcore: registered new interface driver usbfs
[    0.049481] usbcore: registered new interface driver hub
[    0.049559] usbcore: registered new device driver usb
[    0.049920] pps_core: LinuxPPS API ver. 1 registered
[    0.049953] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.049995] PTP clock support registered
[    0.050570] Advanced Linux Sound Architecture Driver Initialized.
[    0.052168] clocksource: Switched to clocksource arch_sys_counter
[    0.064456] NET: Registered PF_INET protocol family
[    0.064697] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.065390] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.065443] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.065474] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.065509] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.065558] TCP: Hash tables configured (established 1024 bind 1024)
[    0.065683] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.065737] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.066266] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.068105] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.077166] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.079098] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.086157] sun4i-usb-phy 4100400.phy: failed to get reset usb0_reset
[    0.089045] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.106354] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.136176] loop: module loaded
[    0.140416] usbcore: registered new interface driver usb-storage
[    0.141103] mousedev: PS/2 mouse device common for all mice
[    0.143182] sun6i-rtc 7090000.rtc: registered as rtc0
[    0.143340] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:00:10 UTC (86410)
[    0.143681] i2c_dev: i2c /dev entries driver
[    0.144912] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.149702] NET: Registered PF_INET6 protocol family
[    0.162961] Segment Routing with IPv6
[    0.163074] In-situ OAM (IOAM) with IPv6
[    0.163190] NET: Registered PF_PACKET protocol family
[    0.163475] can: controller area network core
[    0.164516] NET: Registered PF_CAN protocol family
[    0.164562] 8021q: 802.1Q VLAN Support v1.8
[    0.164625] Registering SWP/SWPB emulation handler
[    0.216715] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.225613] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.247850] 2500c00.serial: ttyS3 at MMIO 0x2500c00 (irq = 232, base_baud = 1500000) is a 16550A
[    0.247955] printk: console [ttyS3] enabled
[    0.920920] sun20i-d1-pinctrl 2000000.pinctrl: supply vcc-pc not found, using dummy regulator
[    0.932844] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.938208] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.946934] 2 fixed-partitions partitions found on MTD device spi0.0
[    0.953394] OF: Bad cell count for /soc/spi@4025000/flash@0/partitions
[    0.959958] OF: Bad cell count for /soc/spi@4025000/flash@0/partitions
[    0.967039] OF: Bad cell count for /soc/spi@4025000/flash@0/partitions
[    0.973686] OF: Bad cell count for /soc/spi@4025000/flash@0/partitions
[    0.980657] Creating 2 MTD partitions on "spi0.0":
[    0.985547] 0x000000000000-0x000000100000 : "uboot"
[    0.993193] UBI: check for 'linux,ubi'
[    0.996981] UBI: not compatible!
[    1.000470] 0x000000100000-0x000008000000 : "ubi"
[    1.179731] UBI: check for 'linux,ubi'
[    1.183566] ubi0: default fastmap pool size: 50
[    1.188130] ubi0: default fastmap WL pool size: 25
[    1.192958] ubi0: attaching mtd1
[    1.269438] UBI: EOF marker found, PEBs from 63 will be erased
[    1.276096] ubi0: scanning is finished
[    1.279896] ubi0 error: ubi_read_volume_table: the layout volume was not found
[    1.287410] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[    1.296578] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    1.310519] ehci-platform 4200000.usb: EHCI Host Controller
[    1.311229] ohci-platform 4200400.usb: Generic Platform OHCI controller
[    1.316205] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 1
[    1.316370] ehci-platform 4200000.usb: irq 32, io mem 0x04200000
[    1.322899] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 2
[    1.334584] sunxi-mmc 4020000.mmc: Got CD GPIO
[    1.336796] ohci-platform 4200400.usb: irq 33, io mem 0x04200400
[    1.347194] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[    1.360751] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[    1.367396] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    1.372664] sunxi-mmc 4020000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[    1.375754] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.391844] usb usb1: Product: EHCI Host Controller
[    1.392215] UBI: auto-attach mtd1
[    1.396768] usb usb1: Manufacturer: Linux 6.6.29 ehci_hcd
[    1.400056] ubi0: default fastmap pool size: 50
[    1.405468] usb usb1: SerialNumber: 4200000.usb
[    1.409991] ubi0: default fastmap WL pool size: 25
[    1.416074] hub 1-0:1.0: USB hub found
[    1.419323] ubi0: attaching mtd1
[    1.426659] hub 1-0:1.0: 1 port detected
[    1.430692] sunxi-mmc 4021000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[    1.441814] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.06
[    1.450277] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.457577] usb usb2: Product: Generic Platform OHCI controller
[    1.463577] usb usb2: Manufacturer: Linux 6.6.29 ohci_hcd
[    1.463607] sunxi-mmc 4021000.mmc: card claims to support voltages below defined range
[    1.468983] usb usb2: SerialNumber: 4200400.usb
[    1.482354] hub 2-0:1.0: USB hub found
[    1.486216] hub 2-0:1.0: 1 port detected
[    1.508452] mmc1: new high speed SDIO card at address 0001
[    1.552392] UBI: EOF marker found, PEBs from 63 will be erased
[    1.559018] ubi0: scanning is finished
[    1.562883] ubi0 error: ubi_read_volume_table: the layout volume was not found
[    1.570361] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[    1.577524] UBI error: cannot attach mtd1
[    1.581896] clk: Disabling unused clocks
[    1.586023] ALSA device list:
[    1.589009]   No soundcards found.
[    1.592965] /dev/root: Can't open blockdev
[    1.597108] VFS: Cannot open root device "" or unknown-block(0,0): error -6
[    1.604123] Please append a correct "root=" boot option; here are the available partitions:
[    1.612527] 1f00            1024 mtdblock0
[    1.612539]  (driver?)
[    1.619090] 1f01          130048 mtdblock1
[    1.619097]  (driver?)
[    1.625659] List of all bdev filesystems:
[    1.629673]  ext3
[    1.629677]  ext2
[    1.631608]  ext4
[    1.633554]  squashfs
[    1.635485]  vfat
[    1.637763]  f2fs
[    1.639695]
[    1.643130] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.651402] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.29 #0
[    1.657330] Hardware name: Generic DT based system
[    1.662135]  unwind_backtrace from show_stack+0x10/0x14
[    1.667394]  show_stack from dump_stack_lvl+0x40/0x4c
[    1.672474]  dump_stack_lvl from panic+0x108/0x340
[    1.677289]  panic from mount_root_generic+0x1f4/0x2a4
[    1.682452]  mount_root_generic from prepare_namespace+0x228/0x25c
[    1.688649]  prepare_namespace from kernel_init+0x1c/0x12c
[    1.694154]  kernel_init from ret_from_fork+0x14/0x38
[    1.699221] Exception stack(0xc182ffb0 to 0xc182fff8)
[    1.704282] ffa0:                                     00000000 00000000 00000000 00000000
[    1.712467] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.720651] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.727274] CPU1: stopping
[    1.727281] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.29 #0
[    1.727290] Hardware name: Generic DT based system
[    1.727296]  unwind_backtrace from show_stack+0x10/0x14
[    1.727319]  show_stack from dump_stack_lvl+0x40/0x4c
[    1.727339]  dump_stack_lvl from do_handle_IPI+0xec/0x120
[    1.727355]  do_handle_IPI from ipi_handler+0x18/0x20
[    1.727366]  ipi_handler from handle_percpu_devid_irq+0x78/0x134
[    1.727383]  handle_percpu_devid_irq from generic_handle_domain_irq+0x28/0x38
[    1.727405]  generic_handle_domain_irq from gic_handle_irq+0x74/0x88
[    1.727421]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[    1.727437]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    1.727452]  call_with_stack from __irq_svc+0x6c/0x7c
[    1.727464] Exception stack(0xc1879f70 to 0xc1879fb8)
[    1.727472] 9f60:                                     00000003 00000001 00000db4 40000000
[    1.727481] 9f80: 00000001 c1004f68 c1882940 c1004fa4 40007000 410fc075 00000000 00000000
[    1.727490] 9fa0: 00000001 c1879fc0 c0a9d658 c0a9da24 60000013 ffffffff
[    1.727495]  __irq_svc from default_idle_call+0x2c/0x30
[    1.727510]  default_idle_call from do_idle+0xa4/0x118
[    1.727527]  do_idle from cpu_startup_entry+0x28/0x2c
[    1.727539]  cpu_startup_entry from secondary_start_kernel+0x124/0x128
[    1.727552]  secondary_start_kernel from 0x40201394
[    1.853485] Rebooting in 1 seconds..

U-Boot UBI info:

=> ubi list
0: ubootenv
1: ubootenv2
2: kernel
3: rootfs
4: rootfs_data

=> ubi info l
Volume information dump:
        vol_id          0
        reserved_pebs   9
        alignment       1
        data_pad        0
        vol_type        3
        name_len        8
        usable_leb_size 126976
        used_ebs        9
        used_bytes      1142784
        last_eb_bytes   126976
        corrupted       0
        upd_marker      0
        skip_check      0
        name            ubootenv
Volume information dump:
        vol_id          1
        reserved_pebs   9
        alignment       1
        data_pad        0
        vol_type        3
        name_len        9
        usable_leb_size 126976
        used_ebs        9
        used_bytes      1142784
        last_eb_bytes   126976
        corrupted       0
        upd_marker      0
        skip_check      0
        name            ubootenv2
Volume information dump:
        vol_id          2
        reserved_pebs   35
        alignment       1
        data_pad        0
        vol_type        3
        name_len        6
        usable_leb_size 126976
        used_ebs        35
        used_bytes      4444160
        last_eb_bytes   126976
        corrupted       0
        upd_marker      0
        skip_check      0
        name            kernel
Volume information dump:
        vol_id          3
        reserved_pebs   26
        alignment       1
        data_pad        0
        vol_type        3
        name_len        6
        usable_leb_size 126976
        used_ebs        26
        used_bytes      3301376
        last_eb_bytes   126976
        corrupted       0
        upd_marker      0
        skip_check      0
        name            rootfs
Volume information dump:
        vol_id          4
        reserved_pebs   911
        alignment       1
        data_pad        0
        vol_type        3
        name_len        11
        usable_leb_size 126976
        used_ebs        911
        used_bytes      115675136
        last_eb_bytes   126976
        corrupted       0
        upd_marker      0
        skip_check      0
        name            rootfs_data
Volume information dump:
        vol_id          2147479551
        reserved_pebs   2
        alignment       1
        data_pad        0
        vol_type        3
        name_len        13
        usable_leb_size 126976
        used_ebs        2
        used_bytes      253952
        last_eb_bytes   2
        corrupted       0
        upd_marker      0
        skip_check      0
        name            layout volume
=>

what is wrong? why the kernel can't see ubi in MTD part?

boot into initramfs
erase ubi partition with mtd erase ubi
attach ubi partition ubiattach -p /dev/mtd1
then recreate ubootenv and ubootenv2

ubimkvol /dev/ubi0 -s 128KiB -N ubootenv
ubimkvol /dev/ubi0 -s 128KiB -N ubootenv2

flash sysupgrade