I'm using Yocto-dunfell for getting custom my Raspberrypi3 image. Here I want to enable serial-console via uart1. for that I have given change in my files-


ENABLE_UART = "1"   

and changes in my config.txt file:


and cmdline.txt:

dwc_otg.lpm_enable=0 console=serial1,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait kgdboc=serial0,115200

After these changes also I'm not getting serial data in my minicom. Please assist me if any further changes are required.

Thanks & Regards.

  • 1
    it is far from clear what OS you have or are trying to do. One thing is clear dtoverlay=uart1,txd1_pin=32,rxd1_pin=33 is unlikely to help because the pins are inaccessible on a Pi3 - the ONLY usable pins are 14,15. – Milliways Feb 16 at 10:15
  • for same pi3, I'm generating image via openwrt kernel 4.9.65, and there I'm able to get the console with the same uart1 pins 32 and 33 to txd1 and txd1 respenctively. – Prashant Mar 12 at 5:18

To use the default serial console available on pin 8 and 10 (GPIO 14 and 15) you have to use a USB to TTL serial adapter. How to connect it and how do configure the RasPi to get the serial console working you can look at What is the correct way to connect serial console on RPi4 Model B?.

  • Her in yocto image I've observed like in /dev I'm not getting ttyS0 even if I'm giving enable_uart=1, where as same in rasbian OS earlier /dev./ttyS0 was not there, but after addding enable_uart=1 in config.txt file and after rebooting it generated the /devttyS0 termina But after doing same with yocto image it's not generating the /dev/ttyS0 terminal. I've tried same with two different rpi kernel 5.4 and 4.14 by compiling two different poky's (dunfell and sumo). Please assist me with this as it's becoming bottle neck for my project. – Prashant Mar 12 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.