Also you can read this, to config the console uart. in the config.txt.
https://www.raspberrypi.org/documentation/configuration/uart.md
https://www.raspberrypi.org/documentation/configuration/uart.md