FAQ_MA35_Family How to Use Precision Time Protocol(PTP)

Post Reply
yhcheng3
Posts: 55
Joined: 02 Dec 2022, 10:46

11 Apr 2024, 14:52

Question :

How to use Precision Time Protocol (PTP) ?


Answer.
MA35D1 test process is as follows:

  1. Buildroot setting:

    Code: Select all

    $ make menuconfig

    Code: Select all

    Target packages -->
          System tools -->
                 util-linux -->
                      [*] hwclock
      Networking applications -->
                      [*] ethtool
                  [*] linuxptp
  2. Kernel setting:

    Code: Select all

    $ make linux-menuconfig

    Code: Select all

    Device Drivers -->
       PTP clock support -->
          <*> PTP clock support
  3. Test

    Master:

    Code: Select all

    $ ifconfig eth0 192.168.10.88 netmask 255.255.255.0
    $ date "2023-09-14 9:17:00"
    $ ifconfig eth0 allmulti
    $ ptp4l -i eth0 -H -m
    Slave :

    Code: Select all

    $ ifconfig eth1 192.168.10.100 netmask 255.255.255.0
    $ ptp4l -i eth1 -H -m -s


#MA35 , #PTP #buildroot
.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests