I reran the install with regard to the serial interface:
That means it does not matter, and it is not necessary, to enable the serial port in raspi-config manually; you have to do it through openplotter-pypilot anyway. I believe this was different in the previous version of openplotter/raspbian, when the raspi-config actions were enough to make pypilot access the serial. Still, this is no problem for the rollout to openplotter, but it needs to be part of the release notes / install instructions, otherwise it might confuse those who are new to this arena.
See this output:
- On a clean 32-bit Openplotter 3.0 image on a raspberry 3b+, there is only a ttyAMA0 interface; serial1 points to it.
- When serial port is enabled in raspi-config, and serial console disabled, ttyS0 is added and serial0 points to it.
- When openplotter-pypilot has done its 'enable hardware serial' thing, serial0 and serial1 are swapped, and hciuart is disabled.
That means it does not matter, and it is not necessary, to enable the serial port in raspi-config manually; you have to do it through openplotter-pypilot anyway. I believe this was different in the previous version of openplotter/raspbian, when the raspi-config actions were enough to make pypilot access the serial. Still, this is no problem for the rollout to openplotter, but it needs to be part of the release notes / install instructions, otherwise it might confuse those who are new to this arena.
See this output:
Code:
On a clean 32-bit Openplotter 3.0 image on a raspberry 3b+, there is only a ttyAMA0 interface; serial1 points to it.
root@openplotter:~# ls -al /dev/serial*
lrwxrwxrwx 1 root root 7 Jul 18 19:27 /dev/serial1 -> ttyAMA0
root@openplotter:~# cat /boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=214172f9-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
root@openplotter:~# grep disable-bt /boot/config.txt
root@openplotter:~# systemctl status hciuart|grep -E "Loaded:|Active:"
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-07-18 19:27:27 BST; 1 months 17 days ago
When serial port is enabled in raspi-config, and serial console disabled, serial0 points to ttyS0
root@openplotter:~# ls -al /dev/serial*
lrwxrwxrwx 1 root root 5 Sep 5 04:30 /dev/serial0 -> ttyS0
lrwxrwxrwx 1 root root 7 Sep 5 04:30 /dev/serial1 -> ttyAMA0
root@openplotter:~# cat /boot/cmdline.txt
console=tty1 root=PARTUUID=214172f9-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
root@openplotter:~# grep disable-bt /boot/config.txt
root@openplotter:~# systemctl status hciuart|grep -E "Loaded:|Active:"
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-09-05 04:30:54 BST; 2min 38s ago
root@openplotter:~#
When openplotter does its thing, serial0 and serial1 are swapped, and hciuart is disabled.
pi@openplotter:~ $ ls -al /dev/serial*
lrwxrwxrwx 1 root root 7 Sep 5 04:43 /dev/serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Sep 5 04:43 /dev/serial1 -> ttyS0
pi@openplotter:~ $ cat /boot/cmdline.txt
root=PARTUUID=214172f9-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
pi@openplotter:~ $ grep disable-bt /boot/config.txt
dtoverlay=disable-bt
pi@openplotter:~ $ systemctl status hciuart|grep -E "Loaded:|Active:"
Loaded: loaded (/lib/systemd/system/hciuart.service; disabled; vendor preset: enabled)
Active: inactive (dead)