From: Charles Manning <cdhmanning@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] socfpga: Add a signing tool that automatically signs the preloader.
Date: Thu, 20 Feb 2014 13:58:19 +1300 [thread overview]
Message-ID: <201402201358.19495.manningc2@actrix.gen.nz> (raw)
In-Reply-To: <20140220003237.GW19081@bill-the-cat>
Hi Tom
On Thursday 20 February 2014 13:32:37 Tom Rini wrote:
> On Thu, Feb 20, 2014 at 12:01:40PM +1300, Charles Manning wrote:
> > No need to use the altera tool any more...
> >
> > Signed-off-by: Charles Manning <cdhmanning@gmail.com>
>
> [snip]
>
> > + //crcval = crc_calc ((uint32_t *)buf, len/4);
> > + printf("crc %x\n", crcval);
>
> Debug stuff left in?
>
> > +static char *out_filename = "";
> > +
> > +
> > +
> > +static void bad_exit(const char *str)
>
> Extra spaces.
Thanks for the feedback.
I will fix those and resubmit.
>
> Finally, we can't do this as an extension of mkimage? We do other
> headers with that already, does it really not fit that model? Thanks!
I looked at doing a mkimage integration, but is this really the way to go in
all cases?
The signed image does not really apply a header as such. It mashes in
a "header" at position 0x40 and then appends a checksum at the end, then pads
the file out to 64k.
The final file is:
* 64 bytes of executable (interrupt vector table)
* "header"
* more code
*crc32
*padding with 0x00 to 64k.
Adding it to mkimage and "cooking" the binary was not too hard. I could not
figure out how to extend the size of the buffer and pad it out to 64k. I'm
sure I could figure that out... it's just software..
If it really **must** be part of mkimage, I'll do that.
If so, what mkimage operation need to be supported?
Changing type makes no sense (apart from signing a binary). There are no
uboot-format header/marker or anything. Verification probably makes sense,
but that's it.
Thoughts??
-- Charles
next prev parent reply other threads:[~2014-02-20 0:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-19 23:01 [U-Boot] [PATCH] socfpga: Add a signing tool that automatically signs the preloader Charles Manning
2014-02-20 0:32 ` Tom Rini
2014-02-20 0:58 ` Charles Manning [this message]
2014-02-20 11:23 ` Wolfgang Denk
2014-02-20 13:40 ` Tom Rini
2014-02-22 17:26 ` Gerhard Sittig
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=201402201358.19495.manningc2@actrix.gen.nz \
--to=cdhmanning@gmail.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