Closed freebendy closed 1 year ago
Have you tried 2023.04?
@otavio Yes, I tried 2023.04 with "CONFIG_SPL_DRIVERS_MISC=y" and "CONFIG_IMX_HAB=y", I still got the error: arch/arm/mach-imx/hab.c:876: undefined reference to `fuse_read'
@freebendy
I have tested the following change against U-Boot mainline:
diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 2770b12598d9..8c29d4bbe835 100644 --- a/configs/mx6sabresd_defconfig +++ b/configs/mx6sabresd_defconfig @@ -127,3 +127,5 @@ CONFIG_IMX_HDMI=y CONFIG_SPLASH_SCREEN=y CONFIG_SPLASH_SCREEN_ALIGN=y CONFIG_BMP_16BPP=y +CONFIG_IMX_HAB=y +CONFIG_SPL_DRIVERS_MISC=y
It builds without issues here.
Tested the same on v2023.04 and the build error happens as you reported.
So there was a fix in mainline that is not present in v2023.04, but I haven't investigated.
Ok, I investigated and after applying this commit: https://source.denx.de/u-boot/u-boot/-/commit/251a3053b1e68de3421e2c5536e58b9632f9c770 into v2023.04 this problem is solved.
Please submit this patch to u-boot-fslc so that this issue can be fixed.
@fabioestevam Thanks for the info. Not sure the last statement is for me or a member in the repo, I create a PR for a cherry-pick. I will remove it if it is not the right approach.
@freebendy This looks good. @otavio will probably apply your pull request soon.
Fixed by #55.
CONFIG_IMX_HAB
requiresmxc_ocotp.c
to work. Due to commit https://github.com/Freescale/u-boot-fslc/commit/8a1ab5e81126c6ccedaa76376e7206f5c8583aa3,SPL_MXC_OCOTP
has dependency onSPL_MISC
thus also depending onSPL_DM
. This dependency chain change requires to enable DM for HAB in SPL, which leads to error SPL exceeding its maximum size on i.mx6. It seems that themxc_ocotp.c
does not require DM to work, it should depend onSPL
as before instead ofSPL_MISC
.