From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 28 May 2020 07:33:46 +0200 Subject: [PATCH] mkimage: Default to adding a crc32 hash with '-f auto' In-Reply-To: <20200527072419.1.I6b204b428d46addbce0f668960df1756a0bd5a0a@changeid> References: <20200527072419.1.I6b204b428d46addbce0f668960df1756a0bd5a0a@changeid> Message-ID: <20200528053346.B4D35243BF2@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 Simon, In message <20200527072419.1.I6b204b428d46addbce0f668960df1756a0bd5a0a@changeid> you wrote: > This option currently does not add any sort of hash to the images in the > FIT. > > Add a hash node requesting a crc32 checksum, which at least provides some > protection. > > The crc32 value is easily ignored (e.g. in SPL) if not needed. and takes > up only about 48 bytes per image, including overhead. > > Suggested-by: Wolfgang Denk > Signed-off-by: Simon Glass Thanks a lot! Reviewed-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk 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 "I knew then (in 1970) that a 4-kbyte minicomputer would cost as much as a house. So I reasoned that after college, I'd have to live cheaply in an apartment and put all my money into owning a computer." - Apple co-founder Steve Wozniak, EE Times, June 6, 1988, pg 45