Page tree
Skip to end of metadata
Go to start of metadata

配置系统

i2X-6UB开发板的开发环境基于Ubuntu 16.04 64bit操作系统,内存最小4GB,硬盘至少80GB,推荐使用SSD硬盘,以获得更快的编译速度。Ubuntu 16.04系统安装好后,安装以下必要软件包:

sudo apt-get install build-essential git-core libncurses5-dev flex \
	bison texinfo zip unzip zlib1g-dev gettext u-boot-tools g++ \
	xz-utils mtd-utils gawk diffstat gcc-multilib python git make \
	gcc g++ diffstat bzip2 gawk chrpath wget cpio texinfo lzop


配置工具链

i2SOM提供的编译工具链也是64bit,编译工具链有两种,meta-toolchain和ADK-toolchain。meta-toolchain是基本工具链,不包含其它第三方软件库,类以于Linaro的工具链。ADK-toolchain是包含系统镜像中第三方软件库的工具链,可以方便地部署于应用开发环境中。

文件名工具链分类说明适合用户

i2SOM-yocto-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-2.2-r0.sh

meta-toolchain基础工具链BSP(U-Boot, Linux Kernel)开发者

i2SOM-yocto-glibc-x86_64-core-image-base-cortexa7hf-neon-toolchain-2.2-r0.sh

ADK-toolchaincore-image-base系统镜像的应用开发工具链应用开发者

i2SOM-yocto-glibc-x86_64-i2som-image-qt-fb-cortexa7hf-neon-toolchain-2.2-r0.sh

ADK-toolchaini2som-image-qt系统镜像的应用开发工具链应用开发者


下面以安装core-image-base系统镜的工具链为例。

$ ./i2SOM-yocto-glibc-x86_64-core-image-base-cortexa7hf-neon-toolchain-2.2-r0.sh 
i2SOM Yocto SDK installer version 2.2-r0
========================================
Enter target directory for SDK (default: /opt/i2SOM-yocto/2.2-r0): 
You are about to install the SDK to "/opt/i2SOM-yocto/2.2-r0". Proceed[Y/n]? Y
[sudo] password for build: 
Extracting SDK..............................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /opt/i2SOM-yocto/2.2-r0/environment-setup-cortexa7hf-neon-i2som-linux-gnueabi


验证开发工具是否安装正确,显示版本信息就表示工具链安装正确。

$ source /opt/i2SOM-yocto/2.2-r0/environment-setup-cortexa7hf-neon-i2som-linux-gnueabi 
$ arm-i2som-linux-gnueabi-gcc --version
arm-i2som-linux-gnueabi-gcc (GCC) 6.2.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


按同样的方安可以安装i2som-image-qt系统镜的工具链。安装时请注意,不同工具链应存放在不同路径下,相同路径会有文件覆盖的情况。

  • No labels
Write a comment…