[Solved!] Unable to blacklist WiFi driver

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[Solved!] Unable to blacklist WiFi driver

Post#1 by Ed_P » 11 Oct 2013, 17:01

fanthom wrote:you just need to blacklist certain drivers - that's it.
Thanks fanthom.

Do you see anything I need to blacklist?

Code: Select all

guest@porteus:~$ lspci -knn
bash: lspci: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# lspci -knn
00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 14h Processor Root Complex [1022:1510]
	Subsystem: Advanced Micro Devices [AMD] Family 14h Processor Root Complex [1022:1510]
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Device [1002:980a]
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: radeon
00:01.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI Wrestler HDMI Audio [Radeon HD 6250/6310] [1002:1314]
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: snd_hda_intel
00:04.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Family 14h Processor Root Port [1022:1512]
	Kernel driver in use: pcieport
00:05.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Family 14h Processor Root Port [1022:1513]
	Kernel driver in use: pcieport
00:10.0 USB controller [0c03]: Advanced Micro Devices [AMD] Hudson USB XHCI Controller [1022:7812] (rev 03)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: xhci_hcd
00:11.0 SATA controller [0106]: Advanced Micro Devices [AMD] Hudson SATA Controller [AHCI mode] [1022:7801]
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: ahci
00:12.0 USB controller [0c03]: Advanced Micro Devices [AMD] Hudson USB OHCI Controller [1022:7807] (rev 11)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: ohci-pci
00:12.2 USB controller [0c03]: Advanced Micro Devices [AMD] Hudson USB EHCI Controller [1022:7808] (rev 11)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: ehci-pci
00:13.0 USB controller [0c03]: Advanced Micro Devices [AMD] Hudson USB OHCI Controller [1022:7807] (rev 11)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: ohci-pci
00:13.2 USB controller [0c03]: Advanced Micro Devices [AMD] Hudson USB EHCI Controller [1022:7808] (rev 11)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: ehci-pci
00:14.0 SMBus [0c05]: Advanced Micro Devices [AMD] Hudson SMBus Controller [1022:780b] (rev 14)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
00:14.2 Audio device [0403]: Advanced Micro Devices [AMD] Hudson Azalia Controller [1022:780d] (rev 01)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge [0601]: Advanced Micro Devices [AMD] Hudson LPC Bridge [1022:780e] (rev 11)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
00:14.4 PCI bridge [0604]: Advanced Micro Devices [AMD] Hudson PCI Bridge [1022:780f] (rev 40)
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 [1022:1700] (rev 43)
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1 [1022:1701]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2 [1022:1702]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3 [1022:1703]
	Kernel driver in use: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4 [1022:1704]
00:18.5 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6 [1022:1718]
00:18.6 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5 [1022:1716]
00:18.7 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7 [1022:1719]
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: r8169
02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
	Subsystem: Foxconn International, Inc. Device [105b:e042]
root@porteus:/home/guest# 
Cause I don't. :unknown:
Last edited by Ed_P on 12 Oct 2013, 05:41, edited 1 time in total.
Ed

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Unable to blacklist WiFi driver

Post#2 by fanthom » 11 Oct 2013, 17:33

from the lspci output we can see that your wifi chipset is identified as [14e4:4727]:

Code: Select all

02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
now you go to:
http://wireless.kernel.org/en/users/Dri ... ed_devices
and can find that this device is supported by 'wl' and 'brcm80211' drivers. 'wl' doesnt work (otherwise you would have internet already) so we need to blacklist it and un-blacklist the rest. please save following code as /porteus/rootcopy/etc/modprobe.d/b43_blacklist.conf:

Code: Select all

blacklist wl
the last step is to get brcm firmware so your brcmsmac driver can work. please download kernel firmware package from here:
http://ftp.heanet.ie/mirrors/ftp.slackw ... arch-1.txz
and copy /lib/firmware/brcm folder to /porteus/rootcopy/lib/firmware/ and you should be good to go.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Unable to blacklist WiFi driver

Post#3 by Ed_P » 11 Oct 2013, 20:47

fanthom wrote:from the lspci output we can see that your wifi chipset is identified as [14e4:4727]:

Code: Select all

02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
Yes.

And in the examples at your http://forum.porteus.org/viewtopic.php?f=39&t=1099 link you show lspci -knn commands that show:

Code: Select all

Kernel modules: wl, ssb
and

Code: Select all

Kernel driver in use: wl
Kernel modules: wl, ssb
My lspci -knn command doesn't show those relationships.
now you go to:
http://wireless.kernel.org/en/users/Dri ... ed_devices
and can find that this device is supported by 'wl' and 'brcm80211' drivers. 'wl' doesnt work (otherwise you would have internet already) so we need to blacklist it and un-blacklist the rest. please save following code as /porteus/rootcopy/etc/modprobe.d/b43_blacklist.conf:

Code: Select all

blacklist wl
Ok. Will try this next time I boot the flash drive. Will I need to do anything to activate the non-blacklisted drivers?
the last step is to get brcm firmware so your brcmsmac driver can work. please download kernel firmware package from here:
http://ftp.heanet.ie/mirrors/ftp.slackw ... arch-1.txz
and copy /lib/firmware/brcm folder to /porteus/rootcopy/lib/firmware/ and you should be good to go.
Now I was going to say that I can't do this because I'm booting an ISO but that's incorrect. The USB flash drive is not booting an ISO is it. So that means if I don't boot it into Fresh mode changes will stick. And if I reboot into Fresh mode these changes will still be there, right? So the only concern then is if I recreate the flash drive. Cool.
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Unable to blacklist WiFi driver

Post#4 by Ed_P » 12 Oct 2013, 02:37

fanthom wrote: please save following code as /porteus/rootcopy/etc/modprobe.d/b43_blacklist.conf:

Code: Select all

blacklist wl
the last step is to get brcm firmware so your brcmsmac driver can work. please download kernel firmware package from here:
http://ftp.heanet.ie/mirrors/ftp.slackw ... arch-1.txz
and copy /lib/firmware/brcm folder to /porteus/rootcopy/lib/firmware/ and you should be good to go.
On the flash driver's 2nd partition's I only have an empty /porteus/rootcopy/ folder. No /porteus/rootcopy/etc/modprobe.d/ no /porteus/rootcopy/lib/firmware/. Should I create these folders when adding these files?
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Unable to blacklist WiFi driver

Post#5 by Ed_P » 12 Oct 2013, 05:40

EdP wrote:Should I create these folders when adding these files?
And the answer is YES!! :Yahoo!:

I am coming to you LIVE from the machine that had no network access until you helped. Thank you fanthom. :good:
Ed

Post Reply