UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor sigvarth
Visitor
1,386 Views
Registered: ‎05-02-2018

Adding NTP deamon to petalinux

Jump to solution

Any suggestions on how to add NTP deamon to petalinux, I've tried to add the bitbake recipe from here https://layers.openembedded.org/layerindex/recipe/2299/

but it doesn't show up in petalinux-config -c rootfs or kernel. I don't get what I'm doing wrong. Like it looks like the kernel has ntp support from https://github.com/Xilinx/linux-xlnx/blob/master/kernel/time/ntp.c

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
1,578 Views
Registered: ‎02-07-2018

Re: Adding NTP deamon to petalinux

Jump to solution

Hi,

 

Please follow below steps to add ntp as a part of your rootfs.

 

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = " ntp"

petalinux-config -c rootfs
user packages --> [*] ntp

petalinux-build

 

Thanks & regards

Aravind

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

3 Replies
Moderator
Moderator
1,579 Views
Registered: ‎02-07-2018

Re: Adding NTP deamon to petalinux

Jump to solution

Hi,

 

Please follow below steps to add ntp as a part of your rootfs.

 

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = " ntp"

petalinux-config -c rootfs
user packages --> [*] ntp

petalinux-build

 

Thanks & regards

Aravind

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

Visitor sigvarth
Visitor
1,316 Views
Registered: ‎05-02-2018

Re: Adding NTP deamon to petalinux

Jump to solution

Thank you so much. This worked and NTP deamon is now available in petalinux :)

0 Kudos
Observer shustik
Observer
360 Views
Registered: ‎07-14-2017

Re: Adding NTP deamon to petalinux

Jump to solution

Than you very much for your answer!

But I can't understand 2 moments:

1. I would like to use ntpq, but I don't get it together with ntpd. Is it possible to correct it?

2. I can't change server list in /etc/ntp.conf. I created my config file in rootfs/etc/ntp.conf (SD card), but when petalinux starts, I see default configuration at /etc/ntp.conf. What to do?

0 Kudos