From: Tom Rini Date: Tue, 19 Jul 2016 22:21:40 -0400 Subject: [U-Boot] [PATCH] spl: fit: Fix the number of bytes read in raw mode In-Reply-To: <20160719092614.17130-1-lokeshvutla@ti.com> References: <20160719092614.17130-1-lokeshvutla@ti.com> Message-ID: <20160720022140.GN7260@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jul 19, 2016 at 02:56:14PM +0530, Lokesh Vutla wrote: > In raw mode a full sector is to be read even if image covers part of > a sector. Number of sectors are calculated as ROUND_UP(size)/sec_size by FIT > framework. This calculation assumes that image is at the 0th offset of a sector, > which is not true always in FIT case. So, include the image offset while > calculating number of sectors. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: