Uploaded January 2026 | Updated September 2026, 2 weeks ago
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
youtu.be/fY7u6PiV8qA?si=goTZ5V7I2dwa33a-
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 4: The Yocto Project on Raspberry Pi 5 Episode 4: U-Boot Bootloader
youtu.be/9tohomiv1Ug?si=kylUv0uT_BFmXt5g
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
Episode 8: Using ConnMan Network Manager for Wi-Fi Connectivity
youtu.be/ib8a0PeOGAU?si=jOPOYReA1woIZOJF
Episode 9: Enable I2C and Use SSD1306 Mini OLED Display on Linux
youtu.be/ReqwC9qoIJA?si=nB8qxVxOLwvKXBbR
Episode 10: Use SPI for ADC and Soil Moisure Sensor on Linux
youtu.be/fQ3ACtPPzE0?si=aSrRBbGpNWAHs2jL
Episode 11: 1-wire and DS18B20 Temperature Sensor
youtu.be/u4xLR_IMrXk?si=l_-DDrlCuqQuyEZu
Episode 12: Connecting a GPS Module via UART on Linux
youtu.be/xvHCm6q-70o?si=juBSUK6IRZsBSxwH
π Useful Links
===
yoctoproject.org
docs.yoctoproject.org
wayland.freedesktop.org
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
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
youtu.be/fY7u6PiV8qA?si=goTZ5V7I2dwa33a-
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 4: The Yocto Project on Raspberry Pi 5 Episode 4: U-Boot Bootloader
youtu.be/9tohomiv1Ug?si=kylUv0uT_BFmXt5g
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
Episode 8: Using ConnMan Network Manager for Wi-Fi Connectivity
youtu.be/ib8a0PeOGAU?si=jOPOYReA1woIZOJF
Episode 9: Enable I2C and Use SSD1306 Mini OLED Display on Linux
youtu.be/ReqwC9qoIJA?si=nB8qxVxOLwvKXBbR
Episode 10: Use SPI for ADC and Soil Moisure Sensor on Linux
youtu.be/fQ3ACtPPzE0?si=aSrRBbGpNWAHs2jL
Episode 11: 1-wire and DS18B20 Temperature Sensor
youtu.be/u4xLR_IMrXk?si=l_-DDrlCuqQuyEZu
Episode 12: Connecting a GPS Module via UART on Linux
youtu.be/xvHCm6q-70o?si=juBSUK6IRZsBSxwH
π Useful Links
===
yoctoproject.org
docs.yoctoproject.org
wayland.freedesktop.org
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










