Hi. I posted a question before about the PTP demo code.
Here is the link:
Now, After I looked at the code, I found out the kernel code is not here.
Where could I find the PTP kernel code? Please be advised.
Thanks
Man Lung
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi. I posted a question before about the PTP demo code.
Here is the link:
Now, After I looked at the code, I found out the kernel code is not here.
Where could I find the PTP kernel code? Please be advised.
Thanks
Man Lung
HI Man Lung,
I took another look at this, and to summarize, you have already cloned the linuxptp from git.ti.com.
The kernel side ptp code should all be located in this directory
linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/ptp
As for the TI specific EMAC implementations, e.g. prueth or other emac, using PTP, that should be located here
linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti
What specific code are you looking for?
Thanks,
--Gunter
Gunter:
I think we talked before for other topic. I am from SEL. should we talk thru email? or here?
Where can I download 5.10.41?
I have 5.4.106 refer to this https://software-dl.ti.com/processor-sdk-linux/esd/docs/07_03_00_005/devices/AM335X/linux/Release_Specific_Release_Notes.html#kernel
Linux Kernel
Real Time (RT) Linux Kernel
This is the folder I was looking:
am335x-evm-linux-rt-sdk-src-07.03.00.005.tar\board-support\linux-rt-5.4.106+gitAUTOINC+519667b0d8-g519667b0d8\drivers\net\ethernet\ti
However, I did not see what I want to see. I could not able to see the driver using the timestamping registers.
such as RX_SYNC_TIMESTAMP_OFFSET_P1, RX_PDELAY_REQ_TIMESTAMP_OFFSET_P1
I am working on the non linux based embedded system implementation for PTP. so I have to implement the driver similar to your linux driver.
I want to see what did the ti do for each registers.
I was expecting to see PRUETH driver, PRUPTP driver, CPTS driver etc....
Thanks
Man Lung
Gunter:
I downloaded the kernel from here:
https://www.ti.com/tool/PROCESSOR-SDK-AM335X#downloads
This is only up to version 5.4.
I saw some ptp implementation here. However, it seems this is not showing me the whole thing. Or this is only software PTP not hardware PTP ?
Please be advised.
Thanks
Man Lung
HI Gunter. can please you advise if I need to have 5.10? and where could I download?
Hello Man Lung,
TI will release an AM335x Linux Processor SDK using Linux kernel 5.10 later in 2022. At this point in time, AM335x Linux Processor SDK 7.3 is the latest SDK release (which uses Linux kernel 5.4). Linux PTP was working for the AM335x Linux kernel 4.19 release (SDK 6.3 at www.ti.com/.../06.03.00.106), but I have seen bugs reported when customers try to use AM335x Linux PTP on Linux kernel 5.4. Let me check with the developers to make sure Linux PTP will be validated as working for the Linux kernel 5.10 release.
Regards,
Nick
Hello Man Lung,
Partial update for you. PTP over PRU Ethernet has not yet been validated on the Linux kernel 5.10 release. I am working with the developers to get it tested now. Please ping the thread if I have not posted another update within a couple of business days.
Regards,
Nick