T2080 开发环境搭建基于Yocto SDK

1 SDK搭建所需资料

2 Ubuntu18.04.2安装

本人用虚拟机pd安装,安装方式大同小异,没难点,自行安装

3 注意细节

1 各个sdk版本含义
The source ISO contains the package source tarballs and Yocto Project recipes. It can be installed and used to do non-cache build.
The cache ISO contains the pre-built cache binaries. To avoid a long time build, you can install the source ISO and the cache ISO in the same installation folder.
The image ISO includes all prebuilt images: flash images, standalone toolchain installer, HD rootfs images and small images.
The source ISO can be used separately. The cache ISO and the source ISO should work together.

2 必要环境软件包安装

Yocto Project需要在主机上安装一些软件包。使用以下步骤准备Yocto Project环境。通常,Yocto Project可以Python-2.7.3或更高版本的最新Linux发行版(不支持python3),git-1.7.8或更高版本,tar-1.24或更高版本以及安装的必需软件包。在某些Linux发行版上,默认的Python不是2.7.x,例如CentOS 6.5安装python 2.6.6。按照下面的说明在自定义路径中安装Python 2.7.x而不是覆盖系统默认的python,覆盖可能会导致系统实用程序中断

3 具体安装如下:
3.1 python 安装

$ wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
$ tar -xf Python-2.7.6.tar.xz
$ cd Python-2.7.6
$ sudo mkdir -p /opt/python-2.7.6;
$ ./configure --prefix=/opt/ =/opt/python-2.7.6
$ make
$ sudo make install

3.2运行下面的export命令以确保使用python 2.7.x进行Yocto构建

$ export PATH=/opt/ = /opt/python-2.7.6/bin:$/bin:$ PATH

3.3对于Ubuntu和Debian主机:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm

Ubuntu-64b需要额外的包:

$ sudo apt-get install lib32z1 lib32ncurses5 lib32ncurses5-dev lib32ncurses5 lib32z1
    原文作者:fafactx
    原文地址: https://www.jianshu.com/p/b9d1e405405e
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