Hi Yuri,
Thanks for your reply,
I followed all the steps mentioned in that thread.I didn't made SEC_CONFIG to closed when i try hab_status from u-boot it is giving continuous hab events.
Here is my CSF file
[Header]
Version = 4.0
Security Configuration = Open
Hash Algorithm = sha256
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
Engine = CAAM
Engine Configuration = 0
[Install SRK]
File = "../crts/SRK_1_2_3_4_table.bin"
Source index = 0
[Install CSFK]
File = "../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"
[Authenticate CSF]
[Unlock]
Engine = CAAM
Features = RNG
[Install Key]
Verification index = 0
Target index = 2
File = "../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"
# Sign padded U-Boot starting at the IVT through to the end with
# length = 0x59C00 (padded U-Boot length) - 0x0 (IVT offset) = 0x59C00
# This covers the essential parts: IVT, boot data and DCD.
#Blocks have the following definition:
# Image block start address on i.MX, Offset from start of image file,
# Length of block in bytes, image data file
[Authenticate Data]
Verification index = 2
Blocks = 0x177ff400 0x00 0x59c00 "U-Boot-pad.bin"
Here my u-boot size is 0x59c00 and i am not using any padding.
Hi Yuri,
Thanks for your reply,
I followed all the steps mentioned in that thread.I didn't made SEC_CONFIG to closed when i try hab_status from u-boot it is giving continuous hab events.
Here is my CSF file
[Header]
Version = 4.0
Security Configuration = Open
Hash Algorithm = sha256
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
Engine = CAAM
Engine Configuration = 0
[Install SRK]
File = "../crts/SRK_1_2_3_4_table.bin"
Source index = 0
[Install CSFK]
File = "../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"
[Authenticate CSF]
[Unlock]
Engine = CAAM
Features = RNG
[Install Key]
Verification index = 0
Target index = 2
File = "../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"
# Sign padded U-Boot starting at the IVT through to the end with
# length = 0x59C00 (padded U-Boot length) - 0x0 (IVT offset) = 0x59C00
# This covers the essential parts: IVT, boot data and DCD.
#Blocks have the following definition:
# Image block start address on i.MX, Offset from start of image file,
# Length of block in bytes, image data file
[Authenticate Data]
Verification index = 2
Blocks = 0x177ff400 0x00 0x59c00 "U-Boot-pad.bin"
Here my u-boot size is 0x59c00 and i am not using any padding.
Here is hab_status command log:
HAB Configuration: 0x00, HAB State: 0x00
--------- HAB Event 1 -----------------
event data:
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x07 0x00 0x00 0x00
0x9d 0x26 0xf9 0x4f 0xbc 0x80 0xf8 0x4f
0x00 0x00 0x00 0x00 0xd8 0xf4 0x34 0x4f
0x9a 0x26 0xf9 0x4f 0xe4 0xed 0x34 0x4f
0xb4 0xd9 0xf9 0x4f 0xc8 0x94 0xf5 0x4f
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xa0 0x0a 0x35 0x4f 0xd8 0xf4 0x34 0x4f
0xa0 0x0a 0x35 0x4f 0x04 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x04 0x00 0x00 0x00
0x1c 0x6f 0xf7 0x4f 0x24 0x6f 0xf7 0x4f
0x1c 0x6f 0xf7 0x4f 0xa4 0x91 0xf6 0x4f
0x00 0x00 0x02 0x02 0x3c 0x6f 0xf7 0x4f
0x8c 0xfc 0xf9 0x4f 0xc0 0x4b 0xf5 0x4f
0x37 0x02 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
--------- HAB Event 2 -----------------
event data:
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x07 0x00 0x00 0x00
0x9d 0x26 0xf9 0x4f 0xbc 0x80 0xf8 0x4f
0x00 0x00 0x00 0x00 0xd8 0xf4 0x34 0x4f
0x9a 0x26 0xf9 0x4f 0xe4 0xed 0x34 0x4f
0xb4 0xd9 0xf9 0x4f 0xc8 0x94 0xf5 0x4f
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xa0 0x0a 0x35 0x4f 0xd8 0xf4 0x34 0x4f
0xa0 0x0a 0x35 0x4f 0x04 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x04 0x00 0x00 0x00
0x1c 0x6f 0xf7 0x4f 0x24 0x6f 0xf7 0x4f
0x1c 0x6f 0xf7 0x4f 0xa4 0x91 0xf6 0x4f
0x00 0x00 0x02 0x02 0x3c 0x6f 0xf7 0x4f
0x8c 0xfc 0xf9 0x4f 0xc0 0x4b 0xf5 0x4f
0x37 0x02 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
--------- HAB Event 3 -----------------
event data:
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x07 0x00 0x00 0x00
0x9d 0x26 0xf9 0x4f 0xbc 0x80 0xf8 0x4f
0x00 0x00 0x00 0x00 0xd8 0xf4 0x34 0x4f
0x9a 0x26 0xf9 0x4f 0xe4 0xed 0x34 0x4f
0xb4 0xd9 0xf9 0x4f 0xc8 0x94 0xf5 0x4f
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0xa0 0x0a 0x35 0x4f 0xd8 0xf4 0x34 0x4f
0xa0 0x0a 0x35 0x4f 0x04 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x04 0x00 0x00 0x00
0x1c 0x6f 0xf7 0x4f 0x24 0x6f 0xf7 0x4f
0x1c 0x6f 0xf7 0x4f 0xa4 0x91 0xf6 0x4f
0x00 0x00 0x02 0x02 0x3c 0x6f 0xf7 0x4f
0x8c 0xfc 0xf9 0x4f 0xc0 0x4b 0xf5 0x4f
0x37 0x02 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
--------- HAB Event 4 -----------------
event data:
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x07 0x00 0x00 0x00
0x9d 0x26 0xf9 0x4f 0xbc 0x80 0xf8 0x4f
0x00 0x00 0x00 0x00 0xd8 0xf4 0x34 0x4f
0x9a 0x26 0xf9 0x4f 0xe4 0xed 0x34 0x4f
0xb4 0xd9 0xf9 0x4f 0xc8 0x94 0xf5 0x4f
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
i dis hexdump on U-boot binary it is giving:
00000000 d1 00 20 40 00 00 80 17 00 00 00 00 2c f4 7f 17 |.. @........,...|
00000010 20 f4 7f 17 00 f4 7f 17 00 90 85 17 00 00 00 00 | ...............|
00000020 00 f0 7f 17 00 b0 05 00 00 00 00 00 d2 03 18 40 |...............@|
00000030 cc 03 14 04 02 0e 05 a8 00 00 00 30 02 0e 05 b0 |...........0....|
From this i understood that IVT is at 0x00000000 and values are as follows
header:0x402000D1
Pointer to absolute Entry address : 0x17800000
Reserved:0x00000000
Pointer to absolute address of DCD:0x177F2C00
Pointer to absolute address of boot data: 0x177ff400
Start of CSF data : 0x17859000
Can you explain what's the wrong ?
So can you please help me to resolve this problem ,
Thank You