【OK210试用体验】问题篇(1)速求飞凌技术支持或大神解答 - 在线问答 - 电子技术论坛 - 最好最受欢迎电子论坛!

【OK210试用体验】问题篇(1)速求飞凌技术支持或大神解答

gjianw217 ( 楼主 ) 2015-8-4 23:30:59  只看该作者 倒序浏览
本帖最后由 gjianw217 于 2015-8-4 23:45 编辑

问题一:使用飞凌的串口线,一端连接到OK210板子上,另一端通过USB转串口线连接到电脑上,当长时间连接而不操作,等到再次操作时,串口终端会出现没有反应的现象求问是什么原因?

问题二:使用rmmod driver_name.ko时,会出现卸载不掉驱动模块的问题,并尝试通过以下两种方式解决但都没有成功,求方法?
尝试方式1:
  1. [root@FORLINX210]# insmod keys-drv.ko
  2. [  141.361257] gpio-keys init
  3. [root@FORLINX210]# rmmod keys-drv.ko
  4. rmmod: chdir(/lib/modules): No such file or directory
  5. [root@FORLINX210]# mkdir -p /lib/modules/2.6.35.7/
  6. [root@FORLINX210]# rmmod keys-drv.ko
  7. [root@FORLINX210]# lsmod keys-drv.ko
  8. keys_drv 3029 0 - Live 0xbf000000
复制代码
开始不能删除,当手动创建了一个内核目录后,删除驱动模块的时候,不报错了,但实际上,仍没有删除。但我在学习Beaglebone Black的时候,没有出现这样的问题,求教?
尝试方式2:
参考    rmmod: chdir(/lib/modules): No such file or directory解决方法这个方法,仍不行:
  1. [root@FORLINX210]# cp /***in/rmmod /***in/rmmod.bk  (备份原来的)
  2. [root@FORLINX210]# cp /mnt/rmmod /***in/rmmod       (复制新生成的)
  3. [root@FORLINX210]# rmmod keys-drv.ko                       (使用新生成的)
  4. Unable to unload driver module "keys-drv.ko": No such file or directory
复制代码
即将自己生成的rmmod,替换掉原来的,执行后,仍出错
问题三已在内核配置中,取消了ADC驱动,但上电启动内核时,仍会生成设备文件(即在/dev目录,生成adc),通过测试程序测试,且仍能工作。求怎么取消ADC的驱动

即首先将内核中的ADC驱动模块取消,重新编译内核,烧写到OK210中,仍在/dev目录下生成adc设备文件,使用飞凌自带的测试程序,仍能工作,不知为会把没有取消掉。
问题四:
飞凌提供了两个按键驱动模块,但都不能正常工作,前提是我已经取消了内核模块中的选项,如下图:

即首先将内核中的buttons驱动和keypad驱动模块取消,重新编译内核,烧写到OK210中,分别进行以下尝试,进行驱动模块的手动加载,但都没有成功,不解!第一个是使用Linux内核源码linux2.6.35.7android-kernel-samsung-devdriversinputkeyboards3c-gpio-keys.c驱动,单独编译后,使用insmod xx.ko,可以加载成功,但在/dev/input/目录下没有生成对应的event项,求怎么使用input的按键驱动
  1. [root@FORLINX210]# cd /mnt/drivers/input-keys/
  2. [root@FORLINX210]# ls
  3. Makefile        keys-app.c      keys-drv.mod.c  modules.order
  4. Module.symvers  keys-drv.c      keys-drv.mod.o
  5. app             keys-drv.ko     keys-drv.o
  6. [root@FORLINX210]# insmod keys-drv.ko
  7. [  141.361257] gpio-keys init
  8. [root@FORLINX210]# ls /dev/input/
  9. /dev/input/event0  /dev/input/mice    /dev/input/mouse1
  10. /dev/input/event1  /dev/input/mouse0
  11. [root@FORLINX210]# ls /dev/input/
复制代码

