QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1372|回复: 2

急:开发板ADSL拨号问题

[复制链接]
发表于 2006-2-21 12:11:58 | 显示全部楼层 |阅读模式
小弟在自己的电脑LINUX下通过中国电信的ADSL MODEM拨号上网成功。

但移植到开发板上发生了问题,总是收不到包,郁闷了好几天,找不出原因。

以下是在开发板运行#DEBUG=1 adsl-start得到的DEBUG结果

请做过的大侠指点一二,万分感激!!!

---------------------------------------------
* The following section contains information about your system
Tue Feb 7 11:09:28 UTC 2006
Output of uname -a
Linux fa 2.4.18-rmk7-pxa1 #7 二 11月 15 19:32:00 CST 2005 armv4l unknown
---------------------------------------------
* The following section contains information about your network
* interfaces. The one you chose for PPPoE should contain the words:
* 'UP' and 'RUNNING'. If it does not, you probably have an Ethernet
* driver problem.
Output of ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:C0:FF:EE:08
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)
Interrupt:37 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)

sit0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)

---------------------------------------------
* The following section contains information about kernel modules
* If the module for your Ethernet card is 'tulip', you might
* want to look for an updated version at http://www.scyld.com
Output of lsmod
Module Size Used by Not tainted
usbkbd 2708 0 (unused)
rf 4112 0 (unused)
evdev 3356 0 (unused)
mousedev 4276 0 (unused)
keybdev 1716 0 (unused)
input 3536 0 [usbkbd evdev mousedev keybdev]
---------------------------------------------
* The following section lists your routing table.
* If you have an entry which starts with '0.0.0.0', you probably
* have defined a default route and gateway, and pppd will
* not create a default route using your ISP. Try getting
* rid of this route.
Output of netstat -n -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
---------------------------------------------
Contents of /etc/resolv.conf
* The following section lists DNS setup.
* If you can browse by IP address, but not name, suspect
* a DNS problem.
nameserver 202.96.134.134
nameserver 202.96.128.68
search localhost
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options

---------------------------------------------
* The following section identifies your Ethernet interface
* and user name. Some ISP's need 'username'; others
* need '[email protected]'. Try both
ETH=eth0; USER=*****@163.gd
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
/usr/local/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U -m 1412 ' noipdefault noauth default-asyncmap defaultroute hide-password nodetach usepeerdns mtu 1492 mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp user ******@163.gd lcp-echo-interval 20 lcp-echo-failure 3 debug
---------------------------------------------
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x6202c420>]
LCP: timeout sending Config-Requests
Connection terminated.
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Waiting for 2 child processes...
script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-462/pppoe-debug.txt-0, pid 569
script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-462/pppoe-debug.txt-0, pid 567
sent [LCP ConfReq id=0x2 <mru 1492> <magic 0xcd85dc8>]
pppoe: Timeout waiting for PADO packets
Script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-462/pppoe-debug.txt-0 finished (pid 567), status = 0x1
sent [LCP ConfReq id=0x2 <mru 1492> <magic 0xcd85dc8>]
sending SIGTERM to process 569
tcflush failed: Bad file descriptor
---------------------------------------------
* The following section is an extract from your log.
* Look for error messages from pppd, such as
* a lack of kernel support for PPP, authentication failure
* etc.
Can't find messages file (looked for /var/{log,adm}/messages
Tue Feb 7 11:10:07 UTC 2006
---------------------------------------------
* The following section is a dump of the packets
* sent and received by rp-pppoe. If you don't see
* any output, it's an Ethernet driver problem. If you only
* see three PADI packets and nothing else, check your cables
* and modem. Make sure the modem lights flash when you try
* to connect. Check that your Ethernet card is in
* half-duplex, 10Mb/s mode. If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.5
11:10:01.961 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 3a 02 00 00 ........:...

11:10:07.078 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 3a 02 00 00 ........:...

pppoe: Timeout waiting for PADO packets
 楼主| 发表于 2006-2-23 15:53:24 | 显示全部楼层
up
回复

使用道具 举报

发表于 2006-4-17 17:05:30 | 显示全部楼层
up too
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 18:31 , Processed in 0.061058 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表