| Summary: | [FNC] Unable to set CONFIG_COMPAT=y to kernel config | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BSPs | Reporter: | Pavel Demenko <pavel.demenko> | ||||
| Component: | bsps-meta-intel | Assignee: | Darren Hart <dvhart> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | Medium | CC: | boon.leong.ong, logovskaya, rebecca.swee.fun.chang, tom.zanussi | ||||
| Version: | 1.6.1 | ||||||
| Target Milestone: | 1.7 M4 | ||||||
| Hardware: | MinnowBoard Max | ||||||
| OS: | x86_64 | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | Don't know | |||||
| Attachments: |
|
||||||
|
Description
Pavel Demenko
2014-09-30 13:54:42 UTC
This error is usually the result of just adding a specific config option without verifying that the dependencies listed in the Kconfig files are also added. If you aren't familiar with this, use menuconfig to navigate to the CONFIG_COMPAT option and read the help where the dependencies are listed in boolean logic. Check to see which are missing and include them in your configuratino fragment. for example: $ cat arch/x86/Kconfig | egrep "config COMPAT$" -A4 config COMPAT def_bool y depends on IA32_EMULATION || X86_X32 select ARCH_WANT_OLD_COMPAT_IPC Have you also enabled IA32_EMULATION? $ cat arch/x86/Kconfig | egrep "config IA32_EMULATION$" -A10 config IA32_EMULATION bool "IA32 Emulation" depends on X86_64 select BINFMT_ELF select COMPAT_BINFMT_ELF select HAVE_UID16 ---help--- Include code to run legacy 32-bit programs under a 64-bit kernel. You should likely turn this on, unless you're 100% sure that you don't have any 32-bit programs left. Generally speaking, I would agree that these should be enabled in meta-intel 64b BSPs. This solution worked for Pavel. I will use this bug to ensure the intel-common 64b BSPs get this change. This will go in to the meta-intel 1.7 release. Is there a desire to see this backported to the 1.6 release? Hi Darren, it would be great to see the fix backported to the 1.6 as will allow to VTune users to build sampling driver for meta-intel 64b BSPs out of the box. Thanks, Katya Patch prepared, tested, and sent to linux-yocto mailing list for the 3.17 and 3.14 kernels. Once merged, a subsequent update will be required to the current and daisy branches for the new meta SRCREV. Boon Leong and Rebecca, do you have any concerns with these configs being added to the ISG BSPs? If not, I can include them in the SRCREV update for meta-intel to include this change. To be clear, this enables CONFIG_COMPAT for x86_64 and X32 machines so they can execute 32b code. It does not force the inclusion of multilib or anything like that, it is strictly enabling support in the kernel (which is the recommendation of the Kconfig, and arguably strengthens the platform). Hi Darren,
Yup. We have no concern on this. Thanks for bringing that up.
This is fixed in the proposed meta-intel 1.7 dizzy release. |