qemu does not work for the latest image?
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?
qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive file=tmp/deploy/images/witherspoon/obmc-phosphor-image-poon.ubi.mtd,format=r aw,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
Quoted 7 lines · Yong Li
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
Quoted 51 lines
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
Thanks Andrew for your commands. The issue is caused by my older qemu tool.
After downloaded qemu-system-arm, I can boot the image now!
Thanks,
Yong
Quoted 68 lines · Andrew Geissler
Quoted 6 lines · Yong Li
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:
wgethttps://openpower.xyz/job/openbmc-qemu-build-merge-x86/lastSuccessfulBuild/artifact/qemu/arm-softmmu/qemu-system-arm wgethttps://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=qemuQuoted 51 lines
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