All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: 曹子恒 <ziheng.cao@oritek.com.cn>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	LV <yong.lv@oritek.com.cn>, 李富春 <fuchun.li@oritek.com.cn>,
	王学敏 <david.wang@oritek.com.cn>
Subject: Re: u-boot patch "[v2,02/16] arm: qemu: Add an SPL build" issue help
Date: Thu, 11 Aug 2022 08:47:55 -0600	[thread overview]
Message-ID: <CAPnjgZ3=Xv2ymE+-Ci31LpY0Kq+xAG+c17_rq5qsSXrfv9wy=Q@mail.gmail.com> (raw)
In-Reply-To: <e88c3f74e6c84e9f2b02f9ec772e9201d0dfa72b.a50e802d.3e10.4bcc.9635.90c1ffe5ef62@feishu.cn>

Hi ziheng,

On Thu, 11 Aug 2022 at 00:26, 曹子恒 <ziheng.cao@oritek.com.cn> wrote:
>
> Hi, Simon Glass:
>         we have an issue based on this patch below, can you help us ?
>         Patch:https://patchwork.ozlabs.org/project/uboot/patch/20220117150428.1580273-2-sjg@chromium.org/
>
> Our Environment:
> Qemu Version:7.0.0
> U-boot Baseline Version: 2021.10
>
> Steps:
>         1. we have only patched "[v2,02/16] arm: qemu: Add an SPL build", not all the "passage: Define a standard for firmware data flow" series patchs.
>
>         2. Baseed on this patch, we have made the following modifications:
>                 a. arch/arm/dts/qemu-arm-u-boot.dtsi (Left is original, right is modified, we think they are actually the same)
>         3. After compiling, image.bin is generated, image.map is as follows(we think it's ok, spl base addr is 0x00000000, and u-boot base addr is 0x00010000):
>   4. but when we use following command to execute, it will block.
> command: ./qemu-system-arm -machine virt -nographic -bios image.bin
> result:
>  5.  some key files size:
> image.bin: 767936
> u-boot.bin:694764
> u-boot-spl.bin:15112
>
> We don't know what could be causing this problem, hope you can help us !

I cannot repeat this problem.

$ qemu-system-arm -machine virt -nographic -bios
/tmp/b/qemu_arm_spl/image.bin -version
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

I use the tree here:

https://github.com/sjg20/u-boot/tree/try-qemu

buildman -k -o /tmp/b/qemu_arm_spl -w qemu_arm_spl

$ qemu-system-arm -machine virt -nographic -bios /tmp/b/qemu_arm_spl/image.bin

U-Boot SPL 2022.10-rc2-00042-g5dac8f83d0d-dirty (Aug 11 2022 - 08:36:05 -0600)
Trying to boot from QEMU


U-Boot 2022.10-rc2-00042-g5dac8f83d0d-dirty (Aug 11 2022 - 08:36:05 -0600)

DRAM:  128 MiB
Core:  47 devices, 14 uclasses, devicetree: board
Flash: 32 MiB
Loading Environment from Flash... *** Warning - bad CRC, using default
environment

In:    pl011@9000000
Out:   pl011@9000000
Err:   pl011@9000000
Net:   eth0: virtio-net#32
Hit any key to stop autoboot:  0
=> QEMU: Terminated

 Regards,
Simon

  reply	other threads:[~2022-08-11 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-11  6:26 u-boot patch "[v2, 02/16] arm: qemu: Add an SPL build" issue help 曹子恒
2022-08-11 14:47 ` Simon Glass [this message]
2022-08-12  3:01   ` u-boot patch "[v2,02/16] " 曹子恒
2022-08-12 15:11     ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPnjgZ3=Xv2ymE+-Ci31LpY0Kq+xAG+c17_rq5qsSXrfv9wy=Q@mail.gmail.com' \
    --to=sjg@chromium.org \
    --cc=david.wang@oritek.com.cn \
    --cc=fuchun.li@oritek.com.cn \
    --cc=u-boot@lists.denx.de \
    --cc=yong.lv@oritek.com.cn \
    --cc=ziheng.cao@oritek.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.