1 SDK搭建所需資料
-
芯片必須和選的SDK的版本匹配,否則可能有未知的問題,畢竟經過幾次被收購,原freescale的東西基本不被新東家NXP看好了。我們以T2080芯片為例,固我們可以選用最新版本sdk。
-
宿主機環境建議用通用的Ubuntu,遇到問題好解決。
Ubuntu14.04
新手建議使用,和官方推薦一致,本人用macos dp 虛擬ubuntu18.04.2 64bit進行開發實驗老鳥,喜歡折騰
資源匯總()
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