当前位置: 技术问答>linux和unix
pppd 拨号段错误
来源: 互联网 发布时间:2016-06-08
本文导语: 我用pppd实现cdma上网,在linxu下pc机测试成功,我想脚本应该是没有问题的,但同样的程序与脚本,在ARM版上加载了驱动usbserial.ko 和 pl2303.ko(驱动为内核里未经过修改),在运行 ./pppd call cdma_dial 后,出现段错误...
我用pppd实现cdma上网,在linxu下pc机测试成功,我想脚本应该是没有问题的,但同样的程序与脚本,在ARM版上加载了驱动usbserial.ko 和 pl2303.ko(驱动为内核里未经过修改),在运行 ./pppd call cdma_dial 后,出现段错误,dmesg信息如下:
Unable to handle kernel NULL pointer dereference at virtual address 0000001c
pgd = c34a8000
[0000001c] *pgd=33448031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: pl2303 usbserial rt73
CPU: 0 Not tainted (2.6.22.18 #3)
PC is at pl2303_open+0x60/0x784 [pl2303]
LR is at serial_open+0xf0/0x174 [usbserial]
pc : [] lr : [] psr: 80000013
sp : c35a7dd4 ip : c387ac40 fp : c35a7e44
r10: c3ead800 r9 : c35a6000 r8 : c3e424a0
r7 : c3ead808 r6 : c3470400 r5 : c3e424a0 r4 : c3ead800
r3 : 00000000 r2 : c387ac40 r1 : c34ccb20 r0 : c3bf2000
Flags: Nzcv IRQs on FIQs on Mode SVC_32 Segment user
Control: c000717f Table: 334a8000 DAC: 00000015
Process pppd (pid: 464, stack limit = 0xc35a6258)
Stack: (0xc35a7dd4 to 0xc35a8000)
7dc0: c3470400 c3fbf000 00000000
7de0: 00000000 c345a3fc c387ac40 c3ead884 c35a7dfc c003d9d0 c003d938 00000000
7e00: c3537be0 c35a7e20 c35a7e14 c01728f0 c003d9b4 c35a7e68 c35a7e24 c3ead800
7e20: c3e424a0 c3470400 c3ead808 c34ccb20 c35a6000 00000000 c35a7e68 c35a7e48
7e40: bf04513c bf04df88 00000000 c34ccb20 0bc00000 00000000 00000802 c35a7e94
7e60: c35a7e6c c0175ba4 bf04505c c3470400 00000000 c3fbf004 c353d3d0 00000000
7e80: 00000000 c34ccb20 c35a7ebc c35a7e98 c0089dd8 c017598c 00000000 c34ccb20
7ea0: c353d3d0 c0089cb4 c34d4c58 c0474f20 c35a7ee4 c35a7ec0 c008613c c0089cc4
7ec0: c34ccb20 c35a7f04 00000006 ffffff9c c0025004 c39c9000 c35a7efc c35a7ee8
7ee0: c008620c c0085fc4 00000000 00000802 c35a7f68 c35a7f00 c0086270 c00861e8
7f00: c35a7f04 c34d4c58 c0474f20 c35a7f30 c35a7f1c c009ddf0 00000101 00000001
7f20: 00000000 00000006 c0488200 c387af60 c35a6000 ffffffe8 c35a7f68 c35a7f48
7f40: c00863fc c009cee0 00000803 00000000 c34ccb20 00000802 00000000 c35a7f94
7f60: c35a7f6c c00865d8 c0086234 c0086720 00000066 0009090c 00090914 00000005
7f80: c0025004 00096108 c35a7fa4 c35a7f98 c008668c c008658c 00000000 c35a7fa8
7fa0: c0024e60 c0086678 00000066 0009090c 00093018 00000802 00000000 00048db4
7fc0: 00000066 0009090c 00090914 0004fb90 000467f0 000919a8 00096108 0004fb88
7fe0: 00000000 bedaccb8 00003c00 4011fc40 60000010 00093018 00000000 00000000
Backtrace:
[] (pl2303_open+0x0/0x784 [pl2303]) from [] (serial_open+0xf0/0x174 [usbserial])
[] (serial_open+0x0/0x174 [usbserial]) from [] (tty_open+0x228/0x318)
r8:00000802 r7:00000000 r6:0bc00000 r5:c34ccb20 r4:00000000
[] (tty_open+0x0/0x318) from [] (chrdev_open+0x124/0x180)
r8:c34ccb20 r7:00000000 r6:00000000 r5:c353d3d0 r4:c3fbf004
[] (chrdev_open+0x0/0x180) from [] (__dentry_open+0x188/0x224)
r8:c0474f20 r7:c34d4c58 r6:c0089cb4 r5:c353d3d0 r4:c34ccb20
[] (__dentry_open+0x0/0x224) from [] (nameidata_to_filp+0x34/0x4c)
[] (nameidata_to_filp+0x0/0x4c) from [] (do_filp_open+0x4c/0x50)
r4:00000802
[] (do_filp_open+0x0/0x50) from [] (do_sys_open+0x5c/0xec)
r5:00000000 r4:00000802
[] (do_sys_open+0x0/0xec) from [] (sys_open+0x24/0x28)
[] (sys_open+0x0/0x28) from [] (ret_fast_syscall+0x0/0x2c)
Code: e3530002 0a000007 e59a3058 e5980000 (e593101c)
请问这种错误是发生在pppd应用层,还是驱动层?
Unable to handle kernel NULL pointer dereference at virtual address 0000001c
pgd = c34a8000
[0000001c] *pgd=33448031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: pl2303 usbserial rt73
CPU: 0 Not tainted (2.6.22.18 #3)
PC is at pl2303_open+0x60/0x784 [pl2303]
LR is at serial_open+0xf0/0x174 [usbserial]
pc : [] lr : [] psr: 80000013
sp : c35a7dd4 ip : c387ac40 fp : c35a7e44
r10: c3ead800 r9 : c35a6000 r8 : c3e424a0
r7 : c3ead808 r6 : c3470400 r5 : c3e424a0 r4 : c3ead800
r3 : 00000000 r2 : c387ac40 r1 : c34ccb20 r0 : c3bf2000
Flags: Nzcv IRQs on FIQs on Mode SVC_32 Segment user
Control: c000717f Table: 334a8000 DAC: 00000015
Process pppd (pid: 464, stack limit = 0xc35a6258)
Stack: (0xc35a7dd4 to 0xc35a8000)
7dc0: c3470400 c3fbf000 00000000
7de0: 00000000 c345a3fc c387ac40 c3ead884 c35a7dfc c003d9d0 c003d938 00000000
7e00: c3537be0 c35a7e20 c35a7e14 c01728f0 c003d9b4 c35a7e68 c35a7e24 c3ead800
7e20: c3e424a0 c3470400 c3ead808 c34ccb20 c35a6000 00000000 c35a7e68 c35a7e48
7e40: bf04513c bf04df88 00000000 c34ccb20 0bc00000 00000000 00000802 c35a7e94
7e60: c35a7e6c c0175ba4 bf04505c c3470400 00000000 c3fbf004 c353d3d0 00000000
7e80: 00000000 c34ccb20 c35a7ebc c35a7e98 c0089dd8 c017598c 00000000 c34ccb20
7ea0: c353d3d0 c0089cb4 c34d4c58 c0474f20 c35a7ee4 c35a7ec0 c008613c c0089cc4
7ec0: c34ccb20 c35a7f04 00000006 ffffff9c c0025004 c39c9000 c35a7efc c35a7ee8
7ee0: c008620c c0085fc4 00000000 00000802 c35a7f68 c35a7f00 c0086270 c00861e8
7f00: c35a7f04 c34d4c58 c0474f20 c35a7f30 c35a7f1c c009ddf0 00000101 00000001
7f20: 00000000 00000006 c0488200 c387af60 c35a6000 ffffffe8 c35a7f68 c35a7f48
7f40: c00863fc c009cee0 00000803 00000000 c34ccb20 00000802 00000000 c35a7f94
7f60: c35a7f6c c00865d8 c0086234 c0086720 00000066 0009090c 00090914 00000005
7f80: c0025004 00096108 c35a7fa4 c35a7f98 c008668c c008658c 00000000 c35a7fa8
7fa0: c0024e60 c0086678 00000066 0009090c 00093018 00000802 00000000 00048db4
7fc0: 00000066 0009090c 00090914 0004fb90 000467f0 000919a8 00096108 0004fb88
7fe0: 00000000 bedaccb8 00003c00 4011fc40 60000010 00093018 00000000 00000000
Backtrace:
[] (pl2303_open+0x0/0x784 [pl2303]) from [] (serial_open+0xf0/0x174 [usbserial])
[] (serial_open+0x0/0x174 [usbserial]) from [] (tty_open+0x228/0x318)
r8:00000802 r7:00000000 r6:0bc00000 r5:c34ccb20 r4:00000000
[] (tty_open+0x0/0x318) from [] (chrdev_open+0x124/0x180)
r8:c34ccb20 r7:00000000 r6:00000000 r5:c353d3d0 r4:c3fbf004
[] (chrdev_open+0x0/0x180) from [] (__dentry_open+0x188/0x224)
r8:c0474f20 r7:c34d4c58 r6:c0089cb4 r5:c353d3d0 r4:c34ccb20
[] (__dentry_open+0x0/0x224) from [] (nameidata_to_filp+0x34/0x4c)
[] (nameidata_to_filp+0x0/0x4c) from [] (do_filp_open+0x4c/0x50)
r4:00000802
[] (do_filp_open+0x0/0x50) from [] (do_sys_open+0x5c/0xec)
r5:00000000 r4:00000802
[] (do_sys_open+0x0/0xec) from [] (sys_open+0x24/0x28)
[] (sys_open+0x0/0x28) from [] (ret_fast_syscall+0x0/0x2c)
Code: e3530002 0a000007 e59a3058 e5980000 (e593101c)
请问这种错误是发生在pppd应用层,还是驱动层?
|
貌似应该是 pl2303_open 时崩溃的
|
貌似是驱动层
|
问题在kernel 中,
kernel 要支持 pppd 还需要打开一些选项,重新编译一下内核才行。
你google 一下,很多这方面的资料
kernel 要支持 pppd 还需要打开一些选项,重新编译一下内核才行。
你google 一下,很多这方面的资料
|
|
先顶下