无法卸载.ko模块

你好,我又出现一个问题,就是用insmod加载.KO模块后,无法用rmmod卸载模块,提示如下,如何解决这个问题?root@tgq-desktop:/mnt# insmod pca9555.ko [ 664.237567] -----pca9555_probe----- [ 664.237834] Unable to handle kernel NULL pointer dereference at virtual address 00000088 [ 664.237984] Mem abort info: [ 664.238055] ESR = 0x96000005 [ 664.238131] Exception class = DABT (current EL), IL = 32 bits [ 664.238252] SET = 0, FnV = 0 [ 664.238305] EA = 0, S1PTW = 0 [ 664.238360] Data abort info: [ 664.238505] ISV = 0, ISS = 0x00000005 [ 664.238574] CM = 0, WnR = 0 [ 664.238636] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc18ca88000 [ 664.238741] [0000000000000088] *pgd=0000000000000000, *pud=0000000000000000 [ 664.238902] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 664.238997] Modules linked in: pca9555(+) bnep zram xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack br_netfilter overlay fuse userspace_alert nvgpu ip_tables x_tables [ 664.240308] CPU: 1 PID: 22035 Comm: insmod Not tainted 4.9.253-tegra #7 [ 664.240804] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT) [ 664.246860] task: ffffffc18161aa00 task.stack: ffffffc1f4e28000 [ 664.252897] PC is at pca9555_probe+0x28/0x148 [pca9555] [ 664.258145] LR is at pca9555_probe+0x28/0x148 [pca9555] [ 664.263136] pc : [<ffffff8000f891c8>] lr : [<ffffff8000f891c8>] pstate: 40400045 [ 664.270652] sp : ffffffc1f4e2ba80 [ 664.273897] x29: ffffffc1f4e2ba80 x28: 0000000000000018 [ 664.278977] x27: 000000000000005f x26: 0000000000000030 [ 664.284742] x25: 0000000000000000 x24: ffffff8008f8b970 [ 664.290517] x23: ffffff8000f891a0 x22: ffffffc1f4cd4804 [ 664.295593] x21: ffffffc1f4cd4800 x20: 0000000000000000 [ 664.300929] x19: 0000000000000000 x18: 0000000000000010 [ 664.306529] x17: 0000007fa21863e0 x16: 0000000000035103 [ 664.311963] x15: ffffffffffffffff x14: ffffff808a15e5b7 [ 664.317922] x13: ffffff800a15e5c5 x12: 0000000000000000 [ 664.323677] x11: 0000000005f5e0ff x10: 0000000000000464 [ 664.329198] x9 : 00000000ffffffd0 x8 : ffffff80083d7080 [ 664.335225] x7 : ffffff8009ec44a8 x6 : ffffffc1ffd1cbf0 [ 664.340739] x5 : ffffffc1ffd1cbf0 x4 : 0000000000000000 [ 664.346075] x3 : ffffffc1ffd227f8 x2 : ffffffc1ffd1cbf0 [ 664.351414] x1 : ffffffc18161aa00 x0 : 0000000000000018 [ 664.356498] [ 664.358159] Process insmod (pid: 22035, stack limit = 0xffffffc1f4e28000) [ 664.364281] Call trace: [ 664.366651] [<ffffff8000f891c8>] pca9555_probe+0x28/0x148 [pca9555] [ 664.372771] [<ffffff8008ae63cc>] i2c_device_probe+0x144/0x258 [ 664.378111] [<ffffff8008781248>] driver_probe_device+0x298/0x448 [ 664.383706] [<ffffff80087814d4>] __driver_attach+0xdc/0x128 [ 664.389041] [<ffffff800877eb04>] bus_for_each_dev+0x5c/0xa8 [ 664.394380] [<ffffff8008780888>] driver_attach+0x30/0x40 [ 664.399196] [<ffffff80087802bc>] bus_add_driver+0x20c/0x2a8 [ 664.404794] [<ffffff800878240c>] driver_register+0x6c/0x110 [ 664.410130] [<ffffff8008ae6abc>] i2c_register_driver+0x4c/0xb0 [ 664.415731] [<ffffff8000f89308>] pca9555_driver_init+0x20/0x50 [pca9555] [ 664.422031] [<ffffff8008083b3c>] do_one_initcall+0x44/0x130 [ 664.427550] [<ffffff8008f609dc>] do_init_module+0x64/0x1b0 [ 664.433146] [<ffffff80081569dc>] load_module+0x10ac/0x12e0 [ 664.438654] [<ffffff8008156ec0>] SyS_finit_module+0xd8/0xf0 [ 664.444172] [<ffffff8008083900>] el0_svc_naked+0x34/0x38 [ 664.449686] ---[ end trace eda99276cac5a0cc ]--- Segmentation fault root@tgq-desktop:/mnt# rmmod pca9555.ko rmmod: ERROR: Module pca9555 is in use

Has it been solved?I met the same problem.Anybody helps?

Hello @wuxiaoxiang578594184 and welcome to the NVIDIA developer forums.

The above issue was probably not commented on because simply posing an unformatted stack trace does not give much ground to start identifying a possible problem let alone solution.

If you have similar problems I highly recommend to post a new topic over in the Jetson specific forums and try to give a bit more detail and context for the issue.

Thanks!

This topic was automatically closed after 2 days. New replies are no longer allowed.