Hi Yuri,
Thanks for the reference document for the IMX7d fuse procedure. The commands did work.
We are having the below methods for building u-boot:
a) Serial download bootloader image
# make distclean
# make smx7_defconfig
# make
The resulting bootloader image will be u-boot-dtb.imx. It can be used with a serial
download tool (e.g. usb_imx) to boot the module.
b) QSPI flash bootloader image
# make distclean
# make smx7_spl_defconfig
# make u-boot-with-spl.imx
The resulting bootloader image will be u-boot-with-spl.imx. In bootloader default
environment the 'uboot_update' script is defined that can be used to update a
given bootloader image via TFTP network connection.
We normally use option - b. But after fusing, the signed u-boot image did not come up.
So, we went to option - a. The HAB block logs are not available for option - a. So we created the image and used the HAB blocks generated from option b from file SPL.log.
This time, the HAB signed image after fuse of the processor came up.
However, I got the below HAB events in hab_status:
=> hab_status
Secure boot disabled
HAB Configuration: 0xf0, HAB State: 0x66
--------- HAB Event 1 -----------------
event data:
0xdb 0x00 0x08 0x42 0x33 0x22 0x0a 0x00
STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ADDRESS (0x22)
CTX = HAB_CTX_AUTHENTICATE (0x0A)
ENG = HAB_ENG_ANY (0x00)
--------- HAB Event 2 -----------------
event data:
0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x87 0x7f 0xf4 0x00
0x00 0x00 0x00 0x20
STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ASSERTION (0x0C)
CTX = HAB_CTX_ASSERT (0xA0)
ENG = HAB_ENG_ANY (0x00)
--------- HAB Event 3 -----------------
event data:
0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x87 0x7f 0xf4 0x2c
0x00 0x00 0x01 0xbc
STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ASSERTION (0x0C)
CTX = HAB_CTX_ASSERT (0xA0)
ENG = HAB_ENG_ANY (0x00)
--------- HAB Event 4 -----------------
event data:
0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x87 0x7f 0xf4 0x20
0x00 0x00 0x00 0x01
STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ASSERTION (0x0C)
CTX = HAB_CTX_ASSERT (0xA0)
ENG = HAB_ENG_ANY (0x00)
--------- HAB Event 5 -----------------
event data:
0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x87 0x80 0x00 0x00
0x00 0x00 0x00 0x04
STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ASSERTION (0x0C)
CTX = HAB_CTX_ASSERT (0xA0)
ENG = HAB_ENG_ANY (0x00)
=>
Please find below our images generated for option - a:
-rw-r--r-- 1 adtop users 7889 Aug 5 01:48 .u-boot.lds.cmd
-rw-r--r-- 1 adtop users 2410 Aug 5 01:48 u-boot.lds
-rw-r--r-- 1 adtop users 662767 Aug 5 01:48 u-boot.map
-rw-r--r-- 1 adtop users 1363 Aug 5 01:48 .u-boot.cmd
-rwxr-xr-x 1 adtop users 4675556 Aug 5 01:48 u-boot
-rw-r--r-- 1 adtop users 281 Aug 5 01:48 .u-boot-nodtb.bin.cmd
-rwxr-xr-x 1 adtop users 435364 Aug 5 01:48 u-boot-nodtb.bin
drwxr-xr-x 2 adtop users 4096 Aug 5 01:48 dts
-rw-r--r-- 1 adtop users 71 Aug 5 01:48 .u-boot-dtb.bin.cmd
-rw-r--r-- 1 adtop users 472210 Aug 5 01:48 u-boot-dtb.bin
-rw-r--r-- 1 adtop users 2913 Aug 5 01:48 u-boot-dtb.cfgout
-rw-r--r-- 1 adtop users 7578 Aug 5 01:48 .u-boot-dtb.cfgout.cmd
-rw-r--r-- 1 adtop users 194 Aug 5 01:48 u-boot-dtb.imx.log
-rw-r--r-- 1 adtop users 139 Aug 5 01:48 .u-boot-dtb.imx.cmd
-rw-r--r-- 1 adtop users 478208 Aug 5 01:48 u-boot-dtb.imx
-rw-r--r-- 1 adtop users 267 Aug 5 01:48 .u-boot.srec.cmd
-rwxr-xr-x 1 adtop users 1306250 Aug 5 01:48 u-boot.srec
-rw-r--r-- 1 adtop users 47 Aug 5 01:48 .u-boot.bin.cmd
-rw-r--r-- 1 adtop users 472210 Aug 5 01:48 u-boot.bin
-rw-r--r-- 1 adtop users 72 Aug 5 01:48 .u-boot.sym.cmd
-rw-r--r-- 1 adtop users 167162 Aug 5 01:48 u-boot.sym
-rw-r--r-- 1 adtop users 80202 Aug 5 01:48 System.map
-rw-r--r-- 1 adtop users 36846 Aug 5 01:48 u-boot.dtb
drwxr-xr-x 27 adtop users 4096 Aug 5 01:48 .
Please find below our images generated for option - b:
-rw-r--r-- 1 adtop users 8483 Aug 4 23:23 .u-boot.lds.cmd
-rw-r--r-- 1 adtop users 2410 Aug 4 23:23 u-boot.lds
-rw-r--r-- 1 adtop users 663748 Aug 4 23:23 u-boot.map
-rw-r--r-- 1 adtop users 1363 Aug 4 23:23 .u-boot.cmd
-rwxr-xr-x 1 adtop users 4693748 Aug 4 23:23 u-boot
drwxr-xr-x 2 adtop users 4096 Aug 4 23:23 dts
drwxr-xr-x 14 adtop users 4096 Aug 4 23:23 spl
-rwxr-xr-x 1 adtop users 439056 Aug 4 23:23 u-boot-nodtb.bin
-rw-r--r-- 1 adtop users 281 Aug 4 23:23 .u-boot-nodtb.bin.cmd
-rw-r--r-- 1 adtop users 71 Aug 4 23:23 .u-boot-dtb.bin.cmd
-rw-r--r-- 1 adtop users 475902 Aug 4 23:23 u-boot-dtb.bin
-rw-r--r-- 1 adtop users 47 Aug 4 23:23 .u-boot.bin.cmd
-rw-r--r-- 1 adtop users 475902 Aug 4 23:23 u-boot.bin
-rw-r--r-- 1 adtop users 173 Aug 4 23:23 .u-boot.img.cmd
-rw-r--r-- 1 adtop users 475966 Aug 4 23:23 u-boot.img
-rw-r--r-- 1 adtop users 286 Aug 4 23:23 SPL.log
-rw-r--r-- 1 adtop users 114 Aug 4 23:23 .SPL.cmd
-rw-r--r-- 1 adtop users 52224 Aug 4 23:23 SPL
-rw-r--r-- 1 adtop users 364 Aug 4 23:23 .u-boot-with-spl.imx.cmd
-rw-r--r-- 1 adtop users 545598 Aug 4 23:23 u-boot-with-spl.imx
drwxr-xr-x 27 adtop users 4096 Aug 5 01:04 .
Questions:
1. Can you please let us know whether we made any mistake in the procedure we tried?
2. Can you please let us know how to resolve these hab_status events?
3. I understand that the procedure for SPL HABv4 is somewhat different than HABv4 as when I tried the HABv4 procedure and the signed image did not get booted up after the fuse programming.
Can you provide us the procedure for SPL HABv4 that we can try out?
Please provide us with a quick response.
Thank you.
With Regards,
N.Raghu Raman.