Hi,
I have deleted tmp/deploy/images/imx8mmevk by mistake,is there any way to rebuild image?
Solved! Go to Solution.
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,
in yocto root dir run
source setup-environment <build-dir>
bitbake <image-name>
<image-name> is the image name you have built.
Hi Bert,
After implement cmd you provide,the images folder still not generate,should i delete build-dir and clean build?
BR,
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.
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>
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,