1 Overview
This section will install the Linux cross compiler ( xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin ) under the Ubuntu operating system in the virtual machine , which mainly includes the following steps.
2 Configure Ubuntu Permissions
Use WinSCP to copy the cross-compilation installation program xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin (stored in the Software folder) to Ubuntu . As shown in the figure, we put it in the path /home/zstar/Download , so in Terminal , use the following command in this path to change the permissions and set it as an executable file.
chmod +x xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin
Then use the following command to fix the error that /bin/sh points to dash instead of bash or other supported shell .
sudodpkg-reconfigure -plow dash
The interface shown in the figure will pop up, select <No> and press Enter.
3 Install cross-compilation tools
Execute the following command to run the installation program.
./xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin
During the installation process, follow the instructions below to set up the installation.
Where Would You Like to Install? is used to set the program installation path. Here, the default path of the local computer is used. If you want to change the path, please remember the path as it will be used later.
/home/zstar/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux
4Configure environment variables
Enter the following three export commands in Terminal to change the environment variables. Note that the PATH of the third export must be consistent with the actual installation path.
export ARCH=arm
exportCROSS_COMPILE=arm-xilinx-linux-gnueabi-
exportPATH=/home/zstar/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/:$PATH
Run the following command. If the version information is printed, the compilation environment is successfully built.
arm-xilinx-linux-gnueabi-gcc -v
This content is originally created by EEWORLD forum user ove . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source