第二个是使用Linux内核源码linux2.6.35.7android-kernel-samsung-devdriverscharfl210_buttons驱动,单独编译后,使用insmod xx.ko,可以加载成功,在/dev目录下也生成了buttons,但在执行cat /dev/buttons时,出现如下内核片段错误,求赐教?
  1. [root@FORLINX210]# cd /mnt/drivers/keys/
  2. [root@FORLINX210]# insmod keys-drv.ko
  3. [  521.951700] buttons  initialized
  4. [root@FORLINX210]# cat /dev/buttons
  5. [  527.450234] Unable to handle kernel paging request at virtual address 45c2710c
  6. [  527.455973] pgd = ef518000
  7. [  527.458657] [45c2710c] *pgd=00000000
  8. [  527.462213] Internal error: Oops: 5 [#1] PREEMPT
  9. [  527.466803] last sysfs file: /sys/devices/virtual/misc/buttons/dev
  10. [  527.472956] Modules linked in: keys_drv
  11. [  527.476772] CPU: 0    Not tainted  (2.6.35.7 #4)
  12. [  527.481375] PC is at s5pv210_irq_eint_group_set_type+0xb4/0x12c
  13. [  527.487257] LR is at s5pv210_irq_eint_group_set_type+0x18/0x12c
  14. [  527.493150] pc : []    lr : []    psr: 80000093
  15. [  527.493155] sp : ef473ce8  ip : 00000005  fp : ef473d04
  16. [  527.504586] r10: 60000013  r9 : 00000000  r8 : 00000003
  17. [  527.509786] r7 : 0000016c  r6 : 00000017  r5 : 2152b446  r4 : 00000004
  18. [  527.516285] r3 : 45c270e8  r2 : 00000011  r1 : 00000152  r0 : 00000017
  19. [  527.522786] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
  20. [  527.529978] Control: 10c5387d  Table: 4f518019  DAC: 00000015
  21. [  527.535696]
  22. [  527.535698] PC: 0xc0043d80:
  23. [  527.539940] 3d80  c0043db0 c0043dc0 c0043dc8 c0043dc8 c0043dc8 c0043db8 e3a04002 ea00000f
  24. [  527.548086] 3da0  e59f00bc e3a04000 eb13e9b6 ea00000b e3a04004 ea000009 e3a04000 ea000007
  25. [  527.556232] 3dc0  e3a04001 ea000005 e1a01004 e59f0094 eb13e9ac e3e00000 e89da878 e3a04003
  26. [  527.564378] 3de0  e59f3084 e3a02044 e0223692 e5922004 e0625005 e3a02011 e0255692 e0833105
  27. [  527.572523] 3e00  e5935024 e3750001 1a000002 e59f005c e2855001 eb13e99b e59f0054 eb13f53b
  28. [  527.580669] 3e20  e59f3044 e3a02044 e0263692 e3a02007 e596301c e1c33512 e1834514 e586401c
  29. [  527.588815] 3e40  e1a01000 f57ff04f e596201c e5963008 e59f001c e5832000 eb13f4f2 e3a00000
  30. [  527.596960] 3e60  e89da878 c06c8d1b c06c8cd5 c0779fd0 c06c8d30 c077a5ec e1a0c00d e92dd878
  31. [  527.605107]
  32. [  527.605109] LR: 0xc0043ce4:
  33. [  527.609352] 3ce4  e1a01003 e1a0e00f e593f00c e3a03001 e1c44513 e3540000 1afffff1 e89da878
  34. [  527.617498] 3d04  fd500000 e1a0c00d e92dd800 e24cb004 e59f302c e3a02001 e593c044 e5931048
  35. [  527.625644] 3d24  e2833044 e08c1001 e1500001 3a000002 e2822001 e3520017 1afffff6 e1a00002
  36. [  527.633790] 3d44  e89da800 c0779fd0 e1a0c00d e92dd878 e24cb004 e1a04001 e1a05000 ebffffe8
  37. [  527.641935] 3d64  e1a06000 e3540008 979ff104 ea000014 c0043da0 c0043ddc c0043d98 c0043db0
  38. [  527.650081] 3d84  c0043dc0 c0043dc8 c0043dc8 c0043dc8 c0043db8 e3a04002 ea00000f e59f00bc
  39. [  527.658227] 3da4  e3a04000 eb13e9b6 ea00000b e3a04004 ea000009 e3a04000 ea000007 e3a04001
  40. [  527.666373] 3dc4  ea000005 e1a01004 e59f0094 eb13e9ac e3e00000 e89da878 e3a04003 e59f3084
  41. [  527.674519]
  42. [  527.674522] SP: 0xef473c68:
  43. [  527.678765] 3c68  c0093a44 c01fcee4 00000000 ef4c3600 ef4d8370 0000001a ffffffff ef473cd4
  44. [  527.686910] 3c88  00000017 0000016c ef473d04 ef473ca0 c0033a6c c00332c4 00000017 00000152
  45. [  527.695056] 3ca8  00000011 45c270e8 00000004 2152b446 00000017 0000016c 00000003 00000000
  46. [  527.703202] 3cc8  60000013 ef473d04 00000005 ef473ce8 c0043d64 c0043e00 80000093 ffffffff
  47. [  527.711348] 3ce8  c0043d4c c078a1d8 c078a1d8 c077a5fc ef473d2c ef473d08 c008ec74 c0043d58
  48. [  527.719493] 3d08  c008e544 c078a1d8 ef501140 0000016c c078a214 c078a1f8 ef473d64 ef473d30
  49. [  527.727639] 3d28  c008f2cc c008ec44 c00b6f90 c00b7000 00000000 ef501140 c078a1d8 0000016c
  50. [  527.735785] 3d48  bf0001c8 00000003 00000000 bf000488 ef473d94 ef473d68 c008f540 c008f184
  51. [  527.743931]
  52. [  527.743934] FP: 0xef473c84:
  53. [  527.748177] 3c84  ef473cd4 00000017 0000016c ef473d04 ef473ca0 c0033a6c c00332c4 00000017
  54. [  527.756322] 3ca4  00000152 00000011 45c270e8 00000004 2152b446 00000017 0000016c 00000003
  55. [  527.764468] 3cc4  00000000 60000013 ef473d04 00000005 ef473ce8 c0043d64 c0043e00 80000093
  56. [  527.772614] 3ce4  ffffffff c0043d4c c078a1d8 c078a1d8 c077a5fc ef473d2c ef473d08 c008ec74
  57. [  527.780760] 3d04  c0043d58 c008e544 c078a1d8 ef501140 0000016c c078a214 c078a1f8 ef473d64
  58. [  527.788906] 3d24  ef473d30 c008f2cc c008ec44 c00b6f90 c00b7000 00000000 ef501140 c078a1d8
  59. [  527.797051] 3d44  0000016c bf0001c8 00000003 00000000 bf000488 ef473d94 ef473d68 c008f540
  60. [  527.805197] 3d64  c008f184 00000003 bf000488 00000000 bf000488 efb8e540 bf000464 00000000
  61. [  527.813346] Process cat (pid: 882, stack limit = 0xef4722f0)
  62. [  527.818978] Stack: (0xef473ce8 to 0xef474000)
  63. [  527.823314] 3ce0:                   c0043d4c c078a1d8 c078a1d8 c077a5fc ef473d2c ef473d08
  64. [  527.831460] 3d00: c008ec74 c0043d58 c008e544 c078a1d8 ef501140 0000016c c078a214 c078a1f8
  65. [  527.839606] 3d20: ef473d64 ef473d30 c008f2cc c008ec44 c00b6f90 c00b7000 00000000 ef501140
  66. [  527.847752] 3d40: c078a1d8 0000016c bf0001c8 00000003 00000000 bf000488 ef473d94 ef473d68
  67. [  527.855897] 3d60: c008f540 c008f184 00000003 bf000488 00000000 bf000488 efb8e540 bf000464
  68. [  527.864043] 3d80: 00000000 ef8261b0 ef473dbc ef473d98 bf000118 c008f490 bf0003ff bf000488
  69. [  527.872189] 3da0: ef4c3b40 c05652a0 bf0000a4 efb8e540 ef473de4 ef473dc0 c022c734 bf0000b0
  70. [  527.880335] 3dc0: c022c52c efb8e540 ef4c3b40 efd03940 00000000 00000000 ef473e14 ef473de8
  71. [  527.888480] 3de0: c00bc904 c022c538 c054127c 00000038 ef473e14 ef4c3b40 ef406080 efb8d750
  72. [  527.896626] 3e00: efb8e540 c00bc770 ef473e3c ef473e18 c00b8108 c00bc77c ef4c3b40 00000000
  73. [  527.904772] 3e20: 00020000 00000024 00000000 ef8261b0 ef473e5c ef473e40 c00b82f8 c00b7f90
  74. [  527.912918] 3e40: ef4ac980 ef473ec8 00000000 ef473ec8 ef473e94 ef473e60 c00c3f40 c00b82bc
  75. [  527.921063] 3e60: ef473e94 ef473e70 c00badf8 00020000 00000024 ef472000 00000000 00000024
  76. [  527.929209] 3e80: ef472000 ef492000 ef473f5c ef473e98 c00c5aac c00c3af4 00000000 ef492000
  77. [  527.937355] 3ea0: 000000ac ef49d180 ef473fb0 00000200 ffffff9c 00000000 00000000 c01fe964
  78. [  527.945501] 3ec0: 00020001 00000000 ef406080 efb8d750 fe50f80a 00000007 ef492005 efe56d80
  79. [  527.953646] 3ee0: ef81a5a0 00000101 00000000 00000000 00000000 ffffff9c ef4c33c0 ef4c33e4
  80. [  527.961792] 3f00: 00000003 ef4c33c8 ef473f24 ef473f18 c054127c 00020001 00000000 ef4c3b40
  81. [  527.969938] 3f20: c00cf800 c0541278 ef406080 efb8d750 ef473f5c 00000000 00000003 00020000
  82. [  527.978084] 3f40: 00000000 ef492000 ef472000 00000000 ef473f94 ef473f60 c00b7e74 c00c5950
  83. [  527.986229] 3f60: 00000000 ef473f70 c00af308 00000000 00000000 be9c2f55 00000005 c0034168
  84. [  527.994375] 3f80: ef472000 00000000 ef473fa4 ef473f98 c00b7f64 c00b7e1c 00000000 ef473fa8
  85. [  528.002521] 3fa0: c0033fc0 c00b7f4c 00000000 00000000 be9c2f55 00020000 00000000 000030dc
  86. [  528.010666] 3fc0: 00000000 00000000 be9c2f55 00000005 00000000 00000000 40025000 00000002
  87. [  528.018812] 3fe0: 401888e0 be9c2c80 0000f808 40188930 60000010 be9c2f55 7ff77dff fffb5fff
  88. [  528.026952] Backtrace:
  89. [  528.029393] [] (s5pv210_irq_eint_group_set_type+0x0/0x12c) from [] (__irq_set_trigger+0x3c/0x9c)
  90. [  528.039866]  r6:c077a5fc r5:c078a1d8 r4:c078a1d8 r3:c0043d4c
  91. [  528.045504] [] (__irq_set_trigger+0x0/0x9c) from [] (__setup_irq+0x154/0x30c)
  92. [  528.054336]  r8:c078a1f8 r7:c078a214 r6:0000016c r5:ef501140 r4:c078a1d8
  93. [  528.060835] r3:c008e544
  94. [  528.063443] [] (__setup_irq+0x0/0x30c) from [] (request_threaded_irq+0xbc/0x100)
  95. [  528.072547] [] (request_threaded_irq+0x0/0x100) from [] (fl210_buttons_open+0x74/0x124 [keys_drv])
  96. [  528.083203] [] (fl210_buttons_open+0x0/0x124 [keys_drv]) from [] (misc_open+0x208/0x2dc)
  97. [  528.092986]  r7:efb8e540 r6:bf0000a4 r5:c05652a0 r4:ef4c3b40
  98. [  528.098625] [] (misc_open+0x0/0x2dc) from [] (chrdev_open+0x194/0x1b8)
  99. [  528.106850]  r8:00000000 r7:00000000 r6:efd03940 r5:ef4c3b40 r4:efb8e540
  100. [  528.113350] r3:c022c52c
  101. [  528.115959] [] (chrdev_open+0x0/0x1b8) from [] (__dentry_open+0x184/0x29c)
  102. [  528.124529]  r8:c00bc770 r7:efb8e540 r6:efb8d750 r5:ef406080 r4:ef4c3b40
  103. [  528.131208] [] (__dentry_open+0x0/0x29c) from [] (nameidata_to_filp+0x48/0x60)
  104. [  528.140137] [] (nameidata_to_filp+0x0/0x60) from [] (do_last+0x458/0x584)
  105. [  528.148619]  r4:ef473ec8
  106. [  528.151139] [] (do_last+0x0/0x584) from [] (do_filp_open+0x168/0x4d0)
  107. [  528.159285] [] (do_filp_open+0x0/0x4d0) from [] (do_sys_open+0x64/0x11c)
  108. [  528.167690] [] (do_sys_open+0x0/0x11c) from [] (sys_open+0x24/0x28)
  109. [  528.175668] [] (sys_open+0x0/0x28) from [] (ret_fast_syscall+0x0/0x30)
  110. [  528.183894] Code: e0625005 e3a02011 e0255692 e0833105 (e5935024)
  111. [  528.190889] ---[ end trace 615aef33eaaa54ea ]---
  112. [  528.194567] note: cat[882] exited with preempt_count 1
  113. [  528.199691] BUG: scheduling while atomic: cat/882/0x40000002
  114. [  528.205313] Modules linked in: keys_drv
  115. [  528.209105] Backtrace:
  116. [  528.211548] [] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c)
  117. [  528.219954]  r6:ef472000 r5:ef49d180 r4:00000000 r3:20000113
  118. [  528.225583] [] (dump_stack+0x0/0x1c) from [] (__schedule_bug+0x54/0x60)
  119. [  528.233916] [] (__schedule_bug+0x0/0x60) from [] (schedule+0x70/0x2e8)
  120. [  528.242141]  r4:ef472000 r3:00000000
  121. [  528.245683] [] (schedule+0x0/0x2e8) from [] (__cond_resched+0x28/0x38)
  122. [  528.253934] [] (__cond_resched+0x0/0x38) from [] (_cond_resched+0x34/0x44)
  123. [  528.262504]  r4:00010000 r3:00000001
  124. [  528.266051] [] (_cond_resched+0x0/0x44) from [] (unmap_vmas+0x56c/0x61c)
  125. [  528.274472] [] (unmap_vmas+0x0/0x61c) from [] (exit_mmap+0xb8/0x1e0)
  126. [  528.282531] [] (exit_mmap+0x0/0x1e0) from [] (mmput+0x4c/0xe8)
  127. [  528.290167]  r9:00000193 r8:00000005 r7:ef4a88f4 r6:ef49d420 r5:00000000
  128. [  528.296556] r4:ef4a88c0
  129. [  528.299150] [] (mmput+0x0/0xe8) from [] (exit_mm+0x12c/0x138)
  130. [  528.306613]  r5:ef49d180 r4:ef4a88c0
  131. [  528.310155] [] (exit_mm+0x0/0x138) from [] (do_exit+0x1a4/0x5f0)
  132. [  528.317878]  r7:00000000 r6:ef4722f0 r5:0000000b r4:ef49d180
  133. [  528.323500] [] (do_exit+0x0/0x5f0) from [] (die+0x19c/0x1cc)
  134. [  528.330884] [] (die+0x0/0x1cc) from [] (__do_kernel_fault+0x6c/0x8c)
  135. [  528.338932]  r8:ef4a88c0 r7:00000005 r6:00000000 r5:ef473ca0 r4:45c2710c
  136. [  528.345598] [] (__do_kernel_fault+0x0/0x8c) from [] (do_page_fault+0x1e0/0x1fc)
  137. [  528.354621]  r8:ef4a88c0 r7:45c2710c r6:00000001 r5:ef473ca0 r4:ef49d180
  138. [  528.361105] r3:ef473ca0
  139. [  528.363709] [] (do_page_fault+0x0/0x1fc) from [] (do_translation_fault+0x24/0xa0)
  140. [  528.372913] [] (do_translation_fault+0x0/0xa0) from [] (do_DataAbort+0x3c/0xa0)
  141. [  528.381918]  r6:45c2710c r5:c07705dc r4:00000005 r3:c077058c
  142. [  528.387541] [] (do_DataAbort+0x0/0xa0) from [] (__dabt_svc+0x4c/0x60)
  143. [  528.395698] Exception stack(0xef473ca0 to 0xef473ce8)
  144. [  528.400726] 3ca0: 00000017 00000152 00000011 45c270e8 00000004 2152b446 00000017 0000016c
  145. [  528.408870] 3cc0: 00000003 00000000 60000013 ef473d04 00000005 ef473ce8 c0043d64 c0043e00
  146. [  528.417014] 3ce0: 80000093 ffffffff
  147. [  528.420479]  r7:0000016c r6:00000017 r5:ef473cd4 r4:ffffffff
  148. [  528.426104] [] (s5pv210_irq_eint_group_set_type+0x0/0x12c) from [] (__irq_set_trigger+0x3c/0x9c)
  149. [  528.436598]  r6:c077a5fc r5:c078a1d8 r4:c078a1d8 r3:c0043d4c
  150. [  528.442220] [] (__irq_set_trigger+0x0/0x9c) from [] (__setup_irq+0x154/0x30c)
  151. [  528.451070]  r8:c078a1f8 r7:c078a214 r6:0000016c r5:ef501140 r4:c078a1d8
  152. [  528.457564] r3:c008e544
  153. [  528.460162] [] (__setup_irq+0x0/0x30c) from [] (request_threaded_irq+0xbc/0x100)
  154. [  528.469275] [] (request_threaded_irq+0x0/0x100) from [] (fl210_buttons_open+0x74/0x124 [keys_drv])
  155. [  528.479935] [] (fl210_buttons_open+0x0/0x124 [keys_drv]) from [] (misc_open+0x208/0x2dc)
  156. [  528.489831]  r7:efb8e540 r6:bf0000a4 r5:c05652a0 r4:ef4c3b40
  157. [  528.495340] [] (misc_open+0x0/0x2dc) from [] (chrdev_open+0x194/0x1b8)
  158. [  528.503584]  r8:00000000 r7:00000000 r6:efd03940 r5:ef4c3b40 r4:efb8e540
  159. [  528.510068] r3:c022c52c
  160. [  528.512672] [] (chrdev_open+0x0/0x1b8) from [] (__dentry_open+0x184/0x29c)
  161. [  528.521262]  r8:c00bc770 r7:efb8e540 r6:efb8d750 r5:ef406080 r4:ef4c3b40
  162. [  528.527924] [] (__dentry_open+0x0/0x29c) from [] (nameidata_to_filp+0x48/0x60)
  163. [  528.536867] [] (nameidata_to_filp+0x0/0x60) from [] (do_last+0x458/0x584)
  164. [  528.545353]  r4:ef473ec8
  165. [  528.547855] [] (do_last+0x0/0x584) from [] (do_filp_open+0x168/0x4d0)
  166. [  528.556019] [] (do_filp_open+0x0/0x4d0) from [] (do_sys_open+0x64/0x11c)
  167. [  528.564424] [] (do_sys_open+0x0/0x11c) from [] (sys_open+0x24/0x28)
  168. [  528.572397] [] (sys_open+0x0/0x28) from [] (ret_fast_syscall+0x0/0x30)
  169. [  528.580739] BUG: scheduling while atomic: cat/882/0x40000002
  170. [  528.586369] Modules linked in: keys_drv
  171. [  528.590049] Backtrace:
  172. [  528.592484] [] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c)
  173. [  528.600899]  r6:0000000f r5:ef49d180 r4:00000000 r3:20000113
  174. [  528.606523] [] (dump_stack+0x0/0x1c) from [] (__schedule_bug+0x54/0x60)
  175. [  528.614859] [] (__schedule_bug+0x0/0x60) from [] (schedule+0x70/0x2e8)
  176. [  528.623084]  r4:ef472000 r3:00000000
  177. [  528.626626] [] (schedule+0x0/0x2e8) from [] (__cond_resched+0x28/0x38)
  178. [  528.634876] [] (__cond_resched+0x0/0x38) from [] (_cond_resched+0x34/0x44)
  179. [  528.643448]  r4:ef4c33c0 r3:00000001
  180. [  528.646991] [] (_cond_resched+0x0/0x44) from [] (put_files_struct+0xd4/0x168)
  181. [  528.655847] [] (put_files_struct+0x0/0x168) from [] (exit_files+0x40/0x44)
  182. [  528.664432] [] (exit_files+0x0/0x44) from [] (do_exit+0x1b4/0x5f0)
  183. [  528.672305]  r6:ef4722f0 r5:0000000b r4:ef49d180 r3:ef4a88ec
  184. [  528.677926] [] (do_exit+0x0/0x5f0) from [] (die+0x19c/0x1cc)
  185. [  528.685431] [] (die+0x0/0x1cc) from [] (__do_kernel_fault+0x6c/0x8c)
  186. [  528.693363]  r8:ef4a88c0 r7:00000005 r6:00000000 r5:ef473ca0 r4:45c2710c
  187. [  528.700024] [] (__do_kernel_fault+0x0/0x8c) from [] (do_page_fault+0x1e0/0x1fc)
  188. [  528.709044]  r8:ef4a88c0 r7:45c2710c r6:00000001 r5:ef473ca0 r4:ef49d180
  189. [  528.715528] r3:ef473ca0
  190. [  528.718135] [] (do_page_fault+0x0/0x1fc) from [] (do_translation_fault+0x24/0xa0)
  191. [  528.727340] [] (do_translation_fault+0x0/0xa0) from [] (do_DataAbort+0x3c/0xa0)
  192. [  528.736344]  r6:45c2710c r5:c07705dc r4:00000005 r3:c077058c
  193. [  528.741980] [] (do_DataAbort+0x0/0xa0) from [] (__dabt_svc+0x4c/0x60)
  194. [  528.750124] Exception stack(0xef473ca0 to 0xef473ce8)
  195. [  528.755150] 3ca0: 00000017 00000152 00000011 45c270e8 00000004 2152b446 00000017 0000016c
  196. [  528.763299] 3cc0: 00000003 00000000 60000013 ef473d04 00000005 ef473ce8 c0043d64 c0043e00
  197. [  528.771441] 3ce0: 80000093 ffffffff
  198. [  528.774903]  r7:0000016c r6:00000017 r5:ef473cd4 r4:ffffffff
  199. [  528.780530] [] (s5pv210_irq_eint_group_set_type+0x0/0x12c) from [] (__irq_set_trigger+0x3c/0x9c)
  200. [  528.791147]  r6:c077a5fc r5:c078a1d8 r4:c078a1d8 r3:c0043d4c
  201. [  528.796660] [] (__irq_set_trigger+0x0/0x9c) from [] (__setup_irq+0x154/0x30c)
  202. [  528.805496]  r8:c078a1f8 r7:c078a214 r6:0000016c r5:ef501140 r4:c078a1d8
  203. [  528.811978] r3:c008e544
  204. [  528.814585] [] (__setup_irq+0x0/0x30c) from [] (request_threaded_irq+0xbc/0x100)
  205. [  528.823704] [] (request_threaded_irq+0x0/0x100) from [] (fl210_buttons_open+0x74/0x124 [keys_drv])
  206. [  528.834362] [] (fl210_buttons_open+0x0/0x124 [keys_drv]) from [] (misc_open+0x208/0x2dc)
  207. [  528.844146]  r7:efb8e540 r6:bf0000a4 r5:c05652a0 r4:ef4c3b40
  208. [  528.849766] [] (misc_open+0x0/0x2dc) from [] (chrdev_open+0x194/0x1b8)
  209. [  528.858007]  r8:00000000 r7:00000000 r6:efd03940 r5:ef4c3b40 r4:efb8e540
  210. [  528.864492] r3:c022c52c
  211. [  528.867099] [] (chrdev_open+0x0/0x1b8) from [] (__dentry_open+0x184/0x29c)
  212. [  528.875688]  r8:c00bc770 r7:efb8e540 r6:efb8d750 r5:ef406080 r4:ef4c3b40
  213. [  528.882351] [] (__dentry_open+0x0/0x29c) from [] (nameidata_to_filp+0x48/0x60)
  214. [  528.891415] [] (nameidata_to_filp+0x0/0x60) from [] (do_last+0x458/0x584)
  215. [  528.899780]  r4:ef473ec8
  216. [  528.902282] [] (do_last+0x0/0x584) from [] (do_filp_open+0x168/0x4d0)
  217. [  528.910445] [] (do_filp_open+0x0/0x4d0) from [] (do_sys_open+0x64/0x11c)
  218. [  528.918847] [] (do_sys_open+0x0/0x11c) from [] (sys_open+0x24/0x28)
  219. [  528.926823] [] (sys_open+0x0/0x28) from [] (ret_fast_syscall+0x0/0x30)
  220. Segmentation fault
  221. [root@FORLINX210]#
