-1

I have added the ntp daemon on petalinux, but i am not getting ntpq command. Can someone guide me, how can I add/use the ntpq file on petalinux.

malik
  • 1
  • 2

1 Answers1

0

ntpq exists as a separate package and requires that you explicitly call it out in your build.

open project-spec/meta-user/recipes-core/images/petalinux-image.bbappend
(filename may vary based on version of Petalinux you are using)

add this line
IMAGE_INSTALL_append = " ntpq"

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

petalinux-build

For how to use ntpq refer to the man pages or ntpq --help.

thelummox
  • 336
  • 2
  • 8