Compile U-Boot command not found when the solution

U-Boot version I am using u-boot-2012.10, step is to compile

cd u-boot-2012.10
make s5p_goni_config
sudo make

Then, you will see an error message

/bin/bash: arm-linux-gcc: command not found 
dirname: missing operand 
Try 'dirname --help' for more information.

In the arm-linux-gcc confirm correct installation premise (can refer https://www.cnblogs.com/mfyfymeng/p/11895795.html install version 4.5.1 arm-linux-gcc), the following solution

sudo ln -s /opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi-gcc /usr/bin/arm-linux-gcc

The meaning of this command is: an executable file for the /opt/FriendlyARM/toolschain/4.5.1/bin/ under the arm-none-linux-gnueabi-gcc symlink, link / usr / bin / under, / usr / bin / is / bin directory referred to bash /. Similarly, at compile time as long as this type of command not found error, you can use this method to solve. such as

/bin/bash: arm-linux-ld: command not found 

Then the corresponding solutions to

sudo ln -s /opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi-ld /usr/bin/arm-linux-ld

Guess you like

Origin www.cnblogs.com/mfyfymeng/p/12158644.html