Hi all,
I am trying to implement the HAB functionality into the uboot for my i.mx6 system.
I failed to do so as my uboot always get freeze at hab_rvt_entry
I had done some searching, and found out post below:
i.MX6 Secure Boot HAB API within U-Boot calls freezing
However, my system still freeze at the same location after i enable the CAAM clock by doing the following:
void hab_caam_clock_enable(void)
{
u32 reg = 0;
reg = readl(CCM_BASE_ADDR + CLKCTL_CCGR0); /* CCGR0 */
reg |= 0x3F00; /*CG4 ~ CG6, enable CAAM clocks*/
writel(reg, CCM_BASE_ADDR + CLKCTL_CCGR0);
reg = readl(CCM_BASE_ADDR + CLKCTL_CCGR6); /* CCGR6 */
reg |= 0x0C00; /*CG5, enable CAAM clocks*/
writel(reg, CCM_BASE_ADDR + CLKCTL_CCGR6);
}
Can anyone advice me on what is going wrong? Is there something that i missed?
I am using u-boot 2009.08.
*in the uboot console, i always get
HAB Configuration: 0x00, HAB State: 0x00
Does it means anything?
Thank you.
Regards,
ZC
Solved! Go to Solution.
Hello,
Please check if U-boot patches, recommended in EB803 was applied.
http://cache.freescale.com/files/microcontrollers/doc/eng_bulletin/EB803.pdf
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello,
Please check if U-boot patches, recommended in EB803 was applied.
http://cache.freescale.com/files/microcontrollers/doc/eng_bulletin/EB803.pdf
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yuri,
Thanks! My problem solved after applying this patch.
Regards,
ZC