[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: connect serial port with ethernet port



hi david,
thanks for your help

In what board you have tried the serproxy? In a developer board or in
one own? 
If it is the own one, you have all the pins connected of db9?




On Wed, 2004-04-14 at 21:45, David Kilp wrote:
> You should include the following line at the top of your Makefile if you
> want to 
> use it with the Axis build tools 
> 
> include $(APPS)/Rules.elinux
> 
> This will make sure that the correct paths are setup for cross-compiling
> for Axis.
> 
> For reference here's my modified Makefile in which the install will put
> the config file into 
> the /etc directory:
> 
> #
> # File: Linux serproxy makefile
> #
> # (C)1999 Stefano Busti
> #
> include $(APPS)/Rules.elinux
> 
> PROGS     = serproxy
> 
> INSTDIR   = $(prefix)/bin/
> INSTMODE  = 0755
> 
> CONFDIR   = $(prefix)/etc
> CONFMODE  = 0644
> 
> INSTOWNER = root
> INSTGROUP = root
> 
> VERSION = `cat VERSION`
> 
> SRCS = \
>   main.c sio.c sock.c thread.c vlist.c cfglib.c config.c string.c \
>   pipe.c error.c
> 
> OBJS = \
>   main.o sio.o sock.o thread.o vlist.o cfglib.o config.o string.o \
>   pipe.c error.c
> 
> ifdef DEBUG
> CFLAGS = -Wall -g -D__UNIX__ -DDEBUG
> else
> CFLAGS = -Wall -O2 -fomit-frame-pointer -D__UNIX__
> endif
> 
> ifdef USE_EF
> LDLIBS= -lpthread -lefence
> else
> LDLIBS= -lpthread
> endif
> 
> # Build the program
> 
> all: $(PROGS)
> 
> $(PROGS): $(OBJS)
> 	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(LIBS)
> 
> install: serproxy
> 	$(INSTALL) -d $(INSTDIR)
> 	$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP)
> $(PROGS) $(INSTDIR)
> 	$(INSTALL) -m $(CONFMODE) serproxy.cfg $(CONFDIR)
> 
> clean:
> 	rm -f *.o *~
> 	rm -f *.bak *.bck
> 
> realclean:
> 	rm -f *.o *~ serproxy *.gz *.zip
> 
> dep:
> 	makedepend -Y -- $(CFLAGS) -- $(SRCS) 2&>/dev/null
> 
> # DO NOT DELETE
> 
> main.o: sio.h sock.h pipe.h thread.h vlist.h cfglib.h config.h error.h
> sio.o: sio.h
> sock.o: sock.h
> thread.o: thread.h
> vlist.o: vlist.h
> cfglib.o: cfglib.h
> config.o: config.h cfglib.h string.h
> string.o: string.h
> pipe.o: pipe.h sio.h sock.h thread.h
> error.o: error.h
> 
> 
>  
> 
> > -----Original Message-----
> > From: owner-dev-etrax@xxxxxxx.com 
> > [mailto:owner-dev-etrax@xxxxxxx.com] On Behalf Of jose amador
> > Sent: Wednesday, April 14, 2004 2:10 PM
> > To: dev-etrax@xxxxxxx.com
> > Subject: Re: connect serial port with ethernet port
> > 
> > 
> > hi,
> > 
> > david kilp or someone, please help me!!!!
> > 
> > Since you recommended me, I have installed the serproxy 
> > program in my pc and I have used it as transparent port 
> > successfully. But I don't manage to make it work on the axis. 
> > I add it to the list of the makespec and gives the following 
> > mistake to run ./install
> > 
> > Making configsubs in apps/serproxy-0.1.2 for cris-axis-linux-gnu
> > make[2]: Entering directory 
> > `/root/axis/e100lx_mcm/apps/serproxy-0.1.2'
> > make[2]: *** No rule to make target `configsubs'.  Stop.
> > make[2]: Leaving directory `/root/axis/e100lx_mcm/apps/serproxy-0.1.2'
> > make[1]: *** [configsubs-recurse] Error 1
> > make[1]: Leaving directory `/root/axis/e100lx_mcm'
> > make: *** [cris-axis-linux-gnu] Error 1
> > 
> > 
> > 
> > What makefile you use to get the executable into the axis?
> > 
> > I have tried to modify the default makefile,and I have put 
> > the route for the executable: 
> > /root/axis/e100lx_mcm/target/cris-axis-linux-gnu/bin 
> > 
> > 
> > but on running make images ...
> > 
> > 
> > ##### Including needed shared library files #####
> > #### No ld-linux.so.2 in 
> > /root/axis/e100lx_mcm/target/cris-axis-linux-gnu/usr/lib
> > /root/axis/e100lx_mcm/target/cris-axis-linux-gnu/lib
> > make: *** [cramfs.img] Error 1
> > 
> > 
> > if I tried to use ftp to transfer the executable to the flash 
> > but when i run it ...
> > 
> > 'unexpected "("'
> > 
> > what I must do with the file serproxy.cfg to transfer it to 
> > the flash using ftp?
> > 
> > 
> > 
>