This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 UART1(ttyS1) problem

hi, everybody

I am trying to use UART1 port of DM365, the driver doesnot work well and  the following is the proc information.

root@dm365-evm:~# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A mmio:0x01C20000 irq:40 tx:1392 rx:29 RTS|CTS|DTR|DSR
1: uart:unknown mmio:0x01C20400 irq:41

I can open the /dev/ttyS1, but when it is configured or some action else, it print error : /dev/ttyS1: Input/output error

The version of DVSDK is 4.02.

Maybe the UART1 is not enabled correctly but I did not find where to fix it .

  • I suppose you've already solved the problem but in the case that you haven't:

    Problem is that base address for UART1 is not correct. DAVINCI_UART1_BASE is set to 0x01C20400 in kernel, but actual address should be 0x01D06000 (you can double check that in DM365 datasheet).

    As soon as you change base address for UART1 driver is going to be recognized by:

    cat /proc/tty/driver/serial

    Regards

  • Hey freeman,

    Can't thank you enough for that post.  That one cost me nearly a day, who would have thought the kernel defs would have been wrong...