How provision partition is used in net core bootloader ?

Hello Team,

I have few question related to network core bootloader.

1. Does b0n verify net core image signature before booting ?

2. who uses provision partition here and how  https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf5340/netboot/pm.yml#L9 ?

3. validation_data.py seems to add signature and public key at the end of binary. does b0n read that verify ?

python3 nrf/scripts/bootloader/hash.py
--in build/hci_ipc/zephyr/app.hex > build/hci_ipc/zephyr/nrf/subsys/bootloader/generated/app_firmware.sha256 

python3 nrf/scripts/bootloader/do_sign.py
--private-key build/hci_ipc/zephyr/GENERATED_NON_SECURE_SIGN_KEY_PRIVATE.pem
--in build/hci_ipc/zephyr/nrf/subsys/bootloader/generated/app_firmware.sha256 > build/hci_ipc/zephyr/nrf/subsys/bootloader/generated/app_firmware.signature

python3 nrf/scripts/bootloader/validation_data.py
--input build/hci_ipc/zephyr/app.hex
--output-hex build/hci_ipc/zephyr/signed_by_b0_app.hex
--output-bin build/hci_ipc/zephyr/signed_by_b0_app.bin
--offset 0 --signature build/hci_ipc/zephyr/nrf/subsys/bootloader/generated/app_firmware.signature
--public-key build/hci_ipc/zephyr/nrf/subsys/bootloader/generated/public.pem
--magic-value 0x281ee6de,0x86518483,79106

4. If I exclude provision.hex from merged_CPUNET.hex board isn't booting. but If I remove b0n_container.hex and signed_by_b0_app.hex , network core boots OK

Related