What is the problem?
Octopi can't find the serial port after a new flash and restore from backup.
Version 1.1.0, running on Raspberry Pi Zero 2 W Rev 1.0
What did you already try to solve it?
Made necessary changes to /boot/firmware/config.txt and /boot/firmware/cmdline.txt.
SSH into octopi, cd to /boot/firmware. Use your favorite editor (as root) to insert the following line at the end of config.txt:
dtoverlay=miniuart-bt
Now edit cmdline.txt (as root) and remove the following text:
console=serial0,baud=115200
Reboot and all should work.
Have you tried running in safe mode?
Not necessary
Did running in safe mode solve the problem?
NA
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
WRITE HERE
Additional information about your setup
I used this website as a guide. I used the Raspberry Pi Imager to flash the new image to the SD card. After the first boot I restored a backup made with the previous image. All worked as expected other than the serial port problem.
WRITE HERE
Hello @MrPorcine !
This forum works different than others.
Please add your solution in a new post and tick the "Solution" checkbox.
This way other users can benefit from your experience.
Thank you.
It turns out that the octopi image "OctoPi (Raspberry Pi)" I downloaded from here didn't include the changes necessary to use gpio pins 14 and 15 for a serial port. I used the Raspberry Pi Imager to flash the new image to the SD card. Make sure you add the options to the Imager to wake up SSH and give it a useful username and password. When you boot the new SD card everything should work except octopi can't find a serial port. Here's how to fix it:
SSH into octopi, cd to /boot/firmware. Use your favorite editor (as root) to insert the following line at the end of config.txt:
dtoverlay=miniuart-bt
Now edit cmdline.txt (as root) and remove the following text:
console=serial0,baud=115200
It's possible that the console=serial0 entry is automatically added after the first boot after adding the dtoverlay line to config.txt. If you don't see console=serial0 in cmdline.txt, reboot again.
Reboot and all should work.
1 Like