`hw_unique_key` secure boot sample ignores CONFIG_HW_UNIQUE_KEY_LOAD overlay

Hey there,

I'm trying to build the `hw_unique_key` sample for a nrf5340dk_app (non NS) with CONFIG_SECURE_BOOT so that its `child_image/b0.conf` with CONFIG_HW_UNIQUE_KEY_LOAD gets applied.

In the end, CONFIG_HW_UNIQUE_KEY_LOAD is not applied do the missing dependencies HAS_HW_NRF_ACL && HAS_HW_NRF_CC310 && NRF_CC3XX_PLATFORM .

Since NRF5340 is using CryptoCell version CC312, is there a way to have CONFIG_HW_UNIQUE_KEY_LOAD enabled for b0 so that HUK can be loaded into the KDR at boot time?
Hope this makes sense,
Thank you for your time,
V
Parents Reply
  • Hey Dejan,

    Didn't touch anything else from the original hw_unique_key sample code. Just added CONFIG_SECURE_BOOT=y to prj.conf and added a build configuration for both nrf5340dk_nrf5340_cpuapp and nrf5340dk_nrf5340_cpuapp_ns (they both exhibit the same behaviour: no CONFIG_HW_UNIQUE_KEY_LOAD gets added to b0/.config )

    b0.conf was not touched. It's the same one you'll find in child_image/b0.conf, in the original sample code.

    I'm on v2.6.1

    Hope this helps,

    V

Children
Related