imx6 debug uart change

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6 debug uart change

1,954 次查看
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.

标签 (2)
0 项奖励
回复
2 回复数

1,608 次查看
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 项奖励
回复

1,608 次查看
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 项奖励
回复