-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement Precision Time Protocol (PTP) on Rpi4? #6
Comments
Hi @lineker10 , there is a Kernel 5.x at Raspberry Pi kernel repository (https://github.com/raspberrypi/linux/tree/rpi-5.3.y). I get PTP working on Raspberry Pi 4 with this kernel and following official documentation on compiling custom kernel (https://www.raspberrypi.org/documentation/linux/kernel/building.md). Adding mentioned configuration option here after |
Hi @fortrieb |
Thanks @lineker10. I was able to get software timestamping on the ethernet port with your hint.
|
Thank you @mikebrady |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I have a question again. Thanks before |
What exactly "didn't work"? where did you get your kernel 4.19.y-rt from? |
Thanks for the response.
I got it from https://github.com/raspberrypi/linux/tree/rpi-4.19.y-rt. I typed
SOF_TIMESTAMPING_TX_SOFTWARE is missing after i rebooted the kernel 4.19.y-rt. I noticed it after i checked it using Correct me if I'm wrong. I think the answer is https://github.com/twteamware/raspberrypi-ptp/blob/master/kernel-patching.md. And I should patch https://github.com/twteamware/raspberrypi-ptp/blob/master/patches/0001-smsc95xx-use-generic-ethtool_op_get_ts_info-callback.patch using Actually I dont understand how to patch. I just did this: Sorry if I ask too much |
@fortrieb thanks for this, super helpful. Does it have to be kernel
gives:
I also notice that
gives,
I am using a raspberry pi 4B. |
Hi @michael-gosselin, i didn't try a newer kernel then |
@michael-gosselin Similarly I am using a new Kernel (5.15.0-1024-raspi) with a RPI4 and I have the exact same issue as you with ethtool not showing support and ptp4l.service not found. |
I used Precision Time Protocol (PTP)/IEEE-1588 on Raspberry pi3b+ by linuxptp refereed this site. Recently, I upgraded to Raspberry pi 4 and I try to use PTP on Raspberry pi 4. Unfortunately, I cannot use it on raspberry pi 4. Because, I don't see SOF_TIMESTAMPING_TX_SOFTWARE listed.
If anybody knows the solution of it, please answer my problem.
The text was updated successfully, but these errors were encountered: