Raspberry Pi活用/Yocto設定

提供: Medeshima wiki
< Raspberry Pi活用
2024年5月20日 (月) 13:19時点におけるHosakino (トーク | 投稿記録)による版
ナビゲーションに移動 検索に移動

tools-debug

~/yocto$ git clone git://git.yoctoproject.org/poky
~/yocto$ cd poky
~/yocto/poky$ git checkout kirkstone
//~/yocto/poky$ git checkout scarthgap
~/yocto/poky$ cd ..
~/yocto$ git clone git://git.yoctoproject.org/meta-raspberrypi
~/yocto$ cd meta-raspberrypi 
~/yocto/meta-raspberrypi$ git checkout kirkstone
~/yocto/meta-raspberrypi$ cd ..
~/yocto$ . poky/oe-init-build-env
~/yocto/build$ bitbake-layers add-layer ../meta-raspberrypi

~/yocto/build/conf/local.conf

MACHINE ?= "raspberrypi4-64"

~/yocto/build$ bitbake core-image-minimal

<nowikiL

$ sudo bmaptool copy core-image-base-raspberrypi4.wic.bz2 /dev/sdX </nowiki>

SDK

~/yocto/build$ bitbake core-image-sato -c populate_sdk
//~/yocto/build$ bitbake meta-toolchain

~/yocto/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-cortexa72-raspberrypi4-64-toolchain-4.0.17.sh

$ . /opt/poky/4.0.17/environment-setup-cortexa72-poky-linux

$ pkg-config --list-all