All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu does not work for the latest image?
@ 2018-11-15  7:24 Yong Li
  2018-11-15 14:13 ` Andrew Geissler
  0 siblings, 1 reply; 3+ messages in thread
From: Yong Li @ 2018-11-15  7:24 UTC (permalink / raw)
  To: openbmc; +Cc: Li, Yong B

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 3870 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qemu does not work for the latest image?
  2018-11-15  7:24 qemu does not work for the latest image? Yong Li
@ 2018-11-15 14:13 ` Andrew Geissler
  2018-11-16  7:13   ` Li, Yong B
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Geissler @ 2018-11-15 14:13 UTC (permalink / raw)
  To: Yong Li; +Cc: OpenBMC Maillist, yong.b.li

On Thu, Nov 15, 2018 at 1:25 AM Yong Li <yong.b.li@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qemu does not work for the latest image?
  2018-11-15 14:13 ` Andrew Geissler
@ 2018-11-16  7:13   ` Li, Yong B
  0 siblings, 0 replies; 3+ messages in thread
From: Li, Yong B @ 2018-11-16  7:13 UTC (permalink / raw)
  To: Andrew Geissler; +Cc: OpenBMC Maillist, yong.b.li

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
On 11/15/2018 10:13 PM, Andrew Geissler wrote:
> On Thu, Nov 15, 2018 at 1:25 AM Yong Li<yong.b.li@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:
> 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=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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-16  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-15  7:24 qemu does not work for the latest image? Yong Li
2018-11-15 14:13 ` Andrew Geissler
2018-11-16  7:13   ` Li, Yong B

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.