最近打算把ubifs移植到MINI2440上,目前遇到一些问题,求大神解答。
1、我使用的boot不是U-boot是VIVI,所以像网上说的ubi part这些命令和UBI分区格式化没办法做,不知道这步重不重要
2、我的移植过程如下:
A: 直接用mkfs.ubifs制作出了img,然后再用ubinize ubinize -o ubi.img -m 2048 -s 512 -p 131072 ubinize.cfg 制作出可烧写镜像root.img
B:将root.img直接通过USB将其下载到文件系统分区:0x000000800000-0x000004400000 : "rootfs"
C:启动时会出现以下异常情况:
a:UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI error: validate_ec_hdr: bad VID header offset 512, expected 2048
UBI error: validate_ec_hdr: bad EC header
UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
UBI error: ubi_init: cannot attach mtd3
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
当出现以上情况后,我用ubinize -o ubi.img -m 2048 -s 2048 -p 131072 ubinize.cfg 重新制作出root.img
然后出现以下异常情况了:
b:UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI warning: ubi_scan: 42 PEBs are corrupted
corrupted PEBs are: 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 92 93 94
UBI error: vtbl_check: volume table check failed: record 0, error 9
UBI error: ubi_init: cannot attach mtd3
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
所以不知道是否是我的制作时 ubinize 命令问题
3.请讲解下,ubi烧写时是否还有其他初始化的参数需要boot传入,貌似uboot做了很多初始化的动作
目前主要是不清楚,ubi启动时,是否需要设置某些参数。
求指导!!!!