[Linuxptp-users] Error accessing /dev/ptp0
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Ronex D. <ron...@ya...> - 2014-08-06 09:57:44
|
Hello,
I have few queries related to linuxptp, as mentioned below:
1) I tried to run ptp4l application using command:
/home/ptp4l -i eth0 -p eth0 -m -P (ptp master)
But it fails with the following error message:
ptp4l[3505.127]: selected /dev/ptp0 as PTP clock
ptp4l[3505.166]: Failed to open /dev/ptp0: No such file or directory
failed to create a clock
I am trying to run it for arm architecture, and for this I have cross compiled kernel and linuxptp source.
This ('/dev/ptp0') device node is not present inside '/dev' directory. Please help me to understand who creates this node, I have ptp supported driver for the ethernet device.
If this device is supposed to be created by user then what is the MAJOR/MINOR number for /dev/ptp0 ?
And which driver manages/handles access to this node ?
2) I am also not able to understand the basic higher level abstract flow of how this application works ?
I think linux kernel has its own ptp driver implementation, So From the application does it use the linux user space API/system calls which further calls linux ptp driver functions (<linux_x.x>/drivers/ptp/), from which hardware ptp supported driver's functions are invoked ?
ptp4l(linuxptp app) ---> drivers/ptp ---> ethernet_driver_with_ptp_support
Regards,
Ronex
|