Uploaded February 2025 | Updated November 2026, 6 days ago
In this episode about the Yocto Project and OpenEmbedded on Raspberry Pi 5, you will learn how to switch to the open source U-Boot bootloader. U-Boot (Das U-Boot) is an open-source bootloader commonly used in embedded systems to initialize hardware and load the operating system kernel. It supports multiple architectures (ARM, x86, RISC-V, etc.) and provides features like networking, storage access, and scripting for system configuration. U-Boot is widely used in Linux-based embedded devices due to its flexibility and extensive hardware support. All demonstrations in the video are possible thanks to the community driven Yocto / OpenEmbedded BSP layer meta-raspberrypi. My build setup is based on Yocto LTS release Scarthgap which provides by default U-Boot v2024.01. However, Raspberry Pi 5 support was added in U-Boot v2024.04. To solve this we will also use branch scarthgap/u-boot of Yocto/OE layer meta-lts-mixins. Follow the steps below to achieve the same result on your setup:
* Download meta-lts-minins:
git clone -b scarthgap/u-boot git://git.yoctoproject.org/meta-lts-mixins
* Initialize the build environment:
source oe-init-build-env
* Add layers to bblayers.conf:
bitbake-layers add-layer ../meta-lts-mixins
* Switch to U-Boot by adding the following line to end of conf/local.conf:
RPI_USE_U_BOOT = "1"
* Build the image:
bitbake core-image-base
* Flash core-image-base on a microSD card and boot it on Raspberry Pi 5 and enjoy using U-Boot!
π Related Videos
===
Episode 1: The Yocto Project on Raspberry Pi 5: Building an Embedded GNU Linux Distribution
youtu.be/fY7u6PiV8qA?si=-DgvkJ_yTsiX05vx
Episode 2: SSH for Remote Network Access
youtu.be/ltckiBV9FXg?si=DJwsKLDhHkDIqCIn
Episode 3: The Yocto Project on Raspberry Pi 5 Episode 3: Running Docker Containers
youtu.be/kQnOidK_U3M?si=5KiS1FK87OwfdQ0m
Episode 5: Modifying U-Boot Environment in Linux with fw_setenv
youtu.be/SB5NvIF1IEU?si=0So6Gfv9hQR7gQgY
Episode 6: Runtime Package Management with apt and deb Packages
youtu.be/6i5UtF7fiaA?si=8DuUHUxywVEEtdyN
Episode 7: Create a New Layer, a New Recipe (.bb) and .bbappend
youtu.be/W5J1W_Cy14Y?si=ftu5WpeGqel8BZhf
π Useful Links
===
yoctoproject.org
docs.yoctoproject.org
openembedded.org/wiki/Main_Page
meta-raspberrypi.readthedocs.io/en/latest/extra-build-config.html#boot-to-u-boot
docs.u-boot.org
anavi.org/article/301
In this episode about the Yocto Project and OpenEmbedded on Raspberry Pi 5, you will learn how to switch to the open source U-Boot bootloader. U-Boot (Das U-Boot) is an open-source bootloader commonly used in embedded systems to initialize hardware and load the operating system kernel. It supports multiple architectures (ARM, x86, RISC-V, etc.) and provides features like networking, storage access, and scripting for system configuration. U-Boot is widely used in Linux-based embedded devices due to its flexibility and extensive hardware support. All demonstrations in the video are possible thanks to the community driven Yocto / OpenEmbedded BSP layer meta-raspberrypi. My build setup is based on Yocto LTS release Scarthgap which provides by default U-Boot v2024.01. However, Raspberry Pi 5 support was added in U-Boot v2024.04. To solve this we will also use branch scarthgap/u-boot of Yocto/OE layer meta-lts-mixins. Follow the steps below to achieve the same result on your setup:
* Download meta-lts-minins:
git clone -b scarthgap/u-boot git://git.yoctoproject.org/meta-lts-mixins
* Initialize the build environment:
source oe-init-build-env
* Add layers to bblayers.conf:
bitbake-layers add-layer ../meta-lts-mixins
* Switch to U-Boot by adding the following line to end of conf/local.conf:
RPI_USE_U_BOOT = "1"
* Build the image:
bitbake core-image-base
* Flash core-image-base on a microSD card and boot it on Raspberry Pi 5 and enjoy using U-Boot!
π Related Videos
===
Episode 1: The Yocto Project on Raspberry Pi 5: Building an Embedded GNU Linux Distribution
youtu.be/fY7u6PiV8qA?si=-DgvkJ_yTsiX05vx
Episode 2: SSH for Remote Network Access
youtu.be/ltckiBV9FXg?si=DJwsKLDhHkDIqCIn
Episode 3: The Yocto Project on Raspberry Pi 5 Episode 3: Running Docker Containers
youtu.be/kQnOidK_U3M?si=5KiS1FK87OwfdQ0m
Episode 5: Modifying U-Boot Environment in Linux with fw_setenv
youtu.be/SB5NvIF1IEU?si=0So6Gfv9hQR7gQgY
Episode 6: Runtime Package Management with apt and deb Packages
youtu.be/6i5UtF7fiaA?si=8DuUHUxywVEEtdyN
Episode 7: Create a New Layer, a New Recipe (.bb) and .bbappend
youtu.be/W5J1W_Cy14Y?si=ftu5WpeGqel8BZhf
π Useful Links
===
yoctoproject.org
docs.yoctoproject.org
openembedded.org/wiki/Main_Page
meta-raspberrypi.readthedocs.io/en/latest/extra-build-config.html#boot-to-u-boot
docs.u-boot.org
anavi.org/article/301



