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.
#2
Kernel headers are there - latest kernel tarbal in /usr/src
#3
Quick question? Is that the right driver Faye is trying to build, it looks like the USB variant of the 8723 to me...
Come have a chat in the Pine IRC channel >>
#4
(06-15-2016, 02:28 PM)xalius Wrote: Quick question? Is that the right driver Faye is trying to build, it looks like the USB variant of the 8723 to me...

I can answer that really quickly, it isn't (or at least doesn't work for me)  I hoped that would be the quick one to test.
I've compiled the other tools now.  It didn't work on ttyS3, haven't had time to try with the other interfaces.


Faye
#5
I played with https://github.com/lwfinger/rtl8723bs_bt earlier and got to talk to the BT part of the RTL, the tool seems to handshake and upload a binary to the module but I didnt get it to actually register as a BT adapter with Linux after that:

http://pastebin.com/Z3RUS9kc

The correct tty seems to be /dev/ttyS1 which corresponds to the schematic and the device tree definitions...
Come have a chat in the Pine IRC channel >>


Possibly Related Threads…
Thread Author Replies Views Last Post
  DKMS on kernel 3.10.107-pine64 obrienmd 5 9,620 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 3,891 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,038 07-27-2016, 01:16 PM
Last Post: NexusDude
  How to enable XDCMP on longsleep Xubuntu? melao 6 9,760 06-23-2016, 05:58 AM
Last Post: baldrob
Rainbow Longsleep magic ! Lutinmalin 6 10,304 06-08-2016, 05:54 PM
Last Post: texadactyl

Forum Jump:


Users browsing this thread: 1 Guest(s)