问题描述
试图编译Linux内核为ARM平台的Ubuntu的虚拟机上。
$让ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi-
据如下失败
ARM-NONE-Linux的gnueabi-GCC:未找到
尝试安装
$ sudo易于得到安装臂无-Linux的gnueabi-GCCE:无法找到包臂无-Linux的gnueabi-GCC
在哪里可以找到正确的包?如何将它包含在系统中? (我发现一对夫妇的在线链接,并没有为我工作)。这将是巨大的,如果你能提供正确的解决方案或引用。
-
从下载的
或
获取臂无-Linux的gnueabi工具链的正确版本(即目标定位
的GNU / Linux
,而不是EABI
)。 -
解压缩它
焦油xvf命令臂2013.05-24臂-NONE-Linux的gnueabi-i686的-PC-Linux的gnu.tar.bz2
-
开放的.bashrc
六的.bashrc
在末尾添加下面的COMAND
出口PATH = $ PATH:{路径工具链}臂2013.05 /箱
例如
出口PATH = $ PATH:/home/vinay/under_linux/arm-2013.05/bin
保存并退出终端。
然后就可以交叉编译每次不出口。
也采取正确的工具链有两个可用的工具链根据您的要求进行选择。
Cross编译错误"臂无 - EABI-G ++无法找到入口符号QUOT;
Trying to compile Linux kernel for arm platform on a Ubuntu virtual machine
$make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
It fails as follows
arm-none-linux-gnueabi-gcc: not found
Tried to install
$sudo apt-get install arm-none-linux-gnueabi-gcc
E: unable to locate package arm-none-linux-gnueabi-gcc
Where to find the correct package? how to include it in the system? (I found a couple of links on line that didn't work for me). It would be great if you could provide a correct solution or reference.
Download arm-2013.05-24-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 from https://sourcery.mentor.com/GNUToolchain/
or https://sourcery.mentor.com/sgpp/lite/arm/portal/subscription?@template=lite
Get correct version of the arm-none-linux-gnueabi toolchain (i.e. targetting
GNU/Linux
rather thanEABI
).untar it
tar xvf arm-2013.05-24-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
open bashrc
vi .bashrc
at the end add below comand
export PATH=$PATH:{path to toolchain}arm-2013.05/bin
e.g
export PATH=$PATH:/home/vinay/under_linux/arm-2013.05/bin
save it and quit the terminal.
then you can cross-compile without everytime export.
Also take of correct toolchain there are two toolchain available choose according to your requirement.
Cross compile error "arm-none-eabi-g++ cannot find entry symbol"
这篇关于关于在Ubuntu上安装VM工具链ARM咨询(64位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!