增大UBI根文件系统容量后出现内核崩溃问题求助
问题:iMX6 Solo核心板UBI挂载失败导致内核崩溃
环境信息
- 平台:iMX6 Solo核心板
- 构建工具:LTIB
- 内核版本:Linux kernel 3.0.25
- U-Boot版本:2009-08
- 烧录工具:MFG工具
问题现象
安装新软件包后,rootfs容量从147MiB增至162MiB,设备无法启动,UBI挂载失败,内核崩溃日志如下:
**UBI error: process_eb: bad image sequence number 1588612812 in PEB 720, expected 1344834100** UBI error: ubi_attach_mtd_dev: failed to attach by scanning, error -22 UBI error: ubi_init: cannot attach mtd9 UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:root", error -19 VFS: Cannot open root device "ubi0:root" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
已执行的配置与操作
调整U-Boot MFG的CONFIG_BOOTARGS
#define CONFIG_BOOTARGS "console=ttymxc1,115200 rdinit=/linuxrc mtdparts=gpmi-nand:4m(boot),256k(bootenv),2m(splashscreen),10m(ramdisk),5m(kernel),5m(flasherkernel),256k(updater),256k(flag1),256k(flag2),170m(rootfs),32m(userpart1),32m(userpart2),-(userpart)"\
ubinize.cfg配置文件
[ubifs] mode=ubi image=ubifs.img vol_id=0 vol_size=170MiB vol_type=dynamic vol_name=root vol_flags=autoresize
UBI镜像生成命令
sudo mkfs.ubifs -r $ROOTFS -m 4096 -e 253952 -c 1184 -o ubifs.img sudo ubinize -o $BUILT_IMG/ubi.img -m 4096 -p 256KiB ubinize.cfg
烧录命令
flash_eraseall /dev/mtd9 # Erasing Rootfs partition send "file=files/ubi.img" # Sending Root filesystem ubiformat /dev/mtd9 -f $FILE -s 4096 -O 4096 # Flashing Root Filesystem
请求解决思路
内容的提问来源于stack exchange,提问作者Aîda Brahim
相关产品推荐
相关产品推荐

