我把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)
后来找到原因是要在 u-boot打上setenv bootargs 'console=ttyO0,115200n8 noinitrdip=off mem=256M rootwait=1 rw ubi.mtd=7,4096rootfstype=ubifs root=ubi0:rootfs init=/init'