![The Yocto Project on Raspberry Pi 5 Episode 13: Bringing Wayland and Weston to Your Embedded Linux
Step-by-step video tutorial how to build a custom embedded Linux distribution for Raspberry Pi using the Yocto Project and OpenEmbedded with Wayland display protocol and the Weston compositor.
* Edit local.conf and add the following lines to the end of the file:
DISTRO_FEATURES:append = pam
RPI_EXTRA_CONFIG:append = n
display_auto_detect=1 n
* Build the image:
bitbake core-image-weston
To rotate Weston on the 7 Raspberry Pi Touch Display 2 add the following sections to /etc/xdg/weston/weston.ini:
[output]
name=DSI-1
mode=720x1280@60
transform=rotate-90
[output]
name=DSI-2
mode=720x1280@60
transform=rotate-90
After that restart the Weston systemd service:
systemctl restart weston
π₯ Related Videos
Episode 1: Building an Embedded GNU Linux Distribution
https://youtu.be/fY7u6PiV8qA?si=goTZ5V7I2dwa33a-
Episode 2: SSH for Remote Network Access
https://youtu.be/ltckiBV9FXg?si=DJwsKLDhHkDIqCIn
Episode 3: The Yocto Project on Raspberry Pi 5 Episode 3: Running Docker Containers
https://youtu.be/kQnOidK_U3M?si=5KiS1FK87OwfdQ0m
Episode 4: The Yocto Project on Raspberry Pi 5 Episode 4: U-Boot Bootloader
https://youtu.be/9tohomiv1Ug?si=kylUv0uT_BFmXt5g
Episode 5: Modifying U-Boot Environment in Linux with fw_setenv
https://youtu.be/SB5NvIF1IEU?si=0So6Gfv9hQR7gQgY
Episode 6: Runtime Package Management with apt and deb Packages
https://youtu.be/6i5UtF7fiaA?si=8DuUHUxywVEEtdyN
Episode 7: Create a New Layer, a New Recipe (.bb) and .bbappend
https://youtu.be/W5J1W_Cy14Y?si=ftu5WpeGqel8BZhf
Episode 8: Using ConnMan Network Manager for Wi-Fi Connectivity
https://youtu.be/ib8a0PeOGAU?si=jOPOYReA1woIZOJF
Episode 9: Enable I2C and Use SSD1306 Mini OLED Display on Linux
https://youtu.be/ReqwC9qoIJA?si=nB8qxVxOLwvKXBbR
Episode 10: Use SPI for ADC and Soil Moisure Sensor on Linux
https://youtu.be/fQ3ACtPPzE0?si=aSrRBbGpNWAHs2jL
Episode 11: 1-wire and DS18B20 Temperature Sensor
https://youtu.be/u4xLR_IMrXk?si=l DDrlCuqQuyEZu
Episode 12: Connecting a GPS Module via UART on Linux
https://youtu.be/xvHCm6q-70o?si=juBSUK6IRZsBSxwH
π Useful Links
https://www.yoctoproject.org/
https://docs.yoctoproject.org/
https://wayland.freedesktop.org/
https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/wayland?h=scarthgap
π Chapters
0:00 Intro
0:48 Wayland
1:42 Weston
2:04 core-image-weston
5:15 How It Works?
6:35 Wiring
7:20 Demo
8:43 Screen Rotation
11:42 Weston Log
14:24 Conclusions The Yocto Project on Raspberry Pi 5 Episode 13: Bringing Wayland and Weston to Your Embedded Linux](https://i.ytimg.com/vi/Cv1Ox3N9MIw/mqdefault.jpg)






