[Linux] Yocto Project - Embedded Linux build system
2024. 5. 10. 14:37ㆍ카테고리 없음
~/pi_bsp/rootfs$ mkdir yocto //작업디렉터리 만들기
$ sudo apt update
필수 패키지 설치
$ sudo apt-get install gawk wget git diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm python zstd liblz4-tool
Release 4.0 [Kirkstone]
- poky설치
$ git clone -b kirkstone git://git.yoctoproject.org/poky.git
- meta-raspberrypi layer 다운로드
$ cd poky
poky$ git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi
- build 환경 적용
poky$ source oe-init-build-en
- 머신 등록
build$ vi conf/local.conf
#local.conf
38 #MACHINE ??="qemux86-64"
39 MACHINE ??="raspberrypi4"
- layer 경로 등록
build$ vi conf/bblayers.conf
#bblayers.conf
12 /home/ubuntu/pi_bsp/rootfs/yocto/poky/meta-raspberrypi \
- build
build$ bitbake core-image-minimal
- 생성 이미지 위치
build$ cd tmp/deploy/images/raspberrypi4
- SD Card ubuntu 연결 후 장치 파일 언마운트
raspberrypi4$ sudo umount /dev/sdb?
raspberrypi4$ sudo dd if=core-image-minimal-raspberrypi4.ext3 of=/dev/sdb2 bs=1M status=progress
- bz2 압축파일로 sd카드 저장 방법
Source Repositories
-Yocto Metadata Layers - Autobuilder Tested
git.yoctoproject.org
The Yocto Project
The Yocto Project (YP) is an open source collaboration project that helps developers create custom Linux-based systems regardless of the hardware architecture.
www.yoctoproject.org