**文書の過去の版を表示しています。**
Raspberry Pi 4でYocto Project入門
(2022/7/12)
Raspberry Pi 4とWSL2を使ってYocto Project入門 - Qiita
に従って試してみる。(Beelink-u59にて)
bitbake-layers add-layer ../meta-raspberrypi/
まで実行。ツールが足らないとか言われてる。そうそう、ツール類をインストールするのを忘れていた。
$ sudo apt install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm
と言われるがままに実行。すでにインストールしているものはたくさんあるが、していないものもそこそこあるため。
今度は成功。 meta-raspberrypiが追加されたみたい。ここから先は明日にしよう。
(2022/7/13) 続きをやってみた。
$ cd ~/yocto/poky $ git clone git://git.openembedded.org/meta-openembedded $ cd meta-openembedded $ git checkout -b gatesgarth origin/gatesgarth $ cd ~/yocto/poky/rpi-build $ bitbake-layers add-layer ../meta-openembedded/meta-oe/ $ bitbake-layers add-layer ../meta-openembedded/meta-python/ $ bitbake-layers add-layer ../meta-openembedded/meta-multimedia/ $ bitbake-layers add-layer ../meta-openembedded/meta-networking/
で、conf/bblayers.confに、add-layerしたものが追加されていることを確認して、local.confに、
MACHINE ?= "raspberrypi4-64"
と設定して、
$ cd ~/yocto/poky/rpi-build $ bitbake core-image-base
を実行。(HDDの空き容量を確保した上で)
arioka@beelink-u59:~/yocto/poky/rpi-build$ bitbake core-image-base Loading cache: 100% |############################################################################################################################################################| Time: 0:00:00 Loaded 3330 entries from dependency cache. ERROR: ParseError at /home/arioka/yocto/poky/meta-openembedded/meta-networking/recipes-support/openipmi/openipmi_2.0.29.bb:41: Could not inherit file classes/python3targetconfig.bbclass0:00:09
別のシステム向けのYoctoでのビルドが成功した環境で、同じことをやってみたが、
sirius@ubuntu:~/yocto/poky/rpi-build$ bitbake core-image-base Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. ERROR: ParseError at /home/sirius/yocto/poky/meta-openembedded/meta-oe/recipes-extended/libimobiledevice/libplist_2.2.0.bb:9: Could not inherit file classes/python3targetconfig.bbclass Summary: There was 1 ERROR message shown, returning a non-zero exit code. sirius@ubuntu:~/yocto/poky/rpi-build$
と、似たようなエラー発生。 今度は、別のノートPCで、WSL2 & Ubuntu 20.4 LST環境で同じことをやってみたところ、やっぱり、
などと、同じようなパースエラーとなった。 https://stackoverflow.com/questions/49391785/could-not-inherit-file-classes-pypi-bbclass-with-meta-raspberrypi-yocto-bitbake あたりを見ると、
All of your layers need to use matching branches. In this case your meta-python is probably too new (it no longer has the pypi class because it was moved to oe-core). Checkout the rocko branch of meta-openembedded repo and things should start working.
などと言われている。ふむ、ブランチとの整合性な感じ。となると、あえて、Web上の情報に合わせて、
$ git checkout -b gatesgarth-24.0.1 refs/tags/gatesgarth-24.0.1 ```
と、少しだけ古いバージョンを指定したところが間違いなのでは?meta-raspberrypiやmeta-openembeddedは、ただ、gatesgarthといブランチなのだから、Pokyの新しいバージョンのgatesgarth-24.0.4を指定してみると、、、いけたみたい、タスクが進みだした。
その時々の最新版でやるしかないのか。