nitanshnagpal / BMP280_Linux_Driver

7 stars 1 forks source link

somehow insmod duplicates itself #1

Closed OleksiiTimofieiev closed 1 year ago

OleksiiTimofieiev commented 1 year ago

Dear Sir,

Would you be so kind to check? Thank you in advance. I`m not able to find the root cause for the below:

I`ve built it with Yocto without and got: [Feb10 15:51] Major = 492 Minor = 0 [ +0.002192] sysfs: cannot create duplicate filename '/class/etx_class_new' [ +0.007882] CPU: 0 PID: 607 Comm: insmod Tainted: G O 5.15.54-yocto-standard #1 [ +0.010348] Hardware name: Generic AM33XX (Flattened Device Tree) [ +0.007240] [] (unwind_backtrace) from [] (show_stack+0x18/0x1c) [ +0.008664] [] (show_stack) from [] (sysfs_warn_dup+0x58/0x6c) [ +0.008640] [] (sysfs_warn_dup) from [] (sysfs_create_dir_ns+0xdc/0xf8) [ +0.009426] [] (sysfs_create_dir_ns) from [] (kobject_add_internal+0xfc/0x2d8) [ +0.009895] [] (kobject_add_internal) from [] (kset_register+0x20/0x3c) [ +0.007479] [] (kset_register) from [] (class_register+0xc8/0x124) [ +0.009196] [] (__class_register) from [] (class_create+0x4c/0x78) [ +0.008324] [] (class_create) from [] (d_init+0x54/0x1000 [driver]) [ +0.009254] [] (d_init [driver]) from [] (do_one_initcall+0x98/0x1e4) [ +0.008663] [] (do_one_initcall) from [] (do_init_module+0x44/0x200) [ +0.008739] [] (do_init_module) from [] (sys_finit_module+0xac/0xd4) [ +0.008539] [] (sys_finit_module) from [] (ret_fast_syscall+0x0/0x48) [ +0.007194] Exception stack(0xc199bfa8 to 0xc199bff0) [ +0.005775] bfa0: 455fc500 b6f93010 00000003 00586190 00000000 bedcde86 [ +0.008557] bfc0: 455fc500 b6f93010 bedcdd74 0000017b 00000000 bedcdd80 00000000 00583ce4 [ +0.008939] bfe0: bedcdbb8 bedcdba8 004e1cf4 b6e6b740 [ +0.004065] kobject_add_internal failed for etx_class_new with -EEXIST, don't try to register things with the same name in the same directory. [ +0.013165] Driver Added!!! [ +0.072327] Major = 491 Minor = 0 [ +0.002187] sysfs: cannot create duplicate filename '/class/etx_class_new' [ +0.005605] CPU: 0 PID: 607 Comm: insmod Tainted: G O 5.15.54-yocto-standard #1 [ +0.009678] Hardware name: Generic AM33XX (Flattened Device Tree) [ +0.006587] [] (unwind_backtrace) from [] (show_stack+0x18/0x1c) [ +0.008538] [] (show_stack) from [] (sysfs_warn_dup+0x58/0x6c) [ +0.008205] [] (sysfs_warn_dup) from [] (sysfs_create_dir_ns+0xdc/0xf8) [ +0.009018] [] (sysfs_create_dir_ns) from [] (kobject_add_internal+0xfc/0x2d8) [ +0.009476] [] (kobject_add_internal) from [] (kset_register+0x20/0x3c) [ +0.007362] [] (kset_register) from [] (class_register+0xc8/0x124) [ +0.008481] [] (class_register) from [] (__class_create+0x4c/0x78) [ +0.008539] [] (class_create) from [] (d_init+0x54/0x1000 [driver]) [ +0.009073] [] (d_init [driver]) from [] (do_one_initcall+0x98/0x1e4) [ +0.008704] [] (do_one_initcall) from [] (do_init_module+0x44/0x200) [ +0.008439] [] (do_init_module) from [] (sys_init_module+0x164/0x198) [ +0.007192] [] (sys_init_module) from [] (ret_fast_syscall+0x0/0x48) [ +0.008606] Exception stack(0xc199bfa8 to 0xc199bff0) [ +0.005477] bfa0: 455fc500 b6f93010 005861e8 00003760 00586190 00003760 [ +0.008748] bfc0: 455fc500 b6f93010 bedcdd74 00000080 00000000 bedcdd80 00000000 00583ce4 [ +0.007163] bfe0: bedcdbb8 bedcdba8 004e1d60 b6e6b740 [ +0.005738] kobject_add_internal failed for etx_class_new with -EEXIST, don't try to register things with the same name in the same directory. [ +0.013228] Driver Added!!!

OleksiiTimofieiev commented 1 year ago

was using insmod *.ko once