PTP testing on MPC8515E

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

PTP testing on MPC8515E

2,276 Views
gouravjain
Contributor IV

Hi All,

I have two boards each having MPC8515E chipset.

Want to perform PTP testing (IEEE-1588), for timing synchronization between the boards.

As far as i understood about protocol, it needs 4 messages for synchronization.

But certain points are unclear for me,

1) How to make one board master and another one as a slave??

2) How to transmit PTP packets over ethernet from user space (one board to another)??

As of now i followed AN-3423.

Pls help me to get any useful documents/process for configuration and testing the same.

 

Thanks in advance.... 

Gourav

Labels (1)
8 Replies

1,876 Views
bpe
NXP Employee
NXP Employee

There is a Linux BSP for MPC8315E-RDB which supports PTP. Obtain the
BSP DVD image and look at help/documents/html/IEEE1588-MPC8315ERDB.html
The document explains exactly what you want - driver details plus a
test with two MPC8315E-RDB boards connected to each other.


Have a great day,
Platon

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,876 Views
gouravjain
Contributor IV

Hi Platon,

Waiting for your reply...

0 Kudos
Reply

1,876 Views
bpe
NXP Employee
NXP Employee

Not sure where you have taken kernel 3.12 for MCP8313 from. The most recent
officially published BSP is based on 2.6.23 and offers an
identical IEEE 1588 enablement document. Anyway, newer kernels
should work, if configured and built correctly.   You can
try, for instance 3.12 from QorIQ SDK 1.6, all necessary files are there:

http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/tree/drivers/net/ethernet/freescale?id=fsl-s...

Please keep in mind, however, that the SDK supports processors
equipped with a compatible assist module, but _not_ the exact models
you are working with,  MPC8313 and MCP8315, so we did not verify it
on them.

Regards,

Platon

0 Kudos
Reply

1,876 Views
gouravjain
Contributor IV

Hi Platon,

Linux 3.12 has gianfar.c and gianfar_ptp.c. After enabling ptp in .dts file, probe function of gianfar_ptp.c is getting called. (kept some prints).

Now, i want to perform ptp functionality test at driver level. Found the file timestamping.c under the path:

Documentation/networking/timestamping/timestamping.c

can you pls let me know how to use this file ??

Once it gets through, will run linux ptp stack "linuxptp-2.0" on my card.

thanks,

Gourav 

0 Kudos
Reply

1,876 Views
gouravjain
Contributor IV

Hi,

Another query is, 

When i run linuxptp-2 on my card , getting following message,

root@CDOT-BBWT:/# ./ptp4l -i eth1 -m
ptp4l[102948.455GJ: ptp_gianfar_adjfreq
]: selected /dev/ptp0 as PTP clock
ptp4l[102948.463]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[102948.465]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[102954.484]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[102954.484]: selected local clock 002488.fffe.003ca3 as best master
ptp4l[102954.484]: assuming the grand master role
ptp4l[102955.488]: missing timestamp on transmitted sync
ptp4l[102955.489]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)

seems like last two lines are error. can you pls let me know what does it mean ???

0 Kudos
Reply

1,876 Views
bpe
NXP Employee
NXP Employee

As I have already informed you, we cannot share any experience with
the kernel and the application you are trying to use on this processor.
My recommendation in this regard is, debug it. If yo wish NXP to
customize your software to run on your device, consider out paid
Professional Services:

https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE


Have a great day,
Platon

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,876 Views
gouravjain
Contributor IV

Hi Platon,

Thanks for your response...

I have downloaded MPC8315eRDB image. After going through doc "help/documents/html/IEEE1588-MPC8315ERDB.html" 

what i understood that we need 2 files,

1) gianfar.c

2) gianfar_1588.c

As of now MPC8313eRDB is being used in our card but i'm not able to find any  gianfar_1588.c file. 

Can you pls let me know how to integrate gianfar_1588.c in MPC8313eRDB.

regards,

Gourav 

0 Kudos
Reply

1,876 Views
gouravjain
Contributor IV

Hi,

MPC8315eRDB has linux2.6.29.6 while MPC8313eRDB which we are using has linux-3.12. Thats why we need support of gianfar_1588.c in linux-3.12.

Another doubt is how to locate "ptp_eth1" application in  MPC8315eRDB  ???

0 Kudos
Reply