Re: [Linuxptp-users] Hardware PTP clock synchronization
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Гаврилов А. <le...@im...> - 2013-08-03 08:15:05
|
Hello! > I would recommend the i210. It is not expensive, and it has excellent capabilities. We need fiber optic interface (for example, I350F, but it is too expensive for us, we will try to use 82576). > Would it be possible for you to attempt using LinuxPTP 1.3 Ok, i try. ------------------------------------------------------ DMESG log: 3.949188] igb: module verification failed: signature and/or required key missing - tainting kernel [ 3.949987] Intel(R) Gigabit Ethernet Network Driver - version 4.3.0 [ 3.949990] Copyright (c) 2007-2013 Intel Corporation. [ 3.952065] igb 0000:04:00.0: irq 49 for MSI/MSI-X [ 3.952074] igb 0000:04:00.0: irq 50 for MSI/MSI-X [ 3.982512] igb 0000:04:00.0: added PHC on eth0 [ 3.982516] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection [ 3.982518] igb 0000:04:00.0: eth0: (PCIe:2.5GT/s:Width x4) [ 3.982520] igb 0000:04:00.0: eth0: MAC: [ 3.982521] 00:1b:21:d9:ef:34 [ 3.982596] igb 0000:04:00.0: eth0: PBA No: E31745-004 [ 3.982597] igb 0000:04:00.0: LRO is disabled [ 3.982599] igb 0000:04:00.0: Using MSI-X interrupts. 1 rx queue(s), 1 tx queue(s) [ 3.983868] igb 0000:04:00.1: irq 51 for MSI/MSI-X [ 3.983875] igb 0000:04:00.1: irq 52 for MSI/MSI-X [ 3.986161] microcode: CPU0 sig=0x1067a, pf=0x10, revision=0xa07 [ 3.989520] tun: Universal TUN/TAP device driver, 1.6 [ 3.989522] tun: (C) 1999-2004 Max Krasnyansky <ma...@qu...> [ 4.014485] igb 0000:04:00.1: added PHC on eth1 [ 4.014489] igb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection [ 4.014491] igb 0000:04:00.1: eth1: (PCIe:2.5GT/s:Width x4) [ 4.014493] igb 0000:04:00.1: eth1: MAC: [ 4.014494] 00:1b:21:d9:ef:35 [ 4.014568] igb 0000:04:00.1: eth1: PBA No: E31745-004 [ 4.014570] igb 0000:04:00.1: LRO is disabled [ 4.014572] igb 0000:04:00.1: Using MSI-X interrupts. 1 rx queue(s), 1 tx queue(s) [ 36.905039] igb: p16p1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [ 348.347009] igb 0000:04:00.0: clearing Tx timestamp hang [ 371.862010] igb 0000:04:00.0: clearing Tx timestamp hang [ 429.447013] igb 0000:04:00.0: clearing Tx timestamp hang [ 475.400010] igb 0000:04:00.0: clearing Tx timestamp hang [ 504.270012] igb 0000:04:00.0: clearing Tx timestamp hang ------------------------------------------------------ ETHTOOL: [root@lab32 linuxptp-1.3]# ethtool -i p16p1 driver: igb version: 4.3.0 firmware-version: 1.2.1 bus-info: 0000:04:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: no ------------------------------------------------------ ptp4l.conf: [global] # # Default Data Set # twoStepFlag 1 slaveOnly 1 priority1 128 priority2 128 domainNumber 0 clockClass 248 clockAccuracy 0xFE offsetScaledLogVariance 0xFFFF free_running 0 freq_est_interval 1 # # Port Data Set # logAnnounceInterval 1 logSyncInterval 0 logMinDelayReqInterval 1 logMinPdelayReqInterval 1 announceReceiptTimeout 3 delayAsymmetry 0 # # Run time options # assume_two_step 1 logging_level 6 path_trace_enabled 0 follow_up_info 0 #tx_timestamp_retries 1 tx_timestamp_timeout 1000 use_syslog 1 verbose 0 # # Servo Options # pi_proportional_const 0.0 pi_integral_const 0.0 pi_offset_const 0.0 clock_servo pi # # Transport options # transportSpecific 0x0 ptp_dst_mac 01:1B:19:00:00:00 p2p_dst_mac 01:80:C2:00:00:0E udp6_scope 0x0E # # Default interface options # network_transport L2 delay_mechanism E2E time_stamping hardware ------------------------------------------------------ [root@lab32 linuxptp-1.3]# ptp4l -f "ptp4l.conf" -i p16p1 -m ptp4l[2946.559]: selected /dev/ptp0 as PTP clock ptp4l[2946.573]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[2946.573]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[2947.895]: port 1: new foreign master ece555.fffe.2de639-2 ptp4l[2951.885]: selected best master clock ece555.fffe.2de639 ptp4l[2951.885]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[2955.029]: poll tx timestamp timeout ptp4l[2955.029]: port 1: send delay request failed ptp4l[2955.029]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) wireshark: 31 9.975069000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 60 Sync Message Ethernet II, Src: Hirschma_2d:e6:39 (ec:e5:55:2d:e6:39), Dst: IeeeI&MS_00:00:00 (01:1b:19:00:00:00) .... 0010 = versionPTP: 2 correction: 0,000000 nanoseconds ClockIdentity: 0xece555fffe2de639 ptp.v2.flags == 0x0200 originTimestamp (seconds): 1375519750 originTimestamp (nanoseconds): 317139647 32 9.975971000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 60 Follow_Up Message 33 10.972569000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 60 Sync Message 34 10.973499000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 60 Follow_Up Message 35 10.973698000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 78 Announce Message 36 11.121565000 IntelCor_d9:ef:34 IeeeI&MS_00:00:00 PTPv2 58 Delay_Req Message 37 11.122969000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 68 Delay_Resp Message 38 11.511230000 Hirschma_2d:e6:42 Spanning-tree-(for-bridges)_00 STP 60 RST. Root = 32768/0/ec:e5:55:2d:e6:39 Cost = 0 Port = 0x8002 39 11.970068000 Hirschma_2d:e6:39 IeeeI&MS_00:00:00 PTPv2 60 Sync Message Sincerely, Alexander. |