Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver
@ 2011-05-06  8:36 Zhai Edwin
  2011-05-06  8:36 ` [PATCH 1/1] qemu-script: Fix qemu seg fault if install Nvidia " Zhai Edwin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zhai Edwin @ 2011-05-06  8:36 UTC (permalink / raw)
  To: openembedded-core

From: Zhai Edwin <edwin.zhai@intel.com>

Previsous solution is only giving warnings as different distro has different
path of mesa libGL. This patch try to use different path for different distro
after looking at /etc/lsb-release per Raj's suggestion. Ubuntu is there, and
other distro handling can be easily added.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: gzhai/fix3
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/fix3

Thanks,
    Zhai Edwin <edwin.zhai@intel.com>
---


Zhai Edwin (1):
  qemu-script: Fix qemu seg fault if install Nvidia proprietary driver.

 scripts/poky-qemu-internal |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)




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

* [PATCH 1/1] qemu-script: Fix qemu seg fault if install Nvidia proprietary driver.
  2011-05-06  8:36 [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver Zhai Edwin
@ 2011-05-06  8:36 ` Zhai Edwin
  2011-05-07  1:10 ` [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's " Saul Wold
  2011-05-10 15:25 ` Saul Wold
  2 siblings, 0 replies; 5+ messages in thread
From: Zhai Edwin @ 2011-05-06  8:36 UTC (permalink / raw)
  To: openembedded-core

From: Zhai Edwin <edwin.zhai@intel.com>

This fix works on Ubuntu, and other distro can add its own path of Mesa's libGL

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
 scripts/poky-qemu-internal |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index c88d711..acaeb1b 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -448,20 +448,29 @@ else
 fi
 
 # qemu got segfault if linked with nVidia's libgl
+GL_LD_PRELOAD=$LD_PRELOAD
+
 if ldd $QEMUBIN | grep -i nvidia &> /dev/null
 then
 cat << EOM
 WARNING: nVidia proprietary OpenGL libraries detected.
 nVidia's OpenGL libraries are known to have compatibility issues with qemu,
 resulting in a segfault. Please uninstall these drivers or ensure the mesa libGL
-libraries precede nvidia's via LD_PRELOAD.
+libraries precede nvidia's via LD_PRELOAD(Already do it on Ubuntu).
 EOM
+
+# Automatically use Ubuntu system's mesa libGL, other distro can add its own path
+    if grep -i ubuntu /etc/lsb-release &> /dev/null
+    then
+        echo "Skip nVidia's libGL on Ubuntu!"
+        GL_LD_PRELOAD="/usr/lib/libGL.so $LD_PRELOAD"
+    fi
 fi
 
 echo "Running $QEMU..."
 # -no-reboot is a mandatory option - see bug #100
 echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"'
-$QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT"
+LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT"
 
 
 cleanup
-- 
1.7.1




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

* Re: [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver
  2011-05-06  8:36 [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver Zhai Edwin
  2011-05-06  8:36 ` [PATCH 1/1] qemu-script: Fix qemu seg fault if install Nvidia " Zhai Edwin
@ 2011-05-07  1:10 ` Saul Wold
  2011-05-09  7:56   ` Zhai, Edwin
  2011-05-10 15:25 ` Saul Wold
  2 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2011-05-07  1:10 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 05/06/2011 01:36 AM, Zhai Edwin wrote:
> From: Zhai Edwin<edwin.zhai@intel.com>
>
> Previsous solution is only giving warnings as different distro has different
> path of mesa libGL. This patch try to use different path for different distro
> after looking at /etc/lsb-release per Raj's suggestion. Ubuntu is there, and
> other distro handling can be easily added.
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>    Branch: gzhai/fix3
>    Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/fix3
>
> Thanks,
>      Zhai Edwin<edwin.zhai@intel.com>
> ---
>
>
> Zhai Edwin (1):
>    qemu-script: Fix qemu seg fault if install Nvidia proprietary driver.
>
>   scripts/poky-qemu-internal |   13 +++++++++++--

I think that you are using the old script name, I think that you should 
be changing runqemu-internal, not poky-qemu-internal

Please correct this.

Sau!

>   1 files changed, 11 insertions(+), 2 deletions(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



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

* Re: [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver
  2011-05-07  1:10 ` [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's " Saul Wold
@ 2011-05-09  7:56   ` Zhai, Edwin
  0 siblings, 0 replies; 5+ messages in thread
From: Zhai, Edwin @ 2011-05-09  7:56 UTC (permalink / raw)
  To: Saul Wold; +Cc: Patches and discussions about the oe-core layer



Saul Wold wrote:
>
> On 05/06/2011 01:36 AM, Zhai Edwin wrote:
> >
> >
> > Pull URL: git://git.pokylinux.org/poky-contrib.git
> >    Branch: gzhai/fix3
> >    Browse: 
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/fix3
> >
> > Zhai Edwin (1):
> >    qemu-script: Fix qemu seg fault if install Nvidia proprietary 
> driver.
> >
> >   scripts/poky-qemu-internal |   13 +++++++++++--
>
> I think that you are using the old script name, I think that you should
> be changing runqemu-internal, not poky-qemu-internal
>

Done. Pls. pull @ the same branch
Thanks,
edwin

> Please correct this.
>
> Sau!
>
> >   1 files changed, 11 insertions(+), 2 deletions(-)
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

* Re: [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver
  2011-05-06  8:36 [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver Zhai Edwin
  2011-05-06  8:36 ` [PATCH 1/1] qemu-script: Fix qemu seg fault if install Nvidia " Zhai Edwin
  2011-05-07  1:10 ` [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's " Saul Wold
@ 2011-05-10 15:25 ` Saul Wold
  2 siblings, 0 replies; 5+ messages in thread
From: Saul Wold @ 2011-05-10 15:25 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 05/06/2011 01:36 AM, Zhai Edwin wrote:
> From: Zhai Edwin<edwin.zhai@intel.com>
>
> Previsous solution is only giving warnings as different distro has different
> path of mesa libGL. This patch try to use different path for different distro
> after looking at /etc/lsb-release per Raj's suggestion. Ubuntu is there, and
> other distro handling can be easily added.
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>    Branch: gzhai/fix3
>    Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/fix3
>
> Thanks,
>      Zhai Edwin<edwin.zhai@intel.com>
> ---
>
>
> Zhai Edwin (1):
>    qemu-script: Fix qemu seg fault if install Nvidia proprietary driver.
>
>   scripts/poky-qemu-internal |   13 +++++++++++--
>   1 files changed, 11 insertions(+), 2 deletions(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Merged in oe-core and poky master

Thanks
	Sau!



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

end of thread, other threads:[~2011-05-10 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06  8:36 [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's proprietary driver Zhai Edwin
2011-05-06  8:36 ` [PATCH 1/1] qemu-script: Fix qemu seg fault if install Nvidia " Zhai Edwin
2011-05-07  1:10 ` [PATCH 0/1] qemu-script: Fix qemu segfault with Nvidia's " Saul Wold
2011-05-09  7:56   ` Zhai, Edwin
2011-05-10 15:25 ` Saul Wold

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