Hi there,
I'm working on a custom NXP iMX8 SoM connected to a Marvell MV88E6390 switch on
port0 (eth0 as management port).
Five switch ports are exposed to the outside and bridged together in a dsa
device (br0 soft bridge).
I'm running iMX linux-5.15.71 from NXP downstream repository.
I need my device to be a ptp device (master or slave depending on the specific
application).
Since I can ping other PCs on the network I think Marvell DSA drivers are
working, but ptp is not working.
I found and backported this patch
(https://github.com/torvalds/linux/commit/9627c981ac82209c66c1b6c0e15c6cceb8656f01)
into my codebase, but when I launch ptp4l it's not working properly. Launching
ptp4l on eth0 it says eth0 is
rejecting HWTSTAMP filtering configuration. Launching ptp4l on an outside
facing port (lan1:5), instead, using IPv4
or IPv6 transport, it's like my SoM can't talk to other ptp devices: if my SoM
is a ptp master i see announce, sync,
and follow-up messages get sent, and I see dly_req from other slaves coming
back, but there are no dly_resp at all.
When my som is slave there are no packets from it. It's like all ptp related
packets get ignored.
Is it possible to run ptp on eth0 (or on br0)? I want to syncronize devices on
all the front facing ports.
I've attached `ip a` output, `ethtool -T eth0` output, and `ethtool -T lan1`
output.
Best Regards,
_RL_
--
Riccardo Laiolo
Leaff Engineering - Digital Solutions & Algorithms
Time stamping parameters for eth0:
Capabilities:
hardware-transmit
software-transmit
hardware-receive
software-receive
software-system-clock
hardware-raw-clock
PTP Hardware Clock: 1
Hardware Transmit Timestamp Modes:
off
on
Hardware Receive Filter Modes:
none
all
ptpv1-l4-event
ptpv1-l4-sync
ptpv1-l4-delay-req
ptpv2-l4-event
ptpv2-l4-sync
ptpv2-l4-delay-req
ptpv2-event
ptpv2-sync
ptpv2-delay-req
Time stamping parameters for lan1:
Capabilities:
hardware-transmit
hardware-receive
hardware-raw-clock
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off
on
Hardware Receive Filter Modes:
none
ptpv2-l4-event
ptpv2-l4-sync
ptpv2-l4-delay-req
ptpv2-l2-event
ptpv2-l2-sync
ptpv2-l2-delay-req
ptpv2-event
ptpv2-sync
ptpv2-delay-req
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
link/ether 06:f4:6f:12:56:cd brd ff:ff:ff:ff:ff:ff
inet6 fe80::4f4:6fff:fe12:56cd/64 scope link
valid_lft forever preferred_lft forever
3: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000
link/ether 06:f4:6f:12:56:cd brd ff:ff:ff:ff:ff:ff
4: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
link/ether 06:f4:6f:12:56:cd brd ff:ff:ff:ff:ff:ff
5: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
link/ether 06:f4:6f:12:56:cd brd ff:ff:ff:ff:ff:ff
6: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
link/ether 06:f4:6f:12:56:cd brd ff:ff:ff:ff:ff:ff
7: lan5@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000
link/ether 06:f4:6f:12:56:cd brd ff:ff:ff:ff:ff:ff
8: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 12:92:73:8f:9a:76 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.125/24 metric 1024 brd 192.168.99.255 scope global dynamic br0
valid_lft 682863sec preferred_lft 682863sec
inet6 fe80::1092:73ff:fe8f:9a76/64 scope link
valid_lft forever preferred_lft forever
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users