「Raspberry Pi活用/Yocto設定」の版間の差分
ナビゲーションに移動
検索に移動
(→部分ビルド) |
(→qemu) |
||
58行目: | 58行目: | ||
<nowiki> |
<nowiki> |
||
$ runqemu qemu86-64 nographic |
$ runqemu qemu86-64 nographic |
||
</nowiki |
</nowiki> |
||
== SDK == |
== SDK == |
2024年5月22日 (水) 03:39時点における版
ビルド
tools-debug
//~/yocto$ git clone -b kirkstone git://git.yoctoproject.org/poky //~/yocto$ . poky/oe-init-build-env //~/yocto$ bitbake-layers layerindex-fetch meta-raspberrypi ~/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 ~/yocto/build$ bitbake core-image-sato -c clean ~/yocto/build$ bitbake core-image-sato ~/yocto/build$ bitbake core-image-sato -c listtasks
$ sudo bmaptool copy core-image-minimal-raspberrypi4-64.wic.bz2 /dev/SDX //$ sudo bmaptool copy core-image-sato-raspberrypi4-64.wic.bz2 /dev/SDX
bitbake-layers show-layers
部分ビルド
$ bitback myapp $ bitback -c cleansstate myapp
<nowki>
build/tmp/work/x86-64-linux/openssl-native/1.0.2o-r0/temp$ ./run.do_compile </nowiki>
qemu
$ runqemu qemu86-64 nographic
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
レイヤーの追加
USBブート
local.conf
CMDLINE_remove = "root=/dev/mmcblk0p2" CMDLINE_append = "root=/dev/sda2"