[PATCH v1] colibri_imx7: disable HAB and CAAM support

Breno Matheus Lima brenomatheus at gmail.com
Mon Dec 23 18:07:01 CET 2019


Hi Igor,

Em qui., 19 de dez. de 2019 às 07:55, Igor Opaniuk
<igor.opaniuk at gmail.com> escreveu:
>
> From: Igor Opaniuk <igor.opaniuk at toradex.com>
>
> Currently Colibri iMX7 NAND version doesn't boot at all with
> HABv4 support enabled. If CSF section is included in the final
> imx binary, BootROM every time switches to usb recovery mode.
> However eMMC version of the same SoM works without any issues.
>
> Disable HAB and CAAM support for now until the problem is properly
> investigated and fixed.
>

This issue is also happening with i.MX6ULL, seems that padding the
U-Boot binary to the size defined in boot data is addressing this
issue.

Please follow example below.

1. Dump boot data:

$ hexdump u-boot-dtb.imx | head
0000000 00d1 4020 0000 8780 0000 0000 f42c 877f
0000010 f420 877f f400 877f 6000 878d 0000 0000
0000020 f000 877f b000 000d 0000 0000 01d2 40e8
0000030 01cc 04e4 0c02 6840 ffff ffff 0c02 6c40

IVT self = 0x877ff400
Boot data addr = 0x877ff000
Boot data size = 0x000db000

2. Calculate image size:

Image offset = IVT self(0x877ff400) - Boot data addr(0x877ff000) = 0x400
Total image size = Boot data size(0x000db000) - Image offset(0x400) = 0xdac00

3. Pad U-Boot image:

$ objcopy -I binary -O binary --pad-to 0xdac00 --gap-fill=0x00
u-boot-dtb.imx u-boot-dtb.imx.pad

Could you please try similar in your i.MX7D board?

Thanks,
Breno Lima


More information about the U-Boot mailing list