This commit is contained in:
fluxkompensator 2024-09-15 14:21:01 +02:00 committed by GitHub
commit d7aa188e21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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