Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver not compiling on Kernel 6.12.4, "aml_deinit" and "aml_init" undefined #27

Open
werefkin opened this issue Dec 10, 2024 · 2 comments

Comments

@werefkin
Copy link

Hi I did not succeed to compile the driver upon the kernel update on Arch. I get:

  MODPOST /home/werefkin/drivers/macbook12-bluetooth-driver/build/bluetooth/Module.symvers
ERROR: modpost: "aml_deinit" [/home/werefkin/drivers/macbook12-bluetooth-driver/build/bluetooth/hci_uart.ko] undefined!
ERROR: modpost: "aml_init" [/home/werefkin/drivers/macbook12-bluetooth-driver/build/bluetooth/hci_uart.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:145: /home/werefkin/drivers/macbook12-bluetooth-driver/build/bluetooth/Module.symvers] Error 1
make[2]: *** [/usr/lib/modules/6.12.4-arch1-1/build/Makefile:1888: modpost] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.12.4-arch1-1/build'
make: *** [Makefile:10: all] Error 2

any idea of how to resolve the issue?

@werefkin werefkin changed the title Driver not compiling on Kernel 6.12.4 related to "aml_deinit" and "aml_init" undefined Driver not compiling on Kernel 6.12.4, "aml_deinit" and "aml_init" undefined Dec 10, 2024
@emuplz
Copy link

emuplz commented Dec 12, 2024

I was able to compile the driver for Kernel 6.12 (Manjaro) by updating patch_bluetooth/Makefile:

diff --git a/patch_bluetooth/Makefile b/patch_bluetooth/Makefile
index 497e9ac..e5ba3cc 100644
--- a/patch_bluetooth/Makefile
+++ b/patch_bluetooth/Makefile
@@ -12,4 +12,5 @@ hci_uart-$(CONFIG_BT_HCIUART_BCM)      += hci_bcm.o
 hci_uart-$(CONFIG_BT_HCIUART_QCA)       += hci_qca.o
 hci_uart-$(CONFIG_BT_HCIUART_AG6XX)     += hci_ag6xx.o
 hci_uart-$(CONFIG_BT_HCIUART_MRVL)      += hci_mrvl.o
+hci_uart-$(CONFIG_BT_HCIUART_AML)       += hci_aml.o
 hci_uart-objs                        := $(hci_uart-y)

@werefkin
Copy link
Author

I was able to compile the driver for Kernel 6.12 (Manjaro) by updating patch_bluetooth/Makefile:

diff --git a/patch_bluetooth/Makefile b/patch_bluetooth/Makefile
index 497e9ac..e5ba3cc 100644
--- a/patch_bluetooth/Makefile
+++ b/patch_bluetooth/Makefile
@@ -12,4 +12,5 @@ hci_uart-$(CONFIG_BT_HCIUART_BCM)      += hci_bcm.o
 hci_uart-$(CONFIG_BT_HCIUART_QCA)       += hci_qca.o
 hci_uart-$(CONFIG_BT_HCIUART_AG6XX)     += hci_ag6xx.o
 hci_uart-$(CONFIG_BT_HCIUART_MRVL)      += hci_mrvl.o
+hci_uart-$(CONFIG_BT_HCIUART_AML)       += hci_aml.o
 hci_uart-objs                        := $(hci_uart-y)

Yes, I can confirm that it works. Could you please explain the changes for the unfamiliar (me)? Have there been any related changes to the kernel recently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants