Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] runqemu-internal: add "console=ttyS0" to ramfs image kernel parameters
@ 2014-05-19  8:03 Chen Qi
  2014-05-19  8:03 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2014-05-19  8:03 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit e273301efa0037a13c3a60b4414140364d9c9873:

  gstreamer/lame: Better gcc 4.9 fix (2014-05-15 23:27:41 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/runqemu-ramfs
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/runqemu-ramfs

Chen Qi (1):
  runqemu-internal: add "console=ttyS0" to ramfs image kernel
    parameters

 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.7.9.5



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

* [PATCH 1/1] runqemu-internal: add "console=ttyS0" to ramfs image kernel parameters
  2014-05-19  8:03 [PATCH 0/1] runqemu-internal: add "console=ttyS0" to ramfs image kernel parameters Chen Qi
@ 2014-05-19  8:03 ` Chen Qi
  2014-05-19 21:11   ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2014-05-19  8:03 UTC (permalink / raw)
  To: openembedded-core

We need this kernel command parameter so that when we start a ramfs
image, we can actually get some output. Although we can make this
happen by specifying the 'bootparams' for the 'runqemu' command, it's
better to make this the default behaviour.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index d317dfd..38745dd 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -550,7 +550,7 @@ fi
 
 if [ "x$RAMFS" = "xtrue" ]; then
     QEMUOPTIONS="-initrd $ROOTFS -nographic"
-    KERNCMDLINE="root=/dev/ram0 debugshell"
+    KERNCMDLINE="root=/dev/ram0 console=ttyS0 debugshell"
 fi
 
 if [ "x$ISOFS" = "xtrue" ]; then
-- 
1.7.9.5



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

* Re: [PATCH 1/1] runqemu-internal: add "console=ttyS0" to ramfs image kernel parameters
  2014-05-19  8:03 ` [PATCH 1/1] " Chen Qi
@ 2014-05-19 21:11   ` Khem Raj
  2014-05-20  1:56     ` ChenQi
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2014-05-19 21:11 UTC (permalink / raw)
  To: Chen Qi; +Cc: Patches and discussions about the oe-core layer

On Mon, May 19, 2014 at 1:03 AM, Chen Qi <Qi.Chen@windriver.com> wrote:
> +    KERNCMDLINE="root=/dev/ram0 console=ttyS0 debugshell"

is this valid for all kind of qemu machines ?


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

* Re: [PATCH 1/1] runqemu-internal: add "console=ttyS0" to ramfs image kernel parameters
  2014-05-19 21:11   ` Khem Raj
@ 2014-05-20  1:56     ` ChenQi
  0 siblings, 0 replies; 4+ messages in thread
From: ChenQi @ 2014-05-20  1:56 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On 05/20/2014 05:11 AM, Khem Raj wrote:
> On Mon, May 19, 2014 at 1:03 AM, Chen Qi <Qi.Chen@windriver.com> wrote:
>> +    KERNCMDLINE="root=/dev/ram0 console=ttyS0 debugshell"
> is this valid for all kind of qemu machines ?
>
>

I think so.
Notice in runqemu scripts, if '-nographic' is supplied to the qemu 
command, then 'console=ttyS0' is supplied to the '-append' option. This 
is the behaviour for the 'nographic' parameter for the 'runqemu' 
command. The exception is the case of starting a ramfs image. And this 
patch fixes this.

Thanks,
Chen Qi


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

end of thread, other threads:[~2014-05-20  1:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19  8:03 [PATCH 0/1] runqemu-internal: add "console=ttyS0" to ramfs image kernel parameters Chen Qi
2014-05-19  8:03 ` [PATCH 1/1] " Chen Qi
2014-05-19 21:11   ` Khem Raj
2014-05-20  1:56     ` ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox