gpt4 book ai didi

FriendlyARM 的 Linux 内核编译器

转载 作者:太空宇宙 更新时间:2023-11-04 03:38:00 24 4
gpt4 key购买 nike

我正在尝试为我的FriendlyARM 编译Linux 内核,但收到此错误:

kevin@kevin-VirtualBox:~/Desktop/FriendlyARM/linux-2.6.38-friendlyarm-newgccpatched$ make
make: arm-linux-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
kevin@kevin-VirtualBox:~/Desktop/FriendlyARM/linux-2.6.38-friendlyarm-newgccpatched$

有没有简单的方法可以解决这个问题?
我以前从未这样做过,因此,如果我问了一个愚蠢的问题,请原谅我。

最佳答案

首先,你需要有arm交叉编译工具链。例如arm-none-linux-gnueabi。您可以下载here

成功安装工具链后,请按照以下步骤编译内核。

  • cd 到内核目录
  • 执行
  • $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-defconfig

关于FriendlyARM 的 Linux 内核编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30916884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com