sudo apt update
sudo apt upgrade ^C
sudo apt 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 zstd liblz4-tool
git clone git://git.yoctoproject.org/poky
cd poky/
git branch -a
git checkout -t origin/kirkstone -b my-kirkstone
source oe-init-build-env
MACHINE="beaglebone-yocto" bitbake core-image-minimal
这个时候会报错,
- ERROR: Variable BB_ENV_EXTRAWHITE has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS
- ERROR: Variable BB_ENV_EXTRAWHITE from the shell environment has been renamed to
我这里关掉终端, 重新打开, 重新source 确实好了
Solved: [Yocto Kirkstone][LF-5.15.32-2.0.0] Fail to bitbak... - NXP Community
烧写sdcard
cd tmp/deploy/images/beaglebone-yocto/
lsblk
sudo dd if=core-image-minimal-beaglebone-yocto.wic of=/dev/sdb bs=4M
参考:
Yocto Project: quickest instructions to generate BeagleBone images - Bootlin's blog