diff options
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 046e2b6e04..0f0f799f50 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -442,10 +442,22 @@ else | |||
442 | echo "Warning: distccd not present, no distcc support loaded." | 442 | echo "Warning: distccd not present, no distcc support loaded." |
443 | fi | 443 | fi |
444 | 444 | ||
445 | # qemu got segfault if linked with nVidia's libgl | ||
446 | if ldd $QEMUBIN | grep -i nvidia &> /dev/null | ||
447 | then | ||
448 | echo "************** !!!Warning!!! ************** | ||
449 | nVidia's proprietary OpenGL libraries are known to have compatibility | ||
450 | issues with qemu, resulting in a segfault. Please uninstall these | ||
451 | drivers or ensure the mesa libGL libraries precede nvidia's via LD_PRELOAD. | ||
452 | " | ||
453 | fi | ||
454 | |||
445 | echo "Running $QEMU..." | 455 | echo "Running $QEMU..." |
446 | # -no-reboot is a mandatory option - see bug #100 | 456 | # -no-reboot is a mandatory option - see bug #100 |
447 | echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' | 457 | echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' |
448 | $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" || /bin/true | 458 | # If QEMU crashes, we need to run stty sane |
459 | $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" || stty sane | ||
460 | |||
449 | 461 | ||
450 | cleanup | 462 | cleanup |
451 | 463 | ||