yocto相关
repo:
curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo ~/bin/repo
Yocto相关命令
详细请看官方文档
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11
DISTRO=fsl-imx-fb MACHINE=imx6solosabresd source fsl-setup-release.sh -b build-fb
#-c clean -c menuconfig -c cleansstate
#-c fetch
bitbake -c menuconfig linux-imx
bitbake -c cleansstate u-boot
bitbake -c patch u-boot
bitbake -c cleansstate linux-imx
bitbake -c cleanall fsl-image-qt5
bitbake linux-imx -C compile
bitbake fsl-image-qt5
#查找相关layer
bitbake -s | grep toolchain
bitbake core-image-minimal
bitbake opencv
#生成工具链及环境、交叉编译环境脚本
bitbake meta-ide-support
#生成toolchain--SDK:
bitbake meta-toolchain(-qt5)
bitbake fsl-image-qt5 -c populate_sdk
bitbake -g -u hob #包管理
bitbake -g -u depexp weston #依赖管理
#生成的sdk在 deploy/sdk/,一样先运行环境脚本
bitbake meta-toolchain-qt5
#编译
source 交叉编译环境脚本
#查看编译链:
echo $CC
arm-poky-linux-gnueabi-gcc -v
#bitbake meta-toolchain
编译好的部署image在/build-x11/tmp/deploy下
qmake:/opt/fsl-yocto-bsp/build-x11/tmp/sysroots/x86_64-linux/usr/bin/qt5/
/opt/atsama5d44/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/bin/qt5/qmake -o Makefile
//make savedefconfig 生成defconfig文件
相关操作
yocto开机动画:
cmdline: psplash=false
./make-image-header.sh base-images/xc9031.png POKY
cp xc9031-img.h ../psplash-poky-img.h
bitbake -C compile psplash
cmdline中bootargs psplash=${psplash}'
Yocto Toaster:
sudo pip install -r poky/bitbake/toaster-requirements.txt
source toaster start
相关问题
fetch耗时
fetch一些大的软件包,很费时,半天都下不下来:
- 确定下载的地址,手动git下载
bitbake -e XXX | grep ^ SRC_URI(或者直接在source里面查找对应的bb文件)
- 修改对应的bb文件
主要是SRC_URI = "git:///home/jack/yocto/downloads/opencv;protocol=file;branch=2.4 \
,注意protocol指定 - 从本地repo中checkout对应的branch
git branch -a git checkout origin/2.4 -b 2.4
- 再次获取
bitbake XXX -c fetch
ERROR: User requested feature sdl
Add:BUILD_LDFLAGS_prepend_pn-qemu-native = "-Wl,-rpath-link,/lib/x86_64-linux-gnu "
to your local.conf file.
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 DD'Notes!
评论