【i.MX6UL开发常见问题】Yocto如何生成ubi文件系统?

5.3 Yocto如何生成ubi文件系统?
答:下面是修改Yocto生成ubi格式文件系统的方法,代码差异:
+++ b/sources/meta-myir-imx6ulx/conf/distro/include/myir-imx-base.inc
@@ -15,7 +15,14 @@ LOCALCONF_VERSION = "1"
 IMX_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch bluez"
 IMX_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
 IMX_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
-IMAGE_FSTYPES = "tar.bz2 tar.xz ext4 sdcard"
+IMAGE_FSTYPES = "tar.bz2 tar.xz ext4 sdcard ubi"
+
+# Use the expected value of the ubifs filesystem's volume name in the kernel
+UBI_VOLNAME = "rootfs"
+# The biggest NANDs on current modules are 256MB.
+# This sums up to 2048 LEBs available for the ubifs (-c)
+MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 2048"
+UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"

说明:本帖子源于米尔微信公众号【i.MX6UL/i.MX6ULL开发常见问题】专题文章,是由米尔电子工程师基于米尔电子i.MX6UL/i.MX6ULL产品对i.MX6UL/i.MX6ULL开发中常见问题整理, 希望对您有帮助。

发布了52 篇原创文章 · 获赞 7 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/u011837423/article/details/94566447