Hardware: Raspberry Pi 3B/3B+/4B/5/Zero 2W
Pantalla: Osoyoo 3.5″ pantalla táctil SPI 480×320 ( N.º de modelo: 2022013800 )
Sistema: Raspberry Pi OS Bookworm (lanzado antes del 2025-05-13)
Método: fbcp (copia del framebuffer)

Graba el Raspberry Pi OS (versión Bookworm) con escritorio en una tarjeta TF/micro SD e inserta esta tarjeta en tu Raspberry Pi.
Descargar el SO desde: Sitio web oficial de Raspberry Pi
Conecta el Raspberry Pi a tu monitor HDMI o televisor. Conecta un teclado y un ratón a los puertos USB del Raspberry Pi.

Conecta el Raspberry Pi a Internet mediante WiFi o Ethernet.
Para la guía de configuración WiFi, visita: Tutorial básico de Raspberry Pi
Abre el terminal e introduce el siguiente comando:
hostname -I

Apaga el Raspberry Pi, retira el monitor HDMI, el teclado y el ratón. Luego instala la pantalla SPI de 3.5″.

Enciende el Raspberry Pi con la pantalla SPI instalada.
Usa PuTTY (Windows) o el terminal (Mac/Linux) para conectarte por SSH al Raspberry Pi. Guía de PuTTY

Ejecuta vía SSH:
sudo apt install libraspberrypi-dev -y sudo apt-get install unzip cmake -y sudo wget https://osoyoo.com/driver/osoyoo35b.zip sudo unzip ./osoyoo35b.zip sudo cp osoyoo35b.dtbo /boot/overlays/ sudo wget https://osoyoo.com/driver/Rpi-fbcp.zip sudo unzip ./Rpi-fbcp.zip cd rpi-fbcp/ sudo rm -rf build sudo mkdir build cd build sudo cmake .. sudo make -j4 sudo install fbcp /usr/local/bin/fbcp
libraspberrypi-dev es necesario para el acceso a la GPU de fbcp. En el RPi5, fbcp no se utiliza.sudo nano /boot/firmware/config.txt
#dtoverlay=vc4-kms-v3d

# ========== SPI Screen Configuration ==========
dtparam=spi=on
dtoverlay=osoyoo35b:speed=20000000
hdmi_force_hotplug=1
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
hdmi_drive=2
display_rotate=2

Guardar: Ctrl+X, luego Y, luego Enter.
sudo nano ~/.bash_profile
Añade el siguiente código:
if [ "$(cat /proc/device-tree/model | cut -d ' ' -f 3)" = "5" ]; then
# RPi 5B configuration
export FRAMEBUFFER=/dev/fb1
startx 2> /tmp/xorg_errors
else
# Non-Pi5 configuration (RPi 3/4)
export FRAMEBUFFER=/dev/fb0
fbcp &
startx 2> /tmp/xorg_errors
fi

sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Si existe, asegúrate de que el contenido sea:
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
sudo raspi-config nonint do_boot_behaviour B2 sudo raspi-config nonint do_wayland W1 sudo reboot

do_wayland W1 cambia de Wayland a X11. ¡Las pantallas SPI NO admiten Wayland!Cuando el escritorio funcione, conéctate por SSH e instala el software de calibración:
sudo apt-get install xserver-xorg-input-evdev xinput-calibrator -y sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
Crea la configuración de calibración:
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
Añade:
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "241 3854 3885 240"
Option "SwapAxes" "1"
EndSection