复制代码

23个回复

abclixu123 发表于 2015-8-5 10:21:49
路过,不懂帮顶!
回复

举报 使用道具

liuruoshui 发表于 2015-8-5 11:04:18
make clear后再make uImage看看
栾新科 发表于 2015-8-5 11:12:23
问题一: 可能是u转串不稳定。不关开发板,拔掉u转串重插就好。
剩下的问题 模块不能卸载的 你可以把驱动源码贴上来我看看;去掉内核选项依然编译进去的,贴上驱动源码所在目录的Makefile和Kconfig

点评 3

其实我的内核是你们在本论坛提供的,相应的驱动目录,我特意在上面说明了,就是方便你们查看,贴出来占很大的空间,不方便查看,不过还是以你的要求,都帖出来了!希望你能帮助解决!   发表于 2015-8-5 13:13
Murphy 发表于 2015-8-5 11:58:18
太高深了,学习来了
回复

举报 使用道具

gjianw217 发表于 2015-8-5 12:26:55
本帖最后由 gjianw217 于 2015-8-5 17:00 编辑
forlinx 发表于 2015-8-5 11:12
问题一: 可能是u转串不稳定。不关开发板,拔掉u转串重插就好。
剩下的问题 模块不能卸载的 你可以把驱动源码贴上来我看看;去掉内核选项依然编译进去的,贴上驱动源码所在目录的Makefile和Kconfig

