rtl8723au_bt icon indicating copy to clipboard operation
rtl8723au_bt copied to clipboard

no dkms support files

Open dlenski opened this issue 11 years ago • 7 comments
trafficstars

As-is, the package doesn't contain dkms support files. Here's a simple patch for dkms support, based on your 8723au WiFi driver code:

new file mode 100644
index 0000000..f874a95
--- /dev/null
+++ b/README.dkms
@@ -0,0 +1,14 @@
+
+To get DKMS to work:
+
+- Install dkms
+- Copy this source to the directory /usr/src/8723au-0.1/
+- Run (as root):
+
+    $ dkms add -m 8723au -v 0.1
+
+- Test a build:
+
+    $ dkms build -m 8723au -v 0.1
+
+From now on this drive should be available for any new kernels.
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 0000000..bc588d2
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_NAME="rtl8723au_bt"
+PACKAGE_VERSION="0.1"
+BUILD_MODULE_NAME[0]="rtk_btusb"
+BUILT_MODULE_NAME[0]="rtk_btusb"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/bluetooth"
+AUTOINSTALL="yes"

dlenski avatar May 28 '14 03:05 dlenski

Great ! Will you try that asap. BTW I saw that the btusb module will soon integrate the patch needed for those realtek BT

freechelmi avatar Aug 01 '14 07:08 freechelmi

@dlenski I can't find how to make my DKMS package copy the firmware , I've tried a POSTINSTALL directive without any luck , see here :

https://github.com/EkimiaSAS/rtl8723au_bt/blob/dkms/dkms.conf

Any idea ?

freechelmi avatar Oct 14 '14 21:10 freechelmi

Not sure if I understand... are you saying that when you include the line POST_INSTALL=touch /lib/firmware/coucou.fw, and then install, that file doesn't get created?

dlenski avatar Oct 14 '14 22:10 dlenski

yes exactly. And I cannot put it in the makefile either.

there must be a proper way to execute some postinst script

freechelmi avatar Oct 14 '14 22:10 freechelmi

There seem to be a bunch of slightly-incompatible versions of dkms floating around in different distros. Have you checked the manpages for dkms or dkms.conf? According to this old version, POST_INSTALL must specify a script relative to the root of the source distribution, rather than an arbitrary shell command line.

POST_INSTALL= The name of the script to be run after an install is performed. The path should be given relative to the root directory of your source.

dlenski avatar Oct 14 '14 22:10 dlenski

Great I will try that. About the name of the DKMS package , what do you think ? I was about to call it rtl8x-bt and use the version of realtek : 2.11 even if our version is derived from it @lwfinger : Maybe you have a better idea ?

freechelmi avatar Oct 15 '14 15:10 freechelmi

FYI, there is a new 'kernel' branch that has code that will be in kernel 3.21. It handles the Realtek devices just like any other kernel device. Thus far, no changes for older kernels have been included. As problems are reported, I will fix them.

lwfinger avatar Feb 11 '15 01:02 lwfinger