xilinx-arm-linux cross compilation chain installation

First of all, explain why you need to install the xilinx-arm-linux compilation chain, because you want to use the Zedboard development of Xilinx: you need to use the xilinx-arm-linux cross compilation chain on the Linux system, compile the C file, and copy the compiled file to the Zedboard That's it. The installation steps are as follows:

1. Enter the Ubuntu/Centos system, enter sudo passwd root in the terminal, you will be asked to enter the user password, then reset the root password, enter su root after the reset, and then enter the just reset root password to enter root;

2. In the root directory, create a zed folder: mkdir zed; create a tool under zed, and copy the downloaded xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin to the tool directory. http://pan.baidu.com/s/1nvMWAHN (download URL)

3. Enter the tool folder: cd /root/zed/tool

4. chmod 777 xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin, increase the permissions of this file, then ./xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin execute this file,

(Error here: Error: Missing 32-bit libraries on 64-bit Linux host

    Workaround: if you have a missing library - for example:

libstdc++.so.5
you should do:
yum whatprovides libstdc++.so.5
compat-libstdc++-33.i386                 3.2.3-61               fedora
and then you can do:
yum install compat-libstdc++-33.i386

and your missing library will be installed,错误解决)

5. After solving, execute ./xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin, and keep pressing enter until it is installed.

6. After the installation is complete, you need to set the environment variables,

The way to set environment variables is: enter export CROSS_COMPILE=arm-xilinx-linux-gnueabi-

export PATH=/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin:$PATH

You can edit the .bashrc file in the directory, and save the command for setting environment variables in .bashrc, because every time you open the terminal, the system will automatically run the .bashrc file, so after saving the settings, close the terminal and reopen it. No need to set the environment every time.

7. Enter arm-xilinx-linux-gnueabi-gcc -v after completion to display relevant information

8. Finally, when using the cross-compilation chain, just enter arm-xilinx-linux-gnueabi-gcc ac -oa (ac is the file to be compiled, a is the output file)

Copy the output file to Zedboard to run it.

Reference: www.bing.com & http://www.cnblogs.com/ccTec/p/5518041.html



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325951950&siteId=291194637
Recommended