Hello Toradex Team,
I’m in the process of enabling Secure Boot using HAB on a Colibri i.MX6ULL.
I have tested the HAB verification of U-Boot and kernel images using the U-Boot commands provided by the HAB library (hab_status and hab_auth_img), and it works properly.
Now that the development is over, I want to go ahead and ‘close’ the device so that only images (U-Boot and kernel) signed with proper signature will be allowed to run. The U-Boot is getting authenticated on startup as the ROM code does it since Secure Boot is enabled on the device. However, I also want the U-Boot to verify kernel image, and prevent booting (or halt) if the image could not be authenticated.
I’m aware that the HAB library provides API to do it, but I prefer a staright-forward U-Boot configuration that would do the job without code modification, if that’s the standard way.
If there is no such way, I would like to get details on how the API should be used to implement it and how people normally deal with kernel authentication in U-Boot. Please also provide references or examples if this is the case.
TDX Info:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.1.55-00020-g6db5276489af #1 SMP Sat Sep 23 09:11:13 UTC 2023
Distro name: NAME="Test Base (base distro for Test)"
Distro version: VERSION_ID=6.4.0-devel-20240919081949-build.0
Hostname: -
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Customized Test DTB to run on Colibri Evaluation Board V3 v1.1
Toradex version: 0044 V1.1A
Serial number: 15102979
Processor arch: armv7l
------------------------------------------------------------
Here are some additional info that might be useful:
- Module: 0044 Colibri iMX6ULL 512MB IT V1.1A
- U-Boot version: U-Boot 2022.07-6.4.0-devel+git.e092e3250270 (Jul 11 2022 - 13:42:58 +0000)
- Kernel image type: zImage
- Build system: Yocto 4 (Kirkstone)
Please share your advices and suggestions as quickly as possible.
Thank you
Ajith