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

Support autobuild of enhanced reflash records #966

Closed
anwu opened this issue Apr 10, 2020 · 0 comments · Fixed by #969
Closed

Support autobuild of enhanced reflash records #966

anwu opened this issue Apr 10, 2020 · 0 comments · Fixed by #969
Assignees

Comments

@anwu
Copy link
Contributor

anwu commented Apr 10, 2020

To improve the upgrade and release process of new firmware, we need to implement a way to automatically build an all firmware inclusive OTA TRUB script. As of now, the autobuild_trub_script only handles basic reflashing of the controller and slot tiles. We want to extend the capability of this function so that it can choose to use an enhanced reflash record as well.

For example, we have

autobuild_trub_script("os_2059_v1_0_ota.trub",
                      [
                          ("controller", "connrf52832_nrf52832_head.elf"),
                          ("slot 1", "firm_gpiopipe_lpc824_hw2.elf")
                      ],
                      (2059, "1.0"))

But we want to be able to update the SoftDevice, as well as executive as well now.
So we need something like

autobuild_trub_script("os_2059_v1_2_ota.trub",
                      [
                          ("controller", "pingpong_exec_bundle"),
                          ("controller", "connrf52832_nrf52832_head.elf", enhanced=True, flags=1),
                          ("controller", "s112_nrf52_6.1.1_softdevice.hex", enhanced=True, flags=0),
                          ("slot 1", "firm_gpiopipe_lpc824_hw2.elf")
                      ],
                      (2059, "1.2"))

This can be done by updating coretools/iotilecore/iotile/core/hw/update/records with a new type of record. And also by updating autobuild_trub_script and its underlying functions to handle the new enhanced reflash record.

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 a pull request may close this issue.

1 participant