Update install added i2s install steps

beta-i2s
Alan Johnston 2 years ago committed by GitHub
parent 6361fed610
commit 9c70550f8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,8 +53,6 @@ sudo pip3 install --upgrade setuptools
sudo pip3 install adafruit-blinka RPI.GPIO adafruit-extended-bus adafruit-circuitpython-ina219 sudo pip3 install adafruit-blinka RPI.GPIO adafruit-extended-bus adafruit-circuitpython-ina219
cd ~/CubeSatSim cd ~/CubeSatSim
git pull --no-rebase git pull --no-rebase
@ -81,7 +79,6 @@ sudo make install
make install-rpi make install-rpi
cd cd
git clone https://github.com/alanbjohnston/pi-power-button.git git clone https://github.com/alanbjohnston/pi-power-button.git
@ -92,7 +89,6 @@ git checkout reboot-mode-change
./script/install ./script/install
cd cd
git clone https://github.com/alanbjohnston/PiSSTVpp.git git clone https://github.com/alanbjohnston/PiSSTVpp.git
@ -115,9 +111,6 @@ cd rpitx
./install.sh ./install.sh
cd
cd cd
sudo cp ~/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service sudo cp ~/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service
@ -132,7 +125,6 @@ sudo cp /boot/config.txt /boot/config.txt.0
sudo cp /boot/cmdline.txt /boot/cmdline.txt.0 sudo cp /boot/cmdline.txt /boot/cmdline.txt.0
sudo raspi-config nonint do_i2c 0 sudo raspi-config nonint do_i2c 0
sudo raspi-config nonint do_camera 0 sudo raspi-config nonint do_camera 0
@ -193,19 +185,19 @@ sudo raspi-config nonint do_legacy 0
sudo sh -c 'echo "\ndtparam=audio=on" >> /boot/config.txt' sudo sh -c 'echo "\ndtparam=audio=on" >> /boot/config.txt'
fi fi
if [[ $(grep 'dtoverlay=audremap,enable_jack=on' /boot/config.txt) ]]; then if [[ $(grep 'dtoverlay=audremap,pins_12_13,enable_jack=on' /boot/config.txt) ]]; then
echo "dtoverlay=audremap,enable_jack=on already in /boot/config.txt" echo "dtoverlay=audremap,pins_12_13,enable_jack=on already in /boot/config.txt"
else else
echo "adding dtoverlay=audremap,enable_jack=on to /boot/config.txt" echo "adding dtoverlay=audremap,pins_12_13,enable_jack=on to /boot/config.txt"
sudo sh -c 'echo "\ndtoverlay=audremap,enable_jack=on" >> /boot/config.txt' sudo sh -c 'echo "\ndtoverlay=audremap,pins_12_13,enable_jack=on" >> /boot/config.txt'
fi fi
if [[ $(grep 'dtoverlay=pwm,pin=18,func=2' /boot/config.txt) ]]; then # if [[ $(grep 'dtoverlay=pwm,pin=18,func=2' /boot/config.txt) ]]; then
echo "dtoverlay=pwm,pin=18,func=2 already in /boot/config.txt" # echo "dtoverlay=pwm,pin=18,func=2 already in /boot/config.txt"
else # else
echo "adding to /boot/config.txt" # echo "adding to /boot/config.txt"
sudo sh -c 'echo "\ndtoverlay=pwm,pin=18,func=2" >> /boot/config.txt' # sudo sh -c 'echo "\ndtoverlay=pwm,pin=18,func=2" >> /boot/config.txt'
fi # fi
if [[ $(grep 'disable_splash=1 ' /boot/config.txt) ]]; then if [[ $(grep 'disable_splash=1 ' /boot/config.txt) ]]; then
echo "disable_splash=1 already in /boot/config.txt" echo "disable_splash=1 already in /boot/config.txt"
@ -251,6 +243,20 @@ if [ $changed -eq 1 ]; then
echo echo
fi fi
cd
sudo apt-get -y update && sudo apt-get -y upgrade
# sudo reboot now
# sudo apt install python3-pip
sudo pip3 install --upgrade adafruit-python-shell
wget https://raw.githubusercontent.com/alanbjohnston/Raspberry-Pi-Installer-Scripts/master/i2smic.py
sudo python3 i2smic.py # edit so doesn't prompt about install on boot
echo "Would you like to reboot to complete the installation (y/n)?" echo "Would you like to reboot to complete the installation (y/n)?"
read -r ANS read -r ANS

Loading…
Cancel
Save

Powered by TurnKey Linux.