yocto-4.9.88-fb-imx6dl-failure

注:上次用yocto生成3.14.52的sdk,之后用repo不成功,全部删除上次yocto生成的所有东西及repo后,按照下面的步骤再来生成4.9.88可以成功
测试环境:ubuntu14.04
参考文档是i.MX_Yocto_Project_User’s_Guide_Linux.pdf,这是在nxp官网搜索到的
文档下载地址是:https://www.nxp.com/docs/en/user-guide/i.MX_Yocto_Project_User’s_Guide_Linux.pdf
1.安装repo,我的repo安装目录是/home/cc/yocto/bin
sudo mkdir /home/cc/yocto/bin -p
sudo chmod -R 777 yocto
正规获取repo的命令应该是:sudo curl https://storage.googleapis.com/git-repo-downloads/repo > /home/cc/yocto/bin/repo
但是该命令要访问谷歌,而我们无法访问谷歌,故在网上找到下面的命令来安装repo
sudo curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo > /home/cc/yocto/bin/repo
sudo chmod a+x /home/cc/yocto/bin/repo
export PATH=$PATH:/home/cc/yocto/bin
git config --global user.name cc
git config --global user.email [email protected]
git config --list
2.下载bsp资源
cd /home/cc/yocto
sudo mkdir yocto-4.9.88
sudo chown cc: yocto-4.9.88/
cd yocto-4.9.88
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml
在这里插入图片描述
repo sync
在这里插入图片描述

完成之后的目录内容
在这里插入图片描述
这里并没有像编译3.14.52时一样自动将sources目录下的fsl-setup-release.sh,setup-environment拷贝到当前目录,
于是手动拷贝一下
cp ./sources/meta-fsl-bsp-release/imx/tools/fsl-setup-release.sh ./
chmod a+x fsl-setup-release.sh
cp sources/base/setup-environment ./
在这里插入图片描述

4.设置系统类型机器型号
看看支持的系统类型
在这里插入图片描述
看看支持的机器型号
在这里插入图片描述
这里我们选择如下配置的一种
DISTRO=fsl-imx-fb MACHINE=imx6dlsabresd source fsl-setup-release.sh -b build
在这里插入图片描述执行完之后自动进入到build目录

编译文件系统
可以看到支持这些类型的文件系统
在这里插入图片描述
bitbake fsl-image-qt5
下面截图记录部分编译过程信息
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
编译过程出错
在这里插入图片描述
网上搜索了一通,有的文档说要ubuntu16来编译,索性把虚拟机删除了,重新安装ubunt14并升级到ubuntu16来编译,然后重新执行上面的命令,又来了新的问题,哥哥了,有点无语
不知道问题在哪里,看到过程中这句命令
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml
这句就是从这个网址里面下载4.9.88的yocto工程了
所以进到这个网址,打开了imx-4.9.88-2.0.0_ga.xml这个文件看看
在这里插入图片描述
fb版本在这里面没有支持,好吧,那就编译wayland版本吧

猜你喜欢

转载自blog.csdn.net/qq_41903811/article/details/84886883