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

You can see sources for openntpd we used on DVD:
You can see how we configured and built it also on DVD:
$(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:
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:
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:
Last updated: Jan 01, 2024

Filed Under


Recently Viewed

No recently viewed articles

Did you find this article helpful?