Jump to content

Hope to adding the naive RTL8125BG drive to support the HW IEEE1588v2 feature


Recommended Posts

Posted

Hi there,

I'm using the latest version of armbian to run the linuxptp for the ieee1588v2 clock. When I check the timestamp status, the 1Gbps port which is the RTL8122 is no problem, but the 2.5G ports RTL8125BG are only supporting the software timestamp.

However, when I checked the Realtek website, it says that the 8125BG also supports the IEEE1588 clock. I tried to install the driver, but it did not work.

As a beginner in Linux, I probably don't have the knowledge to compile drivers, in this case I sincerely hope that armbian could officially support the hw ptp timestamp in 8125 NIC.

Thank you very much!

 

nanopi-r6s:~:# ethtool -T end0
Time stamping parameters for end0:
Capabilities:
        software-transmit
        software-receive
        software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none


nanopi-r6s:~:# ethtool -T end1
Time stamping parameters for end1:
Capabilities:
        hardware-transmit
        software-transmit
        hardware-receive
        software-receive
        software-system-clock
        hardware-raw-clock
PTP Hardware Clock: 0
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

Posted

I run Armbian Bookworm on a Orange Pi 5+ (with dual Realtek 8125).  As far as I can tell, out-of-the-box, Armbian only includes the mainstream r8169 driver which does not support HW PTP.  You will need to compile the Realtek 8125 driver (version 9.014.01) using the Armbian build system.  Armbian did an outstanding job on their build system making it really simple to generate e.g. new kernel packages (e.g. image, headers, etc.) for any giving Armbian config, but it has a bit of a learning curve... 

On my board, with this driver:

 

Time stamping parameters for enP3p49s0:
Capabilities:
	hardware-transmit
	software-transmit
	hardware-receive
	software-receive
	software-system-clock
	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-event
	ptpv2-sync
	ptpv2-delay-req

 

However, I am not knowledgeable enough in PTP to test it properly.   See my experience here  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines