Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1282

Python • config.txt moved from /boot to /boot/firmware

$
0
0
Good Day all,

I desperately need some help here and I believe I can sort this thing out.

I am using a Raspberry pi 5 and running the latest Rasbian/Bookworm OS. I used it to run PWM programs using Python 3 following this site

https://pypi.org/project/rpi-hardware-pwm/

It was working fine since September 2024. Initially I had to modify this boot/config.txt by adding dtoverlay=pwm-2chan. It worked fine, I created a virtual environment and everything went fine python programs were running smoothly generating PWMs.

Recently after 2 accidental power cuts to the Pi, when I ran the python program from the command line it gave an error message saying, add "dtoverlay=pwm-2chan".

Then I looked for boot/config.txt. When I opened this txt file it said it is read only and it cannot be edited. It also had words saying the file is moved to boot/firmware/config.txt.

But I checked this config.txt in boot/firmware location it already has "dtoverlay=pwm-2chan". I was so confused and thought something might have corrupted the system so I tried to load a back up OS to the SD card and found the same issue of config.txt moved from boot to boot/firmware. Then I did a complete re installing of OS on the SD card hoping that might solve the issue but the problem is the same.

Now I cant run any pwm programs because the initial step of adding adding dtoverlay=pwm-2chan to boot/config.txt itself cannot be performed because it is moved to another location and this one cannot be edited it is read only.

Please help me out is it possible to find a solution. Could there be a hardware problem after the power cuts since it was working before fine.

Thanks a lot.

Statistics: Posted by sab201 — Sat Apr 05, 2025 1:02 pm



Viewing all articles
Browse latest Browse all 1282

Trending Articles