Closed arrow53 closed 1 year ago
@arrow53 - I am getting the same issue with the segmentation fault. Could you please tell me what you did to fix the issue? Thank you very much.
do you have a imx-boot_%.bbappend
in your meta layer?
if so, can you post it
@arrow53 - thanks for responding. Yes, I do - I added the 'iot-gate-imx8plus' machine to the COMPATIBLE_MACHINE variable.
# Include the iot-gate-imx8plus machine
COMPATIBLE_MACHINE = "(ucm-imx8m-mini|mcm-imx8m-mini|iot-gate-imx8|iot-gate-imx8plus)"
In my Yocto sources directory these are the other imx-boot_%.bb related files:
developer@docker-desktop:~/compulab-nxp-bsp/sources$ find . -name imx-boot_%.bbappend
./meta-karousels/recipes-bsp/imx-mkimage/imx-boot_%.bbappend
./meta-imx/meta-cockpit/recipes-bsp/imx-mkimage/imx-boot_%.bbappend
./meta-bsp-imx8mp/recipes-bsp/imx-mkimage/imx-boot_%.bbappend
./meta-compulab-hab/recipes-bsp/imx-mkimage/imx-boot_%.bbappend
I'd bail on this layer and pull in what you need into your own layer. I was never able to get it to work without tweaking. Here is what I'm using in my own layer
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
DEST = "${DEPLOY_DIR_IMAGE}/"
# ToDo: additional OSC support
SOC_DIR = "iMX8M"
SOC_TARGET = "iMX8MP"
do_compile_append () {
bbdebug 1 "Do compile append"
install -d ${DEST}
sed -i '/@rm -f u-boot.its $(dtb)$/d' iMX8M/soc.mak
sed -i 's/$(DTB_PREPROC) $(PLAT)-evk.dtb $(dtb) $(dtbs)/$(DTB_PREPROC) ucm-imx8m-plus.dtb $(dtb) $(dtbs)/g' iMX8M/soc.mak
for target in flash_evk print_fit_hab; do
make SOC=${SOC_TARGET} ${target} 2>&1 | tee ${DEST}/${target}.log
if [ ${target} = "flash_evk" ]; then
if [ -e "${S}/${SOC_DIR}/flash.bin" ]; then
cp ${S}/${SOC_DIR}/flash.bin ${DEST}/
fi
fi
done
}
@arrow53 - thanks for sharing your file, it helped me at least not get a segmentation fault.
Hi All,
The imx8-kirkstone branch has been updated with the imx8mp family support: https://github.com/compulab-yokneam/meta-compulab-hab
Sorry for that inconvenience.
@vraevsky this is super helpful. I'm trying to get it to work with hardknott and the
ucm-imx8m-plus
.I'm running into a seg fault when I try to make the
imx-boot
image. Any ideas?