hi
my demo board is P2020DS , i use the sdk1.6. I want use the p2020ds as NTP server , how to include the NTP server module and configuration? thank U.
root@p2020ds:~# date -R
Mon, 10 Aug 2020 10:13:11 +0000
root@p2020ds:~#
root@p2020ds:~#
root@p2020ds:~#
root@p2020ds:~# ntpd
BusyBox v1.22.1 (2020-08-10 01:44:42 PDT) multi-call binary.
Usage: ntpd [-dnqNwl] [-S PROG] [-p PEER]...
root@p2020ds:~#
Please add "ntp" in IMAGE_INSTALL variable in meta-fsl-networking/images/fsl-image-core.bb.
IMAGE_INSTALL += " \
packagegroup-fsl-core \
ntp \
"
Then rebuild rootfs filesystem with the following command.
$ bitbake fsl-image-core
hi Yiping Wang
I have done as ur suggestion. but thers is no /etc/ntp.conf and how can I config p2020ds as NTP service ? c an u give me some suggestion?
root@p2020ds:/# service ntpd start
-sh: service: command not found
root@p2020ds:/#
/etc# ntp.conf
-sh: ntp.conf: command not found
root@p2020ds:/etc#
root@p2020ds:/etc#
root@p2020ds:/etc#
root@p2020ds:/etc#
root@p2020ds:/etc#
root@p2020ds:/etc# cd ..
root@p2020ds:/# ntpd -p 192.168.5.12 -qNn
ntpd: time slew +0.000000s
add
ntpd -p 192.168.1.16 -qNn
root@p2020ds:/# /etc/init.d/ntpd star
Starting ntpd: /usr/sbin/ntpd is already running
2415
done
root@p2020ds:/# netstat -ln|grep 123
udp 0 0 192.168.1.16:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp6 0 0 fe80::2e0:cff:fe02::123 :::*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
root@p2020ds:/# ntpstat
-sh: ntpstat: command not found
root@p2020ds:/#
Please execute the following commands.
/etc/init.d/ntpd restart
add problem, why service: command not found ? thank u.
2409 ttyS0 00:00:00 sh
2415 ? 00:00:00 ntpd
2424 ttyS0 00:00:00 ps
root@p2020ds:/# service stop ntpd
-sh: service: command not found
root@p2020ds:/#