From: Scott Garman <scott.a.garman@intel.com>
To: poky@yoctoproject.org
Subject: Re: [PATCH 2/2] qemu: Use mesa's libGL rather than nVidia's to avoid segfault of qemu
Date: Wed, 16 Mar 2011 11:18:46 -0700 [thread overview]
Message-ID: <4D80FF06.2040206@intel.com> (raw)
In-Reply-To: <cea6b5f80bd71deec58980d59de6310933aea0c7.1300277765.git.edwin.zhai@intel.com>
On 03/16/2011 05:32 AM, Zhai Edwin wrote:
> From: Zhai Edwin<edwin.zhai@intel.com>
>
> Proprietary nVidia driver introduce its own libGL that precede mesa's.
> qemu has segfault if linked with it. This fix try to use mesa's libGL
> in such case.
>
> [YOCTO #649]
> [YOCTO #698]
>
> Signed-off-by: Zhai Edwin<edwin.zhai@intel.com>
This fixes the problem on my Ubuntu 10.10 system using NVIDIA
proprietary graphics.
Acked-by: Scott Garman <scott.a.garman@intel.com>
> ---
> scripts/poky-qemu | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/poky-qemu b/scripts/poky-qemu
> index 2d94a11..1d04c37 100755
> --- a/scripts/poky-qemu
> +++ b/scripts/poky-qemu
> @@ -404,6 +404,10 @@ if [ "$nv_libgl" == 'yes' ]; then
> echo "************** !!!Warning!!! **************
> You installed nVidia's libGL.so that probably lead qemu segfault!
> Pls. uninstall proprietary nVidia driver or make mesa libgl precede nvidia's."
> +
> + # To avoid segfault of qemu, skip nVidia's libGL and use mesa's instead
> + echo "Skip nVidia's libGL!"
> + export LD_PRELOAD="/usr/lib/libGL.so $LD_PRELOAD"
> fi
>
> INTERNAL_SCRIPT=`which poky-qemu-internal`
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
prev parent reply other threads:[~2011-03-16 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 12:32 [PATCH 0/2] fix qemu segfault with nVidia proprietary driver Zhai Edwin
2011-03-16 12:32 ` [PATCH 1/2] qemu: Give warnings when running qemu if nVidia GL library installed on host Zhai Edwin
2011-03-16 12:32 ` [PATCH 2/2] qemu: Use mesa's libGL rather than nVidia's to avoid segfault of qemu Zhai Edwin
2011-03-16 18:18 ` Scott Garman [this message]
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=4D80FF06.2040206@intel.com \
--to=scott.a.garman@intel.com \
--cc=poky@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.