* [PATCH] genericx86: tune for i586 instead of atom @ 2013-09-04 1:43 Jonathan Liu 2013-09-04 3:23 ` Bruce Ashfield 2013-09-04 4:20 ` Jonathan Liu 0 siblings, 2 replies; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 1:43 UTC (permalink / raw) To: poky Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with: "This kernel requires the following features not present on the CPU: movbe Unable to boot - please use a kernel appropriate for your CPU.". Signed-off-by: Jonathan Liu <net147@gmail.com> --- meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf index ff5cbc9..f5d9cd5 100644 --- a/meta-yocto-bsp/conf/machine/genericx86.conf +++ b/meta-yocto-bsp/conf/machine/genericx86.conf @@ -3,7 +3,7 @@ #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. -include conf/machine/include/tune-atom.inc +include conf/machine/include/tune-i586.inc MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" -- 1.8.4 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 1:43 [PATCH] genericx86: tune for i586 instead of atom Jonathan Liu @ 2013-09-04 3:23 ` Bruce Ashfield 2013-09-04 3:30 ` Jonathan Liu 2013-09-04 4:20 ` Jonathan Liu 1 sibling, 1 reply; 12+ messages in thread From: Bruce Ashfield @ 2013-09-04 3:23 UTC (permalink / raw) To: Jonathan Liu; +Cc: poky@yoctoproject.org On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: > Tuning for Intel Atom CPU can in result instructions being used that are > not compatible with older x86 CPUs such as Intel Pentium Dual-Core > E2200. This can result in Linux 3.10 failing to boot with: > "This kernel requires the following features not present on the CPU: > movbe > Unable to boot - please use a kernel appropriate for your CPU.". That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't impact the kernel build options, and if it is, that's a bug. If the error shows up on the switch to userspace, then that's a different story. Bruce > > Signed-off-by: Jonathan Liu <net147@gmail.com> > --- > meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf > index ff5cbc9..f5d9cd5 100644 > --- a/meta-yocto-bsp/conf/machine/genericx86.conf > +++ b/meta-yocto-bsp/conf/machine/genericx86.conf > @@ -3,7 +3,7 @@ > > #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. > > -include conf/machine/include/tune-atom.inc > +include conf/machine/include/tune-i586.inc > > MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" > > -- > 1.8.4 > > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 3:23 ` Bruce Ashfield @ 2013-09-04 3:30 ` Jonathan Liu 2013-09-04 3:44 ` Bruce Ashfield 0 siblings, 1 reply; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 3:30 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky@yoctoproject.org Hi Bruce, The kernel output is the following: Loading /vmlinuz.........ready. This kernel requires the following features not present on the CPU: movbe Unable to boot - please use a kernel appropriate for your CPU. It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10. Regards, Jonathan On 4 September 2013 13:23, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: > On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: >> Tuning for Intel Atom CPU can in result instructions being used that are >> not compatible with older x86 CPUs such as Intel Pentium Dual-Core >> E2200. This can result in Linux 3.10 failing to boot with: >> "This kernel requires the following features not present on the CPU: >> movbe >> Unable to boot - please use a kernel appropriate for your CPU.". > > That's a bit surprising, do you have a bootlog to share ? This tune > file shouldn't > impact the kernel build options, and if it is, that's a bug. > > If the error shows up on the switch to userspace, then that's a different story. > > Bruce > >> >> Signed-off-by: Jonathan Liu <net147@gmail.com> >> --- >> meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf >> index ff5cbc9..f5d9cd5 100644 >> --- a/meta-yocto-bsp/conf/machine/genericx86.conf >> +++ b/meta-yocto-bsp/conf/machine/genericx86.conf >> @@ -3,7 +3,7 @@ >> >> #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. >> >> -include conf/machine/include/tune-atom.inc >> +include conf/machine/include/tune-i586.inc >> >> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" >> >> -- >> 1.8.4 >> >> _______________________________________________ >> poky mailing list >> poky@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/poky > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 3:30 ` Jonathan Liu @ 2013-09-04 3:44 ` Bruce Ashfield 2013-09-04 3:56 ` Jonathan Liu 0 siblings, 1 reply; 12+ messages in thread From: Bruce Ashfield @ 2013-09-04 3:44 UTC (permalink / raw) To: Jonathan Liu; +Cc: poky@yoctoproject.org On Tue, Sep 3, 2013 at 11:30 PM, Jonathan Liu <net147@gmail.com> wrote: > Hi Bruce, > > The kernel output is the following: > Loading /vmlinuz.........ready. > This kernel requires the following features not present on the CPU: > movbe > Unable to boot - please use a kernel appropriate for your CPU. > > It stops at that stage and the kernel doesn't boot at all. I started > having this issue after switching my BSP to Linux 3.10. I take it your BSP is based on the genericx86 BSP/configuration ? The entire kernel build is done with: oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} And unless you've put something in KERNEL_EXTRA_ARGS, that means the kernel configuration and its own Makefiles determine all compile flags and optimizations. So switching that config file should have no impact on the build. To confirm .. you are saying after that change you can boot again ? Best to hear from Darren/Tom or Ross on this one. Bruce > > Regards, > Jonathan > > On 4 September 2013 13:23, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >> On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: >>> Tuning for Intel Atom CPU can in result instructions being used that are >>> not compatible with older x86 CPUs such as Intel Pentium Dual-Core >>> E2200. This can result in Linux 3.10 failing to boot with: >>> "This kernel requires the following features not present on the CPU: >>> movbe >>> Unable to boot - please use a kernel appropriate for your CPU.". >> >> That's a bit surprising, do you have a bootlog to share ? This tune >> file shouldn't >> impact the kernel build options, and if it is, that's a bug. >> >> If the error shows up on the switch to userspace, then that's a different story. >> >> Bruce >> >>> >>> Signed-off-by: Jonathan Liu <net147@gmail.com> >>> --- >>> meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf >>> index ff5cbc9..f5d9cd5 100644 >>> --- a/meta-yocto-bsp/conf/machine/genericx86.conf >>> +++ b/meta-yocto-bsp/conf/machine/genericx86.conf >>> @@ -3,7 +3,7 @@ >>> >>> #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. >>> >>> -include conf/machine/include/tune-atom.inc >>> +include conf/machine/include/tune-i586.inc >>> >>> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" >>> >>> -- >>> 1.8.4 >>> >>> _______________________________________________ >>> poky mailing list >>> poky@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/poky >> >> >> >> -- >> "Thou shalt not follow the NULL pointer, for chaos and madness await >> thee at its end" -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 3:44 ` Bruce Ashfield @ 2013-09-04 3:56 ` Jonathan Liu 2013-09-04 4:12 ` Jonathan Liu 0 siblings, 1 reply; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 3:56 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky@yoctoproject.org On 4 September 2013 13:44, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: > On Tue, Sep 3, 2013 at 11:30 PM, Jonathan Liu <net147@gmail.com> wrote: >> Hi Bruce, >> >> The kernel output is the following: >> Loading /vmlinuz.........ready. >> This kernel requires the following features not present on the CPU: >> movbe >> Unable to boot - please use a kernel appropriate for your CPU. >> >> It stops at that stage and the kernel doesn't boot at all. I started >> having this issue after switching my BSP to Linux 3.10. > > I take it your BSP is based on the genericx86 BSP/configuration ? The entire > kernel build is done with: > > oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} > CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} > > And unless you've put something in KERNEL_EXTRA_ARGS, that means > the kernel configuration and its own Makefiles determine all compile flags and > optimizations. > > So switching that config file should have no impact on the build. > > To confirm .. you are saying after that change you can boot again ? Best to > hear from Darren/Tom or Ross on this one. > > Bruce You're right. It doesn't seem to have any impact. Please disregard this patch. I will try to look into this further to work out what is enabling the use of movbe in the kernel. Regards, Jonathan > >> >> Regards, >> Jonathan >> >> On 4 September 2013 13:23, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >>> On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: >>>> Tuning for Intel Atom CPU can in result instructions being used that are >>>> not compatible with older x86 CPUs such as Intel Pentium Dual-Core >>>> E2200. This can result in Linux 3.10 failing to boot with: >>>> "This kernel requires the following features not present on the CPU: >>>> movbe >>>> Unable to boot - please use a kernel appropriate for your CPU.". >>> >>> That's a bit surprising, do you have a bootlog to share ? This tune >>> file shouldn't >>> impact the kernel build options, and if it is, that's a bug. >>> >>> If the error shows up on the switch to userspace, then that's a different story. >>> >>> Bruce >>> >>>> >>>> Signed-off-by: Jonathan Liu <net147@gmail.com> >>>> --- >>>> meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf >>>> index ff5cbc9..f5d9cd5 100644 >>>> --- a/meta-yocto-bsp/conf/machine/genericx86.conf >>>> +++ b/meta-yocto-bsp/conf/machine/genericx86.conf >>>> @@ -3,7 +3,7 @@ >>>> >>>> #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. >>>> >>>> -include conf/machine/include/tune-atom.inc >>>> +include conf/machine/include/tune-i586.inc >>>> >>>> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" >>>> >>>> -- >>>> 1.8.4 >>>> >>>> _______________________________________________ >>>> poky mailing list >>>> poky@yoctoproject.org >>>> https://lists.yoctoproject.org/listinfo/poky >>> >>> >>> >>> -- >>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>> thee at its end" > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 3:56 ` Jonathan Liu @ 2013-09-04 4:12 ` Jonathan Liu 2013-09-04 7:46 ` Jonathan Liu 0 siblings, 1 reply; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 4:12 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky@yoctoproject.org On 4 September 2013 13:56, Jonathan Liu <net147@gmail.com> wrote: > On 4 September 2013 13:44, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >> On Tue, Sep 3, 2013 at 11:30 PM, Jonathan Liu <net147@gmail.com> wrote: >>> Hi Bruce, >>> >>> The kernel output is the following: >>> Loading /vmlinuz.........ready. >>> This kernel requires the following features not present on the CPU: >>> movbe >>> Unable to boot - please use a kernel appropriate for your CPU. >>> >>> It stops at that stage and the kernel doesn't boot at all. I started >>> having this issue after switching my BSP to Linux 3.10. >> >> I take it your BSP is based on the genericx86 BSP/configuration ? The entire >> kernel build is done with: >> >> oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} >> CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} >> >> And unless you've put something in KERNEL_EXTRA_ARGS, that means >> the kernel configuration and its own Makefiles determine all compile flags and >> optimizations. >> >> So switching that config file should have no impact on the build. >> >> To confirm .. you are saying after that change you can boot again ? Best to >> hear from Darren/Tom or Ross on this one. >> >> Bruce > > You're right. It doesn't seem to have any impact. > Please disregard this patch. > > I will try to look into this further to work out what is enabling the > use of movbe in the kernel. I suspect it is CONFIG_MATOM=y in the kernel config (see http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=2b9b6d8c715b23fa119261c32ad360681f4464a9). I am rebuilding my image to test. Regards, Jonathan > > Regards, > Jonathan > >> >>> >>> Regards, >>> Jonathan >>> >>> On 4 September 2013 13:23, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >>>> On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: >>>>> Tuning for Intel Atom CPU can in result instructions being used that are >>>>> not compatible with older x86 CPUs such as Intel Pentium Dual-Core >>>>> E2200. This can result in Linux 3.10 failing to boot with: >>>>> "This kernel requires the following features not present on the CPU: >>>>> movbe >>>>> Unable to boot - please use a kernel appropriate for your CPU.". >>>> >>>> That's a bit surprising, do you have a bootlog to share ? This tune >>>> file shouldn't >>>> impact the kernel build options, and if it is, that's a bug. >>>> >>>> If the error shows up on the switch to userspace, then that's a different story. >>>> >>>> Bruce >>>> >>>>> >>>>> Signed-off-by: Jonathan Liu <net147@gmail.com> >>>>> --- >>>>> meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- >>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>> >>>>> diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf >>>>> index ff5cbc9..f5d9cd5 100644 >>>>> --- a/meta-yocto-bsp/conf/machine/genericx86.conf >>>>> +++ b/meta-yocto-bsp/conf/machine/genericx86.conf >>>>> @@ -3,7 +3,7 @@ >>>>> >>>>> #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. >>>>> >>>>> -include conf/machine/include/tune-atom.inc >>>>> +include conf/machine/include/tune-i586.inc >>>>> >>>>> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" >>>>> >>>>> -- >>>>> 1.8.4 >>>>> >>>>> _______________________________________________ >>>>> poky mailing list >>>>> poky@yoctoproject.org >>>>> https://lists.yoctoproject.org/listinfo/poky >>>> >>>> >>>> >>>> -- >>>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>>> thee at its end" >> >> >> >> -- >> "Thou shalt not follow the NULL pointer, for chaos and madness await >> thee at its end" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 4:12 ` Jonathan Liu @ 2013-09-04 7:46 ` Jonathan Liu 2013-09-04 12:54 ` Bruce Ashfield 0 siblings, 1 reply; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 7:46 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky@yoctoproject.org On 4 September 2013 14:12, Jonathan Liu <net147@gmail.com> wrote: > On 4 September 2013 13:56, Jonathan Liu <net147@gmail.com> wrote: >> On 4 September 2013 13:44, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >>> On Tue, Sep 3, 2013 at 11:30 PM, Jonathan Liu <net147@gmail.com> wrote: >>>> Hi Bruce, >>>> >>>> The kernel output is the following: >>>> Loading /vmlinuz.........ready. >>>> This kernel requires the following features not present on the CPU: >>>> movbe >>>> Unable to boot - please use a kernel appropriate for your CPU. >>>> >>>> It stops at that stage and the kernel doesn't boot at all. I started >>>> having this issue after switching my BSP to Linux 3.10. >>> >>> I take it your BSP is based on the genericx86 BSP/configuration ? The entire >>> kernel build is done with: >>> >>> oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} >>> CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} >>> >>> And unless you've put something in KERNEL_EXTRA_ARGS, that means >>> the kernel configuration and its own Makefiles determine all compile flags and >>> optimizations. >>> >>> So switching that config file should have no impact on the build. >>> >>> To confirm .. you are saying after that change you can boot again ? Best to >>> hear from Darren/Tom or Ross on this one. >>> >>> Bruce >> >> You're right. It doesn't seem to have any impact. >> Please disregard this patch. >> >> I will try to look into this further to work out what is enabling the >> use of movbe in the kernel. > > I suspect it is CONFIG_MATOM=y in the kernel config (see > http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=2b9b6d8c715b23fa119261c32ad360681f4464a9). > I am rebuilding my image to test. I have confirmed it is CONFIG_MATOM=y that was causing the boot issue. Regards, Jonathan > > Regards, > Jonathan > >> >> Regards, >> Jonathan >> >>> >>>> >>>> Regards, >>>> Jonathan >>>> >>>> On 4 September 2013 13:23, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >>>>> On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: >>>>>> Tuning for Intel Atom CPU can in result instructions being used that are >>>>>> not compatible with older x86 CPUs such as Intel Pentium Dual-Core >>>>>> E2200. This can result in Linux 3.10 failing to boot with: >>>>>> "This kernel requires the following features not present on the CPU: >>>>>> movbe >>>>>> Unable to boot - please use a kernel appropriate for your CPU.". >>>>> >>>>> That's a bit surprising, do you have a bootlog to share ? This tune >>>>> file shouldn't >>>>> impact the kernel build options, and if it is, that's a bug. >>>>> >>>>> If the error shows up on the switch to userspace, then that's a different story. >>>>> >>>>> Bruce >>>>> >>>>>> >>>>>> Signed-off-by: Jonathan Liu <net147@gmail.com> >>>>>> --- >>>>>> meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- >>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>>> >>>>>> diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf >>>>>> index ff5cbc9..f5d9cd5 100644 >>>>>> --- a/meta-yocto-bsp/conf/machine/genericx86.conf >>>>>> +++ b/meta-yocto-bsp/conf/machine/genericx86.conf >>>>>> @@ -3,7 +3,7 @@ >>>>>> >>>>>> #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. >>>>>> >>>>>> -include conf/machine/include/tune-atom.inc >>>>>> +include conf/machine/include/tune-i586.inc >>>>>> >>>>>> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" >>>>>> >>>>>> -- >>>>>> 1.8.4 >>>>>> >>>>>> _______________________________________________ >>>>>> poky mailing list >>>>>> poky@yoctoproject.org >>>>>> https://lists.yoctoproject.org/listinfo/poky >>>>> >>>>> >>>>> >>>>> -- >>>>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>>>> thee at its end" >>> >>> >>> >>> -- >>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>> thee at its end" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 7:46 ` Jonathan Liu @ 2013-09-04 12:54 ` Bruce Ashfield 2013-09-04 14:25 ` Burton, Ross 0 siblings, 1 reply; 12+ messages in thread From: Bruce Ashfield @ 2013-09-04 12:54 UTC (permalink / raw) To: Jonathan Liu; +Cc: Darren Hart, poky@yoctoproject.org On 13-09-04 03:46 AM, Jonathan Liu wrote: > On 4 September 2013 14:12, Jonathan Liu <net147@gmail.com> wrote: >> On 4 September 2013 13:56, Jonathan Liu <net147@gmail.com> wrote: >>> On 4 September 2013 13:44, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >>>> On Tue, Sep 3, 2013 at 11:30 PM, Jonathan Liu <net147@gmail.com> wrote: >>>>> Hi Bruce, >>>>> >>>>> The kernel output is the following: >>>>> Loading /vmlinuz.........ready. >>>>> This kernel requires the following features not present on the CPU: >>>>> movbe >>>>> Unable to boot - please use a kernel appropriate for your CPU. >>>>> >>>>> It stops at that stage and the kernel doesn't boot at all. I started >>>>> having this issue after switching my BSP to Linux 3.10. >>>> >>>> I take it your BSP is based on the genericx86 BSP/configuration ? The entire >>>> kernel build is done with: >>>> >>>> oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} >>>> CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} >>>> >>>> And unless you've put something in KERNEL_EXTRA_ARGS, that means >>>> the kernel configuration and its own Makefiles determine all compile flags and >>>> optimizations. >>>> >>>> So switching that config file should have no impact on the build. >>>> >>>> To confirm .. you are saying after that change you can boot again ? Best to >>>> hear from Darren/Tom or Ross on this one. >>>> >>>> Bruce >>> >>> You're right. It doesn't seem to have any impact. >>> Please disregard this patch. >>> >>> I will try to look into this further to work out what is enabling the >>> use of movbe in the kernel. >> >> I suspect it is CONFIG_MATOM=y in the kernel config (see >> http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=2b9b6d8c715b23fa119261c32ad360681f4464a9). >> I am rebuilding my image to test. > > I have confirmed it is CONFIG_MATOM=y that was causing the boot issue. That would definitely make a difference. If you are using the genericx86 PC, the default tuning was atom+ IIRC (a line has to be drawn somewhere), and you can discuss that with the Intel guys. But you can easily carry a configuration fragment in your own layer that disables that option if you want that same BSP to work on your platform. Cheers, Bruce > > Regards, > Jonathan > >> >> Regards, >> Jonathan >> >>> >>> Regards, >>> Jonathan >>> >>>> >>>>> >>>>> Regards, >>>>> Jonathan >>>>> >>>>> On 4 September 2013 13:23, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: >>>>>> On Tue, Sep 3, 2013 at 9:43 PM, Jonathan Liu <net147@gmail.com> wrote: >>>>>>> Tuning for Intel Atom CPU can in result instructions being used that are >>>>>>> not compatible with older x86 CPUs such as Intel Pentium Dual-Core >>>>>>> E2200. This can result in Linux 3.10 failing to boot with: >>>>>>> "This kernel requires the following features not present on the CPU: >>>>>>> movbe >>>>>>> Unable to boot - please use a kernel appropriate for your CPU.". >>>>>> >>>>>> That's a bit surprising, do you have a bootlog to share ? This tune >>>>>> file shouldn't >>>>>> impact the kernel build options, and if it is, that's a bug. >>>>>> >>>>>> If the error shows up on the switch to userspace, then that's a different story. >>>>>> >>>>>> Bruce >>>>>> >>>>>>> >>>>>>> Signed-off-by: Jonathan Liu <net147@gmail.com> >>>>>>> --- >>>>>>> meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- >>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>>>> >>>>>>> diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf >>>>>>> index ff5cbc9..f5d9cd5 100644 >>>>>>> --- a/meta-yocto-bsp/conf/machine/genericx86.conf >>>>>>> +++ b/meta-yocto-bsp/conf/machine/genericx86.conf >>>>>>> @@ -3,7 +3,7 @@ >>>>>>> >>>>>>> #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. >>>>>>> >>>>>>> -include conf/machine/include/tune-atom.inc >>>>>>> +include conf/machine/include/tune-i586.inc >>>>>>> >>>>>>> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" >>>>>>> >>>>>>> -- >>>>>>> 1.8.4 >>>>>>> >>>>>>> _______________________________________________ >>>>>>> poky mailing list >>>>>>> poky@yoctoproject.org >>>>>>> https://lists.yoctoproject.org/listinfo/poky >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>>>>> thee at its end" >>>> >>>> >>>> >>>> -- >>>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>>> thee at its end" > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 12:54 ` Bruce Ashfield @ 2013-09-04 14:25 ` Burton, Ross 2013-09-04 14:28 ` Jonathan Liu 0 siblings, 1 reply; 12+ messages in thread From: Burton, Ross @ 2013-09-04 14:25 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky@yoctoproject.org, Darren Hart On 4 September 2013 13:54, Bruce Ashfield <bruce.ashfield@windriver.com> wrote: >> I have confirmed it is CONFIG_MATOM=y that was causing the boot issue. > > That would definitely make a difference. If you are using the genericx86 > PC, the default tuning was atom+ IIRC (a line has to be drawn somewhere), > and you can discuss that with the Intel guys. > > But you can easily carry a configuration fragment in your own layer that > disables that option if you want that same BSP to work on your platform. I'd be inclined to say that the line for genericx86 is "atom onwards" and Pentium is sufficiently different to justify its own BSP. Ross ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 14:25 ` Burton, Ross @ 2013-09-04 14:28 ` Jonathan Liu 2013-09-04 14:49 ` Burton, Ross 0 siblings, 1 reply; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 14:28 UTC (permalink / raw) To: Burton, Ross; +Cc: Darren Hart, poky@yoctoproject.org On 5/09/2013 12:25 AM, Burton, Ross wrote: > On 4 September 2013 13:54, Bruce Ashfield <bruce.ashfield@windriver.com> wrote: >>> I have confirmed it is CONFIG_MATOM=y that was causing the boot issue. >> That would definitely make a difference. If you are using the genericx86 >> PC, the default tuning was atom+ IIRC (a line has to be drawn somewhere), >> and you can discuss that with the Intel guys. >> >> But you can easily carry a configuration fragment in your own layer that >> disables that option if you want that same BSP to work on your platform. > I'd be inclined to say that the line for genericx86 is "atom onwards" > and Pentium is sufficiently different to justify its own BSP. > > Ross Is CONFIG_MATOM=y being used for genericx86? Using CONFIG_MATOM=y with Linux 3.10 seems to require MOVBE instruction which is only available on Intel Atom... Regards, Jonathan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 14:28 ` Jonathan Liu @ 2013-09-04 14:49 ` Burton, Ross 0 siblings, 0 replies; 12+ messages in thread From: Burton, Ross @ 2013-09-04 14:49 UTC (permalink / raw) To: Jonathan Liu; +Cc: Darren Hart, poky@yoctoproject.org On 4 September 2013 15:28, Jonathan Liu <net147@gmail.com> wrote: > Is CONFIG_MATOM=y being used for genericx86? > Using CONFIG_MATOM=y with Linux 3.10 seems to require MOVBE instruction > which is only available on Intel Atom... ross@melchett /data/poky-master/tmp/work/genericx86-poky-linux/linux-yocto/3.8.13+gitAUTOINC+b60144f698_f20047520a-r4.2/linux-genericx86-standard-build $ grep MATOM .config # CONFIG_MATOM is not set Apparently not. Ross ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] genericx86: tune for i586 instead of atom 2013-09-04 1:43 [PATCH] genericx86: tune for i586 instead of atom Jonathan Liu 2013-09-04 3:23 ` Bruce Ashfield @ 2013-09-04 4:20 ` Jonathan Liu 1 sibling, 0 replies; 12+ messages in thread From: Jonathan Liu @ 2013-09-04 4:20 UTC (permalink / raw) To: poky@yoctoproject.org On 4 September 2013 11:43, Jonathan Liu <net147@gmail.com> wrote: > Tuning for Intel Atom CPU can in result instructions being used that are > not compatible with older x86 CPUs such as Intel Pentium Dual-Core > E2200. This can result in Linux 3.10 failing to boot with: > "This kernel requires the following features not present on the CPU: > movbe > Unable to boot - please use a kernel appropriate for your CPU.". > > Signed-off-by: Jonathan Liu <net147@gmail.com> Please disregard this patch. It doesn't actually fix the kernel boot issue mentioned. Regards, Jonathan > --- > meta-yocto-bsp/conf/machine/genericx86.conf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf > index ff5cbc9..f5d9cd5 100644 > --- a/meta-yocto-bsp/conf/machine/genericx86.conf > +++ b/meta-yocto-bsp/conf/machine/genericx86.conf > @@ -3,7 +3,7 @@ > > #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. > > -include conf/machine/include/tune-atom.inc > +include conf/machine/include/tune-i586.inc > > MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa" > > -- > 1.8.4 > ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-09-04 14:49 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-04 1:43 [PATCH] genericx86: tune for i586 instead of atom Jonathan Liu 2013-09-04 3:23 ` Bruce Ashfield 2013-09-04 3:30 ` Jonathan Liu 2013-09-04 3:44 ` Bruce Ashfield 2013-09-04 3:56 ` Jonathan Liu 2013-09-04 4:12 ` Jonathan Liu 2013-09-04 7:46 ` Jonathan Liu 2013-09-04 12:54 ` Bruce Ashfield 2013-09-04 14:25 ` Burton, Ross 2013-09-04 14:28 ` Jonathan Liu 2013-09-04 14:49 ` Burton, Ross 2013-09-04 4:20 ` Jonathan Liu
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.