我把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'