Monday, August 12, 2013

12. PTP Router (Precision Time Protocol Router)

a. NetFPGA Base Version : v2.0
b. PTP Package : PTP Router 1.0.0
After downloading this package, merge it with the NF2 folder in root.
c. After this, compile and load the driver again, i.e., use the following commands :
  1. cd ~/NF2
  2. make
  3. make install
d. Regression Tests : Regression tests for PTP Router are the same as those for reference router.
e. Building the software : For building the software, use the following command :
  1. cd NF2/projects/ptp_router/sw
  2. make install
  3. cd scone-ptp
  4. make
f. For running the PTP project, go to the directory sw/scone-ptp and use the command ./scone.
Sample Output : Follow the link



  1. Hi,
    I do not have the NF2 folder. Where did I make the mistake? I can not find it even after doing all the steps again. Thanks

  2. Hi,
    I wonder which version of exact NetFPGA package you were using. I have tried version 3.0.1, 2.2.0, 2.1.1, and 2.1.0. And none of them worked to PTP router while doing “make install” to create scone-ptp folder by generating patching error like this: patch: **** rejecting absolute target file name: /home/jnaous/local/…. If I changed the line “patch -p0 …” to “patch -p1 …” in Makefile, the patching works but there are other errors like Hunk #2 FAILED at 86. 2 out of 8 hunks FAILED — saving rejects to file sr_base.c.rej.

    Can you help me get rid of this?
    Thank you.

    1. hi.. are all the previous steps working for you with any of the netfpga packages?

    2. Hi Harichandan,
      Thanks so much for your quick reply. I have done most of previous parts, including installing and running scone and it works on my computer except that I cannot enable web interface for scone. Would you like to discuss with me via like email or something? Again, thanks for your reply.

    3. yeah discussing over email wud be fine...