qemu does not work for the latest image?

Andrew Geissler geissonator at gmail.com
Fri Nov 16 01:13:35 AEDT 2018


On Thu, Nov 15, 2018 at 1:25 AM Yong Li <yong.b.li at linux.intel.com> wrote:
>
> Hi All,
>
>
>
> Previously I can use qemu to test these built images, but it does not work now and get the below error messages:
> Just want to know if there is any command/options changes? Or it does not support now?

Hey Yong, I pulled down the latest qemu binary and witherspoon image
and it booted up fine for me.

Here were my commands:
wget https://openpower.xyz/job/openbmc-qemu-build-merge-x86/lastSuccessfulBuild/artifact/qemu/arm-softmmu/qemu-system-arm
wget https://openpower.xyz/job/openbmc-build/distro=ubuntu,label=builder,target=witherspoon/lastSuccessfulBuild/artifact/deploy/images/witherspoon/obmc-phosphor-image-witherspoon.ubi.mtd
./qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive
file=./obmc-phosphor-image-witherspoon.ubi.mtd,format=raw,if=mtd -net
nic -net user,hostfwd=:127.0.0.1:2622-:22,hostfwd=:127.0.0.1:2643-:443,hostfwd=:127.0.0.1:8580-:80,hostname=qemu

> qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive file=tmp/deploy/images/witherspoon/obmc-phosphor-image-poon.ubi.mtd,format=raw,if=mtd
>
> qemu-system-arm: Aspeed iBT has no chardev backend
>
> U-Boot 2016.07 (Nov 15 2018 - 06:18:37 +0000)
>
>
>
>        Watchdog enabled
>
> DRAM:  240 MiB
>
> Flash: 32 MiB
>
> *** Warning - bad CRC, using default environment
>
>
>
> In:    serial
>
> Out:   serial
>
> Err:   serial
>
> Net:   aspeednic#0
>
> Error: aspeednic#0 address not set.
>
>
>
> Hit any key to stop autoboot:  0
>
> ubi0: attaching mtd1
>
> ubi0: scanning is finished
>
> UBI init error 12
>
> Error, no UBI device/partition selected!
>
> Wrong Image Format for bootm command
>
> ERROR: can't get kernel image!
>
>
>
>
>
> Thanks,
>
> Yong


More information about the openbmc mailing list