如题
离线
感谢楼上两位大佬,我大概明白了,
ubifs是用mkfs.ubifs生成的,不能直接烧录到flash,
而ubi文件是ubinize文件生成的,可以直接烧录到nand flash,
ubi文件包含上面生成的ubifs文件,并且在cfg配置文件给该img文件起一个卷名(volume name)
离线
https://www.digi.com/support/knowledge-base/difference-between-ubifs-and-ubi-file-systems-on-c
The UBIFS image is a file system image.It works on top of a UBI volume.You cannot flash it on the raw flash device */dev/mtd*. You need to create UBI volume first and then update the volume with UBIFS image.
The UBI image is a UBI volume image. It uses the UBIFS image and some other metadata to create a volume on top of a raw flash device */dev/mtd*. In other words you can flash directly a UBI image with standard *nandwrite* command using the '/dev/mtdx' char device.
On CCWi-i.MX51 or CCWi-i.MX53 platforms , u-boot requires UBIFS image, because the internals of u-boot will create the UBI volume and then updates it with UBIFS image.
The UBI image is meant to be used directly by the operating system (Linux/Android), but at the moment Digi use it only on Linux.
离线
Question
What is the difference between UBI and UBIFS?
Answer
The UBI subsystem works on top of MTD devices and provides a notion of UBI volumes. UBIFS filesystem works on top of UBI volumes.
The UBIFS is done with the mkfs.ubifs command and the UBI is done with ubinize command.
SAM-BA and the U-Boot nand write.trimffs command expect a UBI file.
https://microchipsupport.force.com/s/article/What-is-the-difference-between-UBI-and-UBIFS
离线