From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Jonathan Liu <net147@gmail.com>
Cc: Darren Hart <dvhart@linux.intel.com>,
"poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: Re: [PATCH] genericx86: tune for i586 instead of atom
Date: Wed, 4 Sep 2013 08:54:28 -0400 [thread overview]
Message-ID: <52272D84.6050405@windriver.com> (raw)
In-Reply-To: <CANwerB3KCBuaq87oSWaze1B+_+DYmzokKoV1dk=S7Gj8EnLS4g@mail.gmail.com>
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
>
next prev parent reply other threads:[~2013-09-04 12:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52272D84.6050405@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=dvhart@linux.intel.com \
--cc=net147@gmail.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.