telnet 192.168.2.51
Trying 192.168.2.51...
Connected to 192.168.2.51.
Escape character is '^]'.
Connection closed by foreign host.
用busybox做的ramdisk,内核编译启动后,telnet连接板子总是失败,后来找到了原因,原来需要 mknod一下文件节点,在dev下建立pts文件夹,在/etc/init.d/rcS里面加一句
mount n /dev/pts -t devpts
mknod -m 666 /dev/ptmx c 5 2
就行了。
//telnet服务启动
超级终端里运行“ /etc/init.d/telnetd start ”
ps |grep telnetd