添加特定程序包后,Yocto Image文件的大小减小 [英] Yocto Image file size reduces after adding a particular package

查看:76
本文介绍了添加特定程序包后,Yocto Image文件的大小减小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下配置构建了一个核心图像-sato图像:

I built a core-image-sato image with the following configuration:

MACHINE = "intel-core2-32"

生成的图像大小将近1.2 GB.

The generated image size is nearly 1.2 GB.

添加"x11vnc"软件包后,大小减小为380 MB.该映像无法在硬件上成功启动.

After i add "x11vnc" package, the size is reduced to 380 MB. This image doesn't boot successfully on the hardware.

为什么图像尺寸减小而不是增大

Why is the image size reduced instead of increasing

我们如何调试出了什么问题?

How can we debug what is going wrong?

推荐答案

您使用的core-image-sato图像继承core-image.bbclass,该类使用?=运算符设置IMAGE_INSTALL的默认值.

The core-image-sato image you use inherits core-image.bbclass, which sets a default value of IMAGE_INSTALL using the ?= operator.

这意味着,如果尝试使用+ =运算符从使用?=运算符设置默认值之前评估的位置扩展IMAGE_INSTALL,则永远不会添加默认值.因此,它没有添加x11vnc的意图,而是最终成为IMAGE_INSTALL的唯一内容,该内容使映像无法启动和不完整.

This means that if you try to extend IMAGE_INSTALL by using the += operator from somewhere that is evaluated before the default value is set using the ?= operator, the default values will never be added. So instead of adding x11vnc which was the intention, it ended up as the only content of IMAGE_INSTALL which renders the image unbootable and incomplete.

使用IMAGE_INSTALL_append ="x11vnc",它应该可以正常工作.

Use IMAGE_INSTALL_append = " x11vnc " and it should work just fine.

您可以在 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