Tag Archives: Wireless

kernel Linux openSUSE Wireless

Compiling the wireless module “broadcom-wl” for kernel 4.x under openSUSE 13.2

This weekend I was trying to compile the broadcom-wl src package for kernel 4.0.5-4 under my openSUSE 13.2 installed on my Mac Book Air 13″ (dual boot). After I updated my Linux box the wireless was a mess, it left to work.

I decided to compile the module from sources.

First, I downloaded all its dependencies with:
zypper source-install -d broadcom-wl-kmp-desktop

Second I got the source RPM package broadcom-wl-6.30.223.248-3.27.src.rpm from here.

After I tried to rebuild the package with the command rpmbuild (you need to install it if you don’t have it).
rpmbuild --rpbuild broadcom-wl-6.30.223.248-3.27.src.rpm

But I was getting this error message:

rpmbuild --rebuild broadcom-wl-6.30.223.248-3.27.src.rpm
Installing broadcom-wl-6.30.223.248-3.27.src.rpm
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
error: File /usr/src/packages/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz: No such file or directory

I found I need some additional files. I got them from here. I just need the files: broadcom-wl-preamble and hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz, I downloaded them.

After I downloaded them, I copied them to correct path:
mv ~/Download/broadcom-wl-preamble /usr/src/packages/SOURCES/
mv ~/Download/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz /usr/src/packages/SOURCES/

I tried again to rebuild the package:

rpmbuild --rebuild broadcom-wl-6.30.223.248-3.27.src.rpm

This time, all it’s fine.

The new RPMS built was generated on /usr/src/packages/RPMS/x86_64. I just only need to install them:

rpm -i /usr/src/packages/RPMS/x86_64/broadcom-wl-kmp-desktop-6.30.223.248_k4.0.5_4.g56152db-3.27.x86_64.rpm /usr/src/packages/RPMS/x86_64/broadcom-wl-6.30.223.248-3.27.x86_64.rpm

That’s it. Just I need to load the kernel module:

modprobe wl

It’s works. The wireless “Network controller: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter” it’s working now.

Regards