Linux 3.19.0 内核上的 check-config 错误,在 Ubuntu 15.04 x86-64 下配置

Linux 3.19.0 内核上的 check-config 错误,在 Ubuntu 15.04 x86-64 下配置

我是配置 Linux 内核的新手,在运行 config-check 时收到以下错误:

check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/amd64-config.flavour.generic: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != m): CONFIG_NVRAM                                       
p mark<ENFORCED> policy<{'amd64': 'm', 'armhf': 'm', 'i386': 'm', 'powerpc-powerpc-e500mc': 'y', 'powerpc-powerpc-smp': 'y'}> note<boot essential on powerpc LP:942193>
check-config: FAIL (n != y): CONFIG_VFAT_FS                                     
y mark<ENFORCED> note<needed on arm to ensure we can write the kernel when replacing>
check-config: 41/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/amd64-config.flavour.lowlatency: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: 42/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/i386-config.flavour.generic: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: 42/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/i386-config.flavour.lowlatency: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: 42/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/armhf-config.flavour.generic: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 38/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/armhf-config.flavour.generic-lpae: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 38/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/arm64-config.flavour.generic: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_DEBUG_RODATA                                
p mark<ENFORCED> policy<{'amd64': 'y', 'i386': 'y', 'armhf': 'y'}>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 38/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/ppc64el-config.flavour.generic: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (y != -): CONFIG_CC_STACKPROTECTOR_REGULAR           
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_RODATA                                
p mark<ENFORCED> policy<{'amd64': 'y', 'i386': 'y', 'armhf': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_SET_MODULE_RONX                       
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 35/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/powerpc-config.flavour.powerpc-e500mc: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (y != -): CONFIG_CC_STACKPROTECTOR_REGULAR           
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_RODATA                                
p mark<ENFORCED> policy<{'amd64': 'y', 'i386': 'y', 'armhf': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_SET_MODULE_RONX                       
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 35/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/powerpc-config.flavour.powerpc-smp: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (y != -): CONFIG_CC_STACKPROTECTOR_REGULAR           
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_RODATA                                
p mark<ENFORCED> policy<{'amd64': 'y', 'i386': 'y', 'armhf': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_SET_MODULE_RONX                       
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 36/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/powerpc-config.flavour.powerpc64-emb: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_NVRAM                                       
p mark<ENFORCED> policy<{'amd64': 'm', 'armhf': 'm', 'i386': 'm', 'powerpc-powerpc-e500mc': 'y', 'powerpc-powerpc-smp': 'y'}> note<boot essential on powerpc LP:942193>
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (y != -): CONFIG_CC_STACKPROTECTOR_REGULAR           
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_RODATA                                
p mark<ENFORCED> policy<{'amd64': 'y', 'i386': 'y', 'armhf': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_SET_MODULE_RONX                       
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 34/43 checks passed -- exit 1
check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/powerpc-config.flavour.powerpc64-smp: loading config
check-config: /home/aaron/linux-3.19.0/debian.master/config/annotations loading annotations
check-config: FAIL (y != -): CONFIG_NVRAM                                       
p mark<ENFORCED> policy<{'amd64': 'm', 'armhf': 'm', 'i386': 'm', 'powerpc-powerpc-e500mc': 'y', 'powerpc-powerpc-smp': 'y'}> note<boot essential on powerpc LP:942193>
check-config: FAIL (y != -): CONFIG_THERM_ADT746X                               
p mark<ENFORCED> policy<{'powerpc-powerpc-smp': 'y'}> note<LP:#923094>
check-config: FAIL (y != -): CONFIG_XEN_ACPI_PROCESSOR                  
p mark<ENFORCED> policy<{'i386': 'y', 'amd64': 'y'}> <boot essential on XEN host>
check-config: FAIL (y != -): CONFIG_EFI_VARS                                    
p mark<ENFORCED> policy<{'amd64': 'y', 'arm64': 'y', 'i386': 'y'}> note<EFI boot requirement (d-i) LP:#837332>
check-config: FAIL (y != -): CONFIG_CC_STACKPROTECTOR_REGULAR           
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_RODATA                                
p mark<ENFORCED> policy<{'amd64': 'y', 'i386': 'y', 'armhf': 'y'}>
check-config: FAIL (y != -): CONFIG_DEBUG_SET_MODULE_RONX                       
p mark<ENFORCED> policy<{'powerpc': '-', 'ppc64el': '-', '*': 'y'}>
check-config: FAIL (n != -): CONFIG_ACPI_CUSTOM_METHOD                  
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}> note<SECURITY: allows arbitrary execution>
check-config: FAIL (n != -): CONFIG_COMPAT_VDSO                              
p mark<ENFORCED> policy<{'amd64': 'n', 'i386': 'n'}>
check-config: 34/43 checks passed -- exit 1

*** ERROR: 12 config-check failures detected

我以前没有这样做过,但我猜当我配置内核时,我有一些选项没有结合在一起。如何读取这些日志以便返回并更改我的配置,以便可以成功编译 x86-64?我是否也必须满足其他平台的配置检查,或者这不是我正确理解/需要担心的事情?

答案1

从页面: https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel 它说: fakeroot debian/rules editconfigs # 你需要遍历每个 (Y, Exit, Y, Exit..) 或稍后收到有关配置的投诉

因此,即使我只想构建 amd64,我也尝试按照几种架构的问题一一进行操作。并且它可以正常工作,检查配置不会出现错误。

答案2

您可以按照指南进行操作 https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

虽然 apt-get source linux-image-$(uname -r)
可以帮助您在 ubuntu 中获得与当前 Linux 内核相同的版本,但配置它是一项繁琐的任务。
当你使用时, fakeroot debian/rules editconfigs
你会面临无数的选择。一旦你开始编译

fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic

您可能会遇到上面发布的错误。那么你可以

  1. 将其与您自己的配置版本进行比较

    /boot/config-3.xx.-generic
    或类似的东西。一旦找出差异,请尝试设置相同的值以确保配置几乎相同(您可以忽略中间的一些小设置),然后开始构建内核(如果正确完成,可以保证构建成功menuconfigfakeroot debian/rules editconfigs

  2. (请记住,不建议这样做,但您可以尝试一下)将项目从 复制/boot/config-3.xx.-generic 到构建位置kernel_src/debian/build/build-generic/.config (这是在构建开始并失败后生成的)。比较差异(排除次要差异)并相应地修改配置,然后开始构建。 (不能保证构建成功)

我已经在 VirtualBox 上为 Ubuntu 14.04 完成了它。 (与您要构建的 Linux 版本和已安装的内核进行交叉检查,它的第四个数字(更正、补丁、安全修复)中的差异不应超过几个数字,例如 3.19.0-25 与 3.19.0 -39)http://www.linfo.org/kernel_version_numbering.html

如果它抱怨 ncurses 的使用,

sudo apt-get install libncurses5-dev

相关内容