imx6 debug uart change

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 debug uart change

1,207 Views
kangmw086
Contributor III

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.

Labels (2)
0 Kudos
2 Replies

861 Views
turker
Contributor IV

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
0 Kudos

861 Views
jimmychan
NXP TechSupport
NXP TechSupport

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.

0 Kudos