Fix qemu failed to start on Fedora 19
cover Fix qemu failed to start on Fedora 19
The following changes since commit ff10f72abda52315b892c64f711096772d9a4c1c:
meta-skeleton: Add busybox config fragment example (2013-08-13 23:06:04 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib kangkai/qemu-native
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/qemu-native
Kai Kang (1):
qemu: update dependency of native package
meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.8.1.2
PATCH 1/1 qemu: update dependency of native package
[YOCTO #4973]
It fails to start qemu with core-image-sato on Fedora 19. The error message shows:
Could not initialize SDL(No available video device) - exiting
Add dependecy libxext-native to qemu-native to fix this error.
--- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu.inc +1 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "open source processor emulator" HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl" -DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native" +DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native libxext-native" DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc" RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"
Signature · 1 line
1.8.1.2
Re: [PATCH 1/1] qemu: update dependency of native package
Quoted 19 lines · Kai Kang
[YOCTO #4973]
It fails to start qemu with core-image-sato on Fedora 19. The error message shows:
Could not initialize SDL(No available video device) - exiting
Add dependecy libxext-native to qemu-native to fix this error.
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/qemu/qemu.inc +0
-0
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 7
Quoted 7 lines
meta/recipes-devtools/qemu/qemu.inc +1
-1@@ -2,7 +2,7 @@ DESCRIPTION = "open source processor emulator" HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl" -DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native" +DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native libxext-native" DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc" RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"
This is one of the ugly dependencies we've tried to ignore.
We basically assume if your build machine has graphics, you have the devel headers/libs there and qemu will autodetect and include graphics support. Equally, if your build machine doesn't, it just won't build graphics support. In general most people seem happy with this even if its imperfect.
Adding libxext-native upsets this balance a little...
Cheers,
Richard
Re: [PATCH 1/1] qemu: update dependency of native package
Quoted 43 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Purdie
Sent: Friday, August 16, 2013 1:48 PM
To: Kai Kang
Cc: [email protected]; [email protected]
Subject: Re: [OE-core] [PATCH 1/1] qemu: update dependency of native packagemeta/recipes-
Quoted 15 lines · Kai Kang
[YOCTO #4973]
It fails to start qemu with core-image-sato on Fedora 19. The error message shows:
Could not initialize SDL(No available video device) - exiting
Add dependecy libxext-native to qemu-native to fix this error.
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-devtools/qemu/qemu.inc +0
-0devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 5
Quoted 8 lines
index 97e9b7b..a96e00c 100644
meta/recipes-devtools/qemu/qemu.inc +0
-1@@ -2,7 +2,7 @@ DESCRIPTION = "open source processor emulator" HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl" -DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-nativepixman-native dtc-native"
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 5
Quoted 1 line
meta/recipes-devtools/qemu/qemu.inc +1
-0+DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-nativepixman-native dtc-native libxext-native"
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 6
Quoted 1 line
meta/recipes-devtools/qemu/qemu.inc +0
-0DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 7
Quoted 1 line
meta/recipes-devtools/qemu/qemu.inc +0
-0RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"
Quoted 8 lines
This is one of the ugly dependencies we've tried to ignore.
We basically assume if your build machine has graphics, you have the devel headers/libs there and qemu will autodetect and include graphics support. Equally, if your build machine doesn't, it just won't build graphics support. In general most people seem happy with this even if its imperfect.
But, but... I do have libxext and libxext-devel installed... (and minimal works just fine as the bug says) libXext-1.3.2-1.fc19.x86_64
libXext-devel-1.3.2-1.fc19.x86_64
Also strace shows:open("/lib64/libXext.so.6", O_RDONLY|O_CLOEXEC) = 11
read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\07U1\0\0\0"..., 832) = 832fstat(11, {st_mode=S_IFREG|0755, st_size=77376, ...}) = 0mmap(NULL, 2169112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f0a493ee000 mprotect(0x7f0a493ff000, 2093056, PROT_NONE) = 0mmap(0x7f0a495fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x10000) = 0x7f0a495fe000
close(11) = 0
The F18 system which doesn't have a problem with sato has:
libXext-1.3.1-3.20130524gitdfe6e1f3b.fc18.x86_64 libXext-devel-1.3.1-3.20130524gitdfe6e1f3b.fc18.x86_64
Cheers,
Stefan
Quoted 11 lines
Adding libxext-native upsets this balance a little...
Cheers,
Richard
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [PATCH 1/1] qemu: update dependency of native package
Quoted 54 lines · StefanX
Quoted 41 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Purdie
Sent: Friday, August 16, 2013 1:48 PM
To: Kai Kang
Cc: [email protected]; [email protected]
Subject: Re: [OE-core] [PATCH 1/1] qemu: update dependency of native packagemeta/recipes-
Quoted 15 lines · Kai Kang
[YOCTO #4973]
It fails to start qemu with core-image-sato on Fedora 19. The error message shows:
Could not initialize SDL(No available video device) - exiting
Add dependecy libxext-native to qemu-native to fix this error.
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-devtools/qemu/qemu.inc +0
-0devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 5
Quoted 8 lines
index 97e9b7b..a96e00c 100644
meta/recipes-devtools/qemu/qemu.inc +0
-1@@ -2,7 +2,7 @@ DESCRIPTION = "open source processor emulator" HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl" -DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-nativepixman-native dtc-native"
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 5
Quoted 1 line
meta/recipes-devtools/qemu/qemu.inc +1
-0+DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-nativepixman-native dtc-native libxext-native"
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 6
Quoted 1 line
meta/recipes-devtools/qemu/qemu.inc +0
-0DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
Quoted 9 lines
meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 7
Quoted 1 line
meta/recipes-devtools/qemu/qemu.inc +0
-0RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"This is one of the ugly dependencies we've tried to ignore.
We basically assume if your build machine has graphics, you have the devel headers/libs there and qemu will autodetect and include graphics support. Equally, if your build machine doesn't, it just won't build graphics support. In general most people seem happy with this even if its imperfect.
But, but... I do have libxext and libxext-devel installed... (and minimal works just fine as the bug says) libXext-1.3.2-1.fc19.x86_64
libXext-devel-1.3.2-1.fc19.x86_64
Quoted 8 lines
Also strace shows:
open("/lib64/libXext.so.6", O_RDONLY|O_CLOEXEC)= 11
read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\07U1\0\0\0"..., 832) = 832fstat(11, {st_mode=S_IFREG|0755, st_size=77376, ...})= 0mmap(NULL, 2169112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0)=0x7f0a493ee000mprotect(0x7f0a493ff000, 2093056, PROT_NONE)= 0mmap(0x7f0a495fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x10000)=0x7f0a495fe000
close(11) = 0
It is a little weird, and it seems we need more work. :)
Regards,
Kai
Quoted 21 lines
The F18 system which doesn't have a problem with sato has:
libXext-1.3.1-3.20130524gitdfe6e1f3b.fc18.x86_64 libXext-devel-1.3.1-3.20130524gitdfe6e1f3b.fc18.x86_64
Cheers,
StefanQuoted 11 lines
Adding libxext-native upsets this balance a little...
Cheers,
Richard
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 2 lines
Regards, Neil | Kai Kang
Re: [PATCH 1/1] qemu: update dependency of native package
In reply to Richard PurdieQuoted 29 lines · Richard Purdie
Quoted 19 lines · Kai Kang
[YOCTO #4973]
It fails to start qemu with core-image-sato on Fedora 19. The error message shows:
Could not initialize SDL(No available video device) - exiting
Add dependecy libxext-native to qemu-native to fix this error.
Signed-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/qemu/qemu.inc +0
-0meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 7
Quoted 7 lines
meta/recipes-devtools/qemu/qemu.inc +1
-1@@ -2,7 +2,7 @@ DESCRIPTION = "open source processor emulator" HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl" -DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native" +DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native libxext-native" DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc" RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"This is one of the ugly dependencies we've tried to ignore.
Quoted 5 lines
We basically assume if your build machine has graphics, you have the devel headers/libs there and qemu will autodetect and include graphics support. Equally, if your build machine doesn't, it just won't build graphics support. In general most people seem happy with this even if its imperfect.
If qemu has autodected the devel headers/libs and include graphics support, it should be able to boot a target with the graphics. But it fails. I'll check it and find out the reason.
Thanks a lot.
Kai
Quoted 10 lines
Adding libxext-native upsets this balance a little...
Cheers,
Richard
Signature · 2 lines
Regards, Neil | Kai Kang