* [Qemu-devel] qemu -nographics option
@ 2016-06-11 14:22 David Craven
2016-06-11 19:52 ` mar.krzeminski
0 siblings, 1 reply; 3+ messages in thread
From: David Craven @ 2016-06-11 14:22 UTC (permalink / raw)
To: qemu-devel
Hello qemu devs,
I previously asked this question on stack overflow but didn't get an
answer, so I thought I'd ask here:
Stdio doesn't show in qemu with the -nographic option.
This is my qemu invocation. It prints hello world when
using `-serial stdio` but only displays kernel output when
using `-nographic`. (From the docs I gather these two are
mutually exclusive options)
```
qemu-system-arm \
-kernel zImage \
-append "\
console=ttyAMA0,115200 console=tty highres=off console=ttyS0 \
rdinit=/bin/static-hello \
panic=1" \
-initrd rootfs.cpio.gz \
-dtb vexpress-v2p-ca9.dtb \
-M vexpress-a9 \
-m 512 \
-nographic \
-no-reboot
```
How do I get this to work with the `-nographic` option?
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qemu -nographics option
2016-06-11 14:22 [Qemu-devel] qemu -nographics option David Craven
@ 2016-06-11 19:52 ` mar.krzeminski
2016-06-11 20:37 ` David Craven
0 siblings, 1 reply; 3+ messages in thread
From: mar.krzeminski @ 2016-06-11 19:52 UTC (permalink / raw)
To: David Craven, qemu-devel
Hello,
Have you try to add chardev device?
-chardev stdio,mux=on,id=terminal -serial chardev:terminal
I am also not sure if you so many consoles in kernel command line,
since you do not want to use any graphic mode.
Regards,
Marcin
W dniu 11.06.2016 o 16:22, David Craven pisze:
> Hello qemu devs,
>
> I previously asked this question on stack overflow but didn't get an
> answer, so I thought I'd ask here:
>
> Stdio doesn't show in qemu with the -nographic option.
> This is my qemu invocation. It prints hello world when
> using `-serial stdio` but only displays kernel output when
> using `-nographic`. (From the docs I gather these two are
> mutually exclusive options)
>
> ```
> qemu-system-arm \
> -kernel zImage \
> -append "\
> console=ttyAMA0,115200 console=tty highres=off console=ttyS0 \
> rdinit=/bin/static-hello \
> panic=1" \
> -initrd rootfs.cpio.gz \
> -dtb vexpress-v2p-ca9.dtb \
> -M vexpress-a9 \
> -m 512 \
> -nographic \
> -no-reboot
> ```
>
> How do I get this to work with the `-nographic` option?
>
> David
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qemu -nographics option
2016-06-11 19:52 ` mar.krzeminski
@ 2016-06-11 20:37 ` David Craven
0 siblings, 0 replies; 3+ messages in thread
From: David Craven @ 2016-06-11 20:37 UTC (permalink / raw)
To: mar.krzeminski; +Cc: qemu-devel
Hello Marcin
Reordering the console statements worked. The reason I had so many consoles
in the kernel command line was because it was recommended in
redirect-qemu-window-output-to-terminal-running-qemu
<https://stackoverflow.com/questions/19565116/redirect-qemu-window-output-to-terminal-running-qemu>.
I wasn't aware that ordering was important.
Thank you!
David
On Sat, Jun 11, 2016 at 9:52 PM, mar.krzeminski <mar.krzeminski@gmail.com>
wrote:
> Hello,
>
> Have you try to add chardev device?
>
> -chardev stdio,mux=on,id=terminal -serial chardev:terminal
>
> I am also not sure if you so many consoles in kernel command line,
> since you do not want to use any graphic mode.
>
> Regards,
> Marcin
>
>
> W dniu 11.06.2016 o 16:22, David Craven pisze:
>
> Hello qemu devs,
>>
>> I previously asked this question on stack overflow but didn't get an
>> answer, so I thought I'd ask here:
>>
>> Stdio doesn't show in qemu with the -nographic option.
>> This is my qemu invocation. It prints hello world when
>> using `-serial stdio` but only displays kernel output when
>> using `-nographic`. (From the docs I gather these two are
>> mutually exclusive options)
>>
>> ```
>> qemu-system-arm \
>> -kernel zImage \
>> -append "\
>> console=ttyAMA0,115200 console=tty highres=off console=ttyS0
>> \
>> rdinit=/bin/static-hello \
>> panic=1" \
>> -initrd rootfs.cpio.gz \
>> -dtb vexpress-v2p-ca9.dtb \
>> -M vexpress-a9 \
>> -m 512 \
>> -nographic \
>> -no-reboot
>> ```
>>
>> How do I get this to work with the `-nographic` option?
>>
>> David
>>
>>
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-11 20:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-11 14:22 [Qemu-devel] qemu -nographics option David Craven
2016-06-11 19:52 ` mar.krzeminski
2016-06-11 20:37 ` David Craven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).