Skip to content

Commit

Permalink
doc layer clone process
Browse files Browse the repository at this point in the history
  • Loading branch information
amamory committed Dec 23, 2021
1 parent 4aa3808 commit db5ea0c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,27 @@ MACHINE ??= "raspberrypi3"
Next, let's build the main parts of the Linux image: kernel, rootfs, etc. Later we build our custom recipes on top of this build. This step takes a long time ...

```bash
$ cd rpi
$ cd ~/rpi
$ source /opt/yocto/dunfell/src/poky/oe-init-build-env
$ cd ~/rpi/build
$ bitbake core-image-minimal -c populate_sdk
```

I am not sure if it is mandatory to include SDK (i.e. `populate_sdk`) in the image. This needs some additional testing in the future.
In addition, there is other default Yocto images besides `core-image-minimal`. Check the [reference images here](https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-images).


Otherwise, if you want to just implement these examples and skip the step-by-step process, then run:

```bash
$ cd ~/rpi
$ source /opt/yocto/dunfell/src/poky/oe-init-build-env
$ cd ~/rpi/build
$ git clone -b dunfell https://github.com/amamory-embedded/learning-yocto.git meta-learning
$ bitbake-layers add-layer meta-learning
$ bitbake core-image-minimal -c populate_sdk
```

## Add-ons and Configuration for Raspbery Pi 3

Although this tutorial is independent of board, we are using RPi3 due to its availability, pleanty of documentation, and easy access. If you want to have a more complete RPI3 configuration than the one provided by the standard `core-image-minimal` image, please check out the [`meta-myrpi`](https://github.com/amamory-embedded/meta-myrpi). Note that this step is optional, but without it you will end up with a very simple RPi3 configuration, with basically only keyboard and HDMI.
Expand Down

0 comments on commit db5ea0c

Please sign in to comment.