Forum Discussion
Altera_Forum
Honored Contributor
16 years agotelnetd all ports in use...?
Hello friends,
Whenever I start 'inetd &', I try to access the board through telnet, and the answer I get is all ports are in use. The board has just been powered up. The OS has just booted. I added telnetd from Network Applications and ticked the option "telnet does not use openpty()". But I have also tried with this option unselected, still the same result. Any ideas will be appreciated. Thank you very much Francisco4 Replies
- Altera_Forum
Honored Contributor
Hello Again,
I checked http://www.alteraforum.com/forum/showthread.php?t=16296 this thread and checked my configuration for the conditions hippo mentioned. They were as mentioned there. I am trying to telnet the DE2 board with a Desktop computer. Perhaps I am configuring a wrong network. When I do route -n in the computer, I get:
so, in the OS, I doKernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.48.40.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 10.48.47.252 0.0.0.0 UG 0 0 0 eth0
but when I try to link to the board, I get;Command: ifconfig eth0 hw ether 00:07:ed:0a:03:29 Command: ifconfig eth0 10.48.46.90 eth0: link down Command: route add default gw 10.48.47.252 netmask 255.255.248.0 Command: inetd & Command: mkdir /logs Command: touch /logs/buffer1.txt Command: touch /logs/buffer2.txt Command: Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Execution Finished, Exiting Sash command shell (version 1.1.1) /> eth0: link up, 100Mbps, full-duplex, lpa 0xC3E1 execve failed!
I don't know if its a mistake of network configuration, because I was using the same applications on another network and they worked correctly. Thank you all Franciscopancho@holaamigos:~$ telnet 10.48.46.90 Trying 10.48.46.90... Connected to 10.48.46.90. Escape character is '^]'. telnetd: All network ports in use. Connection closed by foreign host. - Altera_Forum
Honored Contributor
Please remove the network startup in rc temporarily. Please try them in command line one by one to find out the execve problem.
- Hippo - Altera_Forum
Honored Contributor
Hello hippo,
I tried your suggestion. When I ran every command manually, none of them seemed to fail. However, when trying to telnet the board still couldn't. I figured a way to manipulate the board using files as 'flags' via ftp, which was already working. Thanks for you help Francisco - Altera_Forum
Honored Contributor
Hello,
does anybody have running telnetd on uClinux ? I have the same error like Francesco - telnetd: All network ports in use - so I run the inetd & from command line, ftp run ok but telnet not. Has somebody experiences with sshd ? It is possible to compile, but when I run sshd & the shell kill this process after few seconds ... Thanks for your answer. Jan Naceradsky, Czech Republic