Wireless network card is living in Linux

xiaoxiao2021-03-06  40

Author: Sun Xuequan Source: SEOUL - open systems world in order to experience the convenience of wireless network, I bought a laptop. However, due to its built-in PCI wireless network card, there is no driver under Linux, the same is true. An accidental opportunity, the author discovered the NdisWrapper software item (http://ndiswrapper.sourceforge.net) on the Internet. The project does not write Linux drivers, but through a kernel module to call the NDIS driver under Windows, which is subtly solved the problem of these wireless network cards without Linux driver. The project currently supported wireless network card has Admtek 8211, Atheros AR5004, Broadcom 4301, Broadcom 4309, Broadcom 94306, Inprocomm IPN2120, and Intel Pro / Wireless LAN 2100. The INTEL Pro / Wireless Lan 2100, the installed Linux release is SUSE 9.0 Professional, the kernel version is 2.4.21-166, using a version 0.3 NDisWrapper (the software current version is 0.4, require 2.6 or 2.4. 23 or more kernel support). Although the software provides a very detailed document, a complete installation instructions are given here because some issues exist during the installation process. The following commands are performed as root. 1. To http://prdownloads.sourceForge.Net/ndiswrapper/ ndiswrapper-0.3.tar.gz? Download NdisWrapper-0.3.tar.gz file. 2. Unzip the file and generate the ndiswrapper directory in the current directory. The command is as follows: # TAR zxvf ndiswrapper-0.3.tar.gz 3. Enter the ndiswrapper directory, edit the driver / makefile file, add the following statement: cflags = $ (shell [-f / lib / modules / $ (shell uname -r) /BUILD/INCLUDE/LINUX/Modversions.h] && echo -dexport_symtab -dmodversions -include / lib / modules / $ (shell uname -r) /build/include/linux/modversions.h) If not adding the above statement, execution When the "depmod -a" command, the following error will appear: DepMod: *** Unresolved Symbols in /lib/modules/2.4.21-166-default/misc/ndiswrapper.o 4. Compile NdisWrapper with the "Make" command. 5. Go to http://www.asus.com/pub/asus/nb/m2n/v12056logo_xp.zip Download the Centrino wireless network card's Windows driver to decompress through the "unzip" command. 6. Create a / usr / local / share / ndiswrapper directory, copy the .sys, and .inf files to the new directory.

The order is as follows: # mkdir / usr / local / share / ndiswrapper # CP W70N51.sys W70N51.INF / USR / local / share / ndiswrapper 7. Find the Vendor ID and Device ID of the wireless network card, the specific practices are as follows: (1) Executive " LSPCI | GREP 2100 command, the result is as follows, where 02: 02.0 is a wireless network card PCI ID: 02: 02.0 Network Controller: Intel Corp. Pro / Wireless LAN 2100 3B Mini PCI Adapter (REV 04) (2) Execution based on PCI ID "LSPCI-N | GREP 02: 02.0" command Find the Vendor ID and Device ID of the wireless network card, the results are as follows: 02: 02.0 Class 0280: 8086: 1043 (REV 04) By it is known that the Vendor ID corresponding to the wireless network card is 8086, Device ID is 1043. 8. Use the "Insmod Driver / NDisWrapper.o" command to call the kernel module. 9. Call the wireless network card's Windows driver, the command is as follows: # Utils / loadDriver The above code,

Vendor ID for the wireless network card,

For the Device ID,

The full path to the SYS file in the Windows driver,

The full path for the INF file. Execute the following command, if there is no error, the wireless network card has already lit:

# UTILS / LOADDRIVER 8086 2043 /usR/local/share/ndiswrapper/w70n51.sys /usr/local/share/ndiswrapper/w70n51.inf

10. Set wireless networks, the specific steps are as follows:

(1) Use the "IWConfig" command to display information about the wireless network card (Eth0, Eth1 or Eth2). In the following steps, the name of the wireless network card is indicated by ethx.

(2) Set the operating mode of the wireless network card to be managed, the command is as follows:

# ionfig ethx mode management

(3) If WEP encryption is used, you need to set the WEP password, the command is as follows:

# ionfig ethx key password

For 40 and 128-bit encryption, Password is 6 and 10 hexadecimal numbers, respectively.

(4) Set the SSID, where Essid is Access Point's SSID. The command is as follows:

# ionfig ethx Essid EssID

(5) Create a / etc / sysconfig / network / ifcfg-ethx file so that the wireless network card will automatically obtain the IP address each time the machine starts. The contents of this document are as follows:

Bootproto = 'DHCP'

MTU = ''

REMOTE_IPADDR = ''

StartMode = 'onboot'

Unique = ''

11. Start the wireless network card by the following command:

#ifconfig ethx up

12. Finally, automate the above configuration, so that the wireless network card is automatically started. Specifically, divided into the following steps:

(1) Use the following command to copy the ndiswrapper.o file to the kernel module directory of the system: # cp driver / ndiswrapper. * O / lib / modules / $ (uname -r) / Misc

(2) Using the "DEPMOD -A" command to update the module information of the system.

(3) Copy the loadDriver file to a certain directory (such as / usr / local / bin). The command is as follows:

# cp utils / loadingdriver / usr / local / bin

(4) Copy INF and SYS files to a directory (such as / usr / local / share / ndiswrapper). The command is as follows: # cp bcmwl5.sys bcmwl5.inf / usr / local / share / ndiswrapper

(5) Use the following command to create an alias for the wireless network card:

#Alias ​​ethx = ndiswrapper

(6) Modify the /etc/modprobe.conf file, increase the following statement, automatically call NDisWrapper when boot:

Post-install ethx / usr / local / bin / loadingdriver 8086 1043 /usr/local/share/ndiswrapper/*.sys /usr/local/share/ndiswrapper/*.inf

At this point, the entire setting is completed. Every time you enter Linux, the wireless network card will be activated and the IP address is automatically obtained. This allows the Wireless Internet that freely use the Centrino notebook using the Wi-Fi's Windows drive free of charge under Linux.

转载请注明原文地址:https://www.9cbs.com/read-63201.html

New Post(0)