Thread: [Linuxptp-users] ioctl SIOCETHTOOL failed: No such device
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Tony J. <ton...@gm...> - 2023-06-08 16:04:55
|
Hi, I'm trying to use PTP on my linux machine: *OS information:* Operating System: Ubuntu 20.04.5 LTS Kernel: Linux 5.15.0-71-generic Architecture: x86-64 This is the default official Ubuntu version that I have installed from the .iso image available from the Ubuntu website. Not a custom built OS. I have installed *linuxptp *with the following command: sudo apt install linuxptp But when I try running ptp4l with the following command: sudo ptp4l -i enox0c379 -m -2 -P -l 6 -q -f $HOME/ptp_config.cfg I get the following error message: ptp4l[890.371]: ioctl SIOCETHTOOL failed: No such device ptp4l[890.371]: PTP device not specified and automatic determination is not supported. Please specify PTP device. failed to create a clock Here is the contents of $HOME/ptp_config.cfg: [global] tx_timestamp_timeout 400 logMinPdelayReqInterval 3 logSyncInterval -4 logAnnounceInterval 0 How can I specify the PTP device, Isnt it the network interface that I have already specified? Thanks for your help Regards, Tony |
From: Tony J. <ton...@gm...> - 2023-06-08 16:43:42
|
Thanks Timothy for the reply, Unfortunately I can't find any PTP devices inside the /dev/ folder. Im trying the following demo: https://dev.ti.com/tirex/explore/content/mcu_plus_sdk_am243x_08_06_00_43/docs/api_guide_am243x/EXAMPLES_ENET_LAYER2_MULTI_CHANNEL_PTP.html Using the TI AM243x LP board. On the board side I'm getting the logs printed till above the line: Doing first adjustment The board is connected directly to the Linux PC via a USB to Ethernet adapter and LAN cable. I'm wondering if there is something that should be enabled in the Kernel to get it recognised? Regards, *Tony* On Thu, Jun 8, 2023 at 9:54 PM Timothy Huang <tim...@ed...> wrote: > Hi Tony, > > I can reproduce your problem by manually bringing down the ethernet > interface ptp4l is using. Did you check whether your ethernet interface is > up or not? In addition to that, you should see the PTP device name by "ls > /dev/ptp*" if your interface is up. > > Thanks, > Tim > > On Thu, Jun 8, 2023 at 9:05 AM Tony Josi <ton...@gm...> wrote: > >> Hi, >> >> I'm trying to use PTP on my linux machine: >> >> *OS information:* >> Operating System: Ubuntu 20.04.5 LTS >> Kernel: Linux 5.15.0-71-generic >> Architecture: x86-64 >> >> This is the default official Ubuntu version that I have installed from >> the .iso image available from the Ubuntu website. Not a custom built OS. >> >> I have installed *linuxptp *with the following command: >> sudo apt install linuxptp >> >> But when I try running ptp4l with the following command: >> sudo ptp4l -i enox0c379 -m -2 -P -l 6 -q -f $HOME/ptp_config.cfg >> >> I get the following error message: >> >> ptp4l[890.371]: ioctl SIOCETHTOOL failed: No such device >> ptp4l[890.371]: PTP device not specified and automatic determination is >> not supported. Please specify PTP device. >> failed to create a clock >> >> Here is the contents of $HOME/ptp_config.cfg: >> >> [global] >> tx_timestamp_timeout 400 >> logMinPdelayReqInterval 3 >> logSyncInterval -4 >> logAnnounceInterval 0 >> >> How can I specify the PTP device, Isnt it the network interface that I >> have already specified? >> >> Thanks for your help >> Regards, >> Tony >> _______________________________________________ >> Linuxptp-users mailing list >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linuxptp-users >> > |
From: Timothy H. <tim...@ed...> - 2023-06-08 16:49:30
Attachments:
image.png
|
Hi, I'm guessing your PTP module is not loaded in the kernel you are running? Have you tried manually loading the PTP module yet? To compile it as a built-in module, I think you need to enable these configs in the kernel. [image: image.png] Regards, Tim On Thu, Jun 8, 2023 at 9:43 AM Tony Josi <ton...@gm...> wrote: > Thanks Timothy for the reply, > > Unfortunately I can't find any PTP devices inside the /dev/ folder. > > Im trying the following demo: > https://dev.ti.com/tirex/explore/content/mcu_plus_sdk_am243x_08_06_00_43/docs/api_guide_am243x/EXAMPLES_ENET_LAYER2_MULTI_CHANNEL_PTP.html > Using the TI AM243x LP board. > > On the board side I'm getting the logs printed till above the line: Doing > first adjustment > > The board is connected directly to the Linux PC via a USB to Ethernet > adapter and LAN cable. > > I'm wondering if there is something that should be enabled in the Kernel > to get it recognised? > > Regards, > *Tony* > > > > > On Thu, Jun 8, 2023 at 9:54 PM Timothy Huang <tim...@ed...> wrote: > >> Hi Tony, >> >> I can reproduce your problem by manually bringing down the ethernet >> interface ptp4l is using. Did you check whether your ethernet interface is >> up or not? In addition to that, you should see the PTP device name by "ls >> /dev/ptp*" if your interface is up. >> >> Thanks, >> Tim >> >> On Thu, Jun 8, 2023 at 9:05 AM Tony Josi <ton...@gm...> wrote: >> >>> Hi, >>> >>> I'm trying to use PTP on my linux machine: >>> >>> *OS information:* >>> Operating System: Ubuntu 20.04.5 LTS >>> Kernel: Linux 5.15.0-71-generic >>> Architecture: x86-64 >>> >>> This is the default official Ubuntu version that I have installed from >>> the .iso image available from the Ubuntu website. Not a custom built OS. >>> >>> I have installed *linuxptp *with the following command: >>> sudo apt install linuxptp >>> >>> But when I try running ptp4l with the following command: >>> sudo ptp4l -i enox0c379 -m -2 -P -l 6 -q -f $HOME/ptp_config.cfg >>> >>> I get the following error message: >>> >>> ptp4l[890.371]: ioctl SIOCETHTOOL failed: No such device >>> ptp4l[890.371]: PTP device not specified and automatic determination is >>> not supported. Please specify PTP device. >>> failed to create a clock >>> >>> Here is the contents of $HOME/ptp_config.cfg: >>> >>> [global] >>> tx_timestamp_timeout 400 >>> logMinPdelayReqInterval 3 >>> logSyncInterval -4 >>> logAnnounceInterval 0 >>> >>> How can I specify the PTP device, Isnt it the network interface that I >>> have already specified? >>> >>> Thanks for your help >>> Regards, >>> Tony >>> _______________________________________________ >>> Linuxptp-users mailing list >>> Lin...@li... >>> https://lists.sourceforge.net/lists/listinfo/linuxptp-users >>> >> |
From: Tony J. <ton...@gm...> - 2023-06-08 17:03:33
Attachments:
image.png
|
Thanks, I will try that. Where can I update this configuration? Also when I check if my network interface supports PTP I get the following message. I think my NIC is not PTP capable? tony@tony-IdeaCenter:~$ ifconfig -s Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg enp3s0 1500 449521 0 0 0 1398083 0 0 0 BMRU enx0c379 1500 0 0 0 0 978 0 0 0 BMRU lo 65536 11220 0 0 0 11220 0 0 0 LRU tony@tony-IdeaCenter:~$ sudo ethtool -T enx0c379 Time stamping parameters for enx0c379: Cannot get device time stamping settings: No such device tony@tony-IdeaCenter:~$ Regards, *Tony* On Thu, Jun 8, 2023 at 10:19 PM Timothy Huang <tim...@ed...> wrote: > Hi, > > I'm guessing your PTP module is not loaded in the kernel you are running? > Have you tried manually loading the PTP module yet? > > To compile it as a built-in module, I think you need to enable these > configs in the kernel. > > [image: image.png] > > Regards, > Tim > > On Thu, Jun 8, 2023 at 9:43 AM Tony Josi <ton...@gm...> wrote: > >> Thanks Timothy for the reply, >> >> Unfortunately I can't find any PTP devices inside the /dev/ folder. >> >> Im trying the following demo: >> https://dev.ti.com/tirex/explore/content/mcu_plus_sdk_am243x_08_06_00_43/docs/api_guide_am243x/EXAMPLES_ENET_LAYER2_MULTI_CHANNEL_PTP.html >> Using the TI AM243x LP board. >> >> On the board side I'm getting the logs printed till above the line: Doing >> first adjustment >> >> The board is connected directly to the Linux PC via a USB to Ethernet >> adapter and LAN cable. >> >> I'm wondering if there is something that should be enabled in the Kernel >> to get it recognised? >> >> Regards, >> *Tony* >> >> >> >> >> On Thu, Jun 8, 2023 at 9:54 PM Timothy Huang <tim...@ed...> wrote: >> >>> Hi Tony, >>> >>> I can reproduce your problem by manually bringing down the ethernet >>> interface ptp4l is using. Did you check whether your ethernet interface is >>> up or not? In addition to that, you should see the PTP device name by "ls >>> /dev/ptp*" if your interface is up. >>> >>> Thanks, >>> Tim >>> >>> On Thu, Jun 8, 2023 at 9:05 AM Tony Josi <ton...@gm...> wrote: >>> >>>> Hi, >>>> >>>> I'm trying to use PTP on my linux machine: >>>> >>>> *OS information:* >>>> Operating System: Ubuntu 20.04.5 LTS >>>> Kernel: Linux 5.15.0-71-generic >>>> Architecture: x86-64 >>>> >>>> This is the default official Ubuntu version that I have installed from >>>> the .iso image available from the Ubuntu website. Not a custom built OS. >>>> >>>> I have installed *linuxptp *with the following command: >>>> sudo apt install linuxptp >>>> >>>> But when I try running ptp4l with the following command: >>>> sudo ptp4l -i enox0c379 -m -2 -P -l 6 -q -f $HOME/ptp_config.cfg >>>> >>>> I get the following error message: >>>> >>>> ptp4l[890.371]: ioctl SIOCETHTOOL failed: No such device >>>> ptp4l[890.371]: PTP device not specified and automatic determination is >>>> not supported. Please specify PTP device. >>>> failed to create a clock >>>> >>>> Here is the contents of $HOME/ptp_config.cfg: >>>> >>>> [global] >>>> tx_timestamp_timeout 400 >>>> logMinPdelayReqInterval 3 >>>> logSyncInterval -4 >>>> logAnnounceInterval 0 >>>> >>>> How can I specify the PTP device, Isnt it the network interface that I >>>> have already specified? >>>> >>>> Thanks for your help >>>> Regards, >>>> Tony >>>> _______________________________________________ >>>> Linuxptp-users mailing list >>>> Lin...@li... >>>> https://lists.sourceforge.net/lists/listinfo/linuxptp-users >>>> >>> |
From: Timothy H. <tim...@ed...> - 2023-06-08 16:53:53
|
Hi Tony, I can reproduce your problem by manually bringing down the ethernet interface ptp4l is using. Did you check whether your ethernet interface is up or not? In addition to that, you should see the PTP device name by "ls /dev/ptp*" if your interface is up. Thanks, Tim On Thu, Jun 8, 2023 at 9:05 AM Tony Josi <ton...@gm...> wrote: > Hi, > > I'm trying to use PTP on my linux machine: > > *OS information:* > Operating System: Ubuntu 20.04.5 LTS > Kernel: Linux 5.15.0-71-generic > Architecture: x86-64 > > This is the default official Ubuntu version that I have installed from the > .iso image available from the Ubuntu website. Not a custom built OS. > > I have installed *linuxptp *with the following command: > sudo apt install linuxptp > > But when I try running ptp4l with the following command: > sudo ptp4l -i enox0c379 -m -2 -P -l 6 -q -f $HOME/ptp_config.cfg > > I get the following error message: > > ptp4l[890.371]: ioctl SIOCETHTOOL failed: No such device > ptp4l[890.371]: PTP device not specified and automatic determination is > not supported. Please specify PTP device. > failed to create a clock > > Here is the contents of $HOME/ptp_config.cfg: > > [global] > tx_timestamp_timeout 400 > logMinPdelayReqInterval 3 > logSyncInterval -4 > logAnnounceInterval 0 > > How can I specify the PTP device, Isnt it the network interface that I > have already specified? > > Thanks for your help > Regards, > Tony > _______________________________________________ > Linuxptp-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxptp-users > |
From: Elder C. <eld...@ti...> - 2023-06-08 18:20:34
|
I suggest you try software timestamp (add -S switch). I have a panel PC at the office where I installed Ubuntu and to my surprise there was no hardware timestamp support (Intel CPU but Realtek Gbit/s Ethernet controllers) whereas on another AMD based SBC with Intel Ethernet controllers, hardware timestamp worked right away with Ubuntu unmodified installation. Maybe your PC has one of these Realtek controllers as well (from memory, when I researched on it, there were issues with Realtek controllers and PHC support) or another controller not well supported. HTH. Em qui., 8 de jun. de 2023 às 13:06, Tony Josi <ton...@gm...> escreveu: > Hi, > > I'm trying to use PTP on my linux machine: > > *OS information:* > Operating System: Ubuntu 20.04.5 LTS > Kernel: Linux 5.15.0-71-generic > Architecture: x86-64 > > This is the default official Ubuntu version that I have installed from the > .iso image available from the Ubuntu website. Not a custom built OS. > > I have installed *linuxptp *with the following command: > sudo apt install linuxptp > > But when I try running ptp4l with the following command: > sudo ptp4l -i enox0c379 -m -2 -P -l 6 -q -f $HOME/ptp_config.cfg > > I get the following error message: > > ptp4l[890.371]: ioctl SIOCETHTOOL failed: No such device > ptp4l[890.371]: PTP device not specified and automatic determination is > not supported. Please specify PTP device. > failed to create a clock > > Here is the contents of $HOME/ptp_config.cfg: > > [global] > tx_timestamp_timeout 400 > logMinPdelayReqInterval 3 > logSyncInterval -4 > logAnnounceInterval 0 > > How can I specify the PTP device, Isnt it the network interface that I > have already specified? > > Thanks for your help > Regards, > Tony > _______________________________________________ > Linuxptp-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxptp-users > |
From: Richard C. <ric...@gm...> - 2023-06-09 06:21:34
|
On Thu, Jun 08, 2023 at 09:34:33PM +0530, Tony Josi wrote: > How can I specify the PTP device, Isnt it the network interface that I have > already specified? Yes, you did specify the interface/ptp device, and that should work. What does this show? ethtool -T enox0c379 Thanks, Richard |
From: Tony J. <ton...@gm...> - 2023-06-09 06:58:46
|
Thanks for the reply Richard, This is the response for: ethtool -T enox0c379 tony@tony-IdeaCenter:~$ sudo ethtool -T enx0c379 Time stamping parameters for enx0c379: Cannot get device time stamping settings: No such device tony@tony-IdeaCenter:~$ Regards, *Tony* On Fri, Jun 9, 2023 at 11:51 AM Richard Cochran <ric...@gm...> wrote: > On Thu, Jun 08, 2023 at 09:34:33PM +0530, Tony Josi wrote: > > How can I specify the PTP device, Isnt it the network interface that I > have > > already specified? > > Yes, you did specify the interface/ptp device, and that should work. > > What does this show? > > ethtool -T enox0c379 > > Thanks, > Richard > |
From: Richard C. <ric...@gm...> - 2023-06-09 13:31:19
|
On Fri, Jun 09, 2023 at 12:28:29PM +0530, Tony Josi wrote: > tony@tony-IdeaCenter:~$ sudo ethtool -T enx0c379 > Time stamping parameters for enx0c379: > Cannot get device time stamping settings: No such device You don't have a network interface of that name. You can do cat /proc/net/dev to see the interfaces that exist on your system. Thanks, Richard |