How about you simply add novga option to runqemu? Alex
On Sat, 20 Feb 2021 at 21:40, Khem Raj <raj.k...@gmail.com> wrote: > > > On 2/20/21 12:11 PM, Alexander Kanavin wrote: > > What I am saying is that -nographic (where the output goes on the host) > > and -vga none (what hardware gets emulated in the guest) are > > independent, orthogonal options, and you should not bundle them > > together. It is a valid use case to have -nographic with emulated > > graphical hardware still enabled. > > I think I understood what you mean, I was suggesting to not translate > runqemu option 'nographic' one to one to qemu option -nographic but > still address the usecase you are bringing up with another option on the > line like sdl, gtk options we have > > > > > Alex > > > > On Sat, 20 Feb 2021 at 21:03, Khem Raj <raj.k...@gmail.com > > <mailto:raj.k...@gmail.com>> wrote: > > > > > > > > On 2/20/21 11:20 AM, Alexander Kanavin wrote: > > > I don't think this is right. You might want to use -nographic, > > but still > > > keep an emulated graphical device inside the guest for testing the > > > userspace applications without seeing their output. It's better > > to set > > > -vga none via a dedicated runqemu option. > > > > using -display none is better way to control this kind of behaviour > > where you still want graphic card to be emulated but not display the > > output. perhaps such an option would be better suited and nographic > > runqemu option can be used for qemu being a simple cmdline app. > > > > > > > > Alex > > > > > > On Sat, 20 Feb 2021 at 20:09, Khem Raj <raj.k...@gmail.com > > <mailto:raj.k...@gmail.com> > > > <mailto:raj.k...@gmail.com <mailto:raj.k...@gmail.com>>> wrote: > > > > > > When using nographic, explicitly disable vga since some qemu > > firmware ( > > > OpenFirmware ) defaults to std vga, and when vga is enabled > > then it > > > disables output to serial and redirects that to vga which is > > by design, > > > hwoever we expect the console output to go to serial when > using > > > nographic, therefore its important to disable vga with > nographic > > > especially on qemu based ppc platforms > > > > > > Signed-off-by: Khem Raj <raj.k...@gmail.com > > <mailto:raj.k...@gmail.com> <mailto:raj.k...@gmail.com > > <mailto:raj.k...@gmail.com>>> > > > --- > > > scripts/runqemu | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/scripts/runqemu b/scripts/runqemu > > > index dd92a64553..2e31338d8e 100755 > > > --- a/scripts/runqemu > > > +++ b/scripts/runqemu > > > @@ -462,7 +462,7 @@ class BaseConfig(object): > > > raise RunQemuError('Option nographic > > makes no > > > sense alongside the sdl option.' % (arg)) > > > if ('gtk' in sys.argv): > > > raise RunQemuError('Option nographic > > makes no > > > sense alongside the gtk option.' % (arg)) > > > - self.qemu_opt_script += ' -nographic' > > > + self.qemu_opt_script += ' -nographic -vga > none' > > > self.kernel_cmdline_script += ' > console=ttyS0' > > > elif arg == 'sdl': > > > if 'gl' in sys.argv[1:]: > > > -- > > > 2.30.1 > > > > > > > > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#148384): https://lists.openembedded.org/g/openembedded-core/message/148384 Mute This Topic: https://lists.openembedded.org/mt/80785823/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-