[U-Boot] [PATCH] ext2load: increase read speed

Eric Nelson eric.nelson at boundarydevices.com
Tue May 8 17:53:09 CEST 2012


Hi Jason,

On 05/08/2012 08:43 AM, Jason Cooper wrote:
> On Wed, Apr 25, 2012 at 06:17:48PM -0700, Eric Nelson wrote:
>> On 03/28/2012 07:37 AM, Jason Cooper wrote:
>>> This patch dramatically drops the amount of time u-boot needs to read a
>>> file from an ext2 partition.  On a typical 2 to 5 MB file (kernels and
>>> initrds) it goes from tens of seconds to a couple seconds.
>>>
>>> All we are doing here is grouping contiguous blocks into one read.
>>>
>>> Boot tested on Globalscale Technologies Dreamplug (Kirkwood ARM SoC)
>>> with three different files.  sha1sums were calculated in Linux
>>> userspace, and then confirmed after ext2load.
>>>
>>> Signed-off-by: Jason Cooper<u-boot at lakedaemon.net>
>>
>> Tested-by: Eric Nelson<eric.nelson at boundarydevices.com>
>
> Thanks for testing!  I've copied your results into the commit and will
> be doing a pull request shortly.
>

No problem.

Ironically, I'm working with an image this morning that loads the
kernel from ext2 and I keep thinking my board is locked up because
reads take so long.

Regards,


Eric


More information about the U-Boot mailing list