[U-Boot] [PATCH 1/1] x86: qemu-x86 requires CONFIG_SYS_HZ=2000

Bin Meng bmeng.cn at gmail.com
Thu Sep 6 06:49:11 UTC 2018


Hi Heinrich,

On Thu, Sep 6, 2018 at 2:06 PM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> The sleep command only provides correct timings for
> CONFIG_SYS_HZ=2000 on qemu-x86_defconfig.
>
> This can be tested with
>
>     date && sleep 4 && date

With current u-boot/master, with the same test command you provided, I got:

=> date && sleep 4 && date
Date: 2018-09-06 (Thursday)    Time:  6:47:28
Date: 2018-09-06 (Thursday)    Time:  6:47:32
=> date && sleep 4 && date
Date: 2018-09-06 (Thursday)    Time:  6:47:41
Date: 2018-09-06 (Thursday)    Time:  6:47:45
=> date && sleep 4 && date
Date: 2018-09-06 (Thursday)    Time:  6:47:47
Date: 2018-09-06 (Thursday)    Time:  6:47:51

It seems there is no issue.

QEMU was invoked like this: qemu-system-i386 -nographic -bios u-boot.rom

>
> Make CONFIG_SYS_HZ editable.
> Set it in qemu-x86_defconfig to 2000.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  configs/qemu-x86_defconfig | 1 +
>  lib/Kconfig                | 4 +---
>  2 files changed, 2 insertions(+), 3 deletions(-)
>

[snip]

Regards,
Bin


More information about the U-Boot mailing list