[U-Boot] [PATCH 00/23] Fix and extend i.MX HAB layer
Breno Matheus Lima
brenomatheus at gmail.com
Thu Dec 28 17:54:31 UTC 2017
Hi Bryan,
2017-12-27 10:25 GMT-02:00 Bryan O'Donoghue <bryan.odonoghue at linaro.org>:
> This patchset updates the i.MX HAB layer in u-boot to fix a list of
> identified issues and then to add and extend existing functionality.
>
> The first block of patches 0001-0006 deal with fixing existing code,
>
> - Fixes indentation
> - Fixes the treatment of input parameters to hab_auth_image.
>
> The second block of patches 0007-0013 are about tidying up the HAB code
>
> - Remove reliance on hard-coding to specific offsets
> - IVT header drives locating CSF
> - Continue to support existing boards
>
> Patches 0014 onwards extend out the HAB functionality.
>
> - hab_rvt_check_target is a recommended check in the NXP documents to
> perform prior to hab_rvt_authenticate_image
> - hab_rvt_failsafe is a useful function to set the board into BootROM
> USB recovery mode.
>
> Bryan O'Donoghue (23):
> arm: imx: hab: Make authenticate_image return int
> arm: imx: hab: Fix authenticate_image result code
> arm: imx: hab: Optimise flow of authenticate_image on is_enabled fail
> arm: imx: hab: Optimise flow of authenticate_image on hab_entry fail
> arm: imx: hab: Fix authenticate_image input parameters
After applying "[PATCH 05/23] arm: imx: hab: Fix authenticate_image
input parameters" I'm getting the following error when building
mx6sabreauto:
arch/arm/mach-imx/spl.c: In function 'jump_to_image_no_args':
arch/arm/mach-imx/spl.c:200:14: error: 'IVT_SIZE' undeclared (first
use in this function)
offset + IVT_SIZE + CSF_PAD_SIZE, offset)) {
^
arch/arm/mach-imx/spl.c:200:14: note: each undeclared identifier is
reported only once for each function it appears in
arch/arm/mach-imx/spl.c:200:25: error: 'CSF_PAD_SIZE' undeclared
(first use in this function)
offset + IVT_SIZE + CSF_PAD_SIZE, offset)) {
^
arch/arm/mach-imx/spl.c:206:1: warning: 'noreturn' function does return
}
^
scripts/Makefile.build:280: recipe for target
'spl/arch/arm/mach-imx/spl.o' failed
make[2]: *** [spl/arch/arm/mach-imx/spl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
> arm: imx: hab: Fix authenticate image lockup on MX7
> arm: imx: hab: Move IVT_SIZE to hab.h
> arm: imx: hab: Move CSF_PAD_SIZE to hab.h
I believe patches "[PATCH 07/23] arm: imx: hab: Move IVT_SIZE to
hab.h" and "[PATCH 08/23] arm: imx: hab: Move CSF_PAD_SIZE to hab.h"
have to be applied before the [PATCH 05/23] to avoid this build error.
Can you please check if it's possible to move these patches?
Thanks,
Breno Lima
More information about the U-Boot
mailing list