is there any way to rebuild images

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

is there any way to rebuild images

ソリューションへジャンプ
20,912件の閲覧回数
ming_liao
Contributor I

Hi,

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

ラベル(2)
0 件の賞賛
返信
1 解決策
20,018件の閲覧回数
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 返答(返信)
20,018件の閲覧回数
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 件の賞賛
返信
20,018件の閲覧回数
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 件の賞賛
返信
20,018件の閲覧回数
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,523件の閲覧回数
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>

20,019件の閲覧回数
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 件の賞賛
返信