Broadcom-sta-dkms; kernel source does not seem to be installed

I’m keeping (if I can) my broadcom 4321 wifi card. Suits my appletv’s new purpose. Ran into a stumbling block though.

When doing;
sudo apt-get install broadcom-sta-dkms
gets;
“kernel source for this kernel does not seem to be installed.”

kernel sources are installed.

did a complete fresh installs of the last 3 hdd sets, installed headers and source, same problem repeated.

From where?

You need to grab the OSMC ones (apt-cache search to find them).

Assuming you use the official card that came with the aTV, you don’t need to set up DKMS (ugly approach) or a driver.

kernel sources and headers are the osmc ones corresponding to my architecture (atv), and uname -rr

Would need to see the full output.

You may need to fix your KSRC path in your Makefile.

i’ll explore the Makefile after some sleep, I’ll post the full output shortly.

sudo apt-get install broadcom-sta-dkms
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 0 B/2,170 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Selecting previously unselected package broadcom-sta-dkms.
(Reading database … 37720 files and directories currently installed.)
Preparing to unpack …/broadcom-sta-dkms_6.30.223.248-3_all.deb …
Unpacking broadcom-sta-dkms (6.30.223.248-3) …
Setting up broadcom-sta-dkms (6.30.223.248-3) …
Loading new broadcom-sta-6.30.223.248 DKMS files…
Building only for 4.2.3-19-osmc
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

Debian DKMS targets 3.16, so you will probably spend some time hacking that anyway.

You need to pass KSRC. You can check the postinst and run the steps manually.

thanks