InnoRoute / RealtimeHAT

Documentation and source for InnoRoutes Raspberry TSN addon HAT
GNU General Public License v3.0
45 stars 7 forks source link

No PTP with Intel i210 on standard Ubuntu 22.04.1 #4

Open LaumiH opened 1 year ago

LaumiH commented 1 year ago

Hi,

I cannot get ptp4l to work with an Intel i210 network adapter and the HAT/Pi.

The Pi is set up according to the standard config described in the WiKi, image version 1.0. The i210 is installed on a standard Ubuntu 22.04.1 Linux PC (kernel 5.15).

The Pi has linuxptp version 1.9, the PC 3.1.

I now run sudo ptp4l -q -i RT0 -f /usr/share/InnoRoute/ptp.conf -m -l 6 on the Pi, and the same on the PC.

Both assume the grand master role, while the i210 constantly outputs "bad message" errors. I ran the exact same configuration with a SOCe TSN switch in the middle, where both are able to synchronize, with the switch as grand master.

I already updated the Pi's linuxptp version, which had no effect.

I wonder why the Pi is not able to talk to the i210, but they are both able to synchronize with the TSN switch? The PTP packets look exactly the same, but the Pi sends them out padded to 70 bytes payload.

morteza1984 commented 1 year ago

Hello,

I was able to get the HAT/Pi working as slave and I210 as master. LinuxPTP version: 3.1.1

############# Slave config: ############# [global] # gmCapable 1 priority1 248 priority2 248 logSyncInterval -3 syncReceiptTimeout 3 neighborPropDelayThresh 800 min_neighbor_prop_delay -20000000 sanity_freq_limit 200000000 max_frequency 62499999 assume_two_step 1 path_trace_enabled 1 follow_up_info 1 transportSpecific 0x1 ptp_dst_mac 01:80:C2:00:00:0E network_transport L2 delay_mechanism P2P tx_timestamp_timeout 200 BMCA noop slaveOnly 1 inhibit_announce 1 asCapable true ignore_source_id 1 step_threshold 1 operLogSyncInterval 0 operLogPdelayReqInterval 2 msg_interval_request 1

############# Master config: ############# [global]

gmCapable 1 priority1 248 priority2 248 logSyncInterval -3 syncReceiptTimeout 3 neighborPropDelayThresh 800 min_neighbor_prop_delay -20000000 assume_two_step 1 path_trace_enabled 1 follow_up_info 1 transportSpecific 0x1 ptp_dst_mac 01:80:C2:00:00:0E network_transport L2 delay_mechanism P2P BMCA noop masterOnly 1 inhibit_announce 1 asCapable true inhibit_delay_req 1

#############