telnetd not working on imx6 sabrelite rev d board, need help..

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

telnetd not working on imx6 sabrelite rev d board, need help..

跳至解决方案
1,501 次查看
skurudi
Contributor II

I have a rev D version of sabrelite imx6 board. I need to make telnetd function. I built the rootfs with telnetd enabled (through busybox config) I have made the following changes

1) In /etc/inetd.conf file changed the line

telnet  stream  tcp     nowait  root    /usr/sbin/telnetd       telnetd -i

  to

telnet  stream  tcp     nowait  root    /sbin/telnetd       telnetd -i -l /bin/login

since telnetd binary is present in /sbin/directory

2) created /dev/pts directory and mounted devpts filesystem by command

  mount -t devpts devpts /dev/pts

3) Our kernel supports UNIX98_PTYS , I verified through config file.

I have a ext2 root file system. On shell prompt. I executed the following commands

1) inetd -f &

  2) ifconfig eth0 10.162.100.214 up

From the host I tried connecting through

telnet 10.162.100.214

I get the following output

Trying 10.162.100.214...

Connected to 10.162.100.214.

Escape character is '^]'.

 

I don't get the login prompt. It gets stuck at the above point.

I also tested with the following change in inetd.conf file

telnet  stream  tcp     nowait  root    /sbin/telnetd       telnetd  -l /bin/login

without the -i option the connection breaks, i.e I get the following output

Trying 10.162.100.214...

Connected to 10.162.100.214.

Escape character is '^]'.

Connection closed by foreign host


Is there anything I am missing? Please help

标签 (2)
0 项奖励
1 解答
770 次查看
skurudi
Contributor II

The problem was in devpts file system, I had mounted from the older kernel version, I remounted it from 3.0.35 and telnet worked.

Thanks

Sharath

在原帖中查看解决方案

0 项奖励
1 回复
771 次查看
skurudi
Contributor II

The problem was in devpts file system, I had mounted from the older kernel version, I remounted it from 3.0.35 and telnet worked.

Thanks

Sharath

0 项奖励