[英]Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work
I'm trying to follow this guide . 我正在尝试遵循本指南 。 I'm running both Ubuntu 12.04.5 LTS (GNU/Linux 3.13.0-74-generic x86_64) on "real" hardware and 14.04.1 via VirtualBox on my Mac.
我在“真实”硬件上运行Ubuntu 12.04.5 LTS(GNU / Linux 3.13.0-74-通用x86_64),并在Mac上通过VirtualBox运行14.04.1。 The problem is that I don't even get past Step 1:
问题是我什至没有走过第一步:
hoffmann@angl99:~$ export CCPREFIX=/home/hoffmann/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
hoffmann@angl99:~$ ${CCPREFIX}gcc -v
I'm then getting the following error: 然后出现以下错误:
-bash: /home/hoffmann/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc: No such file or directory
However, the file that I'm told is missing is certainly there: 但是,我被告知缺少的文件肯定存在:
hoffmann@angl99:~$ less /home/hoffmann/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
"/home/hoffmann/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc" may be a binary file. See it anyway?
This is probably the result of a basic error/misconception. 这可能是基本错误/误解的结果。 Could anybody suggest a solution?
有人可以提出解决方案吗? Thanks!
谢谢! Sebastian
塞巴斯蒂安
OK - I've worked it out (with the help of the person who posted the guide I'm trying to follow). 好的-我已经解决了这个问题(在发布了我要遵循的指南的人的帮助下)。 It was indeed a basic issue... The cross compiler binaries I was going to use are 32-bit and I was running a 64-bit system.
确实,这是一个基本问题。我要使用的交叉编译器二进制文件是32位,而我正在运行64位系统。 I've now installed a 32-bit Ubuntu on VirtualBox and everything is running smoothly.
现在,我在VirtualBox上安装了32位Ubuntu,一切运行顺利。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.