mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 22:50:49 +08:00
* feat(bootloader): Add flag BOOTLOADER_SKIP_VERIFY_SIG to skip post-flash signature check In case the full image is not available in memory after flashing, the signature check can't be performed. This is the case if flashing image in chunks to e.g. SD card or eMMC. The image will be anyhow verified before booting, so the check is redundant. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> * feat(bootloader/toc): Support separately signed TOC in front of the image Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> * feat(bootloader): Add support for loading TOC separately into buffer This changes the prototype of find_toc to pass the address and maximum length of the area where TOC is to be searched, instead of just letting find_toc search from the hard-coded APP_LOAD_ADDRESS. This allows searching for TOC from a separately allocated buffer, which is useful for a platform where the mass storage is not XIP, where one can first only load a TOC separately. To keep it secure, the TOC itself needs to be separately signed though. In image_toc.h two new flags are introduced by taking the reserved bits into use: The TOC_FLAG2_RELATIVE_ADDRESSES can be set in case of entry being loaded from non-XIP media to arbitrary addressed buffer; the address entry in TOC can be specified to be an offset from the load address start instead of being an absolute address in memory. The TOC_FLAG2_USE_SBI can be used with risc-v targets, in case the entry needs to be booted via SBI interface. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> * docs(secure bootloader): Add prepended toc documentation Document the feature to add a separately signed TOC in front of the image. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> Co-authored-by: Hamish Willee <hamishwillee@gmail.com> * docs(docs): Release note * fix(bootloader/fmu-v6xrt): Increase bl stack by 200 bytes It is on the edge and overflows if crypto functionality is added. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> * feat(bootloader/fmu-v6xrt): Add signed boot targets for fmu-v6xrt This adds these two new targets: - px4_fmu-v6xrt_secureboot : Signed PX4 image, with prepended TOC, for v6xrt - px4_fmu-v6xrt_bootloader_secureboot: Bootloader version to verify the signed image Specifically, the implementation has - px4board for both targets - A new linker script for px4_fmu-v6xrt_secureboot, including the script.ld and overriding the "flash" memory area for start and size to account for prepended TOC structure - TOC source and linker script - Bootloader configurations added in hw_config.h Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> --------- Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> Co-authored-by: Hamish Willee <hamishwillee@gmail.com>