I can't remove 'cdc_ncm'

Hello,

We are trying to use AX88179A.
And we have to update latest driver.
There is someting issue.
We need to remove ‘AX88179_178a’, ‘cdc_ncm’ before update.
But We can’t remove ‘cdc_ncm’ module.
Is there any solution for it?

jxn@jxn-desktop:~$ lsmod
Module Size Used by
bnep 16562 2
hid_logitech_hidpp 23004 0
fuse 104554 7
xt_conntrack 3609 1
ipt_MASQUERADE 2346 1
nf_nat_masquerade_ipv4 3111 1 ipt_MASQUERADE
nf_conntrack_netlink 29413 0
nfnetlink 7959 2 nf_conntrack_netlink
xt_addrtype 3670 2
iptable_filter 2481 1
iptable_nat 2882 1
nf_conntrack_ipv4 11992 2
nf_defrag_ipv4 1836 1 nf_conntrack_ipv4
nf_nat_ipv4 6712 1 iptable_nat
nf_nat 20406 2 nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_conntrack 106659 6 nf_conntrack_ipv4,nf_conntrack_netlink,nf_nat_masquerade_ipv4,xt_conntrack,nf_nat_ipv4,nf_nat
br_netfilter 16216 0
hid_logitech_dj 13813 0
userspace_alert 5828 0
ax_usb_nic 57610 0
zram 25920 4
overlay 48718 0
nvgpu 1589200 33
ip_tables 19441 2 iptable_filter,iptable_nat
x_tables 28951 5 ip_tables,iptable_filter,ipt_MASQUERADE,xt_addrtype,xt_conntrack
jxn@jxn-desktop:~$ sudo rmmod cdc_ncm
[sudo] password for jxn:
rmmod: ERROR: Module cdc_ncm is builtin.
jxn@jxn-desktop:~$

Hi,
Not sure but probably need to add this into config:
Linux Kernel Driver DataBase: CONFIG_USB_NET_CDC_NCM: CDC NCM support

Please add CONFIG_USB_NET_CDC_NCM=m and give it a try.

1 Like

Incidentally, most kernel features will be integrated into it and not in the form of a module. What you are seeing is not an error because that driver is integrated, and not in the form of a loadable module. rmmod only removes modules. What @DaneLLL is suggesting is to replace the entire kernel; since you are removing an integrated feature, it would be best to build and install the kernel and all modules with a new CONFIG_LOCALVERSION so the old kernel modules (which might be invalidated) work with the new kernel.

2 Likes

I’ve found it on menuconfig.
Thanks, It works.

menuconfig

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.