当前位置: 技术问答>linux和unix
编译内核出现的错误
来源: 互联网 发布时间:2016-09-16
本文导语: 下面是错误的提示: include/asm/module.h:55:7: warning: "CONFIG_MGEODEGX1" is not defined fs/binfmt_aout.c: Assembler messages: fs/binfmt_aout.c:156: Error: suffix or operands invalid for `cmp' make[1]: *** [fs/binfmt_aout.o] 错误 1 make: *** [fs] 错...
下面是错误的提示:
include/asm/module.h:55:7: warning: "CONFIG_MGEODEGX1" is not defined
fs/binfmt_aout.c: Assembler messages:
fs/binfmt_aout.c:156: Error: suffix or operands invalid for `cmp'
make[1]: *** [fs/binfmt_aout.o] 错误 1
make: *** [fs] 错误 2
今天本人第一次编译内核,这个问题卡了好久阿,google搜到的英文看的不太懂。个人认为好像是menuconfig 对a.out的不支持,但是进入menuconfig对这那个蓝色界面又不知道怎么修改,望各位指点以下。谢谢!!!!
include/asm/module.h:55:7: warning: "CONFIG_MGEODEGX1" is not defined
fs/binfmt_aout.c: Assembler messages:
fs/binfmt_aout.c:156: Error: suffix or operands invalid for `cmp'
make[1]: *** [fs/binfmt_aout.o] 错误 1
make: *** [fs] 错误 2
今天本人第一次编译内核,这个问题卡了好久阿,google搜到的英文看的不太懂。个人认为好像是menuconfig 对a.out的不支持,但是进入menuconfig对这那个蓝色界面又不知道怎么修改,望各位指点以下。谢谢!!!!
|
就是你make menuconfig会生成一个.config文件,每个系统的/boot目录一般也有一个相应的当前运行内核的config文件。只要把它改名为.config放过内核顶级目录就可以了。这样子make oldconfig就载入了你当前内的配置。然后make,make_modules install,make install
|
应该是defconfig
你看看文件是否和下面的类似(片段)
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.22-git14
# Fri Jul 20 09:53:15 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_QUICKLIST=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
#
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
你看看文件是否和下面的类似(片段)
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.22-git14
# Fri Jul 20 09:53:15 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_QUICKLIST=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
#
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set