Sunday, July 10, 2016

MPTCP, Raspberrry PI and Yocto

The goal of this post is to describe how to create a Yocto image for a Raspberry PI3 with MPTCP patch.

The starting point for this tutorial is my post RaspberryPI3 and Yocto.

First, you have to download my Yocto layer from this repository:

The repository contains the kernel patch to add MPTCP capabilities and to enable it.

To enable it, you have to complete two task:
- add the new layer to the config file
- modify the original kernel recipe

Add the new layer

To add the new layer, you have to modify the file "conf/bblayers.conf", as described in this example:
BBLAYERS ?= " \  /personal/yocto/jethro_rpi3/meta \  /personal/yocto/jethro_rpi3/meta-yocto \  /personal/yocto/jethro_rpi3/meta-yocto-bsp \  /personal/yocto/jethro_rpi3/meta-raspberrypi \  /personal/yocto/jethro_rpi3/meta-mytechpg \  "

Patch the original kernel recipe

Then, you have to modify the file:


You have to comment the content of do_kernel_configme_prepend function:

do_kernel_configme_prepend() {
         #    install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG}\                      ${WORKDIR}/defconfig || die \ 
              "No default configuration for ${MACHINE} \
              / ${KERNEL_DEFCONFIG} available."

Build it and test it!

Then, you can create the new image and test it, as described in the RPI3 tutorial.

To build a more complete environment, I suggest you can to use this command:
bitbake core-image-full-cmdline

No comments:

Post a Comment