设为首页收藏本站
查看: 11380|回复: 1

网口和adc驱动问题??

[复制链接]

2

主题

10

回帖

82

积分

注册会员

积分
82
liyang477 发表于 2014-12-30 09:28:40 | 显示全部楼层 |阅读模式
1、每次重启板子 有时也会出现 PHY 0:04 not found,然后eth0、eth1均不可用,有时正常,如何调整?

2、每次启动后执行 insmod am335x_adcdrv.ko 有时会出现如下报错,有时是正常的,如何调整?
[   10.362152] Unable to handle kernel NULL pointer dereference at virtual address 000000b8
[   10.370635] pgd = df42c000
[   10.373474] [000000b8] *pgd=9f45f831, *pte=00000000, *ppte=00000000
[   10.380035] Internal error: Oops: 17 [#1]
[   10.384246] Modules linked in: am335x_adcdrv(O+)
[   10.389068] CPU: 0    Tainted: G           O  (3.2.0 #35)
[   10.394744] PC is at sysfs_create_dir+0x48/0xe0
[   10.399505] LR is at kobj_child_ns_ops+0x28/0x34
[   10.404327] pc : [<c00fadc8>]    lr : [<c01fb7ac>]    psr: 20000013
[   10.404327] sp : df44bcb8  ip : df44bca8  fp : df44bce4
[   10.416351] r10: bf0007c8  r9 : bf000714  r8 : df015c08
[   10.421813] r7 : 00000000  r6 : 00000000  r5 : df0133b0  r4 : df281a48
[   10.428649] r3 : df4a6bc4  r2 : df11d24c  r1 : df281a4c  r0 : 000000b8
[   10.435455] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   10.442932] Control: 10c5387d  Table: 9f42c019  DAC: 00000015
[   10.448944] Process insmod (pid: 972, stack limit = 0xdf44a2f0)
[   10.455139] Stack: (0xdf44bcb8 to 0xdf44c000)
[   10.459686] bca0:                                                       00000061 df015c08
[   10.468261] bcc0: df44bce4 df44bcd0 c01fad8c df281a48 df281a48 bf000900 df44bd1c df44bce8





[   10.883422] [<c00696a8>] (sys_init_module+0x0/0x1b68) from [<c0014740>] (ret_fast_syscall+0x0/0x30)
[   10.892883] Code: e1a00004 eb040270 e3500000 0a00001e (e5902000)
[   10.899566] ---[ end trace 63ac48078bf13bfd ]---

再次重启后
root@MYD-AM335x ~# insmod /am335x_adcdrv.ko
[   12.566955] Disabling lock debugging due to kernel taint
[   12.577728] Clock configure
[   12.580780] Configure ADC
[   12.583557] Unable to handle kernel NULL pointer dereference at virtual address 00000037
[   12.592041] pgd = df3c4000
[   12.594848] [00000037] *pgd=9f3b0831, *pte=00000000, *ppte=00000000
[   12.601440] Internal error: Oops: 17 [#1]
[   12.605621] Modules linked in: am335x_adcdrv(O+) ti_tscadc
[   12.611389] CPU: 0    Tainted: G           O  (3.2.0 #35)
[   12.617034] PC is at sysfs_create_dir+0x48/0xe0
[   12.621795] LR is at kobj_child_ns_ops+0x28/0x34
[   12.626617] pc : [<c00fadc8>]    lr : [<c01fb7ac>]    psr: 20000013
[   12.626647] sp : df16dcb8  ip : df16dca8  fp : df16dce4
[   12.638641] r10: bf0057c8  r9 : bf005714  r8 : df015c08
[   12.644104] r7 : 00000000  r6 : 00000000  r5 : df0133b0  r4 : df251808
[   12.650939] r3 : df2c20c4  r2 : df11e24c  r1 : df25180c  r0 : 00000037
[   12.657775] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   12.665252] Control: 10c5387d  Table: 9f3c4019  DAC: 00000015
[   12.671234] Process insmod (pid: 945, stack limit = 0xdf16c2f0)
[   12.677429] Stack: (0xdf16dcb8 to 0xdf16e000)
[   12.682006] dca0:                                                       00000061 df015c08
[   12.690551] dcc0: df16dce4 df16dcd0 c01fad8c df251808 df251808 bf005900 df16dd1c df16dce8




[   13.115142] Code: e1a00004 eb040270 e3500000 0a00001e (e5902000)
[   13.121551] ---[ end trace ca96d860e3f6e3b1 ]---
Segmentation fault

回复

使用道具 举报

2

主题

10

回帖

82

积分

注册会员

积分
82
 楼主| liyang477 发表于 2014-12-30 09:32:02 | 显示全部楼层
eth1 up后 会出现
root@MYD-AM335x opt# [   87.919189] PHY: 0:06 - Link is Down
[  100.919219] PHY: 0:06 - Link is Up - 10/Full
[  250.929199] PHY: 0:06 - Link is Down
[  264.929229] PHY: 0:06 - Link is Up - 10/Full
[  376.929229] PHY: 0: 06 - Link is Down
[  388.929229] PHY: 0:06 - Link is Up - 10/Full
但是用pc ping板子一直可以ping通
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录

本版积分规则

Archiver|手机版|小黑屋|米尔科技论坛   

GMT+8, 2024-11-24 09:56 , Processed in 0.037646 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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