I noticed that while signing u-boot.imx image for UUU tool to load into memory, we need to clear the DCD pointer for some type of chips (e.g., i.MX6Dual/Quad and i.MX6Sololite). However, while the signed image on flash and boot from flash, the DCD pointer should not be cleared while generating the CSF binary.
Currently my signed u-boot.imx works if I use UUU tool to load into memory to boot. However, if I store it on flash, always got a signature verification failure, no matter whether the DCD pointer is cleared or not while generating the signature. Is there anything else I need to do while generating the signed image for flash besides not to clear the DCD pointer? Here're some logs:
- Loading signed image to memory (i.e. “sudo uuu -v ./u-boot.imx”):
U-Boot 2018.03-00015-g8831283426-dirty (Jan 27 2020 - 14:36:33 -0800)
CPU: Freescale i.MX6QP rev1.0 at 792MHz
CPU: Industrial temperature grade (-40C to 105C) at 38C
Reset cause: POR
Model: ChargePoint i.MX6QP CPNK Board
I2C: ready
DRAM: 3.8 GiB
board_init >>>>>>>>
set_gpios_input >>>>>>>>
set_gpios >>>>>>>>
set_gpios >>>>>>>>
power_init_board >>>>>>>>
PMIC: PFUZE100 ID=0x10
MMC:
Loading Environment from MMC... MMC Device 1 not found
*** Warning - No MMC card found, using default environment
Failed (-5)
auto-detected panel HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
Boot from USB for mfgtools
Use default environment for mfgtools
Run bootcmd_mfg: run mfgtool_args; echo "Run fastboot ..."; fastboot 0;
Hit any key to stop autoboot: 0
Run fastboot ...
Unknown command 'fastboot' - try 'help'
=> hab_status
Secure boot disabled
HAB Configuration: 0xf0, HAB State: 0x66
No HAB Events Found!
- Store it on flash and boot from flash (“dd if=/home/root/u-boot.imx of=/dev/mmcblk0boot0 bs=512 seek=2”):
Loading Environment from MMC... MMC Device 1 not found
*** Warning - No MMC card found, using default environment
Failed (-5)
auto-detected panel HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
Normal Boot
Hit any key to stop autoboot: 0
=> hab_status
Secure boot disabled
HAB Configuration: 0xf0, HAB State: 0x66
--------- HAB Event 1 -----------------
event data:
0xdb 0x00 0x24 0x41 0x33 0x18 0xc0 0x00
0xca 0x00 0x1c 0x00 0x02 0xc5 0x1d 0x00
0x00 0x00 0x18 0x04 0x17 0x7f 0xf4 0x00
0x00 0x08 0x3c 0x00 0x00 0x91 0x00 0x00
0x00 0x00 0x03 0x00
STS = HAB_FAILURE (0x33)
RSN = HAB_INV_SIGNATURE (0x18)
CTX = HAB_CTX_COMMAND (0xC0)
ENG = HAB_ENG_ANY (0x00)
--------- HAB Event 2 -----------------
event data:
0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x17 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 0x41 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x2c
0x00 0x00 0x03 0x00
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 0x41 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x17 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 0x41 0x33 0x0c 0xa0 0x00
0x00 0x00 0x00 0x00 0x17 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)