can't use ttySP4

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

can't use ttySP4

1,305 次查看
mehmet
Contributor I

Hello,

I need to use application uart 4; /dev/ttySP4. When I try to open I got below command.

Error:: No such device or address

Cannot open "/dev/ttySP4" 

 

I couldn't see device node on /dev directory and I added with below command,

mknod /dev/ttySP4 c 242 4

 

Then retry and got same error

 

Thanks.

Mehmet Kurnaz

 

标记 (1)
0 项奖励
5 回复数

926 次查看
mehmet
Contributor I

Sorry, it should be UART 5. 

0 项奖励

926 次查看
KrishnaPavan
Contributor II

Hi,

 

UART 4 can be tty3/ttyS3/ttymxc3

0 项奖励

926 次查看
mehmet
Contributor I

There is no response for 2 months. Where does linux initialize the serial ports? First 4 uarts are ok, but last one cannot be initialized. 

 

Mehmet

0 项奖励

926 次查看
GabrielSartori
Contributor II

Hello,

  I have got the same problem.

  I selected CONFIG_MXS_AUART4_DEVICE_ENABLE in kernel menuconfig.

  I have also added the above lines in file mx28evk_pins.c

        {
         .name  = "AUART4.RX",
         .id    = PINID_AUART0_CTS,
         .fun   = PIN_FUN2,
         },
        {
         .name  = "AUART4.TX",
         .id    = PINID_AUART0_RTS,
         .fun   = PIN_FUN2,
         },

  I cannot see in kernel dmesg something like like the above in kernel boot messages.

mxs-auart.4: ttySP4 at MMIO 0x80072000 (irq = 116) is a mxs-auart.4
0 项奖励

926 次查看
MaheshMahadevan
Contributor I

UART device on the MX53 are called /dev/ttymxc(0,1,2,3)

 

For UART4, try using /dev/ttymxc3

0 项奖励