I have a kernel with built-in module that I want to replace. I have built a .ko and tried to insmod it, but it failed since the kernel was already built with it.

Is it possible to do this?

  • I'm not entirely sure so I'm not giving this as an answer - but can't you do it with rmmod <module name>? – aureljared May 27 '14 at 11:33
  • This works with .ko only modules, and not builtin modules. builtin modules don't show up in lsmod. – noti May 27 '14 at 11:35
  • 1
    AFAIK what's built-in cannot be "rmod'ed". But that's not an Android specific question (rather a Linux/Unix generic one), so you might wish to check with those "stacks" (they might even have that question already answered). – Izzy May 27 '14 at 12:06

No. Built-in drivers aren't modules, they are built-in (hence the name). If it's not showing in lsmod, you can't get rid of it short of building a new kernel.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.