[i.MX6] how to remove a built-in kernel driver?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[i.MX6] how to remove a built-in kernel driver?

1,922 Views
myunglee
Contributor I

[i.MX6] how to remove a built-in kernel driver? such as 'btusb.ko'?

(kernel version: linux-imx-rel_imx_4.1.15_2.0.0_ga)

The 'btusb.ko' is an built-in kernel dirver and can't be removed by doing following.
    root@imx6sxsabresd:/etc/bluetooth# modprobe -r btusb
    modprobe: FATAL: Module btusb is builtin.

Just rebuilding the zImage with following configuration doesn't remove it,
    CONFIG_BT=n
    CONFIG_BT_HCIBTUSB=n

how to remove a built-in kernel driver? such as 'btusb.ko'?
Regards, Myung

0 Kudos
2 Replies

1,707 Views
Carlos_Musich
NXP Employee
NXP Employee

HI miung,

If you are not using the module you can remove it for Kenel build in the menuconfig. If you are using the module con can look for it in the menuconfig an build it as 'M' instead of '*'. This way you will be able to remove it.


Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,707 Views
albertlai
Contributor I

Do you mean I should do:

bitbake linux-imx -c menuconfig    ?     

I got many errors when I do this !!!  (I am also trying to get rid of the generic Bluetooth "btusb.ko" driver !!!

Here are the errors: 

0 Kudos