Reinicia:
sudo reboot
# Check X Server errors cat /tmp/xorg_errors # Check framebuffer devices ls -l /dev/fb* # Check if fbcp is running (RPi 3/4) ps aux | grep fbcp # Check SPI overlay dmesg | grep -i osoyoo
Error: fbcp: command not found
Solución: Vuelve a compilar fbcp:
cd ~/rpi-fbcp/build && sudo make && sudo install fbcp /usr/local/bin/fbcp
DISPLAY=:0 xinput_calibratorGuárdalo como setup-spi-fbcp.sh y ejecútalo:
chmod +x setup-spi-fbcp.sh && ./setup-spi-fbcp.sh
#!/bin/bash
echo "=== RPi3/4/5 + Osoyoo 3.5 SPI Screen Setup (fbcp) ==="
sudo apt-get update
sudo apt install libraspberrypi-dev -y
sudo apt-get install -y unzip cmake
cd ~
sudo wget -q https://osoyoo.com/driver/osoyoo35b.zip
sudo unzip -o -q ./osoyoo35b.zip
sudo cp osoyoo35b.dtbo /boot/overlays/
sudo wget -q https://osoyoo.com/driver/Rpi-fbcp.zip
sudo unzip -o -q ./Rpi-fbcp.zip
cd rpi-fbcp/ && sudo rm -rf build && sudo mkdir build && cd build
sudo cmake .. && sudo make -j4 && sudo install fbcp /usr/local/bin/fbcp
cd ~
sudo sed -i 's/^dtoverlay=vc4-kms-v3d/#dtoverlay=vc4-kms-v3d/' /boot/firmware/config.txt
if ! grep -q "osoyoo35b" /boot/firmware/config.txt; then
sudo tee -a /boot/firmware/config.txt > /dev/null << 'CONF' # ========== SPI Screen Configuration ========== dtparam=spi=on dtoverlay=osoyoo35b:speed=20000000 hdmi_force_hotplug=1 max_usb_current=1 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 hdmi_cvt 480 320 60 6 0 0 0 hdmi_drive=2 display_rotate=2 CONF fi cat > ~/.bash_profile << 'EOF' if [ "$(cat /proc/device-tree/model | cut -d ' ' -f 3)" = "5" ]; then export FRAMEBUFFER=/dev/fb1 startx 2> /tmp/xorg_errors
else
export FRAMEBUFFER=/dev/fb0
fbcp &
startx 2> /tmp/xorg_errors
fi
EOF
sudo raspi-config nonint do_boot_behaviour B2
sudo raspi-config nonint do_wayland W1
sudo apt-get install -y xserver-xorg-input-evdev xinput-calibrator
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo tee /usr/share/X11/xorg.conf.d/99-calibration.conf > /dev/null << 'EOF'
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "241 3854 3885 240"
Option "SwapAxes" "1"
EndSection
EOF
echo "=== Setup complete. Rebooting... ==="
sleep 3 && sudo reboot
Elige el tutorial que coincida con tu modelo de Raspberry Pi y versión del SO:
Guía de instalación Bookworm / Trixie
RPi 4/5 • 2025-10-01 y posterior
Bookworm / Trixie RPi 4/5
Guía de instalación Bookworm / Trixie (específica para RPi3)
RPi 3 • Configuración X11 adicional requerida • 2025-10-01 y posterior
Bookworm / Trixie RPi 3
Guía de instalación Bookworm (fbcp)
RPi 3/4/5 • Antes del 2025-05-13
Bookworm RPi3/4/5
Guía de instalación Bullseye / Buster
RPi 3/4 • Controlador LCD-show
Legacy RPi3/4
Guía de resolución virtual 640×480
RPi 3 • Escalado x2fb
Avanzado • Trixie/Bookworm • 2025-10-01 y posterior
Guía de resolución virtual 640×480
RPi 4/5 • Escalado x2fb
Avanzado • Trixie/Bookworm • 2025-10-01 y posterior
¿No sabes cuál elegir?
• Comprueba tu modelo de Pi: cat /proc/device-tree/model
• Comprueba tu versión del SO: cat /etc/os-release
| Característica | RPi 3/4 | RPi 5 |
|---|---|---|
| Framebuffer | /dev/fb0 | /dev/fb1 |
| Método | fbcp | Directo |
| libraspberrypi-dev | Requerido | No necesario |
¿Necesitas ayuda o tienes comentarios? Envía un ticket y nuestro equipo te responderá en un plazo de 1-2 días laborables. ¡Agradecemos tu paciencia!
Horario de atención: 9 AM – 6 PM GMT+8 (lunes – viernes)
Contáctanos: [email protected]
© 2026 Osoyoo | osoyoo.com
Última actualización: 2026-02-10
DownLoad Url osoyoo.com