Hello,
I am trying to build a SWUpdate-based OTA system for i.MX8MM using the NXP AN13872 document as reference.
My Yocto Project version is 6.12 (styhead).
Setup:
However, due to many build issues with meta-swupdate-imx, I excluded it from my layer list.
Then I built the following images:
bitbake swupdate-image
bitbake imx-image-multimedia
I used NXP’s official scripts to generate base and update images:
git clone https://github.com/NXP/swupdate-scripts.git
./assemble_base_image.sh -b imx8mm -m # Generate partition table
./assemble_base_image.sh -b imx8mm -d # Create dual-copy base image
./swu_update_image_build.sh -d -b imx8mm # Create rescue+update SWU image
After flashing the .sdcard image, I booted the device and launched the SWUpdate web UI with:
swupdate -w "-r /www -p 8080" -v &
However, when uploading the SWU file, I get the following errors:
[lua_report_exception] : module 'swupdate_handlers' not found
...
[parser] : Hardware compatibility not found
...
ERROR parser.c : parser : 1040 : Found nothing to install
...
ERROR mongoose_interface.c : upload_handler : 631 : Writing to IPC fails due to Broken pipe
The sw-description file was auto-generated by swupdate-scripts,
and I did not implement any Lua handlers manually.
Can you help me identify what is missing or misconfigured in my setup?
I’m sharing the modified cfg file that I used in my setup.
Thank you in advance.