[U-Boot] Trying to reduce boot time of U-BOOT zynq-microzed.

Simon Glass sjg at chromium.org
Mon Jun 23 05:49:21 CEST 2014


Hi,

On 20 June 2014 03:54, Uzair Zaidi <uzair.aqid at gmail.com> wrote:
> I have `zynq-microzed` board.
>
> Here is my log messages of `U-BOOT`.
>
>     [Fri Jun 20 12:07:25.468 2014] U-Boot 2013.07 (Jun 20 2014 - 11:58:49)

See CONFIG_BOOTSTAGE which will measure the time and
CONFIG_BOOTSTAGE_REPORT which will print a report when the kernel
boots.

>     [Fri Jun 20 12:07:25.468 2014]
>     [Fri Jun 20 12:07:25.468 2014] Memory: ECC disabled
>     [Fri Jun 20 12:07:25.468 2014] DRAM:  1 GiB
>     [Fri Jun 20 12:07:25.484 2014] SF: Detected S25FL129P_64K/S25FL128S_64K
> with page size 64 KiB, total 16 MiB
>     [Fri Jun 20 12:07:25.515 2014] *** Warning - bad CRC, using default
> environment
>     [Fri Jun 20 12:07:25.515 2014]
>     [Fri Jun 20 12:07:25.515 2014] In:    serial
>     [Fri Jun 20 12:07:25.515 2014] Out:   serial
>     [Fri Jun 20 12:07:25.515 2014] Err:   serial
>     [Fri Jun 20 12:07:25.515 2014]
>     [Fri Jun 20 12:07:25.515 2014]
>     [Fri Jun 20 12:07:25.515 2014] SF: Detected S25FL129P_64K/S25FL128S_64K
> with page size 64 KiB, total 16 MiB
>     [Fri Jun 20 12:07:25.687 2014] SF: 983040 bytes @ 0x520000 Read: OK
>     [Fri Jun 20 12:07:25.687 2014] ## Loading kernel from FIT Image at
> 01000000 ...
>     [Fri Jun 20 12:07:25.687 2014]    Using 'conf at 1' configuration
>     [Fri Jun 20 12:07:25.687 2014]    Trying 'kernel at 1' kernel subimage
>     [Fri Jun 20 12:07:25.687 2014]      Description:  PetaLinux Kernel
>     [Fri Jun 20 12:07:25.687 2014]      Type:         Kernel Image
>     [Fri Jun 20 12:07:25.687 2014]      Compression:  gzip compressed

lzo might be slightly faster.

>     [Fri Jun 20 12:07:25.687 2014]      Data Start:   0x010000f0
>     [Fri Jun 20 12:07:25.687 2014]      Data Size:    835713 Bytes = 816.1
> KiB
>     [Fri Jun 20 12:07:25.687 2014]      Architecture: ARM
>     [Fri Jun 20 12:07:25.687 2014]      OS:           Linux
>     [Fri Jun 20 12:07:25.687 2014]      Load Address: 0x00008000
>     [Fri Jun 20 12:07:25.687 2014]      Entry Point:  0x00008000
>     [Fri Jun 20 12:07:25.687 2014]    Verifying Hash Integrity ... OK
>     [Fri Jun 20 12:07:25.687 2014] ## Loading fdt from FIT Image at
> 01000000 ...
>     [Fri Jun 20 12:07:25.734 2014]    Using 'conf at 1' configuration
>     [Fri Jun 20 12:07:25.734 2014]    Trying 'fdt at 1' fdt subimage
>     [Fri Jun 20 12:07:25.734 2014]      Description:  Flattened Device Tree
> blob
>     [Fri Jun 20 12:07:25.734 2014]      Type:         Flat Device Tree
>     [Fri Jun 20 12:07:25.734 2014]      Compression:  uncompressed
>     [Fri Jun 20 12:07:25.734 2014]      Data Start:   0x010cc224
>     [Fri Jun 20 12:07:25.734 2014]      Data Size:    9766 Bytes = 9.5 KiB
>     [Fri Jun 20 12:07:25.734 2014]      Architecture: ARM
>     [Fri Jun 20 12:07:25.734 2014]      Hash algo:    crc32
>     [Fri Jun 20 12:07:25.734 2014]      Hash value:   5b46dc3d
>     [Fri Jun 20 12:07:25.734 2014]      Hash algo:    sha1
>     [Fri Jun 20 12:07:25.734 2014]      Hash value:
> 1a2cb498446bd1c5337d74fc93f5dab58e0c265d
>     [Fri Jun 20 12:07:25.734 2014]    Verifying Hash Integrity ... crc32+
> sha1+ OK

You probably only need either crc32 or sha1 - not a lot of point in both.

>     [Fri Jun 20 12:07:25.734 2014]    Booting using the fdt blob at
> 0x10cc224
>     [Fri Jun 20 12:07:25.734 2014]    Uncompressing Kernel Image ... OK
>     [Fri Jun 20 12:07:25.812 2014]    Loading Device Tree to 07ffa000, end
> 07fff625 ... OK
>     [Fri Jun 20 12:07:25.812 2014]    Starting kernel ...
>
> It takes `0.344ms.` But i want to reduce this time more.
> I am using `image.ub` for kernel image.
>
> Can you please tell me what should i do?

Be happy. That's very fast :-)

Regards,
Simon


More information about the U-Boot mailing list