Khan !!! This blog was written a few days ago, but there is an error, resulting in uboot compilation errors, only to find the original problem: Decompress the arm-linux-gcc-4.4.3.tgz, the file configuration error, what I saw in a book is configuring/etc/bash. bashrc file. This is incorrect. Configure the/etc/profile file..
Port to every one on the Development BoardCodeIt must be cross-compiled before it can be run in the Development Board environment.
Here I use arm-linux-gcc-4.4.3.tgz, of course, you can download other versions online, you can also set up. I remember building it before, right should be learned. If cross-compilation is used, we recommend that you download it.
The following describes how to build a cross-compilation environment:
Copy the arm-linux-gcc-4.4.3.tgz to the/home/directory, unzip: Tar xzvf arm-linux-gcc-4.4.3tgz, extract: friendlyarm/toolschain/4.4.3/, where bin/below you can see: Arm-Linux-GCC. Copy the friendlyarm directory to/opt /.
Now we have the required cross-compilation tool chain: Arm-Linux-GCC.
Finally, you need to: CD/etc/, and find a configuration file: Bash. bashrc. Open this file,
Add: Export Path = $ path:/opt/friendlyarm/toolschain/4.4.3/bin in the last line to specify the path. Restart the instance.
Test: 1. Enter "arm-Linux-gcc-V" in the terminal. The GCC version 4.4.3 is displayed, indicating that the tool chain for cross compilation has been installed.
2. Create a New. c file, compile it with arm-Linux-GCC, and generate the binary file.