Support / Knowledge Base / Rebuilding or upgrading version of ntp/ntpd used in Digi Embedded Linux

Rebuilding or upgrading version of ntp/ntpd used in Digi Embedded Linux

You can see sources for openntpd we used on DVD:
DVD\toolchain\packages\openntpd-3.9p1.tar.gz
 
You can see how we configured and built it also on DVD:
DVD\toolchain\del_toolchain\packages\openntpd\Makefile.in:
 
$(PACKAGE_DIR)/.configured: $(PACKAGE_DIR)/.unpacked
                ( cd $(PACKAGE_DIR); autoconf; autoheader; rm -f config.cache; \
                                ./configure \
                                --prefix=/usr \
                                --sysconfdir=/etc \
                                --mandir=/usr/share/man \
                                --with-mantype=man \
                                $(if $(findstring $(TARGET),host),,--host=arm-linux --disable-strip) \
                                --with-adjtimex \
                                --with-builtin-arc4random \
                );
 
 
You can get the most recent version by doing:
wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz
tar xvfz ntp-4.2.6p5.tar.gz
cd ntp-4.2.6p5
export PATH=/usr/local/DigiEL-5.7/x-tools/arm-unknown-linux-uclibcgnueabi/bin:$PATH
export TOOLCHAIN_DIR=/usr/local/DigiEL-5.7/x-tools/arm-unknown-linux-uclibcgnueabi/
CC=arm-linux-gcc ./configure  --host=arm-linux --target=arm-linux --prefix=/usr/local/DigiEL-5.7/x-tools/arm-unknown-linux-uclibcgnueabi
make CC=arm-linux-gcc
make install
 
if it fails see solution here:
http://marc.info/?l=ntp-bugs&m=130096757506094
 
vi util/tickadj.c
 
//#ifdef HAVE___ADJTIMEX                /* Linux */
 
#include <sys/timex.h>
struct timex txc;
 
#ifdef HAVE___ADJTIMEX          /* Linux */
 
It builds for us but we have not done any tests beyond that point.
 
some more instructions here:
http://www.linuxfromscratch.org/blfs/view/svn/basicnet/ntp.html

 
Last updated: Aug 23, 2017

Filed Under

Embedded

Recently Viewed Articles

No recently viewed articles
Contact a Digi expert and get started today! Contact Us