#4259 activating nvme hat on sd card build (#4322)

* #4259 activating nvme in config.txt
* adding to CHANGES
* compact config.txt
This commit is contained in:
/rootzoll 2023-12-15 01:42:31 +01:00 committed by GitHub
parent 127d88efcc
commit c290205fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 20 deletions

View file

@ -1,5 +1,6 @@
## What's new in Version 1.11.0 of RaspiBlitz? ## What's new in Version 1.11.0 of RaspiBlitz?
- New: Enabling NVMe PCIe Hats
- Update: RaspiOS base image from 2023-12-05 (Bookworm) - Update: RaspiOS base image from 2023-12-05 (Bookworm)
- Update: Bitcoin Core v26.0 [details](https://bitcoincore.org/en/releases/26.0/) - Update: Bitcoin Core v26.0 [details](https://bitcoincore.org/en/releases/26.0/)
- Update: LND v0.17.3-beta [details](https://github.com/lightningnetwork/lnd/releases/tag/v0.17.3-beta) - Update: LND v0.17.3-beta [details](https://github.com/lightningnetwork/lnd/releases/tag/v0.17.3-beta)

View file

@ -437,15 +437,18 @@ if [ "${baseimage}" = "raspios_arm64" ]; then
# see https://github.com/rootzoll/raspiblitz/issues/428#issuecomment-472822840 # see https://github.com/rootzoll/raspiblitz/issues/428#issuecomment-472822840
configFile="/boot/config.txt" configFile="/boot/config.txt"
max_usb_current="max_usb_current=1" raspiblitzEdits=$(grep -c "Raspiblitz" $configFile)
max_usb_currentDone=$(grep -c "$max_usb_current" $configFile)
if [ ${max_usb_currentDone} -eq 0 ]; then if [ ${raspiblitzEdits} -eq 0 ]; then
echo "# Raspiblitz Edits adding to $configFile"
echo | tee -a $configFile echo | tee -a $configFile
echo "# Raspiblitz" | tee -a $configFile echo "# Raspiblitz" | tee -a $configFile
echo "$max_usb_current" | tee -a $configFile echo "max_usb_current=1" | tee -a $configFile
echo "dtparam=nvme" | tee -a $configFile
echo 'dtoverlay=pi3-disable-bt' | tee -a $configFile
echo 'dtoverlay=disable-bt' | tee -a $configFile
else else
echo "$max_usb_current already in $configFile" echo "# Raspiblitz Edits already in $configFile"
fi fi
# run fsck on sd root partition on every startup to prevent "maintenance login" screen # run fsck on sd root partition on every startup to prevent "maintenance login" screen
@ -754,21 +757,6 @@ if [ "${baseimage}" = "raspios_arm64" ] || [ "${baseimage}" = "debian" ]; then
ifconfig wlan0 down ifconfig wlan0 down
fi fi
echo -e "\n*** DISABLE BLUETOOTH ***"
configFile="/boot/config.txt"
disableBT="dtoverlay=disable-bt"
disableBTDone=$(grep -c "$disableBT" $configFile)
if [ "${disableBTDone}" -eq 0 ]; then
# disable bluetooth module
echo "" | tee -a $configFile
echo "# Raspiblitz" | tee -a $configFile
echo 'dtoverlay=pi3-disable-bt' | tee -a $configFile
echo 'dtoverlay=disable-bt' | tee -a $configFile
else
echo "disable BT already in $configFile"
fi
# remove bluetooth services # remove bluetooth services
systemctl disable bluetooth.service systemctl disable bluetooth.service
systemctl disable hciuart.service systemctl disable hciuart.service