看板 LinuxDev 關於我們 聯絡資訊
我把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) --> 這是在 driver 出問題 還是製作 ubifs.img 出了問題呢? 我的製作 ubifs.img 過程 mkfs.ubifs -q -r rootfs -m 4096 -e 516096 -c 4096 -o ubifs.img 然後用 ubiformat /dev/mtd7 ubiattach -p /dev/mtd7 ubimkvol /dev/ubi0 -N rootfs -s 400MiB ubiupdatevol /dev/ubi0_0 /ubifs.img 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.25.90.236 ※ 文章網址: http://www.ptt.cc/bbs/LinuxDev/M.1416233475.A.258.html
alongalone: -m 2048 -c 2047 ,subpage size是錯的 11/18 07:53
gn00618777: 後來找到原因是要在 u-boot打上 11/18 12:51
gn00618777: setenv bootargs 'console=ttyO0,115200n8 noinitrd 11/18 12:52
gn00618777: ip=off mem=256M rootwait=1 rw ubi.mtd=7,4096 11/18 12:52
gn00618777: rootfstype=ubifs root=ubi0:rootfs init=/init' 11/18 12:53