It's been a long day and it's finally done.
Ubuntu does not have root permissions, just started with a lot of trouble, check a lot of information, finally Arm-linux-gcc:command not found problem solved.
Problem:
sudo tar jxvfcross-2.95.3.tar.bz2 Exportpath= $PATH:/usr/local/arm/2.95.3/bin Using Arm-linux-gcc–v to check for cross-compiler installation success Tar jxvfkernel.tar.bz2 Generate Kernel directory after decompression sudo make clean sudo makemenuconfig sudo make zimage Hint Error: Arm-linux-gcc:command NotFound Path there are/usr/local/arm/2.95.3/bin,/usr/local/arm/2.95.3/bin/under the ARM-LINUX-GCC file, but make, is not found ARM-LINUX-GCC |
Reason:
Exportpath= $PATH:/usr/local/arm/2.95.3/bin is to set the current user's path, and Sudo executes make, using superuser privileges, which also uses the Superuser path (but there is no/usr/local/arm/3.4.1/bin in this path) |
Workaround:
First open a shell with Superuser privileges:
Sudo–s
Under the current shell, set the environment variable:
Exportpath= $PATH:/usr/local/arm/2.95.3/bin
Then enter the kernel directory, make zimage, you can find the ARM-LINUX-GCC
Reprint Address: http://blog.sina.com.cn/s/blog_4670451c0100e1uw.html