add touch dtbo file

This commit is contained in:
goodtft 2020-12-29 07:32:21 +00:00
parent 24a56d9b06
commit 52dd7eeaf5
2 changed files with 23 additions and 0 deletions

23
MPI5094-show Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
sudo cp -rf ./boot/config-nomal.txt ./boot/config.txt.bak
sudo echo "dtparam=i2c_arm=on" >> ./boot/config.txt.bak
sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak
sudo echo "hdmi_group=2" >> ./boot/config.txt.bak
sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak
sudo echo "hdmi_cvt 800 480 60 6 0 0 0" >> ./boot/config.txt.bak
sudo echo "dtoverlay=goodix" >> ./boot/config.txt.bak
sudo cp -rf ./boot/config.txt.bak /boot/config.txt
if [ -f /boot/overlays/goodix.dtbo ]; then
sudo mv /boot/overlays/goodix.dtbo /boot/overlays/goodix.dtbo.bak
sudo cp ./usr/goodix.dtbo /boot/overlays/
fi
sudo sync
sudo sync
sleep 1
echo "reboot now"
sudo reboot

BIN
usr/goodix.dtbo Executable file

Binary file not shown.