[问题] NAND 挂载 UBI 档案系统

楼主: gn00618777 (非常念旧)   2014-11-17 22:11:11
我把bootloader 和 kernel 烧进去 NAND 只差 filesystem, NAND 为 4K page size。
开发板为 AM335X 的客制版。
开机过程再 kernel 要准备 mount filesystem
[ 1.752441] UBI: physical eraseblock size: 524288 bytes (512 KiB)
[ 1.758972] UBI: logical eraseblock size: 516096 bytes
[ 1.764617] UBI: smallest flash I/O unit: 4096
[ 1.769500] UBI: VID header offset: 2048 (aligned 0)
[ 1.775787] UBI: data offset: 8192
.
.
UBI error: validate_ec_hdr: bad VID header offset 4096, expected 2048
UBI: VID header offset: 2048 (aligned 0)
作者: alongalone (沿着孤单的路)   2014-11-18 07:53:00
-m 2048 -c 2047 ,subpage size是错的
楼主: gn00618777 (非常念旧)   2014-11-18 12:51:00
后来找到原因是要在 u-boot打上setenv bootargs 'console=ttyO0,115200n8 noinitrdip=off mem=256M rootwait=1 rw ubi.mtd=7,4096rootfstype=ubifs root=ubi0:rootfs init=/init'

Links booklink

Contact Us: admin [ a t ] ucptt.com