博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

小宝--读书笔记

精修内功!
  zieckey.cublog.cn

关于作者
思路决定出路,态度决定高度!
|| << >> ||
我的分类


E680应用(1)——Linux系统telnet连接Moto E680手机

先看一下最终结果:


[root@localhost helloworld]# iptables -A INPUT -i usb0 -j ACCEPT
[root@localhost helloworld]# iptables -A OUTPUT -o usb0 -j ACCEPT
[root@localhost helloworld]# ifconfig usb0 192.168.1.6
[root@localhost helloworld]# telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.

MontaVista Linux Consumer Electronics Edition 3.0
Linux/armv5tel 2.4.20_mvlcee30-mainstone


(none) login: root
Linux 192.168.1.11 2.4.20_mvlcee30-mainstone #7 Fri Feb 13 15:39:51 CST 2004 armv5tel unknown

MontaVista Linux Consumer Electronics Edition 3.0

No directory /
Logging in with home = "/".
# ls
bin dev diska diskb etc ezxlocal home lib mmc proc ram root sbin tmp usr var
#


步骤解释:


1. 使得你的E680的usb模式有usblan或usb网的选项。(网上很多方法,不知道的自己找找)

2. 配置你的Linux内核(我的内核是2.6.21,好象2.6.12以上都可用)加入下面的模块:

Device Drivers

USB Support

USB Network Adapters

选上所有的模块,特别是

Sharp Zaurus (stock ROMs) and compatible,

这个模块是E680用的。

3. make modules; make modules_install(remember to backup your /lib/modules before this step)

4. 如果用iptables防火墙应加入一下规则:

iptables -A INPUT -i usb0 -j ACCEPT

iptables -A OUTPUT -o usb0 -j ACCEPT

5. 设置usblan的ip
ifconfig usb0 192.168.1.6

6. telnet
telnet 192.168.1.2 进入E680

参考:

http://www.troodon.org/a780/a780-linux-howto.htm
http://tux.medhas.org/static/a768i.HTML
http://tud.at/programm/a768i.html
http://blog.csdn.net/aimself/archive/2007/03/01/1518707.aspx
http://wiki.openezx.org/Get_a_shell

发表于: 2008-07-08,修改于: 2008-07-10 22:18,已浏览287次,有评论0条 推荐 投诉


网友评论
 发表评论