Skip to content

Fix the siwx91x_ota example build error to align with latest mbedtls#156

Open
Swamidas Nampalli (silabs-SwamidasN) wants to merge 1 commit intoSiliconLabsSoftware:mainfrom
silabs-SwamidasN:fix-siwx91x_ota-build-error
Open

Fix the siwx91x_ota example build error to align with latest mbedtls#156
Swamidas Nampalli (silabs-SwamidasN) wants to merge 1 commit intoSiliconLabsSoftware:mainfrom
silabs-SwamidasN:fix-siwx91x_ota-build-error

Conversation

@silabs-SwamidasN
Copy link
Copy Markdown

@silabs-SwamidasN Swamidas Nampalli (silabs-SwamidasN) commented Mar 27, 2026

Fix the build error

Update the project configuration (mbedTLS options in prj.conf) so the
sample builds with current Zephyr and satisfies mbedtls/check_config.h when
RSA key exchange is enabled.

Disable MBEDTLS_USE_PSA_CRYPTO for TLS so legacy AES/GCM paths provide
MBEDTLS_SSL_HAVE_*; with PSA-for-TLS and no PSA AES wants, the client could
advertise no usable cipher suites.

Enable cipher and hash sets plus RSA key exchange with the required MD_C,
RSA_C, PKCS1, and ASN1 parse options.

Use sl_wifi_firmware_header_t for firmware header size instead of the
deprecated sl_si91x_firmware_header_t (WiseConnect 4.0).

Signed-off-by: Swamidas Nampalli <Swami.Das@silabs.com>
@silabs-SwamidasN Swamidas Nampalli (silabs-SwamidasN) force-pushed the fix-siwx91x_ota-build-error branch 5 times, most recently from 9f472eb to c6048c8 Compare March 27, 2026 13:11
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have hesitated to merge this PR. The upcoming migration to mbedtls4.0 (#155 and zephyrproject-rtos/zephyr#104031) will break this configuration yet another time.

In another hand, it may be more comfortable to have a working OTA sample in the tree before the migration to mbedtls 4.0. So we can bisect if required.

Aksel Mellbye (@asmellby), do you share this opinion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants