All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liming Wang <liming.wang@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: yocto@yoctoproject.org, dvhart@linux.intel.com
Subject: Re: [PATCH] script/runqemu: change boot command line for qemuppc
Date: Mon, 22 Aug 2011 16:21:08 +0800	[thread overview]
Message-ID: <4E521174.8090804@windriver.com> (raw)
In-Reply-To: <1313771298.13995.116.camel@rex>

On 2011-8-20 0:28, Richard Purdie wrote:
> On Fri, 2011-08-19 at 18:06 +0800, Liming Wang wrote:
>> Because qemuppc has no graphic emulation, remove console=tty0
>> and make it run into 3 run level. This can reduce boot time
>> for qemuppc booting.
>>
>> Signed-off-by: Liming Wang<liming.wang@windriver.com>
>> ---
>>   scripts/runqemu-internal |    4 ++--
>>   1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
>> index c15632d..883fa5b 100755
>> --- a/scripts/runqemu-internal
>> +++ b/scripts/runqemu-internal
>> @@ -384,7 +384,7 @@ if [ "$MACHINE" = "qemuppc" ]; then
>>       BIOS=powerpc_rom.bin
>>       QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -nographic"
>>       if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
>> -        KERNCMDLINE="root=/dev/hda rw console=ttyS0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
>> +        KERNCMDLINE="root=/dev/hda rw console=ttyS0 3 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
>>           QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -hda $ROOTFS -no-reboot $QEMU_UI_OPTIONS"
>>       fi
>>       if [ "$FSTYPE" = "nfs" ]; then
>> @@ -393,7 +393,7 @@ if [ "$MACHINE" = "qemuppc" ]; then
>>               cleanup
>>               return
>>           fi
>> -        KERNCMDLINE="root=/dev/nfs console=ttyS0 console=tty0 nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
>> +        KERNCMDLINE="root=/dev/nfs console=ttyS0 3 nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
>>           QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -no-reboot $QEMU_UI_OPTIONS"
>>       fi
>>   fi
> Can we not fix the X scripts so that if an fbdev X server is in use and
X scripts serve for all the boards. And we also can't assume all the 
boards use the same
framebuffer device. So how to detect whether the framebuffer device 
exists is board dependent.
Maybe we can see whether the device /dev/fb0 exists(it could be created 
manually, so we should try to open it to verify)
or the file /proc/fb exists to confirm the framebuffer device. Anyway, 
any modification should be
tested on all boards to see whether it works. I prefer to mark it as 
todo task in 1.1

Liming Wang
> the framebuffer device node does not exist, it just exits cleanly with a
> suitable message and doesn't timeout on boot?
>
> Cheers,
>
> Richard
>
>



  reply	other threads:[~2011-08-22  8:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19 10:06 [PATCH] script/runqemu: change boot command line for qemuppc Liming Wang
2011-08-19 13:50 ` Darren Hart
2011-08-19 16:28 ` Richard Purdie
2011-08-22  8:21   ` Liming Wang [this message]
2011-08-22 15:52     ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E521174.8090804@windriver.com \
    --to=liming.wang@windriver.com \
    --cc=dvhart@linux.intel.com \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.