USB Bluetooth driver not added to kernel on Android Auto 13

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

USB Bluetooth driver not added to kernel on Android Auto 13

Jump to solution
2,229 Views
Lincoln_Dessen
Contributor II

Hi,

Currently I'm working on imx8qm MEK with Android Auto 13, linux kernel version is v6.1.25.

I am trying to enable bluetooth function on the board by connecting a bluetooth USB dongle rtl8761bu.

To recognize the device and bring out the driver, btusb.ko and btrtl.ko are both necessary for this.

Here is my setting:

  • arch/arm64/configs/gki_defconfig
CONFIG_BT=m
CONFIG_BT_RTL=m
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIBTUSB_RTL=y
  • drivers/bluetooth/Makefile
-obj-$(CONFIG_BT_HCIBTUSB)      += btusb.o
+obj-m                          += btusb.o
-obj-$(CONFIG_BT_RTL)           += btrtl.o
+obj-m                          += btrtl.o

 

After compile the kernel, both kernel modules are missing in the driver folder, why?

0 Kudos
Reply
1 Solution
2,203 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi
You need add your .ko files into /device/nxp/imx8q/mek_8q/SharedBoardConfig.mk, then the drivers will be copied into Android rootfs.

Best Regards
Zhiming

View solution in original post

0 Kudos
Reply
1 Reply
2,204 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi
You need add your .ko files into /device/nxp/imx8q/mek_8q/SharedBoardConfig.mk, then the drivers will be copied into Android rootfs.

Best Regards
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1889942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUSB%20Bluetooth%20driver%20not%20added%20to%20kernel%20on%20Android%20Auto%2013%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1889942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ECurrently%20I'm%20working%20on%26nbsp%3B%3CSTRONG%3Eimx8qm%3C%2FSTRONG%3E%26nbsp%3BMEK%20with%20Android%20Auto%2013%2C%20linux%20kernel%20version%20is%20v6.1.25.%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20enable%20bluetooth%20function%20on%20the%20board%20by%20connecting%20a%20bluetooth%20USB%20dongle%20rtl8761bu.%3C%2FP%3E%3CP%3ETo%20recognize%20the%20device%20and%20bring%20out%20the%20driver%2C%20%3CSTRONG%3Ebtusb.ko%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Ebtrtl.ko%3C%2FSTRONG%3E%20are%20both%20necessary%20for%20this.%3C%2FP%3E%3CP%3EHere%20is%20my%20setting%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3Earch%2Farm64%2Fconfigs%2Fgki_defconfig%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3CPRE%3ECONFIG_BT%3Dm%0ACONFIG_BT_RTL%3Dm%0ACONFIG_BT_HCIUART%3Dm%0ACONFIG_BT_HCIBTUSB%3Dm%0ACONFIG_BT_HCIBTUSB_RTL%3Dy%3C%2FPRE%3E%3CUL%3E%3CLI%3E%3CSTRONG%3Edrivers%2Fbluetooth%2FMakefile%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3CPRE%3E-obj-%24(CONFIG_BT_HCIBTUSB)%20%20%20%20%20%20%2B%3D%20btusb.o%0A%2Bobj-m%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2B%3D%20btusb.o%0A-obj-%24(CONFIG_BT_RTL)%20%20%20%20%20%20%20%20%20%20%20%2B%3D%20btrtl.o%0A%2Bobj-m%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2B%3D%20btrtl.o%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EAfter%20compile%20the%20kernel%2C%20both%20kernel%20modules%20are%20missing%20in%20the%20driver%20folder%2C%20why%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C!--%20%20%20%20notionvc%3A%2062ac2b45-f971-46e0-9a05-20c0f5613b0d%20%20%20%20--%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1889942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAndroid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1890123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20USB%20Bluetooth%20driver%20not%20added%20to%20kernel%20on%20Android%20Auto%2013%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1890123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CBR%20%2F%3EYou%20need%20add%20your%20.ko%20files%20into%26nbsp%3B%2Fdevice%2Fnxp%2Fimx8q%2Fmek_8q%2FSharedBoardConfig.mk%2C%20then%20the%20drivers%20will%20be%20copied%20into%20Android%20rootfs.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E