Previously installed a REHAT6 Linux system, the cross-compilation to ignore, the results in the compilation of Uboot when the problem, the display can not find ARM-LINUX-GCC. So you build a cross-compilation environment. There are many mistakes. First the decompression did not add-c/in the back, after the directly created a directory, the extracted bin directory to the directory you created. There is still a problem. But in the end I succeeded, giving the operation process directly:
* * Copy the ARM-LINUX-GCC to any Linux directory, such as study, it is recommended that you create a working directory, so that you delete the package later.
#cd Study
#ls
#tar xvf arm-linux-gcc-4.5.1-c///You can use the tab-padded package name,-c/,c is uppercase plus-c/is the installation to the root directory
* * After extracting, your current directory will not have the extracted directory. You can go to the root directory to use #ls-a, you will find a more directory, this is your extracted directory.
#cd//Top level directory,
# VIM/ROOT/.BASHRC
* * At the end of adding export path= $PATH:/opt/friendlyarm/toolschain/4.1.5/bin save exit.
#source/ROOT/.BASHRC
* * Restart no problem, it is not a problem, restart the virtual machine, start testing
#arm-linux-gcc-v//view build results.
* * If you interrupt the last line with your cross-tool chain information, the build is successful. Otherwise, try again. There are many ways to combine the Internet.
How to build the Cross tool chain (test success)