I recently had some issue on how to enable UART(console) port on a raspberry pi device. This post will help you configure raspberry pi to be accessible by UART(console) on the board.
01. Edit the config.txt under /boot/firmware. Add “enable_uart=1” in the file or edit if the line already exist.


02. Edit cmdline.txt under /boot/firmware. Add “console=serial0,115200” if the line is no there yet.

