Skip to contentSkip to conversation

Extending runqemu/runqemu-internal with new machines

DISCUSSION Andrew Jeffery 2 participants 5 messages May 17, 2016 – May 19, 2016

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm interested in how to best extend the runqemu/runqemu-internal scripts to add support for more specific machine types. The OpenBMC project[1] (which uses Yocto) has been working on upstreaming support for the Aspeed AST2400 and AST2500 SoCs[3] in the kernel and qemu, and we'd like to run the same configuration in qemu as we do on hardware.

As it stands the qemuarm configuration runs a versatilepb machine, but as we have more relevant machine types in upstream qemu (e.g. palmetto- bmc) we'd like to invoke them instead.

In the OpenBMC repo we have Yocto as a subtree to which we apply updates from upstream. Given that, it's best if we have no changes to the subtree so that upstream patches apply without fuss. If we want to provide additional machine types in runqemu/runqemu-internal it seems that we cannot avoid carrying patches to the scripts, which will need to be reworked when we apply the upstream patches.

Is there a better way to work that might avoid these issues? Alternatively, should we start looking at reworking the runqemu/runqemu-internal scripts such that we don't have to patch them to support our use-case? If so, what sort of approach would the community be happy with?

Cheers,

Andrew

[1] https://github.com/openbmc/docs#openbmc-goals
[2] https://github.com/openbmc/openbmc/
[3] http://www.aspeedtech.com/products.php?fPath=20

#1 lore raw
Quoted 6 lines · Andrew Jeffery

Is there a better way to work that might avoid these issues? Alternatively, should we start looking at reworking the runqemu/runqemu-internal scripts such that we don't have to patch them to support our use-case? If so, what sort of approach would the community be happy with?

Dig back a few weeks and you'll a RFC series by Robert Yang refactoring runqemu for exactly this problem. I've not yet looked at it myself but if you could see if that solves your problems then that would be much appreciated.

Ross

#2 lore raw

Hi Ross,

Quoted 9 lines · Ross
Quoted 7 lines · Andrew Jeffery

Is there a better way to work that might avoid these issues? Alternatively, should we start looking at reworking the runqemu/runqemu-internal scripts such that we don't have to patch them
to support our use-case? If so, what sort of approach would the community be happy with?

Quoted 4 lines

Dig back a few weeks and you'll a RFC series by Robert Yang refactoring runqemu for exactly this problem.  I've not yet looked at it myself but if you could see if that solves your problems then that would be much appreciated.

Thanks for the pointer. Is this the patchset you're referring to?

http://lists.openembedded.org/pipermail/openembedded-core/2016-March/118982.html

A brief look suggests it might get us some of the way there, but I'll take a more detailed look in the next day or so.

Andrew

#3 lore raw
Quoted 8 lines · Andrew Jeffery

Thanks for the pointer. Is this the patchset you're referring to?

http://lists.openembedded.org/pipermail/openembedded-core/2016-March/118982.html

A brief look suggests it might get us some of the way there, but I'll take a more detailed look in the next day or so.

I was actually thinking of
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121180.html
.

Your use case is exactly what this sort of work is aiming to solve (put the machine-specific qemu knowledge into the BSP instead of runqemu) so feedback would be greatly appreciated.

Ross

#4 lore raw
Quoted 6 lines · Ross
Quoted 4 lines · Andrew Jeffery

Thanks for the pointer. Is this the patchset you're referring to?

http://lists.openembedded.org/pipermail/openembedded-core/2016-March/118982.html

Quoted 9 lines
Quoted 3 lines

A brief look suggests it might get us some of the way there, but I'll take a more detailed look in the next day or so.

I was actually thinking of http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121180.html.

Your use case is exactly what this sort of work is aiming to solve (put the machine-specific qemu knowledge into the BSP instead of runqemu) so feedback would be greatly appreciated.

Right! Sounds good from the cover letter, fetching the patches down now. Thanks for pointing me in the right direction.

Andrew