[U-Boot] [PATCH] dfu:mmc: When doing block operations, operate on the given length
Tom Rini
trini at ti.com
Fri Mar 8 16:06:44 CET 2013
On Thu, Mar 07, 2013 at 09:25:44AM -0500, Tom Rini wrote:
> When working on RAW partitions, it's possible that the whole area
> is larger than DDR. So what we need to do is make sure that the length
> we are given is aligned with the LBA block size, then pass that length
> in as our count of LBA blocks to operate on. In doing this, we no
> longer need to modify *len on read operations.
>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Signed-off-by: Tom Rini <trini at ti.com>
As I dig at and fix the other problem (which Michael points out, > 4MiB
files crash), this patch is more for comment / confirmation that this
change is fine on trats as well. These same concepts are part of my
patch now that updates Pantelis' patch, without breaking file writes.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130308/153274a5/attachment.pgp>
More information about the U-Boot
mailing list