简体   繁体   中英

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. 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. I've now installed a 32-bit Ubuntu on VirtualBox and everything is running smoothly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM