I need to be able to enable uart4 on a Pi4 using dtoverlay, without adding it to /boot/config.txt, and have /dev/ttyAMA2 available immediately. The dtoverlay part is easy, sudo dtoverlay uart4
, but /dev/ttyAMA2 does not show up.
Why? Because I am setting up automated configuration of a device and while I'm writing dtoverlay=uart4
to /boot/config.txt, I need to be able to immediately access that serial port without a reboot, in order to flash firmware to a device on that port.
dtoverlay -l
shows the overlay. I just don't understand how to get /dev/ttyAMA2 to show up as a device.