Porting To The Yocto Project On Raspberry Pi; Prerequisite - Moxa Technologies NPort 5000 Series User Manual

Hide thumbs Also See for NPort 5000 Series:
Table of Contents

Advertisement

Porting to the Yocto Project on Raspberry Pi

Prerequisite

You are expected to be familiar with the Yocto Project. Please refer to
Yocto Project documentation for further understanding. Also, it is encouraged to follow the procedures in
this guide unless you have sufficient knowledge about the Real TTY driver, the Yocto Project, and Raspberry
Pi.
The dunfell branch (3.1.9) is referred to throughout in this section. Please base it on this version before
reading the instructions in the Yocto Project documentation. You are required to build the Yocto image
successfully with the "Yocto Project Quick Build" document.
In the Yocto Project, you can select the platform you want to build. This guide installs Raspberry Pi BSP
Layer as a demonstration in the following steps:
1.
Suppose the YoctoProject is installed in the /home/user/poky folder. Checkout the source code of the
Raspberry Pi BSP Layer.
$ cd /home/user/poky
$ git clone https://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi -b
dunfell
2.
A meta-raspberrypi folder will be checked out now. Use the following instructions to set up Raspberry Pi
BSP:
$ source oe-init-build-env
3.
Use a text editor to add the following content to the configuration file './conf/local.conf'.
4.
Add the type 'rpi-sdimg' optionally if SD card is preferred
IMAGE_FSTYPES="tar.bz2 ext3 rpi-sdimg"
5.
Change the machine name of your target
# Use raspberrypi2 for Pi 2 board
# Use raspberrypi3 for Pi 3 board
Use raspberrypi3-64 for 64-bit Pi 3 board
MACHINE ?= "raspberrypi3"
6.
Use the text editor to add the following content to the configuration file './conf/bblayers.conf'
7.
Add this line '/home/user/poky/meta-raspberrypi' to BBLAYERS
BBLAYERS ?= " \
/home/user/poky/meta \
/home/user/poky/meta-poky \
/home/user/poky/meta-yocto-bsp \
/home/user/poky/meta-raspberrypi \
"
8.
Build the target core-image-base by following this command and the Raspberry Pi image will be
generated:
$ bitbake core-image-base
Once the above image runs on Raspberry Pi, go to the next section.
NPort 5000 Series User Manual
https://docs.yoctoproject.org
for the
154

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents