iotg_tsn_ref_sw
iotg_tsn_ref_sw copied to clipboard
Permission Issues while enabling extts and pps
trafficstars
CPU: Intel Core i3-2120 System: Ubuntu 18.04
I run the setup command for ehl with the following output
ptp4l[8661.727]: timed out while polling for tx timestamp
ptp4l[8661.727]: increasing tx_timestamp_timeout may correct this issue, but it is likely caused by a driver bug
ptp4l[8661.728]: port 1: send peer delay request failed
ptp4l[8661.728]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[8661.863]: port 1: link down
ptp4l[8661.863]: selected local clock aa00aa.fffe.00aa00 as best master
ptp4l[8661.863]: port 1: assuming the grand master role
ptp4l[8662.073]: selected local clock aa00aa.fffe.00aa00 as best master
ptp4l[8662.074]: port 1: assuming the grand master role
ptp4l[8665.126]: selected local clock aa00aa.fffe.00aa00 as best master
ptp4l[8665.126]: port 1: assuming the grand master role
Mapping socket priority N to VLAN priority N for enp0s25
Turning off vlan stripping
ptp4l[8665.154]: selected local clock aa00aa.fffe.00aa00 as best master
ptp4l[8665.154]: port 1: assuming the grand master role
Setting IRQ affinity based on /usr/share/iotg_tsn_ref_sw/shell/../common/irq_affinity_4c_8tx_8rx.map
Echo-ing 0x01 > /proc/irq/27/smp_affinity --> enp0s25:tx-0
Echo-ing 0x01 > /proc/irq/27/smp_affinity --> enp0s25:rx-0
Echo-ing 0x02 > /proc/irq/27/smp_affinity --> enp0s25:tx-1
Echo-ing 0x02 > /proc/irq/27/smp_affinity --> enp0s25:rx-1
Echo-ing 0x04 > /proc/irq/27/smp_affinity --> enp0s25:tx-6
Echo-ing 0x08 > /proc/irq/27/smp_affinity --> enp0s25:rx-2
Running PTP4L & PHC2SYS
Using gPTP_RGMII-MV1510-1G.cfg
ptp4l[8665.191]: selected /dev/ptp0 as PTP clock
ptp4l[8665.243]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[8665.243]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[8665.243]: port 1: link down
ptp4l[8665.243]: port 1: LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[8665.290]: selected local clock aa00aa.fffe.00aa00 as best master
ptp4l[8665.290]: port 1: assuming the grand master role
ptp4l[8665.540]: port 1: link up
ptp4l[8665.587]: port 1: FAULTY to LISTENING on INIT_COMPLETE
sending: SET GRANDMASTER_SETTINGS_NP
ptp4l[8667.192]: selected local clock aa00aa.fffe.00aa00 as best master
aa00aa.fffe.00aa00-0 seq 0 RESPONSE MANAGEMENT GRANDMASTER_SETTINGS_NP
clockClass 248
clockAccuracy 0xfe
offsetScaledLogVariance 0xffff
currentUtcOffset 37
leap61 0
leap59 0
currentUtcOffsetValid 1
ptpTimescale 1
timeTraceable 1
frequencyTraceable 0
timeSource 0xa0
ptp4l[8669.394]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[8669.394]: selected local clock aa00aa.fffe.00aa00 as best master
ptp4l[8669.394]: port 1: assuming the grand master role
phc2sys[8670.194]: config item (null).clock_servo is 0
phc2sys[8670.194]: config item (null).kernel_leap is 1
phc2sys[8670.194]: config item (null).sanity_freq_limit is 200000000
phc2sys[8670.195]: config item (null).pi_proportional_const is 0.700000
phc2sys[8670.195]: config item (null).pi_integral_const is 0.300000
phc2sys[8670.195]: config item (null).pi_proportional_scale is 0.000000
phc2sys[8670.195]: config item (null).pi_proportional_exponent is -0.300000
phc2sys[8670.195]: config item (null).pi_proportional_norm_max is 0.700000
phc2sys[8670.195]: config item (null).pi_integral_scale is 0.000000
phc2sys[8670.195]: config item (null).pi_integral_exponent is 0.400000
phc2sys[8670.195]: config item (null).pi_integral_norm_max is 0.300000
phc2sys[8670.195]: config item (null).step_threshold is 1.000000
phc2sys[8670.195]: config item (null).first_step_threshold is 0.000020
phc2sys[8670.195]: config item (null).max_frequency is 900000000
phc2sys[8670.195]: config item (null).servo_offset_threshold is 0
phc2sys[8670.195]: config item (null).servo_num_offset_values is 10
phc2sys[8670.195]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
phc2sys[8670.195]: ioctl PTP_SYS_OFFSET_PRECISE: Operation not supported
phc2sys[8670.195]: config item (null).pi_proportional_const is 0.700000
phc2sys[8670.195]: config item (null).pi_integral_const is 0.300000
phc2sys[8670.195]: config item (null).pi_proportional_scale is 0.000000
phc2sys[8670.195]: config item (null).pi_proportional_exponent is -0.300000
phc2sys[8670.195]: config item (null).pi_proportional_norm_max is 0.700000
phc2sys[8670.195]: config item (null).pi_integral_scale is 0.000000
phc2sys[8670.195]: config item (null).pi_integral_exponent is 0.400000
phc2sys[8670.195]: config item (null).pi_integral_norm_max is 0.300000
phc2sys[8670.195]: config item (null).step_threshold is 1.000000
phc2sys[8670.195]: config item (null).first_step_threshold is 0.000020
phc2sys[8670.195]: config item (null).max_frequency is 900000000
phc2sys[8670.195]: config item (null).servo_offset_threshold is 0
phc2sys[8670.195]: config item (null).servo_num_offset_values is 10
phc2sys[8670.195]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
phc2sys[8670.195]: config item (null).transportSpecific is 1
phc2sys[8670.195]: config item (null).domainNumber is 0
phc2sys[8670.195]: config item (null).uds_address is '/var/run/ptp4l'
phc2sys[8671.196]: CLOCK_REALTIME phc offset -18801284 s0 freq +100000 delay 753
phc2sys[8672.197]: CLOCK_REALTIME phc offset -19508090 s1 freq -606616 delay 826
phc2sys[8673.197]: CLOCK_REALTIME phc offset -882985 s2 freq -1489601 delay 826
phc2sys[8674.198]: CLOCK_REALTIME phc offset -6500819 s2 freq -7372331 delay 798
phc2sys[8675.198]: CLOCK_REALTIME phc offset -5323636 s2 freq -8145394 delay 829
phc2sys[8676.198]: CLOCK_REALTIME phc offset -2604336 s2 freq -7023184 delay 834
phc2sys[8677.198]: CLOCK_REALTIME phc offset -330147 s2 freq -5530296 delay 744
phc2sys[8678.198]: CLOCK_REALTIME phc offset 1049529 s2 freq -4249664 delay 828
phc2sys[8679.199]: CLOCK_REALTIME phc offset 1668363 s2 freq -3315972 delay 767
phc2sys[8680.199]: CLOCK_REALTIME phc offset 1805708 s2 freq -2678118 delay 832
phc2sys[8681.199]: CLOCK_REALTIME phc offset 1703775 s2 freq -2238338 delay 832
phc2sys[8682.199]: CLOCK_REALTIME phc offset 1509491 s2 freq -1921490 delay 799
phc2sys[8683.199]: CLOCK_REALTIME phc offset 1297991 s2 freq -1680143 delay 829
phc2sys[8684.200]: CLOCK_REALTIME phc offset 1112599 s2 freq -1476137 delay 761
phc2sys[8685.200]: CLOCK_REALTIME phc offset 955500 s2 freq -1299457 delay 832
phc2sys[8686.200]: CLOCK_REALTIME phc offset 825625 s2 freq -1142682 delay 832
phc2sys[8687.200]: CLOCK_REALTIME phc offset 716718 s2 freq -1003901 delay 832
phc2sys[8688.200]: CLOCK_REALTIME phc offset 625847 s2 freq -879757 delay 832
phc2sys[8689.201]: CLOCK_REALTIME phc offset 545983 s2 freq -771867 delay 755
phc2sys[8690.201]: CLOCK_REALTIME phc offset 476987 s2 freq -677068 delay 829
phc2sys[8690.206]: CLOCK_REALTIME phc offset 477947 s2 freq -533012 delay 831
Enabling extts on enp0s25 (ptp0)
/usr/share/iotg_tsn_ref_sw/shell/helpers.sh: line 347: /sys/class/ptp/ptp0/extts_enable: Permission denied
Enabling pps on enp0s25 (ptp0)
/usr/share/iotg_tsn_ref_sw/shell/helpers.sh: line 375: /sys/class/ptp/ptp0/period: Permission denied
As detailed in the last two lines, the extts_enable and period files do not exist in ptp directory nor can be created. Am I missing any configuration steps?