Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

patch for telnetd in ~/apps

Altera_Forum
Honored Contributor II
1,262 Views

Hi all, 

 

I have modified the Makefile of ~/apps/telnetd. 

It is working fine. 

 

you have to just change the makefile as give below: 

 

 

******************************************************************************** 

*** 

The below is telnetd-Makefile modified version (modified by Goutam) 

******************************************************************************** 

***# # configurable options# - set DEBUG = 1 to turn on debugging support#  

DEBUG = 0 

PROJ_NAME = telnetd 

INSTALL_DIR = ~/rootfs 

PROGS := $(PROJ_NAME) 

CFLAGS += -O2 

CROSS := nios2-linux-uclibc- 

CC := $(CROSS)gcc 

# # You should not need to modify anything beyond this point#  

 

FLTFLAGS := -s 8192 

CFLAGS += -DPARANOID_TTYS  

-DTERMCAP  

-DUSE_TERMIO  

-DKLUDGELINEMODE  

-D_GNU_SOURCE 

 

OBJS = global.o logwtmp.o state.o telnetd.o termstat.o  

authenc.o logout.o slc.o sys_term.o utility.o 

 

all: $(PROGS) 

 

$(PROJ_NAME): $(OBJS) 

$(CC) -elf2flt="$(FLTFLAGS)" -o $@ $^ 

 

.PHONY: clean 

clean: 

-rm -f *.[oad] *.gdb $(PROJ_NAME) 

 

.PHONY: install 

install: all 

ifeq "$(INSTALL_DIR)" "" 

$(error No installation directory specified) 

endif 

mkdir -p $(INSTALL_DIR)/bin 

install -v $(PROGS) $(INSTALL_DIR)/bin 

******************************************************************************** 

***
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
595 Views

hi: 

 

why I run telned follow you guide,but failed, the failed information in telnet ternimal is: 

 

login: incailid option -- t 

BusyBox v1.1.1-pre <2006.05.18-01:52+000> multi-call binary 

 

Usage: login [OPTION]...[username] [ENV=VAR ...] 

 

Begin a new session on the system 

 

Thanks
0 Kudos
Reply