UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
8,235 Views
Registered: ‎06-23-2013

Zynq second UART, no output to minicom

Jump to solution

UART1 is working as ttyPS0 console on our custom board based on zc706.

Added UART0 to devicetree, /dev/ttyPS1 is there, also  /proc/interrupts 59 but there is no device name

 

 59:         53          0       GIC
 72:          0          0       GIC  f8003000.ps7-dma
 73:          0          0       GIC  f8003000.ps7-dma
 74:          0          0       GIC  f8003000.ps7-dma
 75:          0          0       GIC  f8003000.ps7-dma
 82:        807          0       GIC  xuartps

 

cat /proc/tty/driver/xuartps
serinfo:1.0 driver revision:
0: uart:xuartps mmio:0xE0001000 irq:82 tx:13435 rx:484 RTS|CTS|DTR|DSR|CD
1: uart:xuartps mmio:0xE0000000 irq:59 tx:3216 rx:0 CTS|DSR|CD

echo "hello to UART0" > /dev/ttyPS1

does not produce output to minicom.

 

Did I need to change .config ?

# CONFIG_DEBUG_ZYNQ_UART0 is not set
CONFIG_DEBUG_ZYNQ_UART1=y

 

 

dogbytes
0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
11,513 Views
Registered: ‎06-23-2013

UART0, /dev/ttyPS1 at 9600 baud Re: RX=MIO 34 TX=MIO 35 Re: Zynq second UART, no output to minicom

Jump to solution

Hurray for our oscilloscope, UART0,  /dev/ttyPS1 is running at 9600 baud.

Why by default would it not be like UART1, /dev/ttyPS0 console ?


One mystery solved and on to the next.

dogbytes
0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
8,216 Views
Registered: ‎07-01-2010

Re: Zynq second UART, no output to minicom

Jump to solution

Hi,

 

I guess ZC706 , doesn't have an option to use 2 Uarts at a time as they have single Usb-Uart bridge.

I expect Uart1 to be working as the they are connected to the MIO 48 & 49 pins and connected mini USB.

What are the MIO pins connected to Uart 0 ? Do you have two uart options on board?

 

Please correct me if my understanding is wrong.

 

Regards,
Achutha

 

 

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
8,209 Views
Registered: ‎06-23-2013

RX=MIO 34 TX=MIO 35 Re: Zynq second UART, no output to minicom

Jump to solution

Dear Moderator,   Yes, we have two UART options on our custom board.  Does zc706 bring UART0 RX,TX out to pins ?

 

I'd like to know if Xilinx has tested UART0 as a second UART and is xilinx_uartps.c suitable driver  for it ?

It did not help when I changed xilinx_zynq_defconfig and rebuilt uImage with,

CONFIG_DEBUG_ZYNQ_UART0=y

 

The console on our custom board based on zc706 works as UART1, TX=MIO 48 and RX=MIO 49 to our USB adapter to minicom.

 

  Our custom board is using for UART0 RX=MIO 34  TX=MIO 35 does not output to minicom on the same

kind of USB adapter.  The UART0 RX and TX are brought out to a ribbon cable on our custom board as are UART1 RX,TX.

dogbytes
0 Kudos
Explorer
Explorer
11,514 Views
Registered: ‎06-23-2013

UART0, /dev/ttyPS1 at 9600 baud Re: RX=MIO 34 TX=MIO 35 Re: Zynq second UART, no output to minicom

Jump to solution

Hurray for our oscilloscope, UART0,  /dev/ttyPS1 is running at 9600 baud.

Why by default would it not be like UART1, /dev/ttyPS0 console ?


One mystery solved and on to the next.

dogbytes
0 Kudos
Scholar rfs613
Scholar
8,180 Views
Registered: ‎05-28-2013

Re: UART0, /dev/ttyPS1 at 9600 baud Re: RX=MIO 34 TX=MIO 35 Re: Zynq second UART, no output to minicom

Jump to solution
The speed of the console is determined by kernel boot parameters, typically: console=ttyPS0,115200

Other UARTs do not necessarily share the same speed. If you plan to run getty/login on the other uarts, then the speed is controlled by the getty program (check in /etc/inittab if you use a busybox/PetaLinux system). You can use "setserial" to change the speed.
0 Kudos
Newbie albin.robin
Newbie
1,833 Views
Registered: ‎05-17-2018

Re: UART0, /dev/ttyPS1 at 9600 baud Re: RX=MIO 34 TX=MIO 35 Re: Zynq second UART, no output to minicom

Jump to solution

Thanks for the solution, I met with the same problem when working with a second uart on zedboard. To make matters worse, I was able to change console to the second uart without any problems. Just echo-ing to the uart didn't work. using stty to change the baud rate solved the problem.

0 Kudos