Patchwork [1/1] runqemu: set console=ttyS0 when running with nographic option

login
register
mail settings
Submitter Scott Garman
Date March 29, 2012, 3:57 p.m.
Message ID <c513f4ecba19d0ceeb5d158287e77d3c74322254.1333036186.git.scott.a.garman@intel.com>
Download mbox | patch
Permalink /patch/24877/
State Accepted
Commit 28f05bf6e5da9cd8f01cff50c317233e3064e3cb
Headers show

Comments

Scott Garman - March 29, 2012, 3:57 p.m.
When passing the nograhic option to the runqemu script, set
console=ttyS0 in the kernel options so the user can view
the kernel boot messages.

This fixes [YOCTO #1475]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
---
 scripts/runqemu |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Richard Purdie - March 29, 2012, 9:18 p.m.
On Thu, 2012-03-29 at 08:57 -0700, Scott Garman wrote:
> When passing the nograhic option to the runqemu script, set
> console=ttyS0 in the kernel options so the user can view
> the kernel boot messages.
> 
> This fixes [YOCTO #1475]
> 
> Signed-off-by: Scott Garman <scott.a.garman@intel.com>
> ---
>  scripts/runqemu |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/scripts/runqemu b/scripts/runqemu
index c349de0..caabf61 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -135,6 +135,7 @@  while [ $i -le $# ]; do
             ;;
         "nographic")
             SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic"
+            SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
             ;;
         "serial")
             SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"