Error occurred while building OTA on i.MX8MM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Error occurred while building OTA on i.MX8MM

374 次查看
jmlee1
Contributor I

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.

0 项奖励
回复
3 回复数

349 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

346 次查看
jmlee1
Contributor I
I followed your suggestion and switched meta-swupdate-imx to mickledore_6.1.36_2.1.0, and added styhead to LAYERSERIES_COMPAT_swupdate-imx in layer.conf.

Then I tried building the image using:
$ bitbake swupdate-image

However, I'm now facing a patch failure:

ERROR: swupdate-2024.12-r0 do_patch: Applying patch '0001-mongoose-enable-cgi.patch' ...
Hunk #1 FAILED at 11.
Patch does not apply.
It seems that the 0001-mongoose-enable-cgi.patch is not compatible with the latest SWUpdate version (2024.12).

I’m wondering if:
1. This is a known compatibility issue with Yocto 6.12 (styhead)?
2. Am I expected to manually rework and apply each patch in the meta-swupdate-imx layer (or from AN13872 package)?

I would appreciate clarification on whether a ready-to-use branch exists for 6.12/styhead, or if all patches need to be manually reviewed and adapted.
0 项奖励
回复

321 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复