简体   繁体   English

bitbake rootfs大,核心映像最小

[英]bitbake rootfs large for core image minimal

First, I generated a core-image-sato target image using bitbake. 首先,我使用bitbake生成了core-image-sato目标图像。 Then after that I generated core-image-minimal target. 然后,我生成了core-image-minimal目标。 The root file system generated still contains the contents/packages of the existing target. 生成的根文件系统仍然包含现有目标的内容/包。

How can I avoid this and have a minimal root file system 如何避免这种情况并拥有最小的根文件系统

I think core-image-sato is build with X11 and core-image-minimal is without X11 . 我认为core-image-sato是使用X11构建的,而core-image-minimal是without X11 both are fully deferent images. 两者都是完全不同的图像。

so in your deploy/images/your-board/ . 因此在您的deploy/images/your-board/ should have core-image-sato-*-rootfs-* will present also core-image-minimal-*-rootfs* present. 应该有core-image-sato-*-rootfs-*也将存在core-image-minimal-*-rootfs*

Those things you can not delete if you delete core-image-sato- -rootfs- next time you can not able to compile core-image-sato. 如果您下次删除core-image-sato- -rootfs-,则无法删除那些不能编译core-image-sato的东西。 it will give errors. 它会给出错误。

Did this in latest Poky 2.6 - Try to use poky > 2.1 在最新的Poky 2.6中进行了此操作-尝试使用poky> 2.1

bitbake core-image-minimal & bitbake core-image-sato generates different set of images. 最小位烤核心图像和位烤核心图像sato生成不同的图像集。

烘烤后创建的图像

  • check if you have enough disk space! 检查您是否有足够的磁盘空间!
  • check that you are not adding extra packages in your /build/conf/local.config 检查您是否没有在/build/conf/local.config中添加额外的软件包
  • check that you are using different local.config files while bitbaking core-image-minimal and core-image-sato. 在对core-image-minimal和core-image-sato进行位烘烤时,请检查是否使用了不同的local.config文件。 (If you have added packages while bitbaking sato then those packages will be added while bitbaking minimal, if you are using same local.config) (如果您在使用sato进行位烘烤时添加了软件包,则如果使用相同的local.config,则将在进行最小位烘烤时添加这些软件包)

Just a suggestion, not that you have to do it: 只是一个建议,而不是必须这样做:
If you are bitbaking for the first time use default /build/conf/local.config and /build/conf/bblayers.conf (uncommenting DL_DIR, SSTATE_DIR, TMPDIR will be beneficial though) 如果您是第一次进行位烘烤,请使用默认的/build/conf/local.config和/build/conf/bblayers.conf(取消注释DL_DIR,SSTATE_DIR,TMPDIR会有所帮助)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在最小核心映像之前生成其他映像 - Building other image before core-image-minimal Bitbake 不更新目标 rootfs 的 /etc/passwd 和 /etc/group 中的用户和组条目 - Bitbake not updating user and group entry in /etc/passwd and /etc/group of target rootfs 尝试使用自定义 DTB 构建 core-image-minimal 时出现 Makefile 错误 - Makefile error when trying to build core-image-minimal with custom DTB Yocto自定义图像配方未将文件安装到最终的rootfs中 - Yocto Custom Image Recipe does not install a file into the final rootfs 构建Yocto linux映像-“ bitbake映像已满”错误 - Building Yocto linux image - “bitbake image-full” error 使用包管理Yocto最小图像 - Yocto minimal image with package management linux,构建AM33 Yocto映像时出错,bitbake - linux, error building AM33 Yocto image, bitbake 如何列出使用oe-core构建的目标rootfs中安装的软件包? - How to list the packages installed in a target rootfs built using oe-core? 如何在Raspberry Pi2的Ubuntu 14.0.4核心rootfs中添加Linux内核和引导加载程序? - how to add linux kernel and boot loader to an Ubuntu 14.0.4 core rootfs for Raspberry Pi2? 带有 asp.net 核心二进制文件 x86_64 的 bitbake 嵌入式 linux docker 容器 - bitbake embedded linux docker container with asp.net core binaries x86_64
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM