is there any way to rebuild images

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

is there any way to rebuild images

跳至解决方案
20,404 次查看
ming_liao
Contributor I

Hi,

I have deleted tmp/deploy/images/imx8mmevk by mistake,is there any way to rebuild image?

0 项奖励
回复
1 解答
19,510 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ming Liao,

You should run a clean and then build again. (Deleting the build directory would also work but it’s not necessary and it would take a bit more time as all tasks would need to be rerun).

$ bitbake –c clean <IMAGE>

$ bitbake <IMAGE>

I hope this helps!

Regards,

在原帖中查看解决方案

0 项奖励
回复
5 回复数
19,510 次查看
nxf47746
NXP Employee
NXP Employee

in yocto root dir run

source setup-environment <build-dir> 
bitbake <image-name>

<image-name>‍ is the image name you have built.

0 项奖励
回复
19,510 次查看
ming_liao
Contributor I

Hi Bert,

   After implement cmd you provide,the images folder still not generate,should i delete build-dir and clean build?

BR,

0 项奖励
回复
19,510 次查看
nxf47746
NXP Employee
NXP Employee

Note that bitbake –c clean <IMAGE> will also delete the source code build dir, rebuilding image will take some time.
What you need is redeploying the image. Retry any of the cmds below:

 bitbake <image> -c deploy
 bitbake -f <image>
‍‍‍‍‍

If this is still not work, try the clean command gusarambula provide.

0 项奖励
回复
9,015 次查看
imahgin
Contributor III

Although this is an old question, there is another way without having to recompile all from scratch.

This will instruct bitbake to only clear rootfs

bitbake <image> -c rootfs -f

And then built again the image

bitbake <image>

19,511 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ming Liao,

You should run a clean and then build again. (Deleting the build directory would also work but it’s not necessary and it would take a bit more time as all tasks would need to be rerun).

$ bitbake –c clean <IMAGE>

$ bitbake <IMAGE>

I hope this helps!

Regards,

0 项奖励
回复