First, the relevant information to obtain
I personally in the study mini2440 Development Board is followed by Vedon teacher's first video learning, video and materials I made a slight change, just changed the file organization structure. For information, please visit the Baidu Cloud link.
Link: Http://pan.baidu.com/s/1gfy7EmB Password: J6TM
Download the good information in the video supporting information under the "Q-Net JZ2440V2 main CD. iso" file, unzip or load with a virtual CD-ROM, you can get to the arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 cross compiler in the CD Tools directory.
The above information is too big, want to get a single cross-compiler file, please visit the following Baidu Cloud link directly.
Link: http://pan.baidu.com/s/1gfOWb31 Password: 8i6l
Second, install cross-compiler
1. Establish the mini2440 working directory, set up the workspace directory under Ubuntu home directory, and then set up s3c2440 directory, where all mini2440 related information is stored.
mkdir -P workspace/s3c2440/package/
2. Copy the downloaded cross-compiler to the Ubuntu virtual machine and store it in the/home/user/workspace/s3c2440/package/directory.
3. Unzip the cross-compiler into the/opt/directory
sudo tar -jxf arm-linux-gcc-3.4. 5-glibc-2.3. 6. tar. Bz2-c/opt/
4. Adding ARM-LINUX-GCC to an environment variable
Modify the. bashrc file in the home directory, add a row, and then execute the script to make the environment variable configuration effective immediately.
[Email protected]:~$ echo "Export path=\ $PATH:/opt/gcc-3.4.5-glibc-2.3.6/bin/" >>. BASHRC
[Email protected]:~$. . BASHRC
5. Confirm that the environment variable is configured successfully.
Check the version number of the ARM-LINUX-GCC, there is a version number to print out the description configuration OK, configuration failure will be prompted to find the ARM-LINUX-GCC command.
[Email protected]:~$ arm-linux-gcc -V
GCC 3.4. 5
[mini2440-008] Installing the ARM-LINUX-GCC Cross compiler