06-14-2016, 04:18 PM
I tried to build the realtek bluetooth driver by checking out the github for my version and applying the config.gz before running make modules and it still thinks the version is different. Can you supply a kernel headers tarball for use with dkms?
I have fixed up the Makefile (I think) and created a dkms.conf file to allow for automatic module compilation but it complains about symbol versions not being identical.
Of course I might just be using the wrong driver for the Pine64, I was basing it off the wlan driver.
I have fixed up the Makefile (I think) and created a dkms.conf file to allow for automatic module compilation but it complains about symbol versions not being identical.
Code:
ubuntu@fjords:~$ cat /usr/src/rtk_btusb-v0.8/Makefile
FW_DIR := /lib/firmware/rtk_bt
MDL_DIR := /lib/modules/$(shell uname -r)
DRV_DIR := $(MDL_DIR)/kernel/drivers/bluetooth
ifneq ($(KERNELRELEASE),)
obj-m := rtk_btusb.o
KVER := $(KERNELRELEASE)
KDIR := /lib/modules/$(KVER)/build
else
PWD := $(shell pwd)
KVER := $(shell uname -r)
KDIR := /lib/modules/$(KVER)/build
endif
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a
install:
mkdir -p $(FW_DIR)
cp -f rlt8723a_chip_b_cut_bt40_fw_asic_rom_patch-svn8511-0x0020342E-20121105-LINUX_USB.bin $(FW_DIR)/rtk8723a.bin
cp -f rtl8723a_config.bin $(FW_DIR)/.
cp -f rtk_btusb.ko $(DRV_DIR)/rtk_btusb.ko
depmod -a $(KVER)
@echo "install rtk_btusb success!"
uninstall:
rm -f $(DRV_DIR)/rtk_btusb.ko
dumped -a $(KVER)
rm -f $(FW_DIR)/rtk8723a.bin
echo "uninstall rtk_btusb success!"
ubuntu@fjords:~$ cat /usr/src/rtk_btusb-v0.8/dkms.conf
MAKE="make all
INCLUDEDIR=/lib/modules/$kernelver/build/include"
MAKE_smp="make SMP=1 all
INCLUDEDIR=/lib/modules/$kernelver/build/include"
DEST_MODULE_LOCATION="/kernel/drivers/bluetooth/rtk_btusb"
PACKAGE_NAME="rtk_btusb"
PACKAGE_VERSION="v0.8"
REMAKE_INITRD="no"
MODULE_NAME="rtk_btusb.o"
CLEAN="make clean"