Signing error in i.MX8M Mini - FIT Image

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

Signing error in i.MX8M Mini - FIT Image

Jump to solution
2,200 Views
kanimozhi_t
Contributor V

    I've followed this tutorial (Manually build Boot binary for i.MX8M Mini) for building U-Boot and successfully got the FIT image without HDMI component. And when I tried signing the FIT image following this (i.MX Secure and Encrypted Boot using HABv4), we got the error below. (tried both CST 3.1 & CST 3.3)pastedImage_3.png

    I've hereby attached the Build log for your reference. The build log is all the same except zeros for the HDMI field. I've verified the fields in CSF and it looks like the error with block address for signing. The CSF is also attached.

To summarize, the questions are:

  1. How can I sign i.MX 8MM?
  2. How to get the address for signing?
  3. Will adding the HDMI solves the signing?, if so how can I add HDMI in FIT image?

Thanks in advance.

0 Kudos
1 Solution
2,060 Views
kanimozhi_t
Contributor V

Answering my own question:

  So, after some trial and error and with the help of community, I got it resolved. It's a problem with specifying path in CSF file. Earlier, I used tilde to specify the home and that has created a lot of chaos.

Here's a note to all:

Don't use tilde(~) in CSF it's causing the 'realloc(): invalid pointer' error. Either use full path (/home/$(whoami)) or relative path (../../)

View solution in original post

0 Kudos
5 Replies
2,061 Views
kanimozhi_t
Contributor V

Answering my own question:

  So, after some trial and error and with the help of community, I got it resolved. It's a problem with specifying path in CSF file. Earlier, I used tilde to specify the home and that has created a lot of chaos.

Here's a note to all:

Don't use tilde(~) in CSF it's causing the 'realloc(): invalid pointer' error. Either use full path (/home/$(whoami)) or relative path (../../)

0 Kudos
2,060 Views
Yuri
NXP Employee
NXP Employee

kanimozhi.t@jasmin-infotech.com 

Hello,

  I have sent You some comments directly.

Regards,

Yuri.

2,060 Views
kanimozhi_t
Contributor V

Thanks for your inputs,

Though I've followed the documents, I'm still getting the same error (as in attached image). I've no clue where to debug or what has gone wrong.

P.S: I've tried using CST 3.1, 3.2 & 3.3

Awaiting your reply.

0 Kudos
2,060 Views
Yuri
NXP Employee
NXP Employee

kanimozhi.t@jasmin-infotech.com 

Hello,

  Both HDMI and DDR controllers require firmware that must be loaded

prior to executing the bootloader.  Please try to use also HDMI firmware.

Regards,

Yuri.

0 Kudos
2,060 Views
kanimozhi_t
Contributor V

Thanks for the reply,

I've already included the firmware for DDR by cp ../../firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/lpddr4_pmu_train_* . and the error occurs.

But, when I try to include the HDMI firmware, it's not building into the flash.bin and flash.bin still has HDMI address as zero.

Any help in including the HDMI firmware would be much appreciated.

pastedImage_5.png

build log:

========= IVT HEADER [HDMI FW] =========
header.tag: 0x0
header.length: 0x0
header.version: 0x0
entry: 0x0
reserved1: 0x0
dcd_ptr: 0x0
boot_data_ptr: 0x0
self: 0x0
csf: 0x0
reserved2: 0x0
boot_data.start: 0x0
boot_data.size: 0x0
boot_data.plugin: 0x0
========= IVT HEADER [PLUGIN] =========
header.tag: 0x0
header.length: 0x0
header.version: 0x0
entry: 0x0
reserved1: 0x0
dcd_ptr: 0x0
boot_data_ptr: 0x0
self: 0x0
csf: 0x0
reserved2: 0x0
boot_data.start: 0x0
boot_data.size: 0x0
boot_data.plugin: 0x0
========= IVT HEADER [LOADER IMAGE] =========
header.tag: 0xd1
header.length: 0x2000
header.version: 0x41
entry: 0x7e1000
reserved1: 0x57c00
dcd_ptr: 0x0
boot_data_ptr: 0x7e0fe0
self: 0x7e0fc0
csf: 0x80e7c0
reserved2: 0x0
boot_data.start: 0x7e0bc0
boot_data.size: 0x2fc60
boot_data.plugin: 0x0
========= OFFSET dump =========
Loader IMAGE:
header_image_off 0x0
dcd_off 0x0
image_off 0x40
csf_off 0x2d800
spl hab block: 0x7e0fc0 0x0 0x2d800

Second Loader IMAGE:
sld_header_off 0x57c00
sld_csf_off 0x58c20
sld hab block: 0x401fcdc0 0x57c00 0x1020
0 Kudos