-
Notifications
You must be signed in to change notification settings - Fork 5.4k
mipi-dpi-spi exits with error #6992
Description
Describe the bug
Cannot activate spi panel on boot. Running on Zero2-W
Linux version 6.12.34+rpt-rpi-v8 (serge@raspberrypi.com) (aarch64-linux-gnu-gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26)
Error (from journalctl)
Aug 08 05:19:56 battmon-rpi kernel: panel-mipi-dbi-spi spi0.0: config: Bad magic: 64 74 6f 76 65 72 6c 61 79 3d 6d 69 70 69 2d
Aug 08 05:19:56 battmon-rpi kernel: panel-mipi-dbi-spi spi0.0: probe with driver panel-mipi-dbi-spi failed with error -22
Required panel.bin generated using mipi-dbi-cmd. Checking the bin with same program shows no errors.
Very strange. The bin file has the required magic - hexdump here ...
00000000 4d 49 50 49 20 44 42 49 00 00 00 00 00 00 00 01 |MIPI DBI........|
00000010 11 00 00 01 ff 36 01 a8 3a 01 05 21 00 2a 04 00 |.....6..:..!.*..|
00000020 01 00 3f 2b 04 00 00 00 ef b2 05 0c 0c 00 33 33 |..?+..........33|
00000030 b7 01 35 bb 01 1f c0 01 0c c2 01 01 c3 01 12 c4 |..5.............|
00000040 01 20 c6 01 0f d0 02 a4 a1 e0 0e d0 08 11 08 0c |. ..............|
00000050 15 39 33 50 36 13 14 29 2d e1 0e d0 08 10 08 06 |.93P6..)-.......|
00000060 06 39 44 51 0b 16 14 2f 31 29 00 |.9DQ.../1).|
Any ideas?
Steps to reproduce the behaviour
Just boot the system. System is minimum, for later use as a battery monitoring box.
Device (s)
Raspberry Pi Zero 2 W
System
System Information
Raspberry Pi Zero 2 W Rev 1.0
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
Raspberry Pi reference 2025-05-13
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 5dabc7dc940059dfbc46af5d97b60a1e812523dd, stage4
Linux battmon-rpi 6.12.34+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26) aarch64 GNU/Linux
Revision : 902120
Serial : 00000000575c8c1e
Model : Raspberry Pi Zero 2 W Rev 1.0
Throttled flag : throttled=0x0
Camera : supported=0 detected=0, libcamera interfaces=0
Videocore information
Apr 30 2025 13:35:18
Copyright (c) 2012 Broadcom
version 5560078dcc8591a00f57b9068d13e5544aeef3aa (clean) (release) (start)
alloc failures: 0
compactions: 0
legacy block fails: 0
Filesystem information
Filesystem 1K-blocks Used Available Use% Mounted on
udev 168440 0 168440 0% /dev
tmpfs 85188 2364 82824 3% /run
/dev/mmcblk0p2 29886016 5530372 22817100 20% /
tmpfs 212968 8 212960 1% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
/dev/mmcblk0p1 522230 80066 442164 16% /boot/firmware
tmpfs 42592 40 42552 1% /run/user/1000
Filename Type Size Used Priority
/var/swap file 524284 0 -2
Package version information
raspberrypi-ui-mods:
Installed: 1.20250506
raspberrypi-sys-mods:
Installed: 20250605~bookworm
openbox:
Installed: 3.6.1-10+rpt1
lxpanel:
Installed: 0.10.1-2+rpt22
pcmanfm:
Installed: 1.3.2-1+rpt30
rpd-plym-splash:
Installed: 0.43
Networking Information
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet x.x.x.x netmask x.x.x.x
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 122 bytes 12996 (12.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 122 bytes 12996 (12.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet x.x.x.x netmask x.x.x.x broadcast x.x.x.x
inet6 y::y.y.y.y prefixlen 64 scopeid 0x20
inet6 y.y.y.y.y.y.y.y prefixlen 64 scopeid 0x0
ether m.m.m.m txqueuelen 1000 (Ethernet)
RX packets 1974 bytes 572866 (559.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 797 bytes 176059 (171.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
USB Information
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
Display Information
Running Legacy framebuffer
Framebuffer: /dev/fb0
mode "720x480"
geometry 720 480 720 480 32
timings 0 0 0 0 0 0 0
rgba 8/16,8/8,8/0,8/24
endmode
/usr/bin/raspinfo: line 103: tvservice: command not found
Audio Information
aplay: device_list:274: no soundcards found...
null
Discard all samples (playback) or generate zero samples (capture)
default
Playback/recording through the PulseAudio sound server
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
speex
Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
● pipewire.socket - PipeWire Multimedia System Sockets
Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; preset: enabled)
Active: active (running) since Fri 2025-08-08 05:20:04 BST; 15min ago
Triggers: ● pipewire.service
Listen: /run/user/1000/pipewire-0 (Stream)
/run/user/1000/pipewire-0-manager (Stream)
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire.socket
Aug 08 05:20:04 battmon-rpi systemd[614]: Listening on pipewire.socket - PipeWire Multimedia System Sockets.
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-08-08 05:20:04 BST; 15min ago
TriggeredBy: ● pipewire.socket
Main PID: 630 (pipewire)
Tasks: 3 (limit: 394)
CPU: 197ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─630 /usr/bin/pipewire
Aug 08 05:20:04 battmon-rpi systemd[614]: Started pipewire.service - PipeWire Multimedia Service.
○ pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
Active: inactive (dead)
TriggeredBy: ○ pulseaudio.socket
○ pulseaudio.socket - Sound System
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; preset: enabled)
Active: inactive (dead)
Triggers: ● pulseaudio.service
Listen: /run/user/1000/pulse/native (Stream)
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 67
Tile Size: 65472
User Name: pi
Host Name: battmon-rpi
Server Name: PulseAudio (on PipeWire 1.2.7)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: auto_null
Default Source: auto_null.monitor
Cookie: 7647:5894
config.txt
aphy_params_current=819
arm_64bit=1
arm_boost=1
arm_freq=1000
arm_freq_min=600
audio_pwm_mode=514
auto_initramfs=1
camera_auto_detect=-1
config_hdmi_boost=5
core_freq=400
desired_osc_freq=0x331df0
disable_commandline_tags=2
disable_fw_kms_setup=1
disable_l2cache=1
disable_overscan=1
display_auto_detect=1
display_hdmi_rotate=-1
display_lcd_rotate=-1
dphy_params_current=547
dvfs=3
enable_tvout=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=300
hdmi_enable_4kp60=-1
ignore_lcd=1
init_uart_clock=0x2dc6c00
initial_turbo=60
max_framebuffers=-1
Logs
[ 7.536829] panel-mipi-dbi-spi spi0.0: supply power not found, using dummy regulator
[ 7.537067] panel-mipi-dbi-spi spi0.0: supply io not found, using dummy regulator
[ 7.548342] panel-mipi-dbi-spi spi0.0: config: Bad magic: 64 74 6f 76 65 72 6c 61 79 3d 6d 69 70 69 2d
[ 7.548421] panel-mipi-dbi-spi spi0.0: probe with driver panel-mipi-dbi-spi failed with error -22
Additional context
Can output using display specific library to the spi panel successfully. RPi Board is headless using ssh for testing.