Install broadcom wl kernel 4.9

Upgrade kernel bikin ribet, pake acara driver wireless broadcom ga kebaca, ngikutin wiki ini https://wiki.debian.org/wl gak mempan. Nyoba compile dari sumber malah error

amaulana8@laptop:~/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271$ make API=CFG80211
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-0.bpo.1-686-pae'
CFG80211 API specified in command line
Using CFG80211 API
  LD      /home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/built-in.o
  CC [M]  /home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.o
/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.c: In function ‘osl_getcycles’:
/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.c:935:2: error: implicit declaration of function ‘rdtscl’ [-Werror=implicit-function-declaration]
  rdtscl(cycles);
  ^
/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.c:935:2: warning: ‘cycles’ is used uninitialized in this function [-Wuninitialized]
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-0.bpo.1-common/scripts/Makefile.build:298: recipe for target '/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.o' failed
make[4]: *** [/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.o] Error 1
/usr/src/linux-headers-4.9.0-0.bpo.1-common/Makefile:1507: recipe for target '_module_/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271' failed
make[3]: *** [_module_/home/amaulana8/Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-0.bpo.1-686-pae'
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2

Inget pernah ngepatch dulu pada kernel 3.10, googlinggoogling sapa tau sudah ada yang bikin patchnya, nemu juga abang baik hati bikinin patchnya disini https://gist.github.com/holmosapien/5fbd37376aab2f03fb632f7361b8739a.

balik lagi compile file https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz dengan patchnya

cd Downloads/hybrid-v35-nodebug-pcoem-6_30_223_271/
patch -p1 < ~/Downloads/patch/broadcom-4.9.4.patch
make API=CFG80211
sudo cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
sudo depmod -a
sudo modprobe wl

Versi kernel :

amaulana8@laptop:~$ uname -ar
Linux laptop 4.9.0-0.bpo.1-686-pae #1 SMP Debian 4.9.2-2~bpo8+1 (2017-01-26) i686 GNU/Linux

Networking :

amaulana8@laptop:~$ lspci | grep Broad
03:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)

NB:
Lebih detail cara untuk install drivernya bisa baca file readme.txt, kebetulan link diatas tidak disertakan file readme.txt nya. alternative lain bisa download file include readme.txt pada link ini http://http.debian.net/debian/pool/non-free/b/broadcom-sta/broadcom-sta_6.30.223.271.orig.tar.xz

Advertisements

2 thoughts on “Install broadcom wl kernel 4.9

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s