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

Add OTA support for Omi DevKit 2 #1406

Closed

Conversation

vishwamartur
Copy link

Related to #1393

Add OTA firmware update support for Omi DevKit 2.

  • Configuration Changes:

    • Update Friend/firmware/firmware_v1.0/prj_xiao_ble_sense_devkitv2-adafruit.conf to include OTA support settings.
    • Set CONFIG_BOOTLOADER_MCUBOOT and CONFIG_MCUBOOT_SERIAL to y.
  • Documentation Updates:

    • Add OTA update instructions for Omi DevKit 2 in Friend/firmware/firmware_v1.0/README.rst.
    • Update docs/docs/developer/DevKit2Testing.md with steps for testing OTA updates.
    • Update docs/docs/hardware/DevKit2.mdx with instructions for performing OTA updates.
  • Build Configuration:

    • Update Friend/firmware/firmware_v1.0/CMakePresets.json to include OTA update support for Omi DevKit 2.

Related to BasedHardware#1393

Add OTA firmware update support for Omi DevKit 2.

* **Configuration Changes:**
  - Update `Friend/firmware/firmware_v1.0/prj_xiao_ble_sense_devkitv2-adafruit.conf` to include OTA support settings.
  - Set `CONFIG_BOOTLOADER_MCUBOOT` and `CONFIG_MCUBOOT_SERIAL` to `y`.

* **Documentation Updates:**
  - Add OTA update instructions for Omi DevKit 2 in `Friend/firmware/firmware_v1.0/README.rst`.
  - Update `docs/docs/developer/DevKit2Testing.md` with steps for testing OTA updates.
  - Update `docs/docs/hardware/DevKit2.mdx` with instructions for performing OTA updates.

* **Build Configuration:**
  - Update `Friend/firmware/firmware_v1.0/CMakePresets.json` to include OTA update support for Omi DevKit 2.
@beastoin
Copy link
Collaborator

beastoin commented Dec 4, 2024

hey @vishwamartur cool!

i just finished this ticket by #1393

with your PR, may i ask why do we need to set configurations CONFIG_BOOTLOADER_MCUBOOT and CONFIG_MCUBOOT_SERIAL ?

Set CONFIG_BOOTLOADER_MCUBOOT and CONFIG_MCUBOOT_SERIAL to y.

@francip
Copy link
Collaborator

francip commented Dec 4, 2024

If you want us to have an MCU bootloader based firmware, can you create a new configuration instead of changing the Adafruit bootloader one?
What is the advantage of using MCU bootloader vs Adafruit bootloader?

@vishwamartur
Copy link
Author

Hi @francip,

Thanks for the feedback! You’re right—creating a new configuration for MCUboot-based firmware makes more sense to avoid affecting the Adafruit bootloader setup. I'll make that change.

As for advantages, MCUboot offers secure boot, image verification, A/B partitioning for OTA reliability, and rollback mechanisms, making it a solid choice for secure and flexible firmware updates.

@francip
Copy link
Collaborator

francip commented Dec 6, 2024

Keep this PR alive for a bit, we might need to switch to MCUboot, but please update it to create a new configuration.

@vishwamartur
Copy link
Author

#1490

MCUboot configuration has been added. Please review it, and I am open to fixing any issues and updating the required changes.

The code has not been tested. Please conduct end-to-end testing on your side. If changes are required, please let me know, and I will work on them.

@beastoin
Copy link
Collaborator

beastoin commented Dec 7, 2024

moved to #1490

@beastoin beastoin closed this Dec 7, 2024
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