##// END OF EJS Templates
leer
burnbabyburn -
r504:63f03c2168d8
parent child
Show More
@@ -95,7 +95,7 if [ "$ENABLE_TURBO" = true ] ; then
95 95 fi
96 96
97 97 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
98
98
99 99 # Bluetooth enabled
100 100 if [ "$ENABLE_BLUETOOTH" = true ] ; then
101 101 # Create temporary directory for Bluetooth sources
@@ -117,7 +117,7 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
117 117 # Install tools
118 118 install_readonly "${R}/tmp/pi-bluetooth/usr/bin/btuart" "${R}/usr/bin/btuart"
119 119 install_readonly "${R}/tmp/pi-bluetooth/usr/bin/bthelper" "${R}/usr/bin/bthelper"
120
120
121 121 # make scripts executable
122 122 chmod +x "${R}/usr/bin/bthelper"
123 123 chmod +x "${R}/usr/bin/btuart"
@@ -131,11 +131,11 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
131 131 install_readonly "${R}/tmp/pi-bluetooth/BCM43430A1.hcd" "${BLUETOOTH_FIRMWARE_DIR}/LICENCE.broadcom_bcm43xx"
132 132 install_readonly "${R}/tmp/pi-bluetooth/debian/pi-bluetooth.bthelper@.service" "${ETC_DIR}/systemd/system/pi-bluetooth.bthelper@.service"
133 133 install_readonly "${R}/tmp/pi-bluetooth/debian/pi-bluetooth.hciuart.service" "${ETC_DIR}/systemd/system/pi-bluetooth.hciuart.service"
134
134
135 135 # Remove temporary directories
136 136 rm -fr "${temp_dir}"
137 137 rm -fr "${R}"/tmp/pi-bluetooth
138
138
139 139 # Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore UART0/ttyAMA0 over GPIOs 14 & 15. Slow Bluetooth and slow cpu. Use /dev/ttyS0 instead of /dev/ttyAMA0
140 140 if [ "$ENABLE_MINIUART_OVERLAY" = true ] ; then
141 141
@@ -147,10 +147,10 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
147 147 echo "core_freq=250" >> "${BOOT_DIR}/config.txt"
148 148 fi
149 149 fi
150
150
151 151 # Activate services
152 152 chroot_exec systemctl enable pi-bluetooth.hciuart.service
153
153
154 154 else # if ENABLE_BLUETOOTH = false
155 155 # set overlay to disable bluetooth
156 156 echo "dtoverlay=pi3-disable-bt" >> "${BOOT_DIR}/config.txt"
@@ -162,7 +162,7 if [ "$ENABLE_CONSOLE" = true ] ; then
162 162 echo "enable_uart=1" >> "${BOOT_DIR}/config.txt"
163 163 # add string to cmdline
164 164 CMDLINE="${CMDLINE} console=serial0,115200"
165
165
166 166 # Enable serial console systemd style
167 167 chroot_exec systemctl enable serial-getty@serial0.service
168 168 else
@@ -184,25 +184,25 if [ "$ENABLE_SYSTEMDSWAP" = true ] ; then
184 184
185 185 # Remove temporary directory for systemd-swap sources
186 186 rm -fr "${temp_dir}"
187
187
188 188 # Change into downloaded src dir
189 189 cd "${R}/tmp/systemd-swap" || exit
190
190
191 191 # Build package
192 192 . ./package.sh debian
193
193
194 194 # Install package
195 195 chroot_exec dpkg -i /tmp/systemd-swap/systemd-swap-*any.deb
196
196
197 197 # Enable service
198 198 chroot_exec systemctl enable systemd-swap
199
199
200 200 # Change back into script root dir
201 201 cd "${WORKDIR}" || exit
202 202 else
203 203 # Enable ZSWAP in cmdline if systemd-swap is not used
204 204 if [ "$KERNEL_ZSWAP" = true ] ; then
205 CMDLINE="${CMDLINE} zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4"
205 CMDLINE="${CMDLINE} zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4"
206 206 fi
207 207 fi
208 208 if [ "$KERNEL_SECURITY" = true ] ; then
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant