From: Wolfgang Denk Date: Thu, 20 Feb 2014 12:23:22 +0100 Subject: [U-Boot] [PATCH] socfpga: Add a signing tool that automatically signs the preloader. In-Reply-To: <201402201358.19495.manningc2@actrix.gen.nz> References: <1392850900-25133-1-git-send-email-cdhmanning@gmail.com> <20140220003237.GW19081@bill-the-cat> <201402201358.19495.manningc2@actrix.gen.nz> Message-ID: <20140220112323.C8D62380CEA@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Charles, In message <201402201358.19495.manningc2@actrix.gen.nz> you wrote: > > I looked at doing a mkimage integration, but is this really the way to go in > all cases? ...only where it fits, of course. > 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. Sounds exactly as if you were making an image, so yes, mkimage fits. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition. - Isaac Asimov