403
回編集
(→部分ビルド) |
(→環境設定) |
||
| (同じ利用者による、間の35版が非表示) | |||
|
* https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html
* https://wiki.yoctoproject.org/wiki/Releases
= Yocto環境取得 =
<nowiki>
//~/yocto/build$ bitbake-layers layerindex-fetch meta-raspberrypi -b kirkstone▼
~/yocto$ git clone git://git.yoctoproject.org/poky▼
~/yocto/poky$ cd meta-raspberrypi ▼
</nowiki>
== gitで通信できる場合 ==
~/yocto/build/conf/local.conf▼
<nowiki>
MACHINE ?= "raspberrypi4-64"▼
</nowiki>
== gitで通信できない場合 ==
<nowiki>
~/yocto/build$ bitbake core-image-minimal▼
</nowiki>
== layerの確認 ==
~/yocto/build$ bitbake core-image-sato -c clean▼
~/yocto/build$ bitbake core-image-sato▼
<nowiki>
~/yocto/build$ bitbake core-image-sato -c listtasks▼
bitbake-layers show-layers▼
</nowiki>
= 設定変更 =
▲~/yocto/build/conf/local.conf
<nowiki>
//$ sudo bmaptool copy core-image-sato-raspberrypi4-64.wic.bz2 /dev/SDX▼
</nowiki>
<nowiki>
DL_DIR ?= "${TOPDIR}/downloads"▼
▲bitbake-layers show-layers
</nowiki>
https://meta-raspberrypi.readthedocs.io/en/latest/ipcompliance.html
=== 部分ビルド ===▼
= ビルド =
core-image-base
== 最小構成 ==
<nowiki>
▲~/yocto/build$ bitbake core-image-minimal
</nowiki>
<nowiki>
</nowiki>
= SDカードへの書き込み =
<nowiki>
▲
$ runqemu qemuarm64 nographic▼
</nowiki>
= QEMUを使用する場合 =
▲== SDK ==
~/yocto/build/conf/local.conf
<nowiki>
</nowiki>
<nowiki>
~/yocto/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-cortexa72-raspberrypi4-64-toolchain-4.0.17.sh▼
▲$ runqemu qemuarm64 nographic
</nowiki>
= SDK =
<nowiki>
$ . /opt/poky/4.0.17/environment-setup-cortexa72-poky-linux▼
</nowiki>
== インストール ==
<nowiki>
▲~/yocto/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-
$ pkg-config --list-all▼
</nowiki>
==
<nowiki>
</nowiki>
== 使用方法 ==
<nowiki>
▲$ pkg-config --list-all
▲DL_DIR ?= "${TOPDIR}/downloads"
</nowiki>
<nowiki>
</nowiki>
local.conf
</nowiki>
| |||