update script

This commit is contained in:
SQFMI 2023-08-17 02:11:34 -04:00
parent 8b87c3d7aa
commit 8a87fc5b2c

View File

@ -14,19 +14,20 @@ cd ~/
git clone https://github.com/sqfmi/Sharp-Memory-LCD-Kernel-Driver.git || { echo "Error: Failed to clone display driver repository."; exit 1; }
cd ~/Sharp-Memory-LCD-Kernel-Driver
make || { echo "Error: Failed to compile display driver."; exit 1; }
sudo make modules_install || { echo "Error: Failed to install display driver."; exit 1; }
sudo depmod -A || { echo "Error: Failed to update module dependencies."; exit 1; }
echo 'sharp' | sudo tee -a /etc/modules
dtc -@ -I dts -O dtb -o sharp.dtbo sharp.dts || { echo "Error: Failed to compile device tree."; exit 1; }
sudo cp sharp.dtbo /boot/overlays
echo -e "framebuffer_width=400\nframebuffer_height=240\ndtoverlay=sharp" | sudo tee -a /boot/config.txt
sudo make install || { echo "Error: Failed to install display driver."; exit 1; }
# sudo depmod -A || { echo "Error: Failed to update module dependencies."; exit 1; }
# echo 'sharp' | sudo tee -a /etc/modules
# dtc -@ -I dts -O dtb -o sharp.dtbo sharp.dts || { echo "Error: Failed to compile device tree."; exit 1; }
# sudo cp sharp.dtbo /boot/overlays
echo -e "framebuffer_width=400\nframebuffer_height=240" | sudo tee -a /boot/config.txt
sudo sed -i ' 1 s/.*/& fbcon=map:10 fbcon=font:VGA8x16/' /boot/cmdline.txt || { echo "Error: Failed to modify cmdline.txt."; exit 1; }
echo "Compiling and installing keyboard device driver..."
cd ~/
git clone https://github.com/sqfmi/bbqX0kbd_driver.git || { echo "Error: Failed to clone keyboard driver repository."; exit 1; }
cd ~/bbqX0kbd_driver
./installer.sh --BBQ20KBD_TRACKPAD_USE BBQ20KBD_TRACKPAD_AS_KEYS --BBQX0KBD_INT BBQX0KBD_USE_INT || { echo "Error: Failed to install keyboard device driver."; exit 1; }
make || { echo "Error: Failed to compile display driver."; exit 1; }
sudo make install || { echo "Error: Failed to install display driver."; exit 1; }
echo "Rebooting..."
sudo shutdown -r now || { echo "Error: Failed to reboot."; exit 1; }