##// END OF EJS Templates
a
Unknown -
r449:946eb9ed27e3
parent child
Show More
@@ -118,6 +118,7 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
118
118
119 # 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
119 # 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
120 if [ "$ENABLE_MINIUART_OVERLAY" = true ] ; then
120 if [ "$ENABLE_MINIUART_OVERLAY" = true ] ; then
121 SET_SERIAL="ttyAMA0"
121
122
122 # set overlay to swap ttyAMA0 and ttyS0
123 # set overlay to swap ttyAMA0 and ttyS0
123 echo "dtoverlay=pi3-miniuart-bt" >> "${BOOT_DIR}/config.txt"
124 echo "dtoverlay=pi3-miniuart-bt" >> "${BOOT_DIR}/config.txt"
@@ -126,6 +127,13 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
126 if [ "$ENABLE_TURBO" = false ] ; then
127 if [ "$ENABLE_TURBO" = false ] ; then
127 echo "core_freq=250" >> "${BOOT_DIR}/config.txt"
128 echo "core_freq=250" >> "${BOOT_DIR}/config.txt"
128 fi
129 fi
130
131 # Activate services
132 chroot_exec systemctl enable pi-bluetooth.hciuart.service
133 #chroot_exec systemctl enable pi-bluetooth.bthelper@.service
134 else
135 chroot_exec systemctl enable pi-bluetooth.hciuart.service
136 #chroot_exec systemctl enable pi-bluetooth.bthelper@.service
129 fi
137 fi
130
138
131 else # if ENABLE_BLUETOOTH = false
139 else # if ENABLE_BLUETOOTH = false
@@ -140,19 +148,15 fi
140
148
141 # may need sudo systemctl disable hciuart
149 # may need sudo systemctl disable hciuart
142 if [ "$ENABLE_CONSOLE" = true ] ; then
150 if [ "$ENABLE_CONSOLE" = true ] ; then
143 echo "enable_uart=1" >> "${BOOT_DIR}/config.txt"
151 echo "enable_uart=1" >> "${BOOT_DIR}/config.txt"
144
145 # add string to cmdline
152 # add string to cmdline
146 CMDLINE="${CMDLINE} console=serial0,115200"
153 CMDLINE="${CMDLINE} console=serial0,115200"
147
154
148 # Enable serial console systemd style
155 # Enable serial console systemd style
149 chroot_exec systemctl start serial-getty@"$SET_SERIAL".service
150 chroot_exec systemctl enable serial-getty@"$SET_SERIAL".service
156 chroot_exec systemctl enable serial-getty@"$SET_SERIAL".service
151 else
157 else
152 echo "enable_uart=0" >> "${BOOT_DIR}/config.txt"
158 echo "enable_uart=0" >> "${BOOT_DIR}/config.txt"
153
159 # disable serial console systemd style
154 # Enable serial console systemd style
155 chroot_exec systemctl stop serial-getty@"$SET_SERIAL".service
156 chroot_exec systemctl disable serial-getty@"$SET_SERIAL".service
160 chroot_exec systemctl disable serial-getty@"$SET_SERIAL".service
157 fi
161 fi
158
162
@@ -1,5 +1,5
1 #
1 #
2 # Build and Setup fbturbo Xorg driver
2 # Build and Setup nexmon with monitor mode patch
3 #
3 #
4
4
5 # Load utility functions
5 # Load utility functions
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant