Fix for bookworm, new /boot path layout

This commit is contained in:
Fluxkompensator 2024-09-15 14:19:25 +02:00
parent 5a206a78c8
commit 04549ef80d

View file

@ -8,12 +8,19 @@ cp -rf ./99-fbturbo.conf /etc/X11/xorg.conf.d/99-fbturbo.conf
# load module on boot
cp ./waveshare35a.dtbo /boot/overlays/
echo "hdmi_force_hotplug=1" >> /boot/config.txt
echo "dtparam=i2c_arm=on" >> /boot/config.txt
echo "dtparam=spi=on" >> /boot/config.txt
echo "enable_uart=1" >> /boot/config.txt
echo "dtoverlay=waveshare35a:rotate=90" >> /boot/config.txt
cp ./cmdline.txt /boot/
# rewrite boot path for Raspberry Pi OS Bookworm
cfgpath="/boot"
if [[ -f /etc/zsh_command_not_found ]]; then
if [[ "$(cat /boot/config.txt | grep 'DO NOT EDIT THIS FILE' -c)" -eq 1 ]]; then
cfgpath="/boot/firmware"
fi
fi
echo "hdmi_force_hotplug=1" >> $cfgpath/config.txt
echo "dtparam=i2c_arm=on" >> $cfgpath/config.txt
echo "dtparam=spi=on" >> $cfgpath/config.txt
echo "enable_uart=1" >> $cfgpath/config.txt
echo "dtoverlay=waveshare35a:rotate=90" >> $cfgpath/config.txt
cp ./cmdline.txt $cfgpath/
# touch screen calibration
apt-get install xserver-xorg-input-evdev