Commit Graph

16 Commits

Author SHA1 Message Date
Andrew Tridgell 4bf2d87d70 AP_CheckFirmware: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
bugobliterator fd3c723103 AP_CheckFirmware: add separate AP_CheckFirmwareDefine for correctly setting firmware versions 2024-02-21 18:54:17 +11:00
bugobliterator c54521511c AP_CheckFirmware: allow access to app descriptor from bootloader 2024-02-21 18:54:17 +11:00
bugobliterator 7fabce6cb6 AP_Bootloader: add support for printing current firmware and boot status 2024-02-21 18:54:17 +11:00
Peter Barker bced484263 AP_CheckFirmware: rename sim_periph_gps to sim_gps_universal, recreate sim_periph_gps 2024-01-16 12:16:35 +11:00
Andrew Tridgell 5a84e988a5 AP_CheckFirmware: fixed error code for bad firmware
when we have a bad unsigned firmware we check if it is a good signed
firmware. If it is then we should return OK, if not we should return
the original error code, otherwise we end up giving a misleading
reason for not booting a peripheral
2023-07-09 18:11:54 +10:00
Peter Barker 006fb6f60b AP_CheckFirmware: remove GCS.h from header files 2022-11-16 18:29:07 +11:00
Peter Barker 0757b46c46 AP_CheckFirmware: remove GCS.h from library header files 2022-11-16 18:29:07 +11:00
Andrew Tridgell 36e9f9b7d1 AP_CheckFirmware: rename secure data to apsec_data 2022-09-05 12:35:37 +10:00
Andrew Tridgell 39595d36be AP_CheckFirmware: allow an unsigned bootloader to boot a signed firmware
this is important to provide an upgrade path for AP_Periph from
unsigned to signed. It means a bootloader with no public keys can
still check the board ID and CRCs of the signed firmware
2022-09-05 12:35:37 +10:00
Andrew Tridgell bf511640cf AP_CheckFirmware: added check_signed_bootloader() 2022-09-05 12:35:37 +10:00
Andrew Tridgell 1f4db8204b AP_CheckFirmware: support updating or removing public keys
this supports fetching, updating and removing public keys using the
SECURE_COMMAND mavlink operations. This will allow for vendors to
remotely hand over management of RemoteID security to new vendors
2022-09-05 12:35:37 +10:00
Andrew Tridgell 029947efc7 AP_CheckFirmware: allow for boot if no public keys
this will allow for SECURE_UPDATE command to unlock bootloader
2022-09-05 12:35:37 +10:00
Andrew Tridgell c70643f0e7 AP_CheckFirmware: added monocypher 2022-08-30 10:51:06 +10:00
bugobliterator d434038b26 AP_CheckFirmare: add support for signed firmwares 2022-08-30 10:51:06 +10:00
Andrew Tridgell aeb6d2ab89 AP_CheckFirmware: added library for checking firmware ID and CRC 2022-08-15 09:18:34 +10:00