Closed IITII closed 1 year ago
可以直接用ubi更新啊。原生uboot就行,我做的是AB启动的。你要是改过分区表的话就可能会出错。
我这边是不行的, 看起来貌似是少了分区(然而我并没有修改相关的配置
luci 点击更新后, 串口日志
[ 193.280023] wlan1: Destroyed NSS virtual interface
Sun May 14 22:17:29 CST 2023 upgrade: Sending KILL to remaining processes ...sh: S: out of range
[ 197.034758] sh (3419): drop_caches: 3
Sun May 14 22:17:31 CST 2023 upgrade: Switching to ramdisk...
[ 199.035949] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" stops
[ 199.045267] UBIFS (ubi0:2): un-mount UBI device 0
Sun May 14 14:17:33 UTC 2023 upgrade: Performing system upgrade...
libmtd: error!: cannot get information about "/dev/mtd18 mtd23"
error 2 (No such file or directory)
ubiformat: error!: cannot get information about "/dev/mtd18 mtd23"
error 2 (No such file or directory)
Sun May 14 14:17:33 UTC 2023 upgrade: Upgrade completed
Sun May 14 14:17:34 UTC 2023 upgrade: Rebooting system...
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource
U-Boot 2016.01 (Nov 23 2021 - 05:24:42 +0000), Build: jenkins-common_router_openwrt_ota_publish-2222
DRAM: smem ram ptable found: ver: 1 len: 4
256 MiB
USB: Node Not found, skipping initia▒*9▒ QPIC controller support serial NAND
ID = 41c841c8
Vendor = c8
Device = 41
Serial Nand Device Found With ID : 0xc8 0x41
Serial NAND device Manufacturer:GD5F1GQ5REYIG
Device Size:256 MiB, Page size:2048, Spare Size:128, ECC:8-bit
qpic_nand: changing oobsize to 80 from 128 bytes
SF: Unsupported flash IDs: manuf 00, jedec 0000, ext_jedec 0000
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
256 MiB
MMC: sdhci: Node Not found, skipping initialization
cat /proc/mtd
查看下你的分区表吧
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00020000 "0:SBL1"
mtd1: 00080000 00020000 "0:MIBIB"
mtd2: 00040000 00020000 "0:BOOTCONFIG"
mtd3: 00040000 00020000 "0:BOOTCONFIG1"
mtd4: 00100000 00020000 "0:QSEE"
mtd5: 00100000 00020000 "0:QSEE_1"
mtd6: 00040000 00020000 "0:DEVCFG"
mtd7: 00040000 00020000 "0:DEVCFG_1"
mtd8: 00040000 00020000 "0:CDT"
mtd9: 00040000 00020000 "0:CDT_1"
mtd10: 00080000 00020000 "0:APPSBLENV"
mtd11: 00140000 00020000 "0:APPSBL"
mtd12: 00140000 00020000 "0:APPSBL_1"
mtd13: 00100000 00020000 "0:ART"
mtd14: 00080000 00020000 "0:TRAINING"
mtd15: 00080000 00020000 "bdata"
mtd16: 00080000 00020000 "crash"
mtd17: 00080000 00020000 "crash_log"
mtd18: 02400000 00020000 "rootfs"
mtd19: 02400000 00020000 "rootfs_1"
mtd20: 01f00000 00020000 "overlay"
mtd21: 00d80000 00020000 "data"
mtd22: 0043d000 0001f000 "kernel"
mtd23: 00991000 0001f000 "rootfs"
mtd24: 00fbe000 0001f000 "rootfs_data"
确认了,确实存在这个问题。存在两个同名的rootfs
分区。待修复。
root@OpenWrt:/# find_mtd_index rootfs
18 mtd23
root@OpenWrt:/# find_mtd_index rootfs_1
19
已修复。
目的
编译后的文件
config 配置