关于Yocto环境构建流程笔记

本文详细介绍了在嵌入式Linux环境下使用Yocto Project进行编译的全过程,包括安装必要的软件包、设置git环境、初始化和同步Yocto项目、配置编译参数以及编译特定的Yocto镜像。
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev
sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils 
libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc

To install the “repo” utility, perform these steps:

  1. Create a bin folder in the home directory.
    Host Setup
    i.MX Yocto Project User’s Guide, Rev. L4.14.98-2.0.0_ga, 04/2019
    NXP Semiconductors 5
$ 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
2. Add the following line to the  .bashrc file to ensure that the  ~/bin folder is in your PATH variable.
export PATH=~/bin:$PATH

First make sure that git is set up properly with the commands below.

$ git config --global user.name "sunxiaolin2016"
$ git config --global user.email "sun.xiaolin@icloud.com"
$ git config --list
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
$ repo sync

问题:https://gerrit.googlesource.com/git-repo/clone.bundle无法访问,repo无法正常进行。
报错:

Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle

解决:
参考资料https://mirrors.tuna.tsinghua.edu.cn/help/git-repo/
重做下载:

curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo 
chmod +x repo

重做更新:

export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

重启终端terminal生效。

5.编译配置
DISTRO=fsl-imx-xwayland MACHINE=imx8qmmek source fsl-setup-release.sh -b build-x11
DISTRO=fsl-imx-xwayland MACHINE=imx8qmmek source fsl-setup-release.sh -b build-xwayland

6.编译,选择yocto image
在这里插入图片描述
bitbake fsl-image-validation-imx
bitbake fsl-image-qt5-validation-imx

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

sunxiaolin2016

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值