longsleep installed headers for dkms usage
#1
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.

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"
Of course I might just be using the wrong driver for the Pine64, I was basing it off the wlan driver.


Messages In This Thread
longsleep installed headers for dkms usage - by Faye - 06-14-2016, 04:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DKMS on kernel 3.10.107-pine64 obrienmd 5 9,658 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 3,901 12-09-2017, 08:14 AM
Last Post: incoherent
  [How-To] Make PINE 64 with Ubuntu Xenial Longsleep build crunch BOINC Tasks moisesmcardona 3 9,062 07-27-2016, 01:16 PM
Last Post: NexusDude
  How to enable XDCMP on longsleep Xubuntu? melao 6 9,788 06-23-2016, 05:58 AM
Last Post: baldrob
Rainbow Longsleep magic ! Lutinmalin 6 10,347 06-08-2016, 05:54 PM
Last Post: texadactyl

Forum Jump:


Users browsing this thread: 2 Guest(s)