您尚未登录。

楼主 #1 2021-02-19 13:52:06

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

请问 buildroot 根文件系统 ubi和ubifs有什么区别呢?

如题

离线

楼主 #4 2021-02-19 15:17:17

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 请问 buildroot 根文件系统 ubi和ubifs有什么区别呢?

感谢楼上两位大佬,我大概明白了,

ubifs是用mkfs.ubifs生成的,不能直接烧录到flash,

而ubi文件是ubinize文件生成的,可以直接烧录到nand flash,

ubi文件包含上面生成的ubifs文件,并且在cfg配置文件给该img文件起一个卷名(volume name)

离线

楼主 #5 2021-02-23 14:24:51

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 请问 buildroot 根文件系统 ubi和ubifs有什么区别呢?

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.

离线

楼主 #6 2021-02-23 14:28:35

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 请问 buildroot 根文件系统 ubi和ubifs有什么区别呢?

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

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn