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

teach x1plusd.ota to download OTA images #268

Merged
merged 8 commits into from
May 18, 2024
Merged

teach x1plusd.ota to download OTA images #268

merged 8 commits into from
May 18, 2024

Conversation

jwise
Copy link
Member

@jwise jwise commented May 16, 2024

In combination with #260, x1plusd can now download and install an OTA of its own. After installing this version (including the kexec_ui changes from #260), try something like:

[root@BL-P001-sdcard:~]# x1plus-test-settings.py ota.enabled=True
[root@BL-P001-sdcard:~]# x1plus-test-settings.py ota.json_url=https://moroso.emarhavil.com/~joshua/x1ota/ota.json
[root@BL-P001-sdcard:~]# dbus-send --system --print-reply --dest=x1plus.x1plusd /x1plus/ota x1plus.ota.GetStatus string:'{}'
[root@BL-P001-sdcard:~]# dbus-send --system --print-reply --dest=x1plus.x1plusd /x1plus/ota x1plus.ota.Download string:'{"base_firmware": true}'
[root@BL-P001-sdcard:~]# dbus-send --system --print-reply --dest=x1plus.x1plusd /x1plus/ota x1plus.ota.GetStatus string:'{}'
(... repeat until status is IDLE again and both ota_is_downloaded and ota_base_is_downloaded ...)
[root@BL-P001-sdcard:~]# dbus-send --system --print-reply --dest=x1plus.x1plusd /x1plus/ota x1plus.ota.Update string:'{}'

@bani6809
Copy link
Contributor

it is worth noting that x1plus ota is fundamentally incompatible with lan+shield mode. the UI should probably make this obvious.

@jwise jwise marked this pull request as ready for review May 18, 2024 09:30
@jwise jwise requested review from bani6809 and jphannifan May 18, 2024 09:37
Copy link
Contributor

@bani6809 bani6809 left a comment

Choose a reason for hiding this comment

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

lgtm. tested, seems to work

@jwise jwise merged commit 46261bf into main May 18, 2024
1 check passed
@jwise jwise deleted the jwise/ota-dl branch May 18, 2024 19:08
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.

None yet

3 participants