Hello,
> thought about ntpclient (doolittle version)... I compiled it in SDK,
> sent it to foxboard, but did not run, due to library problems...
> program can't load shared librarie librt.so.1...
> How can I solve this problem...or ...
Did you edit the provided Makefile for cross compiling?
Some time ago I cross compiled ntpclient to run on the FOX board using
the following Makefile:
-------------------------------------------------------
AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
INSTDIR = $(prefix)/usr/bin
CC:=cris-gcc -mlinux
CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow \
-Waggregate-return -Wnested-externs -Winline -Wwrite-strings \
-Wstrict-prototypes
CFLAGS += -Os
LDFLAGS= -s
all: ntpclient
ntpclient: ntpclient.o phaselock.o
install: ntpclient
$(INSTALL) -p -o root -g root -m 0777 ntpclient $(INSTDIR)
clean:
$(RM) ntpclient adjtimex *.o
-----------------------------------------------------------------
Of course you must first initialize the environent and
say "make cris-axis-linux-gnu" in the ntpclient directory
before you run "make clean", "make".
If you are not successful with this Makefile I could send you the
ntpclient as binary (glibc or uclib version).
BTW, using CrisOS instead of Linux Axis,
ntpclient can be downloaded as a ready to run package
(ipkg install ntpclient).
Good luck!
Regards
Klaus