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