【问题标题】:linux compile error Missing file arch/x86/boot/bzImagelinux编译错误缺少文件arch/x86/boot/bzImage
【发布时间】:2019-11-15 20:35:17
【问题描述】:

我正在尝试编译linux,但不断收到以下错误

$sudo make install
sh ./arch/x86/boot/install.sh 4.14.28-2018840814 arch/x86/boot/bzImage \
System.map "boot/"

*** Missing file: arch/x86/boot/bzImage
*** you need to run "make before "make install".

我遵循了这个方向,但坚持安装:

$ 使 mrproper

$ 制作菜单配置

$ make -j4

$ sudo make modules_install

$ sudo cp .config /boot/config-make kernelrelease

$ sudo make install

$ sudo 重启

【问题讨论】:

  • 你交叉编译了吗?
  • 运行 make 时有任何错误吗?很确定内核编译失败并且没有生成 bzImage

标签: linux linux-kernel


【解决方案1】:

在我的例子中,我在 Mint 19.2 系统中从源代码编译 Linux 5.3.11 内核并遇到了同样的问题。

您的脚本中缺少 bzImage 的创建。 在 modules_install 之前,您应该输入:

# make bzImage

就我而言,文件位于:

./arch/x86_64/boot/bzImage
./arch/x86/boot/bzImage

然后,剩下的步骤。

【讨论】:

  • 解决了问题!
  • 对于 Arm64 使用 make Image
猜你喜欢
  • 2013-08-11
  • 2013-01-10
  • 1970-01-01
  • 2021-06-05
  • 2019-05-07
  • 2023-03-14
  • 2014-10-12
  • 1970-01-01
相关资源
最近更新 更多