Open source for IEEE 1588 PTP v2 supporting MPC831x to be available soon

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Open source for IEEE 1588 PTP v2 supporting MPC831x to be available soon

ソリューションへジャンプ
8,564件の閲覧回数
abartky
Contributor IV

Fellow Freescalers,

 

I've started the process to GPL license open source my Precision Timing Protocol software.  My current plan is to host it on Google Code and I’ve created a preliminary project page called “ptpv2d” which is the name of the daemon.  This code base is written in C based on the open source ptpd code, but with added support for PTP version 2 messages, both IPv4 and Ethernet direct, hardware timestamping (currently implemented on the Freescale MPC831x family of chips, but designed to be adaptable for other chipsets), better comments for the code, additional dynamic message support, etc.

 

This code will be GPL licensed under permission from myself and SNAP Networks Pvt. Ltd.

 

My current plans are to host it on Google Code. Comments/Questions on this forum are welcome. You can also email me directly at alan@bartky.net

I've not uploaded the code yet as I'm pretty busy including travel starting on Wednesday for a full week, but a summary of the capabilities can be found at http://www.bartky.net/products

The draft page for Google project can be found at: http://code.google.com/p/ptpv2d/
  

Comments/Questions/Suggestions etc. Are all welcome.   

 

Thanks and best regards,

 

Alan Bartky

タグ(2)
0 件の賞賛
返信
1 解決策
3,108件の閲覧回数
abartky
Contributor IV

Fellow Freescalers,

 

The aforementioned code is now posted for free GPL license usage at google code.

 

One set of modifcations is the MPC831x Linux Ethernet driver code.  This is listed under the source drivers directory which you can view or svn download at: http://code.google.com/p/ptpv2d/source/browse/#svn/trunk/ptpv2d-1a0/drivers/freescale_mpc831x/src

 

The three main files I modified to get IEEE 1588 PTP v1, v2 and IEEE 802.1AS (v2 format with Ethernet encapsulation) working at the driver level are:

  • gianfar.c
  • gianfar.h
  • gianfar_1588.c

 

This driver supports all PTP related functions via IOCTLs and has features such as the ability to correlate PTP timestamps via PTP message type and sequence number to ensure that the correct frame timestamps are processed by the application.

 

The corresponding Linux application code is under the source application directory which you can view or svn download:

http://code.google.com/p/ptpv2d/source/browse/#svn/trunk/ptpv2d-1a0/application/src

and

http://code.google.com/p/ptpv2d/source/browse/#svn/trunk/ptpv2d-1a0/application/src/dep

 

Under the src/dep tree, there is also some C code for manipulating the LEDs directly from a Linux user application on an MPC8313ERDB board that you may find useful/interesting for experimenting with that board.

 

Hopefully this is useful for those wishing to experiment with PTP with HW timestamping on the MPC831x family.

 

Cheers,

 

Alan

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
3,109件の閲覧回数
abartky
Contributor IV

Fellow Freescalers,

 

The aforementioned code is now posted for free GPL license usage at google code.

 

One set of modifcations is the MPC831x Linux Ethernet driver code.  This is listed under the source drivers directory which you can view or svn download at: http://code.google.com/p/ptpv2d/source/browse/#svn/trunk/ptpv2d-1a0/drivers/freescale_mpc831x/src

 

The three main files I modified to get IEEE 1588 PTP v1, v2 and IEEE 802.1AS (v2 format with Ethernet encapsulation) working at the driver level are:

  • gianfar.c
  • gianfar.h
  • gianfar_1588.c

 

This driver supports all PTP related functions via IOCTLs and has features such as the ability to correlate PTP timestamps via PTP message type and sequence number to ensure that the correct frame timestamps are processed by the application.

 

The corresponding Linux application code is under the source application directory which you can view or svn download:

http://code.google.com/p/ptpv2d/source/browse/#svn/trunk/ptpv2d-1a0/application/src

and

http://code.google.com/p/ptpv2d/source/browse/#svn/trunk/ptpv2d-1a0/application/src/dep

 

Under the src/dep tree, there is also some C code for manipulating the LEDs directly from a Linux user application on an MPC8313ERDB board that you may find useful/interesting for experimenting with that board.

 

Hopefully this is useful for those wishing to experiment with PTP with HW timestamping on the MPC831x family.

 

Cheers,

 

Alan

0 件の賞賛
返信
3,108件の閲覧回数
abartky
Contributor IV

Fellow Freescalers,

 

On request from several engineers, I've started a Google Groups page where those interested in my MPC831X HW timestamping capable PTP codebase.

 

If you are interested in PTP running on the MPC831X family and/or are interested in helping to port it to other environments, you may request to join the group.

 

The group page is at: http://groups.google.com/group/ptpv2d

 

The code base is at: http://code.google.com/p/ptpv2d/

 

Thanks and have a good day,

 

Alan

0 件の賞賛
返信
3,108件の閲覧回数
zzshibi
Contributor I

hi

I have contact the IEEE1588 for two months ,but I don't how to use it .

I have make a system with  MPC8536RDK, and i have transplant a linux system to the system . i know this chip is support for IEEE1588,and I have see the code file under the directory /dirvers/net:gianfar.c,gianfar_1588.c etc.

now i want to know what I should to do first and second until success.

please forgive me for i haven't know much more,i think if i get some guide directly from you i will do it more quickly.

thank you very much!

0 件の賞賛
返信