Skip to content

rfbsoft/polievanie_poky

Repository files navigation

Installing project polievanie:

You need cca 40 GB of free space

1. Clone poky repository
------------------------

$ sudo chmod o+w /srv
$ mkdir -p /srv/workspace/raspberrypi
$ sudo chmod o-w /srv
$ cd /srv/workspace/raspberrypi
$ git clone https://github.com/rfbsoft/polievanie_poky.git poky
 
2. Clone meta-raspberrypi repository
------------------------------------

$ cd poky
$ git clone https://github.com/rfbsoft/polievanie_meta-raspberrypi.git meta-raspberrypi

3. Clone kernel repository
--------------------------

$ mkdir -p /srv/workspace/raspberrypi/workspace
$ cd /srv/workspace/raspberrypi/workspace
$ git clone https://github.com/rfbsoft/polievanie_kernel.git kernel_3.12.18

4. Create build directory
-------------------------

$ cd /srv/workspace/raspberrypi/poky
$ . ./oe-init-build-env

5. Configure build directory
----------------------------

$ cd /srv/workspace/raspberrypi/poky/build/conf

In the file local.conf add following line:
MACHINE ?= "raspberrypi"

before the line with default machine entry:
# This sets the default machine to be qemux86 if no other machine is selected:
MACHINE ??= "qemux86"

In the file bblayers.conf add the meta-raspberrypi layer:
...
BBLAYERS ?= " \
  /srv/workspace/raspberrypi/poky/meta \
  /srv/workspace/raspberrypi/poky/meta-yocto \
  /srv/workspace/raspberrypi/poky/meta-yocto-bsp \
  /srv/workspace/raspberrypi/poky/meta-raspberrypi \
  "
...

6. Build images
---------------

Attn.: this step may take more hours, depending on the computer performance

$ cd /srv/workspace/raspberrypi/poky
$ . ./oe-init-build-env
$ bitbake -f -c build rpi-basic-image