imx287: system console throw AUART0

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

imx287: system console throw AUART0

跳至解决方案
1,114 次查看
BrilliantovKiri
Senior Contributor I

Hello!

I work with custom board and it have system console on AUART0.

I add AUART support to DTS-file:

apbx@80040000 {

    auart0: serial@8006a000 {

        pinctrl-names = "default";

        pinctrl-0 = <&auart0_2pins_a>;

        status = "okay";

    };

    auart1: serial@8006c000 {

        pinctrl-names = "default";

        pinctrl-0 = <&auart1_2pins_a>;

        status = "okay";

    };

    auart2: serial@8006e000 {

        pinctrl-names = "default";

        pinctrl-0 = <&auart2_2pins_a>;

        status = "okay";

    };

};

And to Linux:

CONFIG_SERIAL_MXS_AUART=y

CONFIG_SERIAL_MXS_AUART_CONSOLE=y

CONFIG_CMDLINE="console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw rootwait ip=off"

CONFIG_CMDLINE_FORCE=y

/etc/inittab:

::respawn:/sbin/getty -L /dev/ttyAMA0 115200

Unfortunately I can't any output after power plug.

May be I should use another device for AUART0, device ttyAMA0 I use for debug UART?

Thank you and excuse my bad english.

标签 (2)
0 项奖励
回复
1 解答
970 次查看
BrilliantovKiri
Senior Contributor I

For application UART you should use ttyAPPX, e.g. ttyAPP0.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
970 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Kirill

one can check below for similar problem

Porting Linux to a new board — Christian's Blog

Best regards

igor

0 项奖励
回复
971 次查看
BrilliantovKiri
Senior Contributor I

For application UART you should use ttyAPPX, e.g. ttyAPP0.

0 项奖励
回复