Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

telnetd:all network ports in use.

Altera_Forum
Honored Contributor II
2,793 Views

i make a newsimple services file,and I can run inetd. 

this is my services file: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

ftp-data  20/tcp 

ftp 21/tcp 

telnet 23/tcp 

uptime 24/tcp 

http 80/tcp[/b] 

--- Quote End ---  

 

 

but I can&#39;t use telnet on a pc to connect my board. 

it saied: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

telnetd:all network ports in use.[/b] 

--- Quote End ---  

 

 

netstat 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

tcp 0    0  218.192.170.81:telnet  218.192.170.250:3520    TIME_WAIT[/b] 

--- Quote End ---  

 

 

and i run ps 

ps 

 

i can see "inetd",but i can&#39;t see telnetd. 

 

why it say "telnetd:all network ports in use." 

how can i do? 

 

my inetd.conf file: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

ftp  stream  tcp  nowait  root /bin/ftpd 

telnet  stream  tcp  nowait  root /bin/telnetd 

uptime  stream  tcp  nowait  root cat /proc/uptime /etc/issue[/b] 

--- Quote End ---  

 

 

and in my fstab file also has the pts 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

devpts    /dev/pts devpts    defaults,gid=5,mode=620 0    0[/b] 

--- Quote End ---  

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,646 Views

 

--- Quote Start ---  

originally posted by phill@Apr 9 2006, 05:53 PM 

i make a newsimple services file,and i can run inetd. 

this is my services file: 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

ftp-data  20/tcp 

ftp 21/tcp 

telnet 23/tcp 

uptime 24/tcp 

http 80/tcp 

--- Quote End ---  

 

 

but I can&#39;t use telnet on a pc to connect my board. 

it saied: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

telnetd:all network ports in use.[/b] 

--- Quote End ---  

 

 

netstat 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

tcp 0    0  218.192.170.81:telnet  218.192.170.250:3520    TIME_WAIT[/b] 

--- Quote End ---  

 

 

and i run ps 

ps 

 

i can see "inetd",but i can&#39;t see telnetd. 

 

why it say "telnetd:all network ports in use." 

how can i do? 

 

my inetd.conf file: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

ftp  stream  tcp  nowait  root /bin/ftpd 

telnet  stream  tcp  nowait  root /bin/telnetd 

uptime  stream  tcp  nowait  root cat /proc/uptime /etc/issue[/b] 

--- Quote End ---  

 

 

and in my fstab file also has the pts 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

devpts    /dev/pts devpts    defaults,gid=5,mode=620 0    0[/b] 

--- Quote End ---  

 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14160)</div> 

[/b] 

--- Quote End ---  

 

 

after some google search, you may need these in uClinux-dist-test menuconfig, clean and rebuild 

telnetd       telnetd does not use openpty() (NEW)  
0 Kudos
Altera_Forum
Honored Contributor II
1,646 Views

you should config kernel, with, 

Device Drivers --> Character devices -->  

[*] Legacy (BSD) PTY support  

(10) Maximum number of legacy PTY in use 

 

you should use inetd from ~/apps/inetd, 

and use telnetd from ~/uClinux-dist-test/user/telnetd
0 Kudos
Altera_Forum
Honored Contributor II
1,646 Views

after I enabled the BSD PTY devices in menuconfig the message changed from "All network ports in use" to garbage characters. Obviously the device can be opened now but then the telnetd got stuck. What could this be?

0 Kudos
Altera_Forum
Honored Contributor II
1,646 Views

found out myself, 

all is working but I started the telnetd the wrong way. 

telnetd should be started by inetd and not by invoking /bin/telnetd &. 

telnetd only shows up in the process list when a session is started from a remote host.
0 Kudos
Reply