[Milkymist-devel] telnetd server application

Joel Sherrill joel.sherrill at OARcorp.com
Sun Jul 25 19:21:19 UTC 2010


On 07/25/2010 11:42 AM, Yann Sionneau wrote:
> Le 25/07/2010 18:39, Joel Sherrill a écrit :
>    
>> On 07/25/2010 11:09 AM, Yann Sionneau wrote:
>>      
>>> Hi again !
>>>
>>> The ethernet driver was totally wrong, i corrected it now it seems ok
>>>
>>> I have another problem with telnetd now :
>>>
>>> syslog: telnetd: accepted connection from 192.168.101.254 on /dev/pty0
>>> unable to open stdio: I/O error
>>>
>>>        
>> My guess is that you do not have enough file descriptors or
>> PTYs configured.  CONFIGURE_MAXIMUM_LIBIO_FILE_DESCRIPTORS
>> (from memory) -- 3 for stdin, out, and error plus a few others for
>> the socket, telnet (3 per session?), and any file operations you
>> will do from the shell.
>>      
> I just copied the telnetd application from the network-demos.
> it has 8 ptys and and 20 file descriptors
>    
Hmm..time for gdb?  Are you on a simulator or real hardware?

If on a simulator, is is possible that the message is coming
from the simulator?
>> --joel
>>      
>>> syslog: telnetd: releasing connection from 192.168.101.254 on /dev/pty0
>>>
>>> do you know how to correct this ?
>>>
>>> Sorry for flooding the list with my problems :)
>>>
>>> Le 25/07/2010 12:42, Yann Sionneau a écrit :
>>>
>>>        
>>>> Thanks Joel&   Till it helped a lot, telnetd starts well, the problem
>>>> comes from my ethernet driver now :)
>>>>
>>>>
>>>> Le 24/07/2010 15:54, Joel Sherrill a écrit :
>>>>
>>>>
>>>>          
>>>>> On 07/24/2010 02:08 AM, Till Straumann wrote:
>>>>>
>>>>>
>>>>>            
>>>>>> Most likely a configuration issue. Did you see the line
>>>>>> 'registering the PTY driver FAILED'? That probably means
>>>>>> you hit the driver limit.
>>>>>>
>>>>>> Try
>>>>>>
>>>>>> #define CONFIGURE_MAXIMUM_DRIVERS 10
>>>>>>
>>>>>> or some other reasonable number.
>>>>>>
>>>>>>
>>>>>>
>>>>>>              
>>>>> How about CONFIGURE_MAXIMUM_PTYS?
>>>>>
>>>>> Yann.. did you look at the network-demos/telnetd?   network-demos
>>>>> is a separate CVS module.
>>>>>
>>>>> --joel
>>>>>
>>>>>
>>>>>            
>>>>>> HTH
>>>>>> - Till
>>>>>>
>>>>>> On 07/23/2010 11:23 PM, Yann Sionneau wrote:
>>>>>>
>>>>>>
>>>>>>              
>>>>>>> ok ... just forgot the attachement !
>>>>>>>
>>>>>>> Le 23/07/2010 23:21, Yann Sionneau a écrit :
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I am trying to use the telnetd included in RTEMS source tree to
>>>>>>>> start a
>>>>>>>> shell in order to do a nice sample application for the Ethernet
>>>>>>>> driver
>>>>>>>> of milkymist bsp.
>>>>>>>>
>>>>>>>> Is there some documentation about how to use it ?
>>>>>>>>
>>>>>>>> I tried what i thought was correct, according to what i've read
>>>>>>>> in the
>>>>>>>> telnetd source code.
>>>>>>>>
>>>>>>>> I've put the code i am using as attachment.
>>>>>>>>
>>>>>>>> I get this error running the application :
>>>>>>>>
>>>>>>>> *** MILKYMIST NETWORKING TEST by Yann Sionneau ***
>>>>>>>> == Initializing Network ==
>>>>>>>> == Starting telnetd ==
>>>>>>>> WARNING: registering the PTY driver FAILED
>>>>>>>> telnetd cannot initialize PTY driver
>>>>>>>>
>>>>>>>> If you have some advice i would really appreciate :)
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>>
>>>>>>>>                  
>>>> _______________________________________________
>>>> http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
>>>> IRC: #milkymist at Freenode
>>>> Webchat: www.milkymist.org/irc.html
>>>> Wiki: www.milkymist.org/wiki
>>>>
>>>>
>>>>          
>>>
>>>        
>>      
>    




More information about the users mailing list