I’m trying to modify the generation of the Toradex Easy Installer image on a custom IMX8X based board, because I need custom partitions for OTA.
I stumbled across this Add partition to Easy Installer image built with Yocto so I tried following it.
The problem is that no matter the approach I keep getting an overwrite error on the image.json file:
Based on the error message it seems that more than one function tries to write the JSON image description file. The Python functions that write the file are the original rootfs_tezi_json() and my custom one, so to make sure that only one function writes to that file I just edited the old one to fit my needs. But the error doesn’t go away.
Is there something I can do to track down what’s wrong? I’m starting to feel like BitBake’s error message is misleading and the problem is somewhere else, but I’m not sure…
It could be that some other image recipe, perhaps other version of your bcn3-*-image, which uses same deploy folder, has created this json file. To solve error you need to bitbake -c clean your_old_image.
where image_type_tezi_bcn3d is the name of the custom class that I’ve created.
Then I 've nuked the build directory entirely and re-run the entire build and it appears that now the image is built correctly. Now I can’t boot anymore but that’s another problem xD
As a side comment, I would like to add that TorizonCore already has the OTA Stack ready to use, so you won’t need to develop it by yourself. Maybe you would like to check it: