我正在试图编译和安装一个内核。在下载代码并配置安装之后,我成功地执行了以下命令:
# make bzImage
# make modules
# make但是当我尝试执行另一个命令时:
# make install我有个错误:
[root@Asterix linux-4.18.5]# make install
sh ./arch/x86/boot/install.sh 4.18.5 arch/x86/boot/bzImage \
System.map "/boot"
depmod: ERROR: could not open directory /lib/modules/4.18.5: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Kernel version 4.18.5 has no module directory /lib/modules/4.18.5
[root@Asterix linux-4.18.5]#我做错了什么?如何纠正此错误?
发布于 2018-08-28 21:02:29
修好了!
@安迪·道尔顿给了我答案!创建新内核并安装它的正确命令顺序是:
# make
# make install modules_install发布于 2018-08-29 22:25:26
现代香草内核甚至包括一些格式的直接包装选项:
.../linux$ make help...
Kernel packaging:
rpm-pkg - Build both source and binary RPM kernel packages
binrpm-pkg - Build only the binary kernel RPM package
deb-pkg - Build both source and binary deb kernel packages
bindeb-pkg - Build only the binary kernel deb package
snap-pkg - Build only the binary kernel snap package (will connect to external hosts)
tar-pkg - Build the kernel as an uncompressed tarball
targz-pkg - Build the kernel as a gzip compressed tarball
tarbz2-pkg - Build the kernel as a bzip2 compressed tarball
tarxz-pkg - Build the kernel as a xz compressed tarball...
因此,make binrpm-pkg应该直接构建一个(或几个)包(S),以便于处理。
https://unix.stackexchange.com/questions/465357
复制相似问题