(1)针对问题二模块不能卸载,是命令不能使用,和具体的驱动没有关系,即所有的驱动模块都不能卸载,需要贴出驱动源码吗?
(2)针对问题四的第一个问题,相关源码见附件。附件中包含驱动源码,及与驱动源码同目录的Kconfig文件和Makefile文件。

key-input.rar

6.98 KB, 下载次数: 3, 下载积分: 积分 -1 分

gjianw217 发表于 2015-8-5 13:10:32
本帖最后由 gjianw217 于 2015-8-5 17:01 编辑
forlinx 发表于 2015-8-5 11:12
问题一: 可能是u转串不稳定。不关开发板,拔掉u转串重插就好。
剩下的问题 模块不能卸载的 你可以把驱动源码贴上来我看看;去掉内核选项依然编译进去的,贴上驱动源码所在目录的Makefile和Kconfig

针对第四个问题中的第二个问题:相关源码见附件,附件中包含驱动源文件和与源文件同目录的Kconfig文件和Makefile文件。

button.rar

16.29 KB, 下载次数: 5, 下载积分: 积分 -1 分

燕小飞 发表于 2015-8-5 13:48:30
u***转串口的驱动 估计有问题,先不连接板子 测试一下电脑端的串口是不是有问题,从而确定是不是板子端的串口问题
刘旭 发表于 2015-8-5 14:12:02
以后尽量少贴代码 贴出部分就可以
栾新科 发表于 2015-8-5 14:30:51
你能一个个贴吗?故意的吧
燕小飞 发表于 2015-8-5 14:41:57
我来回答第四个问题吧。看代码用的不是input子系统,就是个普通的misc。读取到一定的字节,然后按照位的方式解析。(话说这么贴,真没法看了)
燕小飞 发表于 2015-8-5 14:49:49
其余不能卸载模块的问题,往往是资源占用问题,不是所有驱动都保证能作为模块操作的。至于make menuconfig 去掉了,但是系统起来后依然有节点问题,应该是Kconfig和Makefile对应问题。(当然前提是没有操作问题)。
gjianw217 发表于 2015-8-5 20:38:24
abclixu123 发表于 2015-8-5 10:21
路过,不懂帮顶!

