Trouble with Pidog Robot Hat Install

While following along with the pidog build instructions, during the robot-hat install command I get this error in the console:

Error happened in install process:
copy Servo Hat+ dtoverlay error:
Status:1
Error:cp: cannot create regular file ‘/boot/firmware/overlays/’: No such file or directory

It appears to install everything else from the console command but fails at the last step.
I’m using a raspberry pi zero 2w with the legacy 32 bit OS. Ive had no other problems so far. Does anyone know how to resolve this issue?

1 Like

hi, I got the same error. Not sure if I can move forward or wait for a resolution to this issue? I’m using raspberry pi 4b with legacy 32bit OS.

1 Like

I’d still like to hear from someone that knows more than me, but here’s what I ended up doing.

I checked the sd card install on my laptop and the file hierarchy didn’t have a “firmware” folder. Also, the “boot” folder was named “bootfs”. So on my install the path appears to be ‘/bootfs/overlays/’. I assume raspberrypi OS has changed this since the pidog instructions were written?

So I formatted the SD card and started over. I ran the same commands and got the same error, which I believe is the last step. I opened up the python script to see what it was trying to do, which was copy a file into a directory that no longer exists. Given everything else completed without error I just manually copied the file into the overlays folder from the command line with the new path.

sudo cp ./dtoverlays/sunfounder-servohat+.dtbo /bootfs/overlays/

(Interestingly I think I may have entered the command:
sudo cp ./dtoverlays/sunfounder-servohat+.dtbo /boot/overlays/
using “boot” instead of “bootfs”. Either way one of the two commands worked, so try both and if the first throws an error try the second one.)

It didn’t throw an error and I moved forward with the tutorial. I don’t know enough about raspberrypi/linux to know what the purpose of an overlay is so hopefully that was the correct thing to do. Regardless, my pidog is running and everything appears to be working as designed.

Hopefully that helps you or anyone having the same issue. It seems like Raspberrypi changed the heirarchy and the tutorial from here on out will be out of date. If it is the correct fix the one line of code on github could be modified for future users and the tutorial will still work.

When you encounter an error message while installing the code library, please provide us with a complete screenshot of the error message so we can analyze and resolve the issue.

Before that, please ensure that you are following the installation steps in the correct order as outlined in the tutorial:5. Install All the Modules(Important) — SunFounder PiDog Kit 1.0 documentation