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).
I cloned meta-swupdate using the styhead branch:
git clone https://github.com/sbabic/meta-swupdate.git -b styhead
Since meta-swupdate-imx does not have a styhead branch, I used:
git clone https://github.com/nxp-imx-support/meta-swupdate-imx.git -b kirkstone_5.15.32_2.0.0
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.
Hi @jmlee1
1. Please try to use mickledore_6.1.36_2.1.0
2. Then add styhead in LAYERSERIES_COMPAT_swupdate-imx
https://github.com/nxp-imx-support/meta-swupdate-imx/blob/mickledore_6.1.36_2.1.0/conf/layer.conf
Best Regards,
Zhiming
Hi @jmlee1
The patch are compatible with mickledore_6.1.36_2.1.0, not for styhead. So we need to apply patch content manually.
Please use below command to unpack swupdate into build_xxx/workspace/sources/swupdate
devtool modify swupdate
Then add patch content manually.
Best Regards,
Zhiming