danicampora / micropython

The Micro Python project
MIT License
1 stars 1 forks source link

Add Python API to update the firmware and the SSL security files (certificates and keys). #26

Open danicampora opened 9 years ago

danicampora commented 9 years ago

Also improve the software update mechanism to have 2 user update files, this way, if a software update fails, the current firmware still remains active instead of falling back to the factory version. Improve the safe boot process so that it allows to go back to an older user update or to the factory firmware. This ticket MUST be solved before shipping the WiPy's in August since it involves changing the bootloader.

danicampora commented 9 years ago

The mechanism with 2 user update files is implemented here: https://github.com/micropython/micropython/commit/e955089da0e60ab7d0f2daed5cb9e775b0927fe2

The Python API to access the file updater will come on a later patch.

danicampora commented 9 years ago

I have been thinking that no special API is needed. Updating of this files will be simply done like the way it's done by the FTP server (just like any other file but on the special paths /flash/sys and /flash/cert).

dpgeorge commented 9 years ago

Updating of this files will be simply done like the way it's done by the FTP server

Sounds good.

danicampora commented 9 years ago

@dpgeorge cool, thanks for taking a look a this :-).