5 changed files with 22 additions and 10 deletions
@ -0,0 +1 @@ |
|||
#!/bin/bash |
|||
@ -10,8 +10,17 @@ echo "Updating the system and installing dependencies..." |
|||
apt update && apt upgrade -y |
|||
apt install -y cmake git build-essential nano |
|||
|
|||
#raspi userland |
|||
git clone https://github.com/raspberrypi/userland.git |
|||
cd userland |
|||
./buildme |
|||
cd ~ |
|||
|
|||
#fix so libs |
|||
echo "/opt/vc/lib" >> /etc/ld.so.conf.d/vc.conf |
|||
sudo ldconfig |
|||
|
|||
#build deps and remove raspi features |
|||
sudo apt install -y libraspberrypi-dev |
|||
git clone https://github.com/juj/fbcp-ili9341.git |
|||
cd fbcp-ili9341 |
|||
mkdir build && cd build |
|||
@ -22,14 +31,14 @@ make -j$(nproc) |
|||
sudo install fbcp-ili9341 /usr/local/bin/ |
|||
./config.sh |
|||
|
|||
#make autologin |
|||
#make autologin #after this is not fine |
|||
sudo su |
|||
mkdir -pv /etc/systemd/system/[email protected] |
|||
#nano /etc/systemd/system/[email protected]/autologin.conf |
|||
cat <<EOT > /etc/systemd/system/[email protected]/autologin.conf |
|||
[Service] |
|||
ExecStart= |
|||
ExecStart=-/sbin/agetty --autologin gsd --noclear %I $TERM |
|||
ExecStart=-/sbin/agetty --autologin pipboy --noclear %I $TERM |
|||
EOT |
|||
|
|||
#Xserver and chromium |
|||
@ -68,13 +77,14 @@ enable_uart=1 |
|||
dtoverlay=uart0 |
|||
EOT |
|||
|
|||
sudo systemctl stop [email protected] |
|||
sudo systemctl disable [email protected] |
|||
#офаем через raspi-config |
|||
#sudo systemctl stop [email protected] |
|||
#sudo systemctl disable [email protected] |
|||
sudo apt install python3-serial |
|||
|
|||
#sound https://withrow.io/simpsons-tv-build-guide-waveshare#parts-list |
|||
dtparam=audio=on |
|||
dtoverlay=audremap,enable_jack,pins_18_13 |
|||
#dtparam=audio=on |
|||
#dtoverlay=audremap,enable_jack,pins_18_13 |
|||
#dtparam=audio=off |
|||
# dtparam=audio=on # закомментируйте или удалите эту строку |
|||
#dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4 |
|||
|
|||
Loading…
Reference in new issue