(1) select a path to store arm-linux-gcc. I chose homebook and created a folder named arm-
(1) select a path to store arm-linux-gcc. I chose/home/book and created a folder named arm-linux-gcc below.
(2) using cp EABI-4.3.3_Emdedsky_20100610.tar.bz2 arm-linux-gcc, copy the compressed package eabi-4.3.3_emdedsky_20100610.tar.bz2 to arm-linux-gcc VcD4KPHA + partition = "http://www.2cto.com/uploadfile/Collfiles/20140506/2014050608554314.png" alt = "\">
Record the file storage directory:
(4) configure the system environment variables and add the PATH of the cross-environment tool chain to the environment variable PATH. these tools can be used in any directory. Run the following command:
Open profile, add the path of the cross-compilation tool to this file, and save the file.
(5) Use the following command to make the environment variables take effect.
Enter "arm-linux" on the terminal and double-click the Tab. the environment variable is successfully set.
The cross-compilation environment of arm-linux-gcc is complete. When the kernel is compiled, an error message is displayed after you enter "make": arm-linux-gcc: Command not found. However, the compiling environment is indeed complete, and the reason is found from the Internet: export PATH = $ PATH: /home/book/arm-linux-gcc/opt/EmbedSky/4.3.3/bin is used to set the PATH of the current user, while sudo uses the superuser permission to execute make, that is, the super user PATH is used, but the super user PATH does not contain/home/book/arm-linux-gcc/opt/EmbedSky/4.3.3/bin.
Solution: Enter the super user account and enter: export PATH = $ PATH:/home/book/arm-linux-gcc/opt/EmbedSky/4.3.3/bin on the terminal. go to the kernel storage directory.
You can compile the kernel ~~~