Carpe diem
root 계정으로 bitbake 명령 시에 발생하는 에러 본문
raspberry pi 레시피를 빌드하기 위해 의존성이 있는 meta layer를 추가하기 위해
bitbake 명령을 실행 시에 error가 발생했다.
나의 경우, WSL내의 docker 컨테이너 에서 yocto 관련 환경을 구성 중에 있는데,
이전에 Ubuntu환경의 docker 컨테이너에서도 bitbake명령을 실행 시에 동일한 에러가 발생했었다.
root@d0e33f11861d:/workdir/rpi/poky-rocko/build-raspberrypi# bitbake-layers add-layer ../meta-openembedded/meta-oe
NOTE: Starting bitbake server...
WARNING: /workdir/rpi/poky-rocko/meta/lib/oe/maketype.py:99: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
if not isinstance(obj, collections.Callable):
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Do not use Bitbake as root.
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Parse failure with the specified layer added
root@d0e33f11861d:/workdir/rpi/poky-rocko/build-raspberrypi#
수정방법은 간단하다. 아래 url에서의 해결방법 처럼 conf/sanity.conf파일을 추가해주면 된다.
https://tutorialadda.com/blog/oe-core-s-config-sanity-checker-error-in-yocto-project
OE-core's config sanity checker detected a potential misconfiguration
tutorialadda.com
다시 meta layer를 추가하기 위한 bitbake 명령을 실행해보면 정상적으로 동작된다..
root@d0e33f11861d:/workdir/rpi/poky-rocko/build-raspberrypi# touch conf/sanity.conf
root@d0e33f11861d:/workdir/rpi/poky-rocko/build-raspberrypi# bitbake-layers add-layer ../meta-openembedded/meta-oe
NOTE: Starting bitbake server...
WARNING: /workdir/rpi/poky-rocko/meta/lib/oe/maketype.py:99: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
if not isinstance(obj, collections.Callable):
Parsing recipes: 100% |##################################################################################| Time: 0:00:18
Parsing of 820 .bb files complete (0 cached, 820 parsed). 1279 targets, 44 skipped, 0 masked, 0 errors.
Summary: There was 1 WARNING message shown.
root@d0e33f11861d:/workdir/rpi/poky-rocko/build-raspberrypi#
'SBC 보드 > yocto' 카테고리의 다른 글
raspberry pi firmware download in WSL (0) | 2023.01.22 |
---|---|
raspberry pi 3, yocto build(in WSL, docker) (0) | 2023.01.20 |
WSL환경에서 bitake명령 시에 발생하는 에러(Unable to connect to bitbake server, or start one) (0) | 2023.01.15 |