From: Alexander Kurz <akurz@blala.de>
To: barebox@lists.infradead.org
Cc: Alexander Kurz <akurz@blala.de>
Subject: [PATCH 1/2] scripts: imx-image: super_root_key command depends on header_version 1
Date: Thu, 30 Jun 2016 11:10:19 +0200 [thread overview]
Message-ID: <1467277820-5558-1-git-send-email-akurz@blala.de> (raw)
The Super Root Key pointer exclusively exists in flash header version 1
which is used for i.MX25, i.MX35 and i.MX51 SOC as described in freescales
AN4547 document. Simplify the code a little bit.
Signed-off-by: Alexander Kurz <akurz@blala.de>
---
scripts/imx/imx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index 70936ba..f1accc4 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -327,7 +327,7 @@ static int do_super_root_key(struct config_data *data, int argc, char *argv[])
return -EINVAL;
}
- if (data->cpu_type != 35 && data->cpu_type != 25) {
+ if (data->header_version != 1) {
fprintf(stderr, "Warning: The super_root_key command is meaningless "
"on non HABv3 based SoCs\n");
return 0;
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2016-06-30 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 9:10 Alexander Kurz [this message]
2016-06-30 9:10 ` [PATCH 2/2] ARM: i.MX: central SOC type definition Alexander Kurz
2016-07-04 7:31 ` [PATCH 1/2] scripts: imx-image: super_root_key command depends on header_version 1 Sascha Hauer
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=1467277820-5558-1-git-send-email-akurz@blala.de \
--to=akurz@blala.de \
--cc=barebox@lists.infradead.org \
/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