请教各位大神赐教,如题
ubifs是用buildroot生成的
log如下
2.013952] ubi0: attaching mtd3
[ 2.017405] ubi0: MTD device 3 is write-protected, attach in read-only mode
[ 2.034202] random: crng init done
[ 2.551002] ubi0: scanning is finished
[ 2.555209] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 2.562888] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 2.570228] UBI error: cannot attach mtd3
[ 2.574983] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.592818] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.599780] vcc3v3: disabling
[ 2.602817] ALSA device list:
[ 2.605902] #0: F1C100s Audio Codec
[ 2.610541] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.619345] cfg80211: failed to load regulatory.db
[ 2.626938] List of all partitions:
[ 2.630538] 1f00 1280 mtdblock0
[ 2.630545] (driver?)
[ 2.637295] 1f01 128 mtdblock1
[ 2.637302] (driver?)
[ 2.643888] 1f02 7168 mtdblock2
[ 2.643893] (driver?)
[ 2.650563] 1f03 65536 mtdblock3
[ 2.650569] (driver?)
[ 2.657219] 1f04 48768 mtdblock4
[ 2.657225] (driver?)
[ 2.663793] No filesystem could mount root, tried:
[ 2.663799] ubifs
[ 2.668744]
[ 2.672303] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 2.680693] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano+ #127
[ 2.687841] Hardware name: Allwinner suniv Family
[ 2.692649] [<c010e3f8>] (unwind_backtrace) from [<c010b9dc>] (show_stack+0x10/0x14)
[ 2.700474] [<c010b9dc>] (show_stack) from [<c0116e18>] (panic+0xe8/0x2e4)
[ 2.707404] [<c0116e18>] (panic) from [<c0a01338>] (mount_block_root+0x1fc/0x27c)
[ 2.714942] [<c0a01338>] (mount_block_root) from [<c0a014c8>] (mount_root+0x110/0x154)
[ 2.722907] [<c0a014c8>] (mount_root) from [<c0a01634>] (prepare_namespace+0x128/0x188)
[ 2.730973] [<c0a01634>] (prepare_namespace) from [<c07f5e30>] (kernel_init+0x8/0x110)
[ 2.738953] [<c07f5e30>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[ 2.746556] Exception stack(0xc3833fb0 to 0xc3833ff8)
[ 2.751636] 3fa0: 00000000 00000000 00000000 00000000
[ 2.759855] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2.768067] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2.774716] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) ]---
最近编辑记录 mxfh (2021-11-10 11:46:12)
离线
搞了两天多,原来是文件系统开始地址写错了,导致一直ubi_read_volume_table: the layout volume was not found报错;太粗心了
[ 1.648725] ubi0: attaching mtd3
[ 1.779503] ubi0: scanning is finished
[ 1.788276] random: crng init done
[ 1.848548] ubi0: volume 0 ("rootfs") re-sized from 67 to 104 LEBs
[ 1.856386] ubi0: attached mtd3 (name "rootfs", size 16 MiB)
[ 1.862060] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 1.869040] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 1.875869] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 1.882817] ubi0: good PEBs: 126, bad PEBs: 2, corrupted PEBs: 0
[ 1.888848] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 1.896093] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 463946186
[ 1.905148] ubi0: available PEBs: 0, total reserved PEBs: 126, PEBs reserved for bad PEB handling: 18
[ 1.914900] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.923076] ubi0: background thread "ubi_bgt0d" started, PID 95
[ 1.958575] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.965423] vcc3v3: disabling
[ 1.968409] ALSA device list:
[ 1.971378] #0: F1C100s Audio Codec
[ 1.976151] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.984869] cfg80211: failed to load regulatory.db
[ 2.003895] UBIFS: parse sync
[ 2.013337] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.034338] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 101
[ 2.289008] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.296552] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.306513] UBIFS (ubi0:0): FS size: 7618560 bytes (7 MiB, 60 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[ 2.316699] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.322536] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 7EA172D1-362A-4194-B528-DD7DC9F89643, small LPT model
[ 2.351056] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.371077] devtmpfs: mounted
[ 2.378680] Freeing unused kernel memory: 1024K
[ 2.386944] Run /sbin/init as init process
最近编辑记录 mxfh (2021-11-11 16:42:13)
离线