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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

2,942 次查看
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 项奖励
回复
2 回复数

2,727 次查看
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 项奖励
回复

2,727 次查看
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 项奖励
回复