Yocto does not generate u-boot.dtb when local.conf configured to enable verify boot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Yocto does not generate u-boot.dtb when local.conf configured to enable verify boot

ソリューションへジャンプ
1,997件の閲覧回数
Gorka_3
Contributor II

Hello everyone,

I am currently trying to enable the verified boot feature in U-boot in order to boot a signed FIT image. I am working with the i.MX93 EVK and Yocto Kirkstone release.

My goal is to configure "local.conf" file so that after building the image I get a u-boot image with public key added to it. I want to secure the process of passing from u-boot to linux (in FIT format). To do so I have configured the "local.conf" as follows (info related to u-boot verification is provided only):

# to use FIT image for kernel and devicetree
MACHINE_FEATURES += "fit"
#signing key
UBOOT_SIGN_KEYDIR = "/home/gorka/timesys/bad_keys"
UBOOT_SIGN_KEYNAME = "dev"
# Sign FIT image
UBOOT_SIGN_ENABLE = "1"
# generate new signing key if not exist
FIT_GENERATE_KEYS = "1"
# Uboot mkimage option
UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000"

 

While compiling the next warning is shown:

WARNING: u-boot-imx-2022.04-r0 do_deploy: Failure while adding public key to u-boot binary. Verified boot won't be available.

And if I take a look at deployed files:

Gorka_3_0-1712589758700.png

There u-boot binary is shown (with dtb and without dtb). And the dtb itself appears twice as symbolic links. But the real u-boot.dtb file isn't available.

I have compiled it twice with different keys and compared both u-boot.bin files, but they don't differ so I guess that the public key isn't hardcoded (as the warning had adviced).

Is there any way to solve it? Is it something wrong in "local.conf"?

Thank you in advance,

Gorka.

タグ(1)
0 件の賞賛
返信
1 解決策
1,951件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

Please have a reference to the <10.9 Security reference design> of IMX_LINUX_USERS_GUIDE.pdf 

 

Regards

Harvey

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,952件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

Please have a reference to the <10.9 Security reference design> of IMX_LINUX_USERS_GUIDE.pdf 

 

Regards

Harvey

0 件の賞賛
返信