ES: Raspberry Pi 3 Model B+ for Embedded Linux

The Raspberry Pi 3 Model B+ is one of the most popular platforms for learning and prototyping embedded Linux systems. This guide covers what hardware you need to get started, the board's pinout, and how to use it as an embedded Linux development platform.

The Raspberry Pi 3 Model B+ is a single-board computer that has become a standard platform for embedded Linux learning, prototyping, and even small-scale production. It is affordable, widely supported by tools like Yocto and Buildroot, and has an active community.


What You Need to Get Started

To work with the Raspberry Pi 3 Model B+ as an embedded Linux platform, you need:

ComponentDescription
Raspberry Pi 3 Model B+The board itself
5V USB Power SupplyMinimum 2A output, micro USB connector
Micro USB CableFor power connection
USB Keyboard and MouseFor interactive use (optional with serial console)
HDMI Cable and DisplayFor graphical or console output
Micro SD Card8GB or larger — holds the operating system

For serial console access (the embedded developer's preferred interface), you also need:

  • A USB-to-UART adapter (3.3V logic level)
  • Three jumper wires (TX, RX, GND)

Board Overview

The Raspberry Pi 3 Model B+ features:

SpecificationDetail
SoCBroadcom BCM2837B0
CPUARM Cortex-A53 quad-core, 1.4 GHz (64-bit)
RAM1 GB LPDDR2 SDRAM
StorageMicro SD card slot
USB4x USB 2.0 ports
Ethernet300 Mbps Gigabit Ethernet (via USB)
Wi-Fi802.11ac dual-band Wi-Fi
BluetoothBluetooth 4.2 and BLE
GPIO40-pin header
DisplayHDMI output, DSI display connector
CameraCSI camera connector

md
+----------------------------------------------------------------------+
| 02 04 06 08 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 |USB-A   |
| 01 03 05 07 09 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 |2-Ports |
|-------+                                                     +--------+
|DSI    |         Broadcom                                    |USB-A   |
|Display|         BCM2837                                     |2-Ports |
|-------+                                                     +--------+
|                                                             |Ethernet|
| USB        HDMI OutPort                                     |        |
+----------------------------------------------------------------------+


40-Pin GPIO Header Pinout

The 40-pin GPIO header is the primary hardware interface for embedded development. It provides GPIO, UART, SPI, I2C, PWM, and power pins.

PinNameFunctionPinNameFunction
13.3VPower25VPower
3GPIO2SDA1 (I2C)45VPower
5GPIO3SCL1 (I2C)6GNDGround
7GPIO4GPCLK08GPIO14TXD0 (UART)
9GNDGround10GPIO15RXD0 (UART)
11GPIO17General-purpose I/O12GPIO18PCM_CLK
13GPIO27General-purpose I/O14GNDGround
15GPIO22General-purpose I/O16GPIO23General-purpose I/O
173.3VPower18GPIO24General-purpose I/O
19GPIO10SPI0_MOSI20GNDGround
21GPIO9SPI0_MISO22GPIO25General-purpose I/O
23GPIO11SPI0_SCLK24GPIO8SPI0_CE0_N
25GNDGround26GPIO7SPI0_CE1_N
27ID_SDID EEPROM28ID_SCID EEPROM
29GPIO5General-purpose I/O30GNDGround
31GPIO6General-purpose I/O32GPIO12PWM0
33GPIO13PWM134GNDGround
35GPIO19PCM_FS36GPIO16General-purpose I/O
37GPIO26General-purpose I/O38GPIO20PCM_DIN
39GNDGround40GPIO21PCM_DOUT

Serial Console Access

For embedded Linux development, using the UART serial console (pins 8 and 10) is essential. It gives you kernel boot messages and a login shell without needing an HDMI display.

Wiring

md
Raspberry Pi         USB-UART Adapter
GPIO14 (TXD) -----> RX
GPIO15 (RXD) <----- TX
Pin 6 (GND)  -----> GND

**Important:** The Raspberry Pi GPIO operates at 3.3V logic levels. Use a 3.3V-compatible UART adapter — never connect a 5V UART directly.

Enable the UART in your Yocto build by adding to local.conf:

bash
ENABLE_UART = "1"

Connect from the host machine using minicom, screen, or picocom at 115200 baud:

bash
screen /dev/ttyUSB0 115200


Available Communication Interfaces

The GPIO header exposes several hardware communication interfaces:

InterfacePinsDescription
UARTGPIO14, GPIO15Serial console, UART0
I2CGPIO2, GPIO3I2C bus 1 (SDA, SCL)
SPIGPIO10, GPIO9, GPIO11, GPIO8, GPIO7SPI0 (MOSI, MISO, CLK, CE0, CE1)
PWMGPIO12, GPIO13Hardware PWM channels 0 and 1
PCMGPIO18, GPIO19, GPIO20, GPIO21I2S audio interface

Raspberry Pi 3 in Yocto

The Raspberry Pi 3 is officially supported by the meta-raspberrypi layer.

Adding the BSP Layer

bash
git clone -b honister git://git.yoctoproject.org/meta-raspberrypi
bitbake-layers add-layer ../meta-raspberrypi

Setting the Machine

In local.conf:

bash
MACHINE ?= "raspberrypi3"      # 32-bit
# OR
MACHINE ?= "raspberrypi3-64"   # 64-bit

Building the Image

bash
bitbake rpi-basic-image

Enabling Features

Common Raspberry Pi-specific settings in local.conf:

bash
# Enable UART console
ENABLE_UART = "1"

# Enable the camera module
VIDEO_CAMERA = "1"

# Add SSH server
IMAGE_INSTALL:append = " openssh"

# Use systemd as init manager
DISTRO_FEATURES:append = " systemd"
VIRTUAL-RUNTIME:init_manager = "systemd"


Flashing the Image

After the Yocto build completes, flash the resulting image to a micro SD card:

bash
sudo dd if=rpi-basic-image-raspberrypi3.wic \
    of=/dev/mmcblk0 \
    bs=4M \
    status=progress

sync

Or use Balena Etcher for a graphical flashing experience.


Final Thoughts

The Raspberry Pi 3 Model B+ is an excellent platform for embedded Linux development because:

  • It is well-supported by Yocto, Buildroot, and pre-built distributions
  • The GPIO header provides access to all standard embedded interfaces
  • The hardware is affordable and widely available
  • The community is large with extensive documentation

md
Raspberry Pi 3 Development Quick Start:
Clone meta-raspberrypi
    |
    v
Set MACHINE = "raspberrypi3" in local.conf
    |
    v
Set ENABLE_UART = "1" for serial console
    |
    v
Build with bitbake rpi-basic-image
    |
    v
Flash to SD card with dd
    |
    v
Connect UART adapter and boot

Whether you are learning embedded Linux for the first time or prototyping a product, the Raspberry Pi 3 B+ provides a capable and accessible starting point.