HAB Event 1 (0xdb 0x00 0x08 0x41 0x33 0x22 0x0a 0x00)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HAB Event 1 (0xdb 0x00 0x08 0x41 0x33 0x22 0x0a 0x00)

2,382 Views
myungjinhwang
Contributor III

I'm having a problem now... (imx6 sabre lite)

I know what does the event log mean but still does not figure out the clue.

plz help me.

the event logs are :

======================================================

U-Boot > hab_status

Secure boot disabled

HAB Configuration: 0xf0, HAB State: 0x66

--------- HAB Event 1 -----------------

event data:

        0xdb 0x00 0x08 0x41 0x33 0x22 0x0a 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

--------- HAB Event 3 -----------------

event data:

        0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00

        0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x2c

        0x00 0x00 0x03 0x18

--------- 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

--------- 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

===========================================

settings are like this

======== CSF =================

[Header]

  Version = 4.0

  Security Configuration = Open

  Hash Algorithm = sha256

  Engine = ANY

  Engine Configuration = 0

  Certificate Format = X509

  Signature Format = CMS

[Install SRK]

  File = "../crts/SRK_1_2_3_4_table.bin"

  Source index = 0

  Hash Algorithm = sha256

[Install CSFK]

  File = "../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"

  Certificate Format = X509

[Authenticate CSF]

[Install Key]

  Verification index = 0

  Target index = 2

  File = "../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate Data]

  Verification index = 2

  Blocks = 0x177ff400 0x400 0x5DC00 "./u-boot-pad.imx"

==================UBOOT.imx=====================

entry_point:    17800000

imximage_init_loadsize:    1000

flash_offset:    400

hdr_base:    177ff400

fhdr_v2->self:    177ff400

dcd_ptr:    177ff42c

hdr_v2->boot_data.start:         177ff000

fhdr_v2->csf:  1785d000

Image Type:   Freescale IMX Boot Image

Image Ver:    2 (i.MX53/6 compatible)

Data Size:    0x5e000

Load Address: 177ff420

Entry Point:  17800000

dcd_ptr:  177ff42c

HAB Blocks:   177ff400 00000000 0005dc00

imximage_ivt_offset:  0x400

==================.lds file========================

. = 0x177FF000 + 0x5E000;

__hab_data_start = .;

/* leave 8kB for the CSF */

__csf_data = .;

  . = . + 0x2000;

__hab_data_end = .;

===================imximage.c=====================

fhdr_v2->csf = hdr_v2->boot_data.start + 0x5E000;

0 Kudos
3 Replies

1,098 Views
raulcardenas-b4
Contributor III

Hi MyungJin,

It seems that you are using a newer version of u-boot. Therefore, your IVT is at offset 0x000 not 0x400. I can tell from this part of the u-boot.imx info:

HAB Blocks:   177ff400 00000000 0005dc00

which should be the input for your authenticate data command. So make this change:

[Authenticate Data]

  Verification index = 2

  Blocks = 0x177ff400 0x000 0x5DC00 "./u-boot-pad.imx"

That should do the trick for you.

Regards,

Raul

0 Kudos

1,098 Views
Yuri
NXP Employee
NXP Employee

The following - I hope - helps.

Re: Need to know how to implement HAB with Yocto BSP (Kernel 3.10.17)


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,098 Views
myungjinhwang
Contributor III

It's my header info...

제목 없음.png

0 Kudos