Preparations directory
If you are installing Ubuntu14.04 (32bit) virtual machine, based on the user directory, such as "/ home / z / zynq_work"; if it is Linux Ubuntu Win10 subsystem is installed, is established under Win10 disk directory, such as "E : / zynq_work ", then the sub-system in Ubuntu is" / mnt / e / zynq_work ". Virtual machines need to confirm access to the directory. Taking <WORK> used to represent the working directory, the virtual machine is "/ home / z / zynq_work", a subsystem is "/ mnt / e / zynq_work".
The Zynq core board supporting software copied to the working directory. For virtual machine after installing VMware Tools directly dragged into the family to stay.
Cross-compiler tool set
Toolchain subdirectory <WORK> is the directory where the compiler tool archive:
Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux.tar.bz2
Ubuntu open a terminal window, execute:
$ cd <WORK>/Toolchain
$ tar -jxvf Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux.tar.bz2
After a period of time to complete the unzip package. If there decompress directly in the Win10 package, it seems insufficient privileges will fail.
Set the system tool path, Note Replace <WORK>
$ export PATH=$PATH:<WORK>/Toolchain/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin
Setting is only effective for the current terminal. For permanent changes, you need to add more export command to the user startup script file: ~ / .bashrc
$ vim ~/.bashrc
In the virtual machine can:
$ sudo gedit ~/.bashrc
To take effect and check the PATH:
$ source ~/.bashrc
$ echo $PATH
Check the compiler:
$ arm-xilinx-linux-gnueabi-gcc -v
If the installation is successful, the last line shows the version of gcc:
gcc version 4.6.1 (Sourcery_CodeBench_Lite 2011.09-50)
Delete package Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux.tar.bz2
Installation of other necessary tools
Install some commonly used tools and software libraries, be selected
Ubuntu version is less than 16 execution:
$ sudo apt-get install build-essential git-core libncurses5-dev flex bison texinfo zip unzip zlib1g-dev gettext gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev g++ u-boot-tools xz-utils
Ubuntu version 16 and above perform:
$ sudo apt-get install build-essential git-core libncurses5-dev flex bison texinfo zip unzip zlib1g-dev gettext gperf libsdl1.2-dev libesd0-dev libwxgtk3.0-dev g++ u-boot-tools xz-utils
After you install the update at
$ sudo apt-get update
Related Packages Description:
Package |
Features |
Explanation |
build-essential |
Compile c / c ++ |
Dependence libc6-dev |
git-core |
Distributed version control |
essential |
libncurses5-dev |
Ncurses是一个能提供功能键定义(快捷键),屏幕绘制以及基于文本终端的图形互动功能的动态库 |
必需 |
flex bison |
语法分析 |
|
texinfo |
文档系统,可用于创建PDF、HTML等文档 |
必需 |
zip unzip |
压缩解压 |
|
zlib1g-dev |
实现gzip和PKZIP中的deflate压缩方法的库 |
|
gettext |
GNU国际化与本地化函数库 |
|
gperf |
键集合生成完美的哈希函数 |
|
libsdl1.2-dev |
SDL库 |
|
libesd0-dev |
将几个数字化音频流混合在一起,供单个设备播放 |
x |
libwxgtk3.0-dev |
|
|
g++ |
GCC编译器 |
必需 |
u-boot-tools |
u-boot工具 |
必需 |
xz-utils |
XZ压缩格式 |
|
至此,开发环境基本搭建完成。