Difference between revisions of "Talk:Network Configuration"

From PC-BSD Wiki
Jump to: navigation, search
m
 
Line 6: Line 6:
 
* How to setup a ether to wifi hotspot/sharing is also not mentioned.
 
* How to setup a ether to wifi hotspot/sharing is also not mentioned.
 
Freebsd handbook 32.3.5 describes this configuration but its a reasonable expectation for a laptop to be able to share out its wifi while attached by ethernet cable.
 
Freebsd handbook 32.3.5 describes this configuration but its a reasonable expectation for a laptop to be able to share out its wifi while attached by ethernet cable.
 +
 +
-----
 +
 +
This section should no longer be needed in 9.0 as both modules are included with the base system.
 +
 +
===bwn(4) and bwi(4) Drivers===
 +
 +
Due to licensing restrictions, the bwn and bwi drivers require that their firmware is compiled on the individual's computer. This means that Broadcom BCM43xx IEEE 802.11b/g wireless network adapters will not “just work” after installing PC-BSD.
 +
 +
To compile the firmware, you will need to install both the ports tree and source on your PC-BSD system. You can do so by going to Control Panel -> System Manager. After inputting the administrative password, click on the Tasks tab, seen in Figure 7.7p:
 +
 +
'''Figure 7.7p: Using System Manager to Install Ports and Source'''
 +
 +
[[File:Systemmanager2bb.png]]
 +
 +
In the "System Tasks - Advanced Users Only" section, click "Fetch System Source" if ''/usr/src'' does not currently exist on your system.
 +
 +
In the "System Tasks - Advanced Users Only" section, click "Fetch System Ports Tree" if ''/usr/ports'' does not currently exist on your system.
 +
 +
Both src and ports are large so it will take a few minutes for each fetch to finish. When the fetch is finished, compile the firmware using the instructions for the driver that you need. You will need to be the superuser in order to compile the firmware.
 +
 +
====For the bwn driver:====
 +
 +
'''cd /usr/ports/net/bwn-firmware-kmod && make install clean'''
 +
 +
This will create two kernel modules:
 +
 +
* bwn_v4_ucode module (used by most adapters)
 +
 +
* bwn_v4_lp_ucode (used by low power PHY adapters)
 +
 +
It's a good idea to test which module is used by your adapter, so type:
 +
 +
'''kldload bwn_v4_ucode'''
 +
 +
If that command just gives your prompt back without an error, that is the correct module. If you receive an error, try loading the low power module instead which should just give you your prompt back without an error:
 +
 +
'''kldload bwn_v4_lp_ucode'''
 +
 +
Now carefully add the following two lines to ''/boot/loader.conf'':
 +
 +
bwn_v4_ucode_load="YES"
 +
if_bwn_load="YES"
 +
 +
'''Note:''' replace ''bwn_v4_ucode_load="YES"'' with ''bwn_v4_lp_ucode_load="YES"'' if your adapter is a low power one.
 +
 +
====For the bwi driver:====
 +
 +
'''cd /usr/ports/net/bwi-firmware-kmod && make install clean'''
 +
 +
This will create the following kernel module:
 +
 +
* bwi_v3_ucode.ko
 +
 +
To load the module:
 +
 +
'''kldload bwi_v3_ucode.ko'''
 +
 +
And carefully add the following line to ''/boot/loader.conf'' so the module will automatically load whenever you boot:
 +
 +
bwi_v3_ucode_load="YES"

Latest revision as of 14:37, 6 February 2012

Recently a user wanted to be sure that Ethernet over USB worked, which leads to these:

  • What drivers/kernel objects are loaded on the 'live' pseudo-install?
  • A step by step to troubleshoot the 'live' pseudo-install such as to enable other features or devices.

  • Internet connection sharing is not specifically named and does not seem to be described.
  • How to setup a ether to wifi hotspot/sharing is also not mentioned.

Freebsd handbook 32.3.5 describes this configuration but its a reasonable expectation for a laptop to be able to share out its wifi while attached by ethernet cable.


This section should no longer be needed in 9.0 as both modules are included with the base system.

[edit] bwn(4) and bwi(4) Drivers

Due to licensing restrictions, the bwn and bwi drivers require that their firmware is compiled on the individual's computer. This means that Broadcom BCM43xx IEEE 802.11b/g wireless network adapters will not “just work” after installing PC-BSD.

To compile the firmware, you will need to install both the ports tree and source on your PC-BSD system. You can do so by going to Control Panel -> System Manager. After inputting the administrative password, click on the Tasks tab, seen in Figure 7.7p:

Figure 7.7p: Using System Manager to Install Ports and Source

Systemmanager2bb.png

In the "System Tasks - Advanced Users Only" section, click "Fetch System Source" if /usr/src does not currently exist on your system.

In the "System Tasks - Advanced Users Only" section, click "Fetch System Ports Tree" if /usr/ports does not currently exist on your system.

Both src and ports are large so it will take a few minutes for each fetch to finish. When the fetch is finished, compile the firmware using the instructions for the driver that you need. You will need to be the superuser in order to compile the firmware.

[edit] For the bwn driver:

cd /usr/ports/net/bwn-firmware-kmod && make install clean

This will create two kernel modules:

  • bwn_v4_ucode module (used by most adapters)
  • bwn_v4_lp_ucode (used by low power PHY adapters)

It's a good idea to test which module is used by your adapter, so type:

kldload bwn_v4_ucode

If that command just gives your prompt back without an error, that is the correct module. If you receive an error, try loading the low power module instead which should just give you your prompt back without an error:

kldload bwn_v4_lp_ucode

Now carefully add the following two lines to /boot/loader.conf:

bwn_v4_ucode_load="YES" 
if_bwn_load="YES"

Note: replace bwn_v4_ucode_load="YES" with bwn_v4_lp_ucode_load="YES" if your adapter is a low power one.

[edit] For the bwi driver:

cd /usr/ports/net/bwi-firmware-kmod && make install clean

This will create the following kernel module:

  • bwi_v3_ucode.ko

To load the module:

kldload bwi_v3_ucode.ko

And carefully add the following line to /boot/loader.conf so the module will automatically load whenever you boot:

bwi_v3_ucode_load="YES"