Skip to content

Docker environment to build meta-raspberrypi with yocto

Notifications You must be signed in to change notification settings

kyoush/rpi-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-build

Docker environment to build meta-raspberrypi with yocto

Quick Start

Requirement: docker, docker compose

  1. git clone
git clone https://github.com/kyoush/rpi-build.git # this repo
git submodule update --init # clone submodule
  1. Start Docker
docker compose up -d # build docker
docker exec -it yocto-builder bash # dive docker container, enjoy!
  1. Mount NFS server (Yocto cache)
$ sudo service rpcbind start # for nfs mount
$ sudo service nfs-common start # for nfs mount
$ sudo mkdir /mnt/yocto
$ sudo mount <host>:<path> /mnt/yocto # for yocto cache
  1. bake image
$ source poky/oe-init-build-env build
$ bitbake core-image-base
  1. write image to SD card
$ sudo bmaptool copy core-image-base-raspberrypi5.rootfs.wic.bz2 /dev/mmcblk0

Issue

  • ホストPC上でapparmorが有効化されていると、permissionエラーでビルドできない。

WORKAROUND:
カーネルコマンドラインオプションに、apparmor=0を追加する。
GRUB例。/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=0"

grubの設定を更新して、再起動する

sudo grub-update
reboot
sudo aa-status # 無効化されているかどうか確認できる

About

Docker environment to build meta-raspberrypi with yocto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published