谢谢支持!我会继续努力
mop 发表于 2015-8-5 22:17:44
本帖最后由 MOPPLAYER 于 2015-8-5 22:21 编辑

關於模塊driver加載的問題,沒實際看過ok210的,經驗來說應該是rootfs問題,一般make kernel後是需要產生modules的,即configured為的那些driver,然後make install到特定目錄,再將該目錄內容move到rootfs,通常是在/lib/modules/2.6.35.7/,但似乎少了該路徑所以會發生加載/卸載異常,只是經驗談供參考
gjianw217 发表于 2015-8-6 21:45:49
liuruoshui 发表于 2015-8-5 11:04
make clear后再make uImage看看

楼上的应该是针对问题3吧,make clear显示没有命令,make clean后,仍然存在设备文件/dev/adc,后来发现默认的adc驱动目录位于arch/arm/mach-s5pv210/,取消后就没有了!不过还是谢谢你!
gjianw217 发表于 2015-8-6 21:47:08
燕小飞 发表于 2015-8-5 13:48
u***转串口的驱动 估计有问题,先不连接板子 测试一下电脑端的串口是不是有问题,从而确定是不是板子端的串口问题

驱动没有问题,试过了!
gjianw217 发表于 2015-8-6 21:48:15
hobbye501 发表于 2015-8-5 14:12
以后尽量少贴代码 贴出部分就可以

