ubifs编译命令 编译boot.ubifs ./mkfs.ubifs -r boot-image/ -F -o k2hk-evm-boot.ubifs -m 2048 -e 126976 -c 75 编译rootfs.ubifs ./mkfs.ubifs -r rootfs/ -o tisdk-rootfs.ubifs -m 2048 -e 129024 -c 4129 -F 其中-c 4129 为500MB*1024/124=4129 编译ubifs.ubi ./ubinize -o k2hk-evm-ubifs.ubi -m 2048 -p 128KiB -s 2048 -O 2048 ubinize_k2hk-evm.cfg ubinize_k2hk-evm.cfg 如下 [boot] mode=ubi image=k2hk-evm-boot.ubifs vol_type=dynamic vol_id=0 vol_name=boot vol_size=10MiB [rootfs] mode=ubi image=tisdk-rootfs.ubifs vol_id=1 vol_size=500MiB vol_type=dynamic vol_name=rootfs vol_flags=autoresize —————————————— 编译出来ubifs.ubi有382MB uboot______________________________________________ nand erase.part ubifs tftpboot 0x60000000 /tftpboot/linux15-08rt/nand-0x60000000/k2hk-evm-ubifs.ubi nand write 0x60000000 ubifs ${filesize} 因为自己板子DDR3A用不了,只用使用ddrB空间了 执行 run init_ubi Creating 1 MTD partitions on "nand0": 0x000000180000-0x000020000000 : "mtd=2" UBI: attaching mtd1 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: vtbl_check: volume table check failed: record 1, error 9 UBI error: ubi_init: cannot attach mtd1 UBI error: ubi_init: UBI error: cannot initialize UBI, error -22 UBI init error 22 Using volume boot UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:boot", error -19 UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'ubi:boot' errno=-19! ubifsmount - mount UBIFS volume Usage: ubifsmount - mount 'volume-name' volume UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload [bytes] - load file 'filename' to address 'addr' K2HK EVM #