You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... rp1-pio 1f00178000.pio: error -ENOENT: failed to contact RP1 firmware [ 3.957885] rp1-pio: probe of 1f00178000.pio failed with error -2
...
Although nothing strange occurred.
The OS still works fine without reboot.
Steps to reproduce the behaviour
It randomly occurs after sudo reboot --halt and then manually press the on-board power button to power on (with default eeprom config).
It also randomly occurs when use raspi-config to change power off behavior to "full power off" and then reboot/poweroff. (Sorry I cannot remember whether it is reboot or poweroff)
Update: It also occurs after a suddenly plug-out the usb-c power cable and then plug-in back. It seems only poweroff-related behaviors will trigger this bug. I tested 30 times reboot, no bugs occurred.
Update2: reboot can indeed also trigger this bug, only less frequent.
That's interesting - it looks like a dependency/ordering issue, and not one I've seen before:
[ 3.922665] rp1-pio 1f00178000.pio: error -ENOENT: failed to contact RP1 firmware
[ 3.922671] rp1-pio: probe of 1f00178000.pio failed with error -2
...
[ 3.932284] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
I get:
[ 13.445656] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
[ 13.550428] rp1-pio 1f00178000.pio: Created instance as pio0
The code for communicating with the firmware exists in the firmware module, so I thought that would enforce an ordering. Some investigation is required.
That's interesting - it looks like a dependency/ordering issue, and not one I've seen before:
[ 3.922665] rp1-pio 1f00178000.pio: error -ENOENT: failed to contact RP1 firmware
[ 3.922671] rp1-pio: probe of 1f00178000.pio failed with error -2
...
[ 3.932284] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
I get:
[ 13.445656] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
[ 13.550428] rp1-pio 1f00178000.pio: Created instance as pio0
The code for communicating with the firmware exists in the firmware module, so I thought that would enforce an ordering. Some investigation is required.
Thanks for your reply.
Here is my dmesg when the rp1&pio works fine.
I hope it can help to investigate this issue.
[ 5.557565] rp1-pio 1f00178000.pio: error -ENOENT: failed to contact RP1 firmware [ 5.557571] rp1-pio: probe of 1f00178000.pio failed with error -2 [ 5.558534] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
Seeing that on reboot as well /custom kernel on a Pi5 DUT, trying to get an overlay to work)
Linux Pi5uSDDUT 6.6.74-v8-16k+ #1 SMP PREEMPT Sun Feb 2 10:41:23 CET 2025 aarch64 GNU/Linux Revision : c04170 Serial : cb30eb1fd7e7e672 Model : Raspberry Pi 5 Model B Rev 1.0
It's really strange. I can't get it to fail in that way without hacks - even with a massive delay in the firmware driver, the pio driver waits. Anyway, I'm just testing a fix.
I don't understand why this affecting some people while I can't reproduce it without hacking the driver, but regardless, #6645 should fix the issue. After about 40 minutes you should be able to install a trial kernel with sudo rpi-update pulls/6645, after first backing up any important data.
It seems after applying sudo rpi-update pulls/6645, this issue disappeared. (I tested about 10 times reboot/halt/suddenly poweroff). Thanks for your work! If anything strange found, I'll post here.
BTW, can I safely stay at this firmware and wait for the next stable release offered by apt? Or do I need a sudo apt install --reinstall raspi-firmware to restore first before the next stable release?
Activity
pelwell commentedon Feb 3, 2025
That's interesting - it looks like a dependency/ordering issue, and not one I've seen before:
I get:
The code for communicating with the firmware exists in the firmware module, so I thought that would enforce an ordering. Some investigation is required.
llllllllqq commentedon Feb 3, 2025
Thanks for your reply.
Here is my dmesg when the rp1&pio works fine.
I hope it can help to investigate this issue.
normal.txt
pelwell commentedon Feb 3, 2025
Yes - in the working case the order is reversed:
aBUGSworstnightmare-rpi commentedon Feb 3, 2025
[ 5.557565] rp1-pio 1f00178000.pio: error -ENOENT: failed to contact RP1 firmware [ 5.557571] rp1-pio: probe of 1f00178000.pio failed with error -2 [ 5.558534] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55Seeing that on reboot as well /custom kernel on a Pi5 DUT, trying to get an overlay to work)
Linux Pi5uSDDUT 6.6.74-v8-16k+ #1 SMP PREEMPT Sun Feb 2 10:41:23 CET 2025 aarch64 GNU/Linux Revision : c04170 Serial : cb30eb1fd7e7e672 Model : Raspberry Pi 5 Model B Rev 1.0pelwell commentedon Feb 3, 2025
It's really strange. I can't get it to fail in that way without hacks - even with a massive delay in the firmware driver, the pio driver waits. Anyway, I'm just testing a fix.
aBUGSworstnightmare-rpi commentedon Feb 3, 2025
seems quite random. Seen it frequently on reboots (running 'sudo reboot' on CLI)
misc: rp1-pio: Error out on incompatible firmware
firmware: rp1: Linger on firmware failure
mayo228 commentedon Feb 3, 2025
is there a way to fix this? I keep getting this error and I can't boot the OS, should I be worried that I will loose data on my raspberry?
pelwell commentedon Feb 3, 2025
I don't understand why this affecting some people while I can't reproduce it without hacking the driver, but regardless, #6645 should fix the issue. After about 40 minutes you should be able to install a trial kernel with
sudo rpi-update pulls/6645, after first backing up any important data.pelwell commentedon Feb 3, 2025
And no, you shouldn't worry - it would only affect you if you wanted to use piolib to drive the GPIOs.
aBUGSworstnightmare-rpi commentedon Feb 3, 2025
I have no idea if and how below is related but I just wanted to state that I'm not making use of piolib for accessing GPIO's.
pelwell commentedon Feb 3, 2025
You should know that WiFi and Bluetooth information and warning messages are unrelated.
firmware: rp1: Linger on firmware failure
llllllllqq commentedon Feb 4, 2025
It seems after applying
sudo rpi-update pulls/6645, this issue disappeared. (I tested about 10 times reboot/halt/suddenly poweroff). Thanks for your work! If anything strange found, I'll post here.BTW, can I safely stay at this firmware and wait for the next stable release offered by apt? Or do I need a
sudo apt install --reinstall raspi-firmwareto restore first before the next stable release?312 remaining items
misc: Add RP1 PIO driver
firmware: Add an RP1 firmware interface over mbox
misc: Add RP1 PIO driver
Backport RPi patches for PIO/RP1 firmware probing errors (home-assist…
firmware: Add an RP1 firmware interface over mbox
misc: Add RP1 PIO driver
firmware: Add an RP1 firmware interface over mbox
misc: Add RP1 PIO driver
firmware: Add an RP1 firmware interface over mbox
misc: Add RP1 PIO driver
firmware: Add an RP1 firmware interface over mbox
misc: Add RP1 PIO driver
firmware: Add an RP1 firmware interface over mbox
misc: Add RP1 PIO driver
firmware: Add an RP1 firmware interface over mbox