-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.7.1 Hot Fix for Raspberry Pi OS Bookworm
Raspberry Pi OS Bookworm moves the config.txt from /boot to /boot/firmware which can cause issues with a fresh installation (and when enabling certain features). This should resolve the issue in the initial installation script.
- Loading branch information
Showing
5 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
# This file will add the kernel support for 1-wire on pin 31 (GPIO 6) | ||
|
||
if grep -wq "dtoverlay=w1-gpio,gpiopin=6,pullup=\"y\"" /boot/config.txt; then | ||
echo "1-Wire enabling already exists in /boot/config.txt" | ||
else | ||
echo "Adding 1-Wire support in /boot/config.txt" | ||
echo "dtoverlay=w1-gpio,gpiopin=6,pullup=\"y\"" | sudo tee -a /boot/config.txt > /dev/null | ||
fi | ||
# This file will add the kernel support for 1-wire on (GPIO 4) | ||
sudo raspi-config nonint do_onewire 0 # Enable 1-wire support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# This file will add the PWM pin definition if it does not already exist in the file | ||
# Enable Hardware PWM - Needed for hardware PWM support | ||
if test -f /boot/firmware/config.txt; then | ||
CONFIG='/boot/firmware/config.txt' | ||
else | ||
CONFIG='/boot/config.txt' | ||
fi | ||
|
||
if grep -wq "dtoverlay=pwm,pin=13,func=4" /boot/config.txt; then | ||
echo "PWM pin definition exists in /boot/config.txt" | ||
if grep -wq "dtoverlay=pwm" $CONFIG; then | ||
echo "PWM pin definition exists in $CONFIG" | ||
else | ||
echo "Adding PWM definition in /boot/config.txt" | ||
echo "dtoverlay=pwm,pin=13,func=4" | sudo tee -a /boot/config.txt > /dev/null | ||
echo "Adding PWM definition in $CONFIG" | ||
echo "dtoverlay=pwm,gpiopin=13,func=4" | sudo tee -a $CONFIG > /dev/null | ||
fi |