u-boot patch "[v2,02/16] arm: qemu: Add an SPL build" issue help
Simon Glass
sjg at chromium.org
Fri Aug 12 17:11:06 CEST 2022
On Thu, 11 Aug 2022 at 21:02, 曹子恒 <ziheng.cao at oritek.com.cn> wrote:
>
> Hi, Simon:
> it works OK based on your u-boot tree !
> Thank you very much !
OK good, you're welcome!
- Simon
>
> Regards,
> ziheng
>
> From: "Simon Glass"<sjg at chromium.org>
> Date: Thu, Aug 11, 2022, 10:48 PM
> Subject: Re: u-boot patch "[v2,02/16] arm: qemu: Add an SPL build" issue help
> To: "曹子恒"<ziheng.cao at oritek.com.cn>
> Cc: "u-boot at lists.denx.de"<u-boot at lists.denx.de>, "LV"<yong.lv at oritek.com.cn>, "李富春"<fuchun.li at oritek.com.cn>, "王学敏"<david.wang at oritek.com.cn>
> Hi ziheng,
>
> On Thu, 11 Aug 2022 at 00:26, 曹子恒 <ziheng.cao at 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 at 9000000
> Out: pl011 at 9000000
> Err: pl011 at 9000000
> Net: eth0: virtio-net#32
> Hit any key to stop autoboot: 0
> => QEMU: Terminated
>
> Regards,
> Simon
More information about the U-Boot
mailing list