[External] Running evb-ast2600 image using qemu

Ranbir Singh saini.ranbirs at outlook.com
Wed Mar 15 17:29:44 AEDT 2023


With openbmc codebase at

      commit 917fab29b9ead43b10b0ef6dc884c39817f17965 (HEAD -> master, origin/master),

and no local code change over this commit, I build the stack for evb-ast2600 as well as romulus. With romulus image, I do get CurrentBMCState as Ready, while with evb-ast2600 it stays as NotReady. Seemingly hence, for romulus https://127.0.0.1:1443 works fine and Web UI is seen, while for evb-ast2600 it say Unauthorized.

root at evb-ast2600:~#
root at evb-ast2600:~# systemctl | grep -i multi
  multi-user.target                                                                                               loaded inactive   dead     start Multi-User System
root at evb-ast2600:~# systemctl | grep -i activating
  mapper-wait at -org-openbmc-control-power0.service                                     loaded activating start     start Wait for /org/openbmc/control/power0
  mapper-wait at -xyz-openbmc_project-led-groups-bmc_booted.service          loaded activating start     start Wait for /xyz/openbmc_project/led/groups/bmc_booted
  mapper-wait at -xyz-openbmc_project-led-groups.service                               loaded activating start     start Wait for /xyz/openbmc_project/led/groups
  xyz.openbmc_project.LED.GroupManager.service                                         loaded activating start     start Phosphor LED Group Management Daemon
root at evb-ast2600:~#

Best Regards,
Ranbir Singh
________________________________
From: Zhang Jian <zhangjian.3032 at bytedance.com>
Sent: 14 March 2023 13:07
To: Ranbir Singh <saini.ranbirs at outlook.com>
Cc: David Bashaw <theactualdbashaw at gmail.com>; openbmc at lists.ozlabs.org <openbmc at lists.ozlabs.org>
Subject: Re: [External] Running evb-ast2600 image using qemu

On Tue, Mar 14, 2023 at 2:04 PM Ranbir Singh <saini.ranbirs at outlook.com> wrote:
>
> Jian - Using the same command as you mentioned, and after machine has booted and logged in
>
>
>
>
> Also, noted that CurrentBMCState continue to come as NotReady even after 5 min of bootup completed. Is this normal ?
I think this is not normal,  the state of  `CurrentBMCState`  is
checking the multi-user state( state is active?),
```
 systemctl | grep -i multi
  multi-user.target
                                    loaded active     active
Multi-User System
```
you could use `systemctl | grep -i activating`(I'm not sure to use
activating) to check what service blocked this.

>
> Best Regards,
> Ranbir Singh
>
> ________________________________
> From: Zhang Jian <zhangjian.3032 at bytedance.com>
> Sent: 14 March 2023 11:05
> To: Ranbir Singh <saini.ranbirs at outlook.com>
> Cc: David Bashaw <theactualdbashaw at gmail.com>; openbmc at lists.ozlabs.org <openbmc at lists.ozlabs.org>
> Subject: Re: [External] Running evb-ast2600 image using qemu
>
> On Tue, Mar 14, 2023 at 1:28 PM Ranbir Singh <saini.ranbirs at outlook.com> wrote:
> >
> > Is there anyway to login using the Web UI also when running image on qemu ?
> of cause, the command line forwarded the port localhost 1443 to bmc
> 443, you just need access https://127.0.0.1:1443 in your browser
> > ________________________________
> > From: openbmc <openbmc-bounces+saini.ranbirs=outlook.com at lists.ozlabs.org> on behalf of Jian Zhang <zhangjian.3032 at bytedance.com>
> > Sent: 14 March 2023 09:02
> > To: David Bashaw <theactualdbashaw at gmail.com>
> > Cc: openbmc at lists.ozlabs.org <openbmc at lists.ozlabs.org>
> > Subject: Re: [External] Running evb-ast2600 image using qemu
> >
> > The command that I used.
> > ```
> > qemu-system-arm -M ast2600-evb  -nographic -drive file=image-bmc,format=raw,if=mtd -net nic,model=ftgmac100,netdev=netdev1 -netdev user,id=netdev1,hostfwd=:127.0.0.1:3222-:22,hostfwd=:127.0.0.1:1443-:443,hostfwd=udp::1623-:623
> > ```
> > For your reference.
> >
> > Jian
> > From: "David Bashaw"<theactualdbashaw at gmail.com>
> > Date: Tue, Mar 14, 2023, 07:52
> > Subject: [External] Running evb-ast2600 image using qemu
> > To: <openbmc at lists.ozlabs.org>
> > I'm new to openbmc but have read lots fo docs.
> > I want to try running an evb-ast2600 image using qemu.
> > I ran the following steps:
> > .setup evb-ast2600
> > bitbake obmc-phosphor-image
> >
> > The build completes fine.
> > I installed qemu-system-arm also.
> >
> > What command line should I use to invoke qemu?
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20230315/88fbda87/attachment-0001.htm>


More information about the openbmc mailing list