Slow HAB verification in SPL

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

Slow HAB verification in SPL

1,214件の閲覧回数
per_orback
Contributor II

Hi, I am working in a project where the boot up time is a critical issue. The project is built around IMX6DL and we are using HAB. The boot sequence is SPL->u-boot->FIT-image, u-boot version is fslc-2018.11. We experience that the image verification of the u-boot image from the SPL is very slow. Around 800ms only for the function call to imx_hab_authenticate_image(). The verification of the FIT image from u-boot is much faster, almost 500ms faster.

According to the reference manual the MMU and caches are enabled i ROM for faster image verification but then disabled again after the authentication of the SPL image. The MMU and caches seems to be enabled again in the u-boot code which meas these will be disable when the SPL is running.

Can this be the cause of the slow u-boot verification in SPL? Do any one knows how to enable the MMU and caches in SPL code or can point me to a available patch?

Best regards,
Per Örbäck

0 件の賞賛
返信
1 返信

1,193件の閲覧回数
Yuri
NXP Employee
NXP Employee

@per_orback 
Hello,

  This is correct - the boot  ROM enables caches to authenticate images, and then disables prior
to jumping to the loaded image. The intent is MMU/Caches to be disabled when the loaded image
takes control. This ensures the user code is responsible for configuring its environment.
  NXP Linux BSP does not use SPL for i.MX6. For i.MX 6 and i.MX 7, the boot image uses only
the U-Boot bootloader.

Regards,
Yuri.

0 件の賞賛
返信