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

[Milkymist-devel] telnetd server application



Do you have IMFS configured? Looks like the underlying
open("/dev/pty0") call failed with EIO.

BTW - my usual rant: When submitting a problem report
you could make our life a *lot* easier if you would attach
a ****!!!!COMPLETE!!!!**** console log rather than
editing it and submitting only the few lines that you think
are important. Even the messages that were printed
long before the error occurred might give us clues.
If we don't have this information we might have to go
back and write messages like this one which takes useless
time...

-- T.

On 07/25/2010 09:43 PM, Yann Sionneau wrote:
> Le 25/07/2010 21:21, Joel Sherrill a ?crit :
>    
>> 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?
>>      
> I am on real hardware, the message comes from telnetd itself
> file cpukit/telnetd/telnetd.c , line 388
>
>    
>>>> --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,
>>>>>>>>>>
>>>>>>>>>>                      
>