I use the Sabreauto board.
I'm trying to change the yocto debug port.
Sabre board confirmed it was uart4.
I'd like to change it to uart3.
I saw an article written by victor Wang .....https://community.nxp.com/thread/319950 <-- good
question!!
Why do I need this part to change the debug port?
<yocto>/source/meta-fsl-arm/conf/machine/include/imx6sabresd-common.inc
SERIAL_CONSOLE = "115200 ttymxc2"
Does it not work if I change it only on uboot and kernel?
best regards.
I think it is required for proper setup of getty on serial ports if you are using sysvinit. Here is a portion of sysvinit-inittab recipe from openembedded layer:
tmp="${SERIAL_CONSOLES}" for i in $tmp do j=`echo ${i} | sed s/\;/\ /g` label=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` echo "$label:12345:respawn:${base_sbindir}/getty -L ${j}" >> ${D}${sysconfdir}/inittab done
You can find the definition of SERIAL_CONSOLE in Yocto Project Reference Manual . And according to the reference manual, the SERIAL_CONSOLE
variable is deprecated.