-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
caam_hash() crashes after authenticating a signed fitImage with hab_auth_img #56
Comments
After some debugging, the issue might be introduced by commit 1d756ad. If the hab is disabled and there is no SRKs programmed in the efuse (I think it is the normal case during development), calling hab_rvt_authenticate_image() in imx_hab_authenticate_image() leads to this randomly failure. After I added the following code |
Please submit your fix via the U-Boot mailing list, with all the folks involved in commit Thanks |
@freebendy I merged your PR. Thanks for looking at it. Please prepare a PR to fix this error as well. |
@otavio Thanks. I need a guidance here. The mainline u-boot does not support kernel HAB in bootm command yet, and the imx u-boot adds support of the legacy uImage in nxp-imx/uboot-imx@3b09ef6. I added the support of fitImage HAB on top of the imx commit above. I have 2 change commits on hand:
|
I suggest submitting the patches to the U-Boot mainline list first. After it gets reviewed there, then send a PR against u-boot-fslc. Thanks |
Hello, with the 2023.04 u-boot-fslc on a imx6ul board, I built images signed with CST. HAB works good with SPL and u-boot-ivt.img. While I tried to authenticate a signed fitImage, the authentication did pass, but calculating sha256 after the
hab_auth_img
crashes as follow ( "@@" message are added by me). The same feature works well with in previous 2020.10+fslc branch.The text was updated successfully, but these errors were encountered: