how to use ttymxc0 as a comon uart

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

how to use ttymxc0 as a comon uart

984 Views
raysonrayson
Contributor I

Hi All:

   On mx6sdq, the ttymxc0 is used as a debug uart,   I want to use it as a common uart connected by a printer. when during debugging time , I want it used as debug uart  to output informations, others, I want to use it as a common uart , and do not output any debug information 。Can you give me some suggestions? thanks very much。

Labels (1)
0 Kudos
4 Replies

753 Views
haoranwang
NXP Employee
NXP Employee

Hi Rayson,

     I think you can remove the debug uart ttymxc0 port by changing BOARD_KERNEL_CMDLINE in BoardConfig.mk. Then try use it as normal uart.

     Thanks.

BRs,

Haoran

0 Kudos

753 Views
raysonrayson
Contributor I

Hi Haoran:

   Thanks for your reply , I use the linux  version,not android ,and how to do , please give me some suggestions, thank you again.

0 Kudos

753 Views
haoranwang
NXP Employee
NXP Employee

Hi Rayson,

     I think they are same. You can simply modify the "console" parameter in uboot "bootargs" or "mmcargs" to ttymxc1 or other. But I cannot make sure whether the kernel log will print to ttymxc1. But the ttymxc0 will be free to use.

     Thanks.

BRs,

Haoran

0 Kudos

753 Views
raysonrayson
Contributor I

Hi Haoran:

   I see, thank you very much。

0 Kudos