BasedHardware / omi

AI wearables
https://omi.me
MIT License
3.73k stars 483 forks source link

Support OTA Firmware Updates for Omi DevKit 2 #1393

Open beastoin opened 1 week ago

beastoin commented 1 week ago

Currently, OTA firmware updates only support Friend (DK1) and Openglass.

Let's add support for Omi DevKit 2.

Usages

Todos

beastoin commented 1 week ago
Screenshot 2024-11-23 at 13 19 12
beastoin commented 1 week ago
Screenshot 2024-11-23 at 13 19 44
beastoin commented 1 day ago

https://github.com/adafruit/Adafruit_nRF52_nrfutil

francip commented 19 hours ago

DK2 runs the same bootloader as DK1, so the OTA support in DK1 should directly be useable for DK2.

beastoin commented 10 hours ago
$ curl -X 'GET' \
  'https://backend-dt5lrfkkoa-uc.a.run.app/v2/firmware/latest?device_model=Omi%20DevKit%202&firmware_revision=asdsad&hardware_revision=asdasd&manufacturer_name=asdasdasd' \
  -H 'accept: application/json'
{"version":"v2.0.5","min_version":"v2.0.0","min_app_version":"1.0.48","min_app_version_code":"181","zip_url":"https://github.com/BasedHardware/omi/releases/download/Omi_DK2_v2.0.5/Omi_DK2_OTA_v2.0.5.zip"}%
beastoin commented 10 hours ago

$adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application zephyr.hex dfu-package.zip

beastoin commented 10 hours ago
<!-- KEY_VALUE_START
release_firmware_version:v2.0.5
minimum_firmware_required:v2.0.0
minimum_app_version:1.0.48
minimum_app_version_code:181
KEY_VALUE_END -->
beastoin commented 9 hours ago
Screenshot 2024-12-01 at 17 41 01 Screenshot 2024-12-01 at 17 43 09