Thread: [Linuxptp-users] PTP on Davinci(TI81xx)
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: <sur...@wi...> - 2013-08-30 12:52:45
|
Hi, We are trying to bring up linuxptp on Ti81xx board (Davinci) board In the wiki it is mentioned that it is already been tested and working on Davinci/Sitara... But we are not able to bring it up. Please let us know the usage of the ptp binaries on this boards. On master side we have run ptp4l as below ------------------------------------------------------------------------------------------------------------------------------------------ root@dm814x-evm:/home# ./ptp4l -2 -i eth0 -p /dev/ptp0 -m -sh: ./ptp4l: not found root@dm814x-evm:/home# cd linuxptp_bin/ root@dm814x-evm:/home/linuxptp_bin# ./ptp4l -2 -i eth0 -p /dev/ptp0 -m ptp4l[273.895]: selected /dev/ptp0 as PTP clock ptp4l[273.896]: failed to read out the clock frequency adjustment: Operation not supported ptp4l[273.897]: port 1: get_ts_info not supported ptp4l[273.902]: driver changed our HWTSTAMP options ptp4l[273.902]: tx_type 1 not 1 ptp4l[273.902]: rx_filter 9 not 12 ptp4l[273.902]: driver rejected most general HWTSTAMP filter ptp4l[273.902]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[273.903]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[279.902]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[279.903]: selected best master clock 080028.fffe.31f6ca ptp4l[279.903]: assuming the grand master role --------------------------------------------------------------------------------------------------------------------------- On the slave side ---------------------------------------------------------------------------------------------------------------------------- ./ptp4l -s -2 -i eth0 -p /dev/ptp0 -m ptp4l[1452.755]: selected /dev/ptp0 as PTP clock ptp4l[1452.757]: failed to read out the clock frequency adjustment: Operation not supported ptp4l[1452.757]: port 1: get_ts_info not supported ptp4l[1452.763]: driver changed our HWTSTAMP options ptp4l[1452.763]: tx_type 1 not 1 ptp4l[1452.763]: rx_filter 9 not 12 ptp4l[1452.763]: driver rejected most general HWTSTAMP filter ptp4l[1452.764]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[1452.764]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[1458.773]: driver changed our HWTSTAMP options ptp4l[1458.773]: tx_type 1 not 1 ptp4l[1458.773]: rx_filter 9 not 12 ptp4l[1458.773]: driver rejected most general HWTSTAMP filter ptp4l[1458.774]: selected best master clock 847e40.fffe.2aabdc ptp4l[1464.773]: driver changed our HWTSTAMP options ptp4l[1464.773]: tx_type 1 not 1 ptp4l[1464.773]: rx_filter 9 not 12 ptp4l[1464.773]: driver rejected most general HWTSTAMP filter ptp4l[1464.774]: selected best master clock 847e40.fffe.2aabdc ptp4l[1470.773]: driver changed our HWTSTAMP options ptp4l[1470.773]: tx_type 1 not 1 ptp4l[1470.773]: rx_filter 9 not 12 ptp4l[1470.773]: driver rejected most general HWTSTAMP filter ptp4l[1470.774]: selected best master clock 847e40.fffe.2aabdc ptp4l[1473.606]: port 1: received SYNC without timestamp ptp4l[1473.607]: port 1: bad message ptp4l[1474.606]: port 1: received SYNC without timestamp ptp4l[1474.607]: port 1: new foreign master 080028.fffe.31f6ca-1 ptp4l[1474.607]: port 1: bad message ptp4l[1475.606]: port 1: received SYNC without timestamp ptp4l[1475.607]: port 1: bad message ptp4l[1476.606]: port 1: received SYNC without timestamp ptp4l[1476.607]: port 1: bad message ptp4l[1476.773]: driver changed our HWTSTAMP options ptp4l[1476.773]: tx_type 1 not 1 ptp4l[1476.773]: rx_filter 9 not 12 ptp4l[1476.774]: driver rejected most general HWTSTAMP filter ptp4l[1476.774]: selected best master clock 847e40.fffe.2aabdc ptp4l[1477.606]: port 1: received SYNC without timestamp ptp4l[1477.607]: port 1: bad message ptp4l[1478.607]: port 1: received SYNC without timestamp ptp4l[1478.609]: selected best master clock 080028.fffe.31f6ca ptp4l[1478.609]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[1478.609]: port 1: bad message ptp4l[1478.665]: port 1: received DELAY_REQ without timestamp ptp4l[1479.607]: port 1: received SYNC without timestamp ptp4l[1479.607]: port 1: bad message ptp4l[1479.882]: missing timestamp on transmitted delay request ptp4l[1479.883]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[1495.893]: driver changed our HWTSTAMP options ptp4l[1495.893]: tx_type 1 not 1 ptp4l[1495.893]: rx_filter 9 not 12 ptp4l[1495.893]: driver rejected most general HWTSTAMP filter ptp4l[1495.894]: port 1: FAULTY to LISTENING on FAULT_CLEARED ptp4l[1496.609]: port 1: new foreign master 080028.fffe.31f6ca-1 ptp4l[1496.610]: port 1: received SYNC without timestamp ptp4l[1496.610]: port 1: bad message --------------------------------------------------------------------------------------------------------------------------- On client side we are getting the error port 1: received SYNC without timestamp ptp4l[1473.607]: port 1: bad message Server is able to send the Anounce /SYNC / Follow UP message. But client is not responding..?/ Is the usage of ptp is correct? Thanks and regards Suresh |
From: Delio B. <dbr...@au...> - 2013-08-30 13:49:57
|
Hi Suresh, On Aug 30, 2013, at 2:51 PM, <sur...@wi...> wrote: > Hi, > > We are trying to bring up linuxptp on Ti81xx board (Davinci) board Which SoC is it exactly and which kernel (compiled from which source repository/branch) are you using? > In the wiki it is mentioned that it is already been tested and working on Davinci/Sitara... What are the URLs of the relevant wiki pages? > But we are not able to bring it up. > > Please let us know the usage of the ptp binaries on this boards. [...] > On client side we are getting the error > port 1: received SYNC without timestamp > ptp4l[1473.607]: port 1: bad message > > > Server is able to send the Anounce /SYNC / Follow UP message. But client is not responding..?/ > > Is the usage of ptp is correct? linuxptp's command line options look OK to me (of course that depends on what you are trying to do). There is a problem with packet timestamping though. Regards -- Delio |
From: <sur...@wi...> - 2013-08-30 14:49:05
|
Hi, We are refering to this website where it is suggested to use linuxptp for TI boards http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/204024/859216.aspx#859216 Linuxptp web tells that davinci TI board is supported. http://linuxptp.sourceforge.net/ --------------------------------------------------------------------------- davinci_emac TI DaVinci, Sitara SW N Y 3.1 ---------------------------------------------------------------------------- We are trying to sync the PTP clock on boards. Thanks and Regards Suresh ________________________________________ From: Delio Brignoli [dbr...@au...] Sent: Friday, August 30, 2013 7:19 PM To: Suresh Udipi (WT01 - PES) Cc: lin...@li... Subject: Re: [Linuxptp-users] PTP on Davinci(TI81xx) Hi Suresh, On Aug 30, 2013, at 2:51 PM, <sur...@wi...> wrote: > Hi, > > We are trying to bring up linuxptp on Ti81xx board (Davinci) board Which SoC is it exactly and which kernel (compiled from which source repository/branch) are you using? > In the wiki it is mentioned that it is already been tested and working on Davinci/Sitara... What are the URLs of the relevant wiki pages? > But we are not able to bring it up. > > Please let us know the usage of the ptp binaries on this boards. [...] > On client side we are getting the error > port 1: received SYNC without timestamp > ptp4l[1473.607]: port 1: bad message > > > Server is able to send the Anounce /SYNC / Follow UP message. But client is not responding..?/ > > Is the usage of ptp is correct? linuxptp's command line options look OK to me (of course that depends on what you are trying to do). There is a problem with packet timestamping though. Regards -- Delio |
From: Richard C. <ric...@gm...> - 2013-08-30 17:16:41
|
On Fri, Aug 30, 2013 at 02:46:35PM +0000, sur...@wi... wrote: > > Linuxptp web tells that davinci TI board is supported. > http://linuxptp.sourceforge.net/ > --------------------------------------------------------------------------- > davinci_emac TI DaVinci, Sitara SW N Y 3.1 ^^ This means that software time stamping is supported. And, as Delio said, this support is in the emac driver. There is mainline kernel support for the PTP capabilities of the cpsw/cpts, but only for the am33xx. I can't really help you with your vendor kernel. Sorry, Richard |
From: <sur...@wi...> - 2013-08-30 14:55:13
|
SOC DAVINCI TI81xx kernel-2.6.37 ________________________________________ From: Delio Brignoli [dbr...@au...] Sent: Friday, August 30, 2013 7:19 PM To: Suresh Udipi (WT01 - PES) Cc: lin...@li... Subject: Re: [Linuxptp-users] PTP on Davinci(TI81xx) Hi Suresh, On Aug 30, 2013, at 2:51 PM, <sur...@wi...> wrote: > Hi, > > We are trying to bring up linuxptp on Ti81xx board (Davinci) board Which SoC is it exactly and which kernel (compiled from which source repository/branch) are you using? > In the wiki it is mentioned that it is already been tested and working on Davinci/Sitara... What are the URLs of the relevant wiki pages? > But we are not able to bring it up. > > Please let us know the usage of the ptp binaries on this boards. [...] > On client side we are getting the error > port 1: received SYNC without timestamp > ptp4l[1473.607]: port 1: bad message > > > Server is able to send the Anounce /SYNC / Follow UP message. But client is not responding..?/ > > Is the usage of ptp is correct? linuxptp's command line options look OK to me (of course that depends on what you are trying to do). There is a problem with packet timestamping though. Regards -- Delio |
From: Delio B. <dbr...@au...> - 2013-08-30 15:32:09
|
On Aug 30, 2013, at 4:51 PM, <sur...@wi...> wrote: > SOC > DAVINCI > TI81xx Yes, but what are the "xx"? ;-) > kernel-2.6.37 This does not help me knowing which kernel you are using, but then I saw your forum post. See below. From your other email: > We are refering to this website where it is suggested to use linuxptp for TI boards > > http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/204024/859216.aspx#859216 Oh I see, you were talking about TI's forum. > Linuxptp web tells that davinci TI board is supported. > http://linuxptp.sourceforge.net/ > --------------------------------------------------------------------------- > davinci_emac TI DaVinci, Sitara SW N Y 3.1 > ---------------------------------------------------------------------------- AFAIK TI81XX SoCs (the 'DaVinci' name on those is misleading) do not use the davinci_emac driver, rather they use the cpsw driver. From your forum post I see you are using a kernel from ezsdk 5_05_02_00. I cannot be sure without downloading/unpacking and checking, but I suspect the timestamping in the cpsw driver shipped with that kernel does not work well. You may want to try this repo <http://arago-project.org/git/projects/linux-omap3.git> (branch ti81xx-master), it *may* work better. HTH -- Delio > ________________________________________ > From: Delio Brignoli [dbr...@au...] > Sent: Friday, August 30, 2013 7:19 PM > To: Suresh Udipi (WT01 - PES) > Cc: lin...@li... > Subject: Re: [Linuxptp-users] PTP on Davinci(TI81xx) > > Hi Suresh, > > On Aug 30, 2013, at 2:51 PM, <sur...@wi...> wrote: > >> Hi, >> >> We are trying to bring up linuxptp on Ti81xx board (Davinci) board > > Which SoC is it exactly and which kernel (compiled from which source repository/branch) are you using? > >> In the wiki it is mentioned that it is already been tested and working on Davinci/Sitara... > > What are the URLs of the relevant wiki pages? > >> But we are not able to bring it up. >> >> Please let us know the usage of the ptp binaries on this boards. > > [...] > >> On client side we are getting the error >> port 1: received SYNC without timestamp >> ptp4l[1473.607]: port 1: bad message >> >> >> Server is able to send the Anounce /SYNC / Follow UP message. But client is not responding..?/ >> >> Is the usage of ptp is correct? > > linuxptp's command line options look OK to me (of course that depends on what you are trying to do). There is a problem with packet timestamping though. > > Regards > -- > Delio > > |