这个道理我懂,其实可以直接查源码,我的目录都给出来了,但飞凌让贴,就只能贴了!
gjianw217 发表于 2015-8-6 21:49:57
forlinx 发表于 2015-8-5 14:30
你能一个个贴吗?故意的吧

我故意,你开玩笑吧,本来你可以看源码的,我的目录都给出来,目的就是方便你查看,你倒好,让帖出来,难道你不知道你家的代码,帖出来很多吗!
gjianw217 发表于 2015-8-6 21:51:39
燕小飞 发表于 2015-8-5 14:41
我来回答第四个问题吧。看代码用的不是input子系统,就是个普通的misc。读取到一定的字节,然后按照位的方式解析。(话说这么贴,真没法看了)

你没有认真看吧,一个是buttons驱动,那个是采用misc子系统编写的驱动,一个是gpio驱动,那个是采用input子系统编写的!
liuruoshui 发表于 2015-8-6 21:51:51
gjianw217 发表于 2015-8-6 21:45
楼上的应该是针对问题3吧,make clear显示没有命令,make clean后,仍然存在设备文件/dev/adc,后来发现默认的adc驱动目录位于arch/arm/mach-s5pv210/,取消后就没有了!不过还是谢谢你!

对啊!驱动放得位置不同啊!
12下一页
您需要登录后才可以回帖 登录 | 注册

本版积分规则


关闭

站长推荐上一条 /6 下一条

小黑屋|手机版|Archiver|电子发烧友 ( 湘ICP备2023018690号 )

GMT+8, 2024-12-22 10:44 , Processed in 0.967659 second(s), Total 84, Slave 64 queries .

Powered by 电子发烧友网

© 2015 bbs.elecfans.com

微信扫描
快速回复 返回顶部 返回列表