mirror of
https://github.com/tux1c/wavesharelcd-64bit-rpi.git
synced 2026-08-13 12:33:17 +02:00
Merge 04549ef80d into 5a206a78c8
This commit is contained in:
commit
d7aa188e21
1 changed files with 13 additions and 6 deletions
19
install.sh
19
install.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue