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:
| Component | Description |
|---|---|
| Raspberry Pi 3 Model B+ | The board itself |
| 5V USB Power Supply | Minimum 2A output, micro USB connector |
| Micro USB Cable | For power connection |
| USB Keyboard and Mouse | For interactive use (optional with serial console) |
| HDMI Cable and Display | For graphical or console output |
| Micro SD Card | 8GB 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:
| Specification | Detail |
|---|---|
| SoC | Broadcom BCM2837B0 |
| CPU | ARM Cortex-A53 quad-core, 1.4 GHz (64-bit) |
| RAM | 1 GB LPDDR2 SDRAM |
| Storage | Micro SD card slot |
| USB | 4x USB 2.0 ports |
| Ethernet | 300 Mbps Gigabit Ethernet (via USB) |
| Wi-Fi | 802.11ac dual-band Wi-Fi |
| Bluetooth | Bluetooth 4.2 and BLE |
| GPIO | 40-pin header |
| Display | HDMI output, DSI display connector |
| Camera | CSI camera connector |
+----------------------------------------------------------------------+
| 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.
| Pin | Name | Function | Pin | Name | Function |
|---|---|---|---|---|---|
| 1 | 3.3V | Power | 2 | 5V | Power |
| 3 | GPIO2 | SDA1 (I2C) | 4 | 5V | Power |
| 5 | GPIO3 | SCL1 (I2C) | 6 | GND | Ground |
| 7 | GPIO4 | GPCLK0 | 8 | GPIO14 | TXD0 (UART) |
| 9 | GND | Ground | 10 | GPIO15 | RXD0 (UART) |
| 11 | GPIO17 | General-purpose I/O | 12 | GPIO18 | PCM_CLK |
| 13 | GPIO27 | General-purpose I/O | 14 | GND | Ground |
| 15 | GPIO22 | General-purpose I/O | 16 | GPIO23 | General-purpose I/O |
| 17 | 3.3V | Power | 18 | GPIO24 | General-purpose I/O |
| 19 | GPIO10 | SPI0_MOSI | 20 | GND | Ground |
| 21 | GPIO9 | SPI0_MISO | 22 | GPIO25 | General-purpose I/O |
| 23 | GPIO11 | SPI0_SCLK | 24 | GPIO8 | SPI0_CE0_N |
| 25 | GND | Ground | 26 | GPIO7 | SPI0_CE1_N |
| 27 | ID_SD | ID EEPROM | 28 | ID_SC | ID EEPROM |
| 29 | GPIO5 | General-purpose I/O | 30 | GND | Ground |
| 31 | GPIO6 | General-purpose I/O | 32 | GPIO12 | PWM0 |
| 33 | GPIO13 | PWM1 | 34 | GND | Ground |
| 35 | GPIO19 | PCM_FS | 36 | GPIO16 | General-purpose I/O |
| 37 | GPIO26 | General-purpose I/O | 38 | GPIO20 | PCM_DIN |
| 39 | GND | Ground | 40 | GPIO21 | PCM_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
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:
ENABLE_UART = "1"
Connect from the host machine using minicom, screen, or picocom at 115200 baud:
screen /dev/ttyUSB0 115200
Available Communication Interfaces
The GPIO header exposes several hardware communication interfaces:
| Interface | Pins | Description |
|---|---|---|
| UART | GPIO14, GPIO15 | Serial console, UART0 |
| I2C | GPIO2, GPIO3 | I2C bus 1 (SDA, SCL) |
| SPI | GPIO10, GPIO9, GPIO11, GPIO8, GPIO7 | SPI0 (MOSI, MISO, CLK, CE0, CE1) |
| PWM | GPIO12, GPIO13 | Hardware PWM channels 0 and 1 |
| PCM | GPIO18, GPIO19, GPIO20, GPIO21 | I2S audio interface |
Raspberry Pi 3 in Yocto
The Raspberry Pi 3 is officially supported by the meta-raspberrypi layer.
Adding the BSP Layer
git clone -b honister git://git.yoctoproject.org/meta-raspberrypi
bitbake-layers add-layer ../meta-raspberrypi
Setting the Machine
In local.conf:
MACHINE ?= "raspberrypi3" # 32-bit
# OR
MACHINE ?= "raspberrypi3-64" # 64-bit
Building the Image
bitbake rpi-basic-image
Enabling Features
Common Raspberry Pi-specific settings in local.conf:
# 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:
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
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.