From: Florian Achleitner <achleitner.florian@fronius.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] mxs: HAB experiments
Date: Tue, 17 Nov 2015 14:16:06 +0100 [thread overview]
Message-ID: <4013722.vYVsa85hXv@r90b40zn> (raw)
Hi Marek,
thanks for you contributions to support mxs HAB v4 in u-boot. I'm currently
experimenting with HAB on my imx28 board. I think I put everything together
quite well.
But examining the HAB event log I see two successful authentications for the
u-boot.bin and the IVT followed by a FAILURE with "unsupported command" in the
"CSF Context". It is the same for both the SPL and the main u-boot. Did you
see something similar? It suggests a wrong command in the CSF file, but I
think there is not a lot that can be wrong in the CSF input file for the cst
tool. But probably the cst output is different between versions? I use version
BLN_CST_MAIN_02.03.00.
I use u-boot's mkimage, which can generate a signed boot stream, together with
your hand-crafted IVT generator in the Makefile.
I wonder if the image size field, which is appended to IVT is critical. In
9c2c8a3 you mention that the HAB Rom accepts a not exact size field value of
your SPL image layout. So it seems to be not that critical.
I found that my .sig file created by freescale's cst tool is 3372B, while
yours seems to have been 3904B. Currently, I am experimenting with the image
memory layout and the size field.
My CSF file is virtually identical to the example in the freescale's
application notes, which uses sha256. I programmed the SRK fuses, but did not
set any lock bits.
HAB is in the open configuration. The SRK seems to be ok, otherwise there
would be no SUCCESS events in the log.
Did HAB work without FAILURE events for you? Did anybody else on the list see
something similar? Below, you can find the HAB event log.
Thanks!
Florian
Status: Operation failed (0x33)
Config: Non-secure IC (0xf0)
State: No security state machine (0xf0)
-------- HAB Event 0 --------
event data:
db 00 10 40 f0 00 db 00
00 00 10 00 00 00 26 c0
status: HAB_STATUS_SUCCESS reason: HAB_RSN_ANY context: HAB_CTX_AUT_DAT
-------- HAB Event 1 --------
event data:
db 00 10 40 f0 00 db 00
00 00 80 00 00 00 00 40
status: HAB_STATUS_SUCCESS reason: HAB_RSN_ANY context: HAB_CTX_AUT_DAT
-------- HAB Event 2 --------
event data:
db 00 08 40 33 03 cf 00
status: HAB_STATUS_FAILURE reason: HAB_UNS_COMMAND context: HAB_CTX_CSF
-------- HAB Event 3 --------
event data:
db 00 10 40 f0 00 db 00
40 00 20 00 00 06 ef 00
status: HAB_STATUS_SUCCESS reason: HAB_RSN_ANY context: HAB_CTX_AUT_DAT
-------- HAB Event 4 --------
event data:
db 00 10 40 f0 00 db 00
40 00 10 00 00 00 00 40
status: HAB_STATUS_SUCCESS reason: HAB_RSN_ANY context: HAB_CTX_AUT_DAT
-------- HAB Event 5 --------
event data:
db 00 08 40 33 03 cf 00
status: HAB_STATUS_FAILURE reason: HAB_UNS_COMMAND context: HAB_CTX_CSF
next reply other threads:[~2015-11-17 13:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 13:16 Florian Achleitner [this message]
2015-11-18 8:55 ` [U-Boot] mxs: HAB experiments Marek Vasut
2015-11-18 9:57 ` Florian Achleitner
2015-11-18 10:01 ` Marek Vasut
2015-11-18 12:39 ` Florian Achleitner
2015-11-26 9:24 ` [U-Boot] mxs: HAB: current CST broken Florian Achleitner
2015-11-26 11:06 ` Marek Vasut
2015-11-26 12:51 ` Florian Achleitner
2015-11-26 12:52 ` Marek Vasut
2015-11-26 13:03 ` Florian Achleitner
2015-11-26 13:09 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4013722.vYVsa85hXv@r90b40zn \
--to=achleitner.florian@fronius.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox