nxp yocto guide
推荐使用ubuntu 18.0.4 ,在构建使用虚拟机时,磁盘内存设置300G.
1. repo set
1 > Create a bin folder in the home directory.
$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
将repo 里的REPO_URL 替换为:
REPO_URL = ‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo’
2 > Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable.
export PATH=~/bin:$PATH
2.git config
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ git config --list
3.repo nxp soc source
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest
-b imx-linux-gatesgarth -m imx-5.10.9-1.0.0.xml
$ repo sync
问题1 :如果找不到 python env
ln -s /usr/bin/python3 /usr/bin/python
问题2 :如果访问不到github.com
vi /etc/hosts 添加
13.229.188.59 github.com
13.114.40.48 github.com
repo sync 同步代码
doit@doit:~/imx-yocto-bsp$ ls
fsl-setup-release.sh README README-IMXBSP setup-environment sources
编译
DISTRO=fsl-imx-xwayland MACHINE=imx6ull source fsl-setup-release.sh -b build-xwayland-imx6ull