# yocto **Repository Path**: li_guoqing/yocto ## Basic Information - **Project Name**: yocto - **Description**: yocto meta - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-09-28 - **Last Updated**: 2025-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 参考文章:https://raymii.org/s/tutorials/Yocto_boot2qt_for_the_Raspberry_Pi_4_both_Qt_6_and_Qt_5.html sudo apt-get install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev python git-lfs g++-multilib gcc-multilib libxkbcommon-dev libxkbcommon-x11-dev libwayland-cursor++0 libwayland-cursor0 # for Qt 6.2: repo init -u git://code.qt.io/yocto/boot2qt-manifest -m 6.1.xml # for Qt 5.15 repo init -u git://code.qt.io/yocto/boot2qt-manifest -m v5.15.2.xml 参考文章:https://www.codenong.com/cs103308424/ 1、初始化Yocto环境的设置脚本 $ ./b2qt-init-build-env init --device raspberrypi3 生成下面的脚本文件和文件夹: setup-environment.sh 、 sources 、 build-raspberrypi3 export MACHINE=raspberrypi3 source ./setup-environment.sh bitbake b2qt-embedded-qt6-image bitbake meta-toolchain-b2qt-embedded-qt6-sdk source nxp-setup-alb.sh -m s32g274ardb2 -d ../downloads source nxp-setup-alb.sh -m s32g274ardb2ubuntu -d ../downloads -c ./sstate-cache -b ./build_s32g274ardb2 source nxp-setup-alb.sh -m s32g274ardb2ubuntu -d ../downloads -c ./sstate-cache -b ./build_s32g274ardb2 -e "meta-aws meta-java" -D fsl-goldvip ## Rebuild U-Boot bitbake -c compile -f u-boot ## Deploy U-Boot bitbake u-boot bitbake -c compile -f virtual/bootloader bitbake -c compile -f u-boot bitbake u-boot bitbake arm-trusted-firmware ll tmp/deploy/images/s32g274ardb2/ sudo dd if=tmp/deploy/images/s32g274ardb2/fip.s32-sdcard of=/dev/mmcblk0 conv=notrunc,fsync seek=512 skip=512 oflag=seek_bytes iflag=skip_bytes && sync bitbake-layers add-layer ../meta-openembedded/meta-oe bitbake-layers add-layer ../meta-openembedded/meta-python bitbake-layers add-layer ../meta-openembedded/meta-networking bitbake-layers add-layer ../meta-openwrt