All of lore.kernel.org
 help / color / mirror / Atom feed
* openbmc query
@ 2017-08-07  4:50 R V, Rashmi
  2017-08-07  7:00 ` Andrew Jeffery
  2017-08-09  0:26 ` Chris Austen
  0 siblings, 2 replies; 3+ messages in thread
From: R V, Rashmi @ 2017-08-07  4:50 UTC (permalink / raw)
  To: openbmc

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


Hi

I am trying to learn about openbmc. I have gone through the link given below and tried to use the image to build on AST2500 EVB. But it doesn't work for me. Can you please guide me on how to run the built image file(build number 1016 in the link) and the test cases for it?

https://openpower.xyz/job/openbmc-test-qemu/

Regards
Rashmi


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

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

* Re: openbmc query
  2017-08-07  4:50 openbmc query R V, Rashmi
@ 2017-08-07  7:00 ` Andrew Jeffery
  2017-08-09  0:26 ` Chris Austen
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jeffery @ 2017-08-07  7:00 UTC (permalink / raw)
  To: R V, Rashmi, openbmc

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

Hi Rashmi,

On Mon, 2017-08-07 at 04:50 +0000, R V, Rashmi wrote:
>  
> Hi
>  
> I am trying to learn about openbmc.

Great! Welcome :)

>  I have gone through the link given below and tried to use the image
> to build on AST2500 EVB. But it doesn’t work for me. Can you please
> guide me on how to run the built image file(build number 1016 in the
> link) and the test cases for it?

Okay, it's not clear to me what is and isn't working for you.

Have you successfully built an image but qemu is failing for you? Or
have you not yet successfully built an image?

Hopefully the following isn't confusing more than helpful: To build an
image to run on the AST2500 EVB, you should run:

    $ TEMPLATECONF=meta-openbmc-machines/meta-evb/meta-evb-aspeed/meta-evb-ast2500/conf . openbmc-env
    $ bitbake obmc-phosphor-image

Note that sourcing openbmc-env will drop you into a new directory,
./build. Paths referring to artifacts will be relative to the build
directory.

Once this completes (hopefully successfully) you should have a flash
image at tmp/deploy/images/evb-ast2500/image-bmc

As this image is built for writing to the EVB, this may not work with
the qemuarm configuration in the job you linked to. However, if you're
running a modern Linux distro the packaged qemu may already have
support for the EVB. For instance Fedora 26 packages qemu 2.9.0, which
has enough support for you to successfully run:

    $ qemu-system-arm -M ast2500-evb -m 512 -nographic -drive file=tmp/deploy/images/evb-ast2500/image-bmc,if=mtd,format=raw

If you don't have at least qemu 2.9.0 handy you can build our fork
hosted here:

    https://github.com/openbmc/qemu

Once that's built you can invoke the commandline above to boot the
image.

It's been too long since I've built and booted something that would
work with the `runqemu qemuarm`-like configuration that the CI job
uses. Others might be able to chime in, but from your question I think
the EVB-specific build is what you're after.

Hope that helps! The docs repository might also give you some insight,
but be aware that some of the information is out-of-date:

    https://github.com/openbmc/docs

Cheers,

Andrew

>  
> https://openpower.xyz/job/openbmc-test-qemu/
>  
> Regards
> Rashmi
>  

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: openbmc query
  2017-08-07  4:50 openbmc query R V, Rashmi
  2017-08-07  7:00 ` Andrew Jeffery
@ 2017-08-09  0:26 ` Chris Austen
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Austen @ 2017-08-09  0:26 UTC (permalink / raw)
  To: R V, Rashmi; +Cc: openbmc

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


"openbmc" <openbmc-bounces+austenc=us.ibm.com@lists.ozlabs.org> wrote on
08/06/2017 11:50:23 PM:

> From: "R V, Rashmi" <rashmi.r.v@intel.com>
> To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
> Date: 08/06/2017 11:50 PM
> Subject: openbmc query
> Sent by: "openbmc" <openbmc-bounces+austenc=us.ibm.com@lists.ozlabs.org>
>
>
> Hi
>
> I am trying to learn about openbmc. I have gone through the link
> given below and tried to use the image to build on AST2500 EVB. But
> it doesn’t work for me. Can you please guide me on how to run the
> built image file(build number 1016 in the link) and the test cases for
it?
>
> https://openpower.xyz/job/openbmc-test-qemu/
>
> Regards
> Rashmi
>

Hi Rashmi,
first you need to decide if you want to use the EVB or QEMU.  The QEMU
model we support is specific
to either the palmetto or romulus system.  If you want to try QEMU might I
suggest...


export
TEMPLATECONF=meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/conf
. openbmc-env
bitbake obmc-phosphor-image

once complete grab the tmp/deploy/images/palmetto/flash-palmetto

follow the steps to build qemu...
https://github.com/openbmc/docs/blob/master/cheatsheet.md#building-qemu
and then run qemu...
https://github.com/openbmc/docs/blob/master/cheatsheet.md#using-qemu
replacing <path>/flash-palmetto with where the flash file exists from your
bitbake

Good luck!

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

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

end of thread, other threads:[~2017-08-09  0:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07  4:50 openbmc query R V, Rashmi
2017-08-07  7:00 ` Andrew Jeffery
2017-08-09  0:26 ` Chris Austen

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.