Other Parts Discussed in Thread: SK-AM64B, SK-AM62B-P1, TMP100
Please help me, thank you. I have done the following things:
According to the URL,
3.2.2.7. HSR PRP 非卸载 — 处理器 SDK AM64X 文档
the hsr0 or prp0 logical network interface has been enabled. Just use CPSW , not use PRU-ICSSG.
When ptp4l is launched at this time, the following error is prompted: ptp4l[10512.960]: interface 'prp0' does not support requested timestamping mode failed to create a clock.
Below is my record.
# ifconfig
eth0 Link encap:Ethernet HWaddr 98:03:8A:84:88:15
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:00:54:68:00:00
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:27840 errors:0 dropped:0 overruns:0 frame:0
TX packets:27840 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1810720 (1.7 MiB) TX bytes:1810720 (1.7 MiB)
prp0 Link encap:Ethernet HWaddr 98:03:8A:84:88:15
inet addr:192.168.1.100 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1494 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 02:02:AA:7B:EC:05
inet addr:90.0.0.1 Bcast:90.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::2:aaff:fe7b:ec05/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17682 errors:0 dropped:12 overruns:0 frame:0
TX packets:15983 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1706895 (1.6 MiB) TX bytes:5415862 (5.1 MiB)
# ./ptp4l -l 7 -f /home/configs/oc_prp0.cfg -m -s
ptp4l[10551.285]: config item (null).assume_two_step is 0
ptp4l[10551.291]: config item (null).check_fup_sync is 0
ptp4l[10551.294]: config item (null).tx_timestamp_timeout is 20
ptp4l[10551.298]: config item (null).hwts_filter is 0
ptp4l[10551.300]: config item (null).clock_servo is 0
ptp4l[10551.302]: config item (null).clock_type is 32768
ptp4l[10551.305]: config item (null).doubly_attached_clock is 1
ptp4l[10551.307]: config item (null).clock_servo is 0
ptp4l[10551.308]: config item (null).clockClass is 248
ptp4l[10551.310]: config item (null).clockAccuracy is 254
ptp4l[10551.312]: config item (null).offsetScaledLogVariance is 65535
ptp4l[10551.314]: config item (null).productDescription is ';;'
ptp4l[10551.315]: config item (null).revisionData is ';;'
ptp4l[10551.316]: config item (null).userDescription is ''
ptp4l[10551.318]: config item (null).manufacturerIdentity is '00:00:00'
ptp4l[10551.319]: config item (null).domainNumber is 0
ptp4l[10551.321]: config item (null).slaveOnly is 1
ptp4l[10551.322]: config item (null).gmCapable is 1
ptp4l[10551.324]: config item (null).gmCapable is 1
ptp4l[10551.325]: config item (null).G.8275.defaultDS.localPriority is 128
ptp4l[10551.326]: config item (null).maxStepsRemoved is 255
ptp4l[10551.327]: config item (null).time_stamping is 1
ptp4l[10551.328]: config item (null).twoStepFlag is 1
ptp4l[10551.330]: config item (null).twoStepFlag is 1
ptp4l[10551.332]: config item (null).time_stamping is 1
ptp4l[10551.333]: config item (null).priority1 is 128
ptp4l[10551.335]: config item (null).priority2 is 128
ptp4l[10551.338]: interface index 6 is up
ptp4l[10551.342]: interface 'prp0' does not support requested timestamping mode
failed to create a clock
oc_prp0.cfg:
[global]
sanity_freq_limit 0
step_threshold 0.00002
tx_timestamp_timeout 20
domainNumber 0
priority1 128
priority2 128
slaveOnly 0
twoStepFlag 1
summary_interval 0
doubly_attached_clock 1
[prp0]
redundancy 2
delay_mechanism P2P
network_transport L2
[eth1]
redundancy 2
redundancy_master_interface prp0
redundancy_slave_number 1
logAnnounceInterval 0
logSyncInterval 1
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 2
delay_mechanism P2P
network_transport L2
egressLatency 726
ingressLatency 186
fault_reset_interval 0
[eth2]
redundancy 2
redundancy_master_interface prp0
redundancy_slave_number 2
logAnnounceInterval 0
logSyncInterval 1
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 2
delay_mechanism P2P
network_transport L2
egressLatency 726
ingressLatency 186
fault_reset_interval 0