srkl 发表于 2004-3-19 09:40:32

编译新 2.6.4内核出错~~depmod:

首先我安装好Module-init-tools-3.0,然后编译内核,最后一步,出现了错误:

# make install
make: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.4/arch/i386/boot/install.sh 2.6.4 arch/i386/boot/bzImage System.map ""
depmod: cannot read ELF header from /lib/modules/2.6.4/modules.alias
depmod: /lib/modules/2.6.4/modules.ccwmap is not an ELF file
depmod: cannot read ELF header from /lib/modules/2.6.4/modules.dep
depmod: /lib/modules/2.6.4/modules.ieee1394map is not an ELF file
depmod: /lib/modules/2.6.4/modules.inputmap is not an ELF file
depmod: /lib/modules/2.6.4/modules.isapnpmap is not an ELF file
depmod: /lib/modules/2.6.4/modules.pcimap is not an ELF file
depmod: cannot read ELF header from /lib/modules/2.6.4/modules.symbols
depmod: /lib/modules/2.6.4/modules.usbmap is not an ELF file

我的编译步骤
make mrproper
make menuconfig
make
make install.
用的是rh9.0
:-(:-(:-(

felix 发表于 2004-3-19 10:28:55

内核配置文件中(.config)加上以下内容:

# Executable file formats
#
CONFIG_BINFMT_ELF=y
页: [1]
查看完整版本: 编译新 2.6.4内核出错~~depmod: