Hello,
Release: yocto imx-6.1.55-2.2.0.xml
Board: i.MX8MM-evk
compile: DISTRO=fsl-imx-xwayland MACHINE=imx8mm-lpddr4-evk source imx-setup-release.sh -b build-xwayland-imx8mmevk-imx-gui
bitbake core-image-minimal
I now need to separate the image packaging module from yocto so that I can develop it more flexibly. I will copy the core-image-minimal from yocto , So I did the following:
1) cp /mnt/data/alan/grace_imx8mm/imx-yocto-bsp/build-xwayland-imx8mmevk-imx-gui/tmp/work/imx8mm_lpddr4_evk-poky-linux/core-image-minimal ~ -r
2) Modify the absolute path of the script vi ~/ core-image-minimal/1.0-r0/temp/run.do_image_wic for creating the xxx.wic.zst file, and replace /mnt/data/alan/grace_imx8mm/imx-yocto-bsp/build-xwayland-imx8mmevk-imx-gui/tmp/work/imx8mm_lpddr4_evk-poky-linux/core-image-minimal with ~/core image mini~/core-image-minimal
3) Modify environment variables:/mnt/data/alan/grace_imx8mm/imx-yocto-bsp/build-xwayland-imx8mmevk-imx-gui/tmp/sysroots/imx8mm-lpddr4-evk/imgdata/core-image-minimal.env
repace /mnt/data/alan/grace_imx8mm/imx-yocto-bsp/build-xwayland-imx8mmevk-imx-gui/tmp/work/imx8mm_lpddr4_evk-poky-linux/core-image-minimal with ~/core-image-minimal
4) Run script run.do_image_wic,generate core-image-minimal-imx8mm-lpddr4-evk-20240408092645.rootfs.wic
Then I burned core-image-minimal-imx8mm-lpddr4-evk-20240408092645.rootfs.wic and imx-boot-imx8mm-lpddr4-evk-sd.bin-flash_evk(uboot),But when I started, I encountered the following problem:
After I log in, enter the command:systemctl status system-resolved.service
I have checked all failed services:
What should I do to replace $IMAGE_ROOTFS in core-image-minimal.env, so that the system can start normally?
Looking forward to your reply
Hi @pyh0603!
Thank you for contacting NXP Support!
Maybe could be the modification that are you doing or the image.
The minimal image is a small image that only allows a device to boot, try to compile the "imx-image-core" that image has more features and should solve the Network failure.
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
Best Regards!
Chavira
Thank you for your reply.
If I change $IMAGE_ROOTFS in /mnt/data/alan/grace_imx8mm/imx-yocto-bsp/build-xwayland-imx8mmevk-imx-gui/tmp/sysroots/imx8mm-lpddr4-evk/imgdata/core-image-minimal.env to the default /mnt/data/alan/grace_imx8mm/imx-yocto-bsp/build-xwayland-imx8mmevk-imx-gui/tmp/work/imx8mm_lpddr4_evk-poky-linux/core-image-minimal/1.0-r0/rootfs, any of the above issues will not occur。
So I think the minimal image can start normally, and I think other configurations need to be modified as well
Can you give me some other tips?
Looking forward to your reply @Chavira
Hi @pyh0603!
Thank you for contacting NXP Support!
Sorry, the modification of the original script of the boot is not supported by NXP, if with the original script, the board boots correctly, please use the original script.
Sorry for the mistake!
Best Regards!
Chavira