This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

telnet on DM355

Hello everyone, I have a problem about telnet on DM355 EVM.

My  flash is nand  flash; the  flash file  system is yaffs2. I  have two ways to boot the linux .

The  first  way is  using the  file system  on  flash and the kernel on flash .  After booting  the linux, i tried to telnet DM355 evm ,  but I was failed. The information shows me "Connection closed by foreign host".

The  second way is using the nfs file system and the kernel on flash  .Then I chose a NFS to boot mv linux and the telnet function is availible, I can telnet DM355 EVM successfully.

I want  to login  the board using telnet    when boot the board  using file system on flash , but  I failed many times . 

This problem makes me confused for several days and I don't know why I cannot telnet the DM355 EVM while the file system in flash.

The  board  which I use  is  TI  original binding  board .

 

After  I boot the board  using flash file system , the  processes list is :  

PID  Uid     VmSize Stat Command
    1 root        520 S   init [3]  
    2 root            SW< [ksoftirqd/0]
    3 root            SW< [desched/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
   10 root            SW< [kthread]
   19 root            SW< [kblockd/0]
   44 root            SW  [khubd]
  104 root            SW  [pdflush]
  105 root            SW  [pdflush]
  107 root            SW< [aio/0]
  106 root            SW  [kswapd0]
  711 root            SW  [kseriod]
  765 root            SW  [mtdblockd]
  784 root            SW< [dm_spi.0]
  944 root        592 S   /usr/sbin/inetd
  950 root        388 S < udevd
  962 root        572 S   /bin/sh /opt/dvsdk/web/thttpd_wrapper
  963 root       1664 S   ./interface
  964 root        784 S   -sh
  966 nobody      828 S   ./thttpd -c /cgi-bin/* -l /dev/null
  967 root        404 S   sleep 10
  998 root        696 R   ps -e

After  I boot  the board using  NFS , the  processes list is  :  


# ps -e
  PID TTY          TIME CMD
    1 ?        00:00:02 init
    2 ?        00:00:00 ksoftirqd/0
    3 ?        00:00:00 desched/0
    4 ?        00:00:00 events/0
    5 ?        00:00:00 khelper
   10 ?        00:00:00 kthread
   44 ?        00:00:00 khubd
  106 ?        00:00:00 kswapd0
  711 ?        00:00:00 kseriod
  765 ?        00:00:00 mtdblockd
  812 ?        00:00:00 rpciod
  822 ?        00:00:00 udevd
 1022 ?        00:00:00 portmap
 1044 ?        00:00:00 rpc.statd
 1056 ?        00:00:00 inetd
 1060 ?        00:00:00 mvltd
 1069 ?        00:00:00 bash
 1074 ?        00:00:00 lockd
 1075 ?        00:00:00 ps

I hope someone can help me. Thanks !!!

  • First, it should not matter if file system is in flash or is NFS mounted; this is probrably due to a difference in file systems being used. 

    May I ask where you got the yaffs2 file system or how you put it together?

  • Thank you for helping me !!!

    The board is a TI original board, the file system and kernel are installed by TI maybe. When I got the board I found the file system is available, I just use it !

  • As you can imagine, with the limited size of flash memory, we can not place the same file system you can NFS mount in flash (video files alone a way too large).  Therefore, in order to place a file system in flash, we had to reduce the size (leave some free space...) and not all services are included.  This is probrably the case with telnet.

    The good news is that you can add services to the file system available in flash; ideally, you want to use a tool such as DevRocket to optimize a Linux file system to meet your needs as such tool can resolve all dependencies associated with telnet service for you.  You can try copying files manually, but this will be a hot-or-miss interative approach that is not ideal.

  • Dear M. Gonzales,

    I have the same problem, I don't have DevRocket and won't have it.

    I know that "in.telnetd" service is started in flash mode, but it doesn't work.

    I'm trying to deal with kernel options, with menuconfig, to find which components it needs to work in Flash mode.

    Do you have an idea of wich option I must activate?

    Regards,

     

    Stéphane.

  • I found why it doesn't work.

    There was a problem in the "inetd.conf" file. The telnetd program wasn't started properly.