Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Zephyr to v4.0.0 and use main mender-mcu #37

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

danielskinstad
Copy link
Collaborator

@danielskinstad danielskinstad commented Jan 20, 2025

The updated config options are really just based on trial and error on arm. The net socket timeout can probably be set a bit higher, same with the max open file descriptors; what do you think a reasonable value is?

Removes the incompatible pointer types warning

Signed-off-by: Daniel Skinstad Drabitzius <[email protected]>
We need to rebuild the workspace image if we e.g. change
the revision of any of the projects

Signed-off-by: Daniel Skinstad Drabitzius <[email protected]>
@danielskinstad danielskinstad force-pushed the zephyr-4 branch 3 times, most recently from 930af59 to 0a64f46 Compare January 21, 2025 09:47
@danielskinstad danielskinstad changed the title wip: Update Zephyr to v4.0.0 and use main mender-mcu Update Zephyr to v4.0.0 and use main mender-mcu Jan 21, 2025
@danielskinstad danielskinstad requested review from lluiscampos and vpodzime and removed request for lluiscampos January 21, 2025 10:17
* Update the Zephyr revision from `v3.7.0` to `4.0.0`
* Change the `mender-mcu` revision from `v0.3-inventory` to `main`
* Change `CONFIG_MBEDTLS_ZEPHYR_ENTROPY` to `CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR`
  and enable `CONFIG_MBEDTLS_ENTROPY_C`.
* Set `CONFIG_ZVFS_OPEN_MAX` from 4 to 5 to fix `ENFILE` (23) errors
  when creating sockets
* Increase `CONFIG_NET_SOCKETS_CONNECT_TIMEOUT` to stop zsock_connect()
  from timing out too early, see:
  zephyrproject-rtos/zephyr@fc007ee
* Disabled `ESP_SPIRAM` in esp32_ethernet_kit config due to linking errors
* Update zephyr sdk from 0.16.9 to 0.17.0

Ticket: MEN-7927

Signed-off-by: Daniel Skinstad Drabitzius <[email protected]>
@danielskinstad
Copy link
Collaborator Author

Tested on esp32-s3 and nRF52840

Copy link
Collaborator

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise. Much better/shorter than what I would expect. 👍 ❤️

prj.conf Show resolved Hide resolved
Copy link
Collaborator

@lluiscampos lluiscampos left a comment

Choose a reason for hiding this comment

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

It looks good! Thank you.

Feel free to totally ignore my comment below...

@@ -9,11 +9,11 @@ manifest:
projects:
- name: zephyr
remote: zephyrproject-rtos
revision: v3.7.0
revision: v4.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ Scope creep coming! ⚠️

Once you are in this area, and you have your setup fresh... could you experiment a bit with name-allowlist in the import to only get the things that we need? 🙈

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah - yes. I tried that briefly when I started this, but abandoned it for some reason. But I can do it in a new PR - shouldn't be too hard.

@danielskinstad danielskinstad merged commit 095a9c8 into mendersoftware:main Jan 23, 2025
1 check passed
@danielskinstad danielskinstad deleted the zephyr-4 branch January 23, 2025 08:26
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.

3 participants