##// 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 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 120 if [ "$ENABLE_MINIUART_OVERLAY" = true ] ; then
121 SET_SERIAL="ttyAMA0"
121 122
122 123 # set overlay to swap ttyAMA0 and ttyS0
123 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 127 if [ "$ENABLE_TURBO" = false ] ; then
127 128 echo "core_freq=250" >> "${BOOT_DIR}/config.txt"
128 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 137 fi
130 138
131 139 else # if ENABLE_BLUETOOTH = false
@@ -140,19 +148,15 fi
140 148
141 149 # may need sudo systemctl disable hciuart
142 150 if [ "$ENABLE_CONSOLE" = true ] ; then
143 echo "enable_uart=1" >> "${BOOT_DIR}/config.txt"
144
151 echo "enable_uart=1" >> "${BOOT_DIR}/config.txt"
145 152 # add string to cmdline
146 153 CMDLINE="${CMDLINE} console=serial0,115200"
147 154
148 155 # Enable serial console systemd style
149 chroot_exec systemctl start serial-getty@"$SET_SERIAL".service
150 156 chroot_exec systemctl enable serial-getty@"$SET_SERIAL".service
151 157 else
152 158 echo "enable_uart=0" >> "${BOOT_DIR}/config.txt"
153
154 # Enable serial console systemd style
155 chroot_exec systemctl stop serial-getty@"$SET_SERIAL".service
159 # disable serial console systemd style
156 160 chroot_exec systemctl disable serial-getty@"$SET_SERIAL".service
157 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 5 # Load utility functions
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant