@@ -156,14 +156,8 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |||
|
156 | 156 | |
|
157 | 157 | # 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 |
|
158 | 158 | if [ "$ENABLE_MINIUART_OVERLAY" = true ] ; then |
|
159 | ||
|
160 | 159 | # set overlay to swap ttyAMA0 and ttyS0 |
|
161 | 160 | echo "dtoverlay=pi3-miniuart-bt" >> "${BOOT_DIR}/config.txt" |
|
162 | ||
|
163 | # if force_turbo didn't lock cpu at high speed, lock it at low speed (XOR logic) or miniuart will be broken | |
|
164 | if [ "$ENABLE_TURBO" = false ] ; then | |
|
165 | echo "core_freq=250" >> "${BOOT_DIR}/config.txt" | |
|
166 | fi | |
|
167 | 161 | fi |
|
168 | 162 | |
|
169 | 163 | # Activate services |
@@ -180,6 +174,13 if [ "$ENABLE_CONSOLE" = true ] ; then | |||
|
180 | 174 | echo "enable_uart=1" >> "${BOOT_DIR}/config.txt" |
|
181 | 175 | # add string to cmdline |
|
182 | 176 | CMDLINE="${CMDLINE} console=serial0,115200" |
|
177 | ||
|
178 | if [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ]; then | |
|
179 | # if force_turbo didn't lock cpu at high speed, lock it at low speed (XOR logic) or miniuart will be broken | |
|
180 | if [ "$ENABLE_TURBO" = false ] ; then | |
|
181 | echo "core_freq=250" >> "${BOOT_DIR}/config.txt" | |
|
182 | fi | |
|
183 | fi | |
|
183 | 184 | |
|
184 | 185 | # Enable serial console systemd style |
|
185 | 186 | chroot_exec systemctl enable serial-getty@serial0.service |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant