LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1679|回复: 1

在ARMLINUX上移植PPPOE碰到的问题

[复制链接]
发表于 2004-6-2 03:58:11 | 显示全部楼层 |阅读模式
我用的是MATRIX IV 开发板。
操作系统是 arm-linux
按PPPOE安装需要,内核加入了ppp,socket 等选项。
将rp-pppoe-3.5 编译好后运行出现下面的错误提示:
pppoe: Timeout waiting for PADO packets

下面是用strace跟踪的结果
[root@webeye-alt /]# strace pppoe -A -I eth0
execve("/usr/sbin/pppoe", ["pppoe", "-A", "-I", "eth0"], [/* 8 vars */]) = 0
brk(0)                                  = 0x200e474
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/v4l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v4l/half", 0xbffff2c0)     = -1 ENOENT (No such file or directory)
open("/lib/v4l/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat64("/lib/v4l", 0xbffff2c0)          = -1 ENOENT (No such file or directory)
open("/lib/half/libc.so.6", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/half", 0xbffff2c0)         = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0(\7\2\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1368724, ...}) = 0
old_mmap(NULL, 1173788, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
mprotect(0x4012f000, 67868, PROT_NONE)  = 0
old_mmap(0x40131000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x108000) = 0x40131000
old_mmap(0x4013c000, 14620, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4013c000
close(3)                                = 0
getpid()                                = 57
brk(0)                                  = 0x200e474
brk(0x200e494)                          = 0x200e494
brk(0x200f000)                          = 0x200f000
socket(PF_PACKET, SOCK_RAW, 25480)      = 3
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
ioctl(3, 0x8927, 0xbffff1a8)            = 0
ioctl(3, 0x8921, 0xbffff1a8)            = 0
ioctl(3, 0x8933, 0xbffff1a8)            = 0
bind(3, {sa_family=AF_PACKET, proto=0x8863, if2, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0
send(3, "\377\377\377\377\377\377\0\0\300\377\356\10\210c\0\0\21"..., 26, 0) = 26
select(4, [3], NULL, NULL, {5, 0})      = 0 (Timeout)
send(3, "\377\377\377\377\377\377\0\0\300\377\356\10\210c\0\0\21"..., 26, 0) = 26
select(4, [3], NULL, NULL, {5, 0})      = 0 (Timeout)
send(3, "\377\377\377\377\377\377\0\0\300\377\356\10\210c\0\0\21"..., 26, 0) = 26
select(4, [3], NULL, NULL, {5, 0})      = 0 (Timeout)
write(2, "pppoe: Timeout waiting for PADO "..., 40pppoe: Timeout waiting for PADO packets
) = 40
brk(0x2012000)                          = 0x2012000
time([1922646234])                      = 1922646234
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 1267
close(4)                                = 0
munmap(0x4001a000, 4096)                = 0
getpid()                                = 57
rt_sigaction(SIGPIPE, {0x400eade4, [], 0x4000000}, {SIG_DFL}, 8) = 0
socket(PF_UNIX, SOCK_DGRAM, 0)          = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_UNIX, path="/dev/log"}, 16) = -1 ENOENT (No such file or directory)
close(4)                                = 0
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
_exit(1)                                = ?

可以保证我的网线是插好的,ADSL服务在REDHAT下面是正常使用的,为什么这个板子总是TIMEOUT呢?
发表于 2004-6-2 13:34:13 | 显示全部楼层
RE:
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/v4l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v4l/half", 0xbffff2c0) = -1 ENOENT (No such file or directory)
open("/lib/v4l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v4l", 0xbffff2c0) = -1 ENOENT (No such file or directory)
open("/lib/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/half", 0xbffff2c0) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3

是不是依赖了主机的动态库或是arm-linux的库的问题,兄弟的编译环境是什么样的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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