cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,434 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
Highlighted
Moderator
Moderator
2,626 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.
----------------------------------------------------------------------------------------------

View solution in original post

4 Replies
Highlighted
Moderator
Moderator
2,627 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.
----------------------------------------------------------------------------------------------

View solution in original post

Highlighted
Visitor
Visitor
2,364 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
Highlighted
Observer
Observer
1,408 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
Highlighted
Visitor
Visitor
189 Views
Registered: ‎08-04-2019

Re: Adding NTP deamon to petalinux

Jump to solution

in Petalinux 2020 it is a little different. You need to edit the file:

<project_name>/project-spec/meta-user/conf

adding the line(s):

CONFIG_ntp

(or CONFIG_<whatever-package>)

then the package to be enabled should show up in:

petalinux-config -c rootfs -> user apps

0 Kudos