[root@FriendlyARM 2.6.38-FriendlyARM]# modprobe adc_zl_1
modprobe: module 'adc_zl_1' not found
[root@FriendlyARM 2.6.38-FriendlyARM]# insmod adc_zl_1.ko//我觉得这个地方是错误的关键。
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:455 sysfs_add_one+0x80/0xa8()
sysfs: cannot create duplicate filename '/devices/virtual/misc/adc'
Modules linked in: adc_zl_1(+)
[<c0177c44>] (unwind_backtrace+0x0/0xe4) from [<c0187078>] (warn_slowpath_common
+0x4c/0x64)
[<c0187078>] (warn_slowpath_common+0x4c/0x64) from [<c0187110>] (warn_slowpath_f
mt+0x2c/0x3c)
[<c0187110>] (warn_slowpath_fmt+0x2c/0x3c) from [<c022b27c>] (sysfs_add_one+0x80
/0xa8)
[<c022b27c>] (sysfs_add_one+0x80/0xa8) from [<c022b300>] (create_dir+0x5c/0xac)
[<c022b300>] (create_dir+0x5c/0xac) from [<c022b428>] (sysfs_create_dir+0xb8/0xe
0)
one_wire_status: 2
[<c022b428>] (sysfs_create_dir+0xb8/0xe0) from [<c02cf534>] (kobject_add_interna
l+0xd0/0x1e8)
[<c02cf534>] (kobject_add_internal+0xd0/0x1e8) from [<c02cf920>] (kobject_add+0x
68/0x8c)
one_wire_status: 2
[<c02cf920>] (kobject_add+0x68/0x8c) from [<c0310d4c>] (device_add+0xa0/0x508)
[<c0310d4c>] (device_add+0xa0/0x508) from [<c0311250>] (device_create_vargs+0x84
/0xcc)
[<c0311250>] (device_create_vargs+0x84/0xcc) from [<c03112b4>] (device_create+0x
1c/0x24)
one_wire_status: 2
[<c03112b4>] (device_create+0x1c/0x24) from [<c030f4fc>] (misc_register+0xbc/0x1
28)
[<c030f4fc>] (misc_register+0xbc/0x128) from [<bf0030a4>] (dev_init+0xa4/0xd8 [a
dc_zl_1])
one_wire_status: 2
[<bf0030a4>] (dev_init+0xa4/0xd8 [adc_zl_1]) from [<c01684d8>] (do_one_initcall+
0xbc/0x190)
[<c01684d8>] (do_one_initcall+0xbc/0x190) from [<c01ae270>] (sys_init_module+0x1
58c/0x1754)
one_wire_status: 4
[<c01ae270>] (sys_init_module+0x158c/0x1754) from [<c01725e0>] (ret_fast_syscall
+0x0/0x30)
---[ end trace 3328e7f542e004dc ]---
kobject_add_internal failed for adc with -EEXIST, don't try to register things w
ith the same name in the same directory.
[<c0177c44>] (unwind_backtrace+0x0/0xe4) from [<c02cf620>] (kobject_add_internal
+0x1bc/0x1e8)
[<c02cf620>] (kobject_add_internal+0x1bc/0x1e8) from [<c02cf920>] (kobject_add+0
x68/0x8c)
one_wire_status: 5
[<c02cf920>] (kobject_add+0x68/0x8c) from [<c0310d4c>] (device_add+0xa0/0x508)
[<c0310d4c>] (device_add+0xa0/0x508) from [<c0311250>] (device_create_vargs+0x84
/0xcc)
[<c0311250>] (device_create_vargs+0x84/0xcc) from [<c03112b4>] (device_create+0x
1c/0x24)
[<c03112b4>] (device_create+0x1c/0x24) from [<c030f4fc>] (misc_register+0xbc/0x1
28)
[<c030f4fc>] (misc_register+0xbc/0x128) from [<bf0030a4>] (dev_init+0xa4/0xd8 [a
dc_zl_1])
one_wire_status: 2
[<bf0030a4>] (dev_init+0xa4/0xd8 [adc_zl_1]) from [<c01684d8>] (do_one_initcall+
0xbc/0x190)
[<c01684d8>] (do_one_initcall+0xbc/0x190) from [<c01ae270>] (sys_init_module+0x1
58c/0x1754)
[<c01ae270>] (sys_init_module+0x158c/0x1754) from [<c01725e0>] (ret_fast_syscall
+0x0/0x30)
one_wire_status: 2
adc initialized
insmod: can't insert 'adc_zl_1.ko': File exists
这个adc_zl_1.ko是我在用和板子的内核2.6.38在pc机上编译的.ko文件。其中只是吧友善的ADC驱动稍加修改(通道换了一下),请各位帮我看看。