Solved: Re: Phc2sys Waiting For Ptp4l... - NXP Community
Có thể bạn quan tâm
- Forums 5
- Product Forums 25
- General Purpose MicrocontrollersGeneral Purpose Microcontrollers
- i.MX Forumsi.MX Forums
- QorIQ Processing PlatformsQorIQ Processing Platforms
- Identification and SecurityIdentification and Security
- Power ManagementPower Management
- Wireless ConnectivityWireless Connectivity
- RFID / NFCRFID / NFC
- Advanced AnalogAdvanced Analog
- MCX Microcontrollers
- S32G
- S32K
- S32V
- MPC5xxx
- Other NXP Products
- S12 / MagniV Microcontrollers
- Powertrain and Electrification Analog Drivers
- Sensors
- Vybrid Processors
- Digital Signal Controllers
- 8-bit Microcontrollers
- ColdFire/68K Microcontrollers and Processors
- PowerQUICC Processors
- OSBDM and TBDML
- S32M
- S32Z/E
- Solution Forums 4
- Smart Home
- Power & Energy
- Mobile Robotics
- Motor Control
- Software Forums 16
- MCUXpresso Software and ToolsMCUXpresso Software and Tools
- CodeWarriorCodeWarrior
- MQX Software SolutionsMQX Software Solutions
- Model-Based Design Toolbox (MBDT)Model-Based Design Toolbox (MBDT)
- FreeMASTER
- eIQ Machine Learning Software
- Embedded Software and Tools Clinic
- S32 SDK
- S32 Design Studio
- GUI Guider
- Zephyr Project
- Voice Technology
- Application Software Packs
- Secure Provisioning SDK (SPSDK)
- Processor Expert Software
- Generative AI & LLMs
- Topics 8
- Mobile Robotics - Drones and RoversMobile Robotics - Drones and Rovers
- NXP Training ContentNXP Training Content
- University ProgramsUniversity Programs
- Rapid IoT
- NXP Designs
- SafeAssure-Community
- OSS Security & Maintenance
- Using Our Community
- Cloud Lab Forums 2
- Hardware
- Cloud Lab Knowledge Base
- Product Forums 25
- Knowledge Bases 21
- ARM Microcontrollers 7
- K32 L Series Microcontrollers Knowledge Base
- Kinetis Microcontrollers Knowledge Base
- Kinetis Motor Suite Knowledge Base
- LPC FAQs Knowledge Base
- LPC Microcontrollers Knowledge Base
- LPCware Archive Content
- MCX Microcontrollers Knowledge Base
- i.MX Processors 5
- i.MX RT Crossover MCUs Knowledge Base
- i.MX Graphics Knowledge Base
- i.MX Processors Knowledge Base
- i.MX Solutions Knowledge Base
- i.MX 한국어 커뮤니티 Knowledge Base
- Identification and Security 3
- EdgeLock 2GO Secure Service Knowledge Base
- Secure Authentication Knowledge Base
- Smart Cards and Secure Element Knowledge Base
- Model-Based Design Toolbox (MBDT) 0
- QorIQ Processing Platforms 0
- S32 Automotive Processing Platform 0
- Wireless Connectivity 3
- Other Connectivity Knowledge Base
- Wi-Fi® + Bluetooth® + 802.15.4 Knowledge Base
- Wireless Connectivity Knowledge Base
- CodeWarrior 0
- MCUXpresso Suite of Software and Tools 0
- MQX Software Solutions 0
- RFID / NFC 0
- Advanced Analog 2
- High Performance Analog Front End Interfaces
- In Vehicle Networking
- 8-bit Microcontrollers Knowledge Base
- Motor Control and Smart Energy Knowledge Base
- Power Management Knowledge Base
- FRDM Training Hub
- MCUXpresso Training Hub
- Zephyr Project Knowledge Base
- Generative AI & LLMs Knowledge Base
- Embedded World NXP Connectivity Workshop Knowledge Base
- Hands-on workshop in Japan (ハンズオン・ワークショップ [日本]) Knowledge Base
- ARM Microcontrollers 7
- NXP Tech Blogs 1
- NXP Tech Blog
- Ideas
- Blogs
- Forums
- Knowledge Bases
- NXP Tech Blogs
- NXP.COM
- Home
- QorIQ Processing Platforms
- Layerscape
- Re: phc2sys Waiting for ptp4l...
phc2sys Waiting for ptp4l...
Jump to solution 03-23-2022 10:22 PM 12,784 ViewsHi,
We are using ptp4l in our Ls1046a based custom board and it is able to run in our system and the 1588 pulse is in sync with the system. But when we run phc2sys -s fm1-mac3 -w command for the clock to get the UTC offset from the ptp4l automatically. we are observing "Waiting for ptp4l..." log continuously. the phc2sys is stuck in this state for long time. please help us resolve this issue.
Thank you,
Deepanraj.A
Solved! Go to Solution.
0 Kudos Reply 1 Solution Jump to solution 03-31-2022 03:11 AM 12,722 ViewsView solution in original post
0 Kudos Reply- All forum topics
- Previous Topic
- Next Topic
I cannot reproduce your issue, when you observe this issue, could you please check ptp4l is running correctly and keeps synchronizing with master?
Following is my testing log for your reference:
// console1: run ptp4l first to sync your 1588 clock to master # root@ls1046ardb:~/linuxptp# ./ptp4l -i fm1-mac3 -s -m ...
ptp4l[1382.218]: master offset -8 s2 freq +16086 path delay 1810
ptp4l[1383.218]: master offset 25 s2 freq +16116 path delay 1809
ptp4l[1384.218]: master offset -21 s2 freq +16078 path delay 1809
ptp4l[1385.218]: master offset 3 s2 freq +16096 path delay 1809
ptp4l[1386.218]: master offset 3 s2 freq +16096 path delay 1809
ptp4l[1387.218]: master offset -5 s2 freq +16089 path delay 1809
// console2: then run phy2sys to sync system clock to 1588 clock root@ls1046ardb:~/linuxptp# ./phc2sys -s fm1-mac3 -w -m ...
phc2sys[1210.948]: CLOCK_REALTIME phc offset -33 s2 freq +16135 delay 400
phc2sys[1211.948]: CLOCK_REALTIME phc offset -34 s2 freq +16124 delay 440
phc2sys[1212.948]: CLOCK_REALTIME phc offset -38 s2 freq +16110 delay 440
phc2sys[1213.948]: CLOCK_REALTIME phc offset -8 s2 freq +16129 delay 440
phc2sys[1214.948]: CLOCK_REALTIME phc offset -11 s2 freq +16123 delay 440
phc2sys[1215.949]: CLOCK_REALTIME phc offset 8 s2 freq +16139 delay 400
phc2sys[1216.949]: CLOCK_REALTIME phc offset -15 s2 freq +16118 delay 400
0 Kudos Reply Jump to solution 03-29-2022 05:32 AM 12,751 ViewsHi
We are actually using g.8275.1 profile and when we run ptp4l we are not getting any isseue. But when we run phc2sys with -w option we are observing waiting for ptp4l . Please let us know, Do we need to do any configuration in ptp4l so that it will be in sync with the phc2sys
0 Kudos Reply Jump to solution 03-30-2022 07:20 PM 12,738 Viewsplease find the testing log for g.8275.1 profile
//master
root@ls1046ardb:~/linuxptp# ./ptp4l -i fm1-mac3 -f configs/G.8275.1.cfg -m
ptp4l[35564.353]: selected /dev/ptp0 as PTP clock
ptp4l[35564.384]: port 1 (fm1-mac3): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[35564.384]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[35564.384]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[35564.867]: port 1 (fm1-mac3): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[35564.867]: selected local clock 00e00c.fffe.001000 as best master
ptp4l[35564.867]: port 1 (fm1-mac3): assuming the grand master role
//slave console 1 for ptp4l
root@localhost:~/linuxptp# ./ptp4l -i fm1-mac3 -f configs/G.8275.1.cfg -m ...
ptp4l[34959.195]: rms 5 max 10 freq -3067 +/- 8 delay 1296 +/- 1
ptp4l[34960.195]: rms 4 max 8 freq -3064 +/- 7 delay 1298 +/- 1
ptp4l[34961.196]: rms 7 max 16 freq -3078 +/- 9 delay 1300 +/- 2
ptp4l[34962.196]: rms 5 max 10 freq -3071 +/- 9 delay 1296 +/- 1
ptp4l[34963.196]: rms 9 max 15 freq -3059 +/- 12 delay 1300 +/- 1
//slave console2 for phy2sys
root@localhost:~/linuxptp# ./phc2sys -s fm1-mac3 -w -n 24 -m ...
phc2sys[35008.855]: CLOCK_REALTIME phc offset -139 s2 freq -3145 delay 440
phc2sys[35009.855]: CLOCK_REALTIME phc offset -54 s2 freq -3102 delay 400
phc2sys[35010.855]: CLOCK_REALTIME phc offset -12 s2 freq -3076 delay 400
phc2sys[35011.855]: CLOCK_REALTIME phc offset -16 s2 freq -3083 delay 440
phc2sys[35012.856]: CLOCK_REALTIME phc offset 6 s2 freq -3066 delay 400
phc2sys[35013.856]: CLOCK_REALTIME phc offset -17 s2 freq -3087 delay 440
phc2sys[35014.856]: CLOCK_REALTIME phc offset 7 s2 freq -3069 delay 440
0 Kudos Reply Jump to solution 03-30-2022 09:02 PM 12,732 ViewsHi ,
Can you please share your config file so that we can also test with the same config file .
Thank you,
Deepanraj.A
0 Kudos Reply Jump to solution 03-31-2022 03:11 AM 12,723 Views' + lingoLXML.snapshotItem(k).textContent + '
Từ khóa » G.8275.2.cfg
-
Linuxptp/G.8275.g At Master - GitHub
-
G.8275.2 Telecom Profile - Cisco Content Hub
-
G.8275.2 Telecom Profile - Cisco
-
Re: [Linuxptp-users] Use Of Linuxptp As A G.8275.2 Telecom Slave?
-
G.8275.2 : Precision Time Protocol Telecom Profile For Time ... - ITU
-
Debian -- File List Of Package Linuxptp/sid/ppc64el
-
How To Install Linuxptp On Fedora 34 - Installati.one
-
How To Install Linuxptp On CentOS 7 - Installati.one
-
Linuxptp-3.1.1-1.el8.x86_64.rpm - CentOS Repositories
-
[PDF] Linux PTP Using PHC Adjust Phase Quick Start Manual - Renesas
-
Configuring 1588 ATR - System Management 01
-
Configs - Project For Various Processor-SDK Related Git Repositories
-
[Linuxptp-users] Having Trouble Getting Ptp4l To Work With G.8275.2 ...
-
[PDF] Day One Deploying Junos Timing And Synchronization