qemuboot-x86: move QB_SYSTEM_NAME to corresponding conf
PATCH v2 1/1 qemuboot-x86: move QB_SYSTEM_NAME to corresponding conf
From: Changqing Li <[email protected]>
Configrations:
MACHINE: qemux86-64
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
Reproduce steps:
bitbake lib32-core-image-minimal
runqemu qemux86-64 nographic lib32-core-image-minimal
Errors:
qemu cannot bootup since:
Booting from ROM...
This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU.
QEMU: Terminated
For lib32 image, override has x86, so the qemubin set to qemu-system-i386, fix by move QB_SYSTEM_NAME to corresponding conf, don't use the override
--- meta-yocto-bsp/conf/machine/genericx86-64.conf | 2 ++ meta-yocto-bsp/conf/machine/genericx86.conf | 2 ++ meta/conf/machine/include/qemuboot-x86.inc | 2 -- meta/conf/machine/qemux86-64.conf | 3 +++ meta/conf/machine/qemux86.conf | 3 +++ 5 files changed, 10 insertions(+), 2 deletions(-)
meta-yocto-bsp/conf/machine/genericx86-64.conf +2 -0
@@ -7,3 +7,5 @@ require conf/machine/include/tune-core2.inc require conf/machine/include/genericx86-common.inc SERIAL_CONSOLES_CHECK = "ttyS0" +#For runqemu +QB_SYSTEM_NAME = "qemu-system-x86_64"
meta-yocto-bsp/conf/machine/genericx86.conf +2 -0
@@ -7,3 +7,5 @@ require conf/machine/include/tune-core2.inc require conf/machine/include/genericx86-common.inc MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "gma500-gfx-check" +#For runqemu +QB_SYSTEM_NAME = "qemu-system-i386"
meta/conf/machine/include/qemuboot-x86.inc +0 -2
@@ -1,10 +1,8 @@ # For runqemu IMAGE_CLASSES += "qemuboot" -QB_SYSTEM_NAME_x86 = "qemu-system-i386" QB_CPU_x86 = "-cpu core2duo" QB_CPU_KVM_x86 = "-cpu core2duo" -QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64" QB_CPU_x86-64 = "-cpu core2duo" QB_CPU_KVM_x86-64 = "-cpu core2duo"
meta/conf/machine/qemux86-64.conf +3 -0
@@ -39,3 +39,6 @@ module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}" WKS_FILE ?= "qemux86-directdisk.wks" do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" + +#For runqemu +QB_SYSTEM_NAME = "qemu-system-x86_64"
meta/conf/machine/qemux86.conf +3 -0
@@ -39,3 +39,6 @@ module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}" WKS_FILE ?= "qemux86-directdisk.wks" do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" + +#For runqemu +QB_SYSTEM_NAME = "qemu-system-i386"
Signature · 1 line
2.7.4
ping
Do I need to split this patch into 2 part? since 3 files are unser repo oe-core, 2 files are under repo poky
but changes in files under poky depend on changes under oe-core
Quoted 88 lines · On 8/1/19 9:25 AM, [email protected] wrote:
From: Changqing Li <[email protected]>
Configrations:
MACHINE: qemux86-64
requireconf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"Reproduce steps:
bitbake lib32-core-image-minimal
runqemu qemux86-64 nographic lib32-core-image-minimalErrors:
qemu cannot bootup since:
Booting from ROM...
This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU.
QEMU: TerminatedFor lib32 image, override has x86, so the qemubin set to qemu-system-i386, fix by move
QB_SYSTEM_NAMEto corresponding conf, don't use the overrideSigned-off-by Changqing Li <[email protected]>--- meta-yocto-bsp/conf/machine/genericx86-64.conf | 2 ++ meta-yocto-bsp/conf/machine/genericx86.conf | 2 ++ meta/conf/machine/include/qemuboot-x86.inc | 2 -- meta/conf/machine/qemux86-64.conf | 3 +++ meta/conf/machine/qemux86.conf | 3 +++ 5 files changed, 10 insertions(+), 2 deletions(-)meta-yocto-bsp/conf/machine/genericx86-64.conf +2
-0@@ -7,3 +7,5 @@ require conf/machine/include/tune-core2.inc require conf/machine/include/genericx86-common.inc SERIAL_CONSOLES_CHECK = "ttyS0" +#For runqemu +QB_SYSTEM_NAME = "qemu-system-x86_64"meta-yocto-bsp/conf/machine/genericx86.conf +2
-0@@ -7,3 +7,5 @@ require conf/machine/include/tune-core2.inc require conf/machine/include/genericx86-common.inc MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "gma500-gfx-check" +#For runqemu +QB_SYSTEM_NAME = "qemu-system-i386"meta/conf/machine/include/qemuboot-x86.inc +0
-2@@ -1,10 +1,8 @@ # For runqemu IMAGE_CLASSES += "qemuboot" -QB_SYSTEM_NAME_x86 = "qemu-system-i386" QB_CPU_x86 = "-cpu core2duo" QB_CPU_KVM_x86 = "-cpu core2duo" -QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64" QB_CPU_x86-64 = "-cpu core2duo" QB_CPU_KVM_x86-64 = "-cpu core2duo"meta/conf/machine/qemux86-64.conf +3
-0@@ -39,3 +39,6 @@ module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}" WKS_FILE ?= "qemux86-directdisk.wks" do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" + +#For runqemu +QB_SYSTEM_NAME = "qemu-system-x86_64"meta/conf/machine/qemux86.conf +3
-0@@ -39,3 +39,6 @@ module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}" WKS_FILE ?= "qemux86-directdisk.wks" do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" + +#For runqemu +QB_SYSTEM_NAME = "qemu-system-i386"
Signature · 3 lines
BRs Sandy(Li Changqing)
Quoted 5 lines · Changqing Li
ping
Do I need to split this patch into 2 part? since 3 files are unser repo oe-core, 2 files are under repo poky
but changes in files under poky depend on changes under oe-core
Yes, the commits need to go to oe-core and meta-yocto-bsp respectively.
Ross