FC5 usb wireless network card TL-WN620G installation, configuration and network communication implementation-Linux general technology-Linux programming and kernel information, the following is a detailed reading.
FC5 usb wireless network card TL-WN620G installation, configuration and network communication implementation Zhang Xiaojun
12.27.2006
Recently, a tplink usb wireless network card is installed on linux. I hope this will help you a little !!!!
Kernel is 2.6.15-1.2054 _ FC5-i686; the driver is using ndiswrapper; while checking whether ndiswrapper supports your Nic http://ndiswrapper.sourceforge.net/mediawiki/index.php/List)
1. Install the kernel development kit when installing fc5.
2. Download The ndiswrapper source code ndiswrapper-1.32.tar.gz.
Http://sourceforge.net/projects/ndiswrapper)
3. Install ndiswrapper
Reference http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation)
(1) first, create a connection with the kernel source code:
# Ln-s/usr/src/kernels/2.6.15-1.2054 _ FC5-i686/lib/modules/2.6.15-1.2054 _ FC5/build
(2) installation: # tar-zxvf ndiswrapper-1.32.tar.gz.tar.gz
# Cd ndiswrapper-1.32
4. Install driverloader-2.35_k2.6.15_1.2054_FC5.stk16-1fdr.i686.rpm.zip
Because the latest 2.6 kernel has an enabel/disable 4 K stack size option, the Fedora kernel disables this option and uses the 4 K stack size at the same time. When you load the kernel module modprobe ndiswrapper, a warning is displayed. the driver you run may need a stack larger than 4 K. Therefore, the 16 K stack kernel needs to be installed.
Download Site: http://www.linuxant.com/driverloader/wlan/full/downloads.php)
Unzip: # unzip driverloader-2.35_k2.6.15_1.2054_FC5.stk16-1fdr.i686.rpm.zip
Install rpm package: # rpm-I driverloader-2.35_k2.6.15_1.2054_FC5.stk16-1fdr.i686.rpm
5. Compile ndiswrapper.
# Make uninstall
# Make distclean
# Make
# Make install
6. Install WINDOWS driver
Download the driver for TP-LINK usb NIC (tl-wn620g) for windows xp.
Http://www.tp-link.com.cn/) in the xp driver find net5523.inf, net5523.sys, athfmwdl. inf, athfmwdl. sys file. In the same directory. Install the windows xp driver to ndiswrapper.
# Ndiswrapper-I net5523.inf
# Ndiswrapper-I sthfmwdl. inf
# Ndiswrapper-I TL-WN620G.inf
In this step, install the appropriate file under/etc/ndiswrapper/. You can perform the following operations to check and confirm ndiswrapper:
# Ndiswrapper-l
7. Load the kernel module
# Modprobe ndiswrapper
After the network card is successfully loaded, the light will start to flash normally.
8. Run dmesg | tail to check if it is installed.
Usb 5-8: reset high speed USB device using ehci_hcd and address 2
Ndiswrapper: driver net5523 (, 02/24/2005, 1.1.0.25) loaded
Wlan0: ethernet device 00: 0a: eb: a5: 81: e0 using NDIS driver: net5523, version: 0x10001, NDIS version: 0x501, vendor :'', 0CF3: 0001. f. conf
Wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Usbcore: registered new driver ndiswrapper
The above information indicates that the device has been installed.
# Iwconfig
Wlan0 IEEE 802.11b ESSID: off/any
Mode: Managed Frequency: 2.412 GHz Access Point: Not-Associated
Bit Rate: 108 Mb/s
Encryption key: off
Power Management: off
Link Quality: 0 Signal level: 0 Noise level: 0
Rx invalid nwid: 0 Rx invalid crypt: 0 Rx invalid frag: 0
Tx excessive retries: 0 Invalid misc: 0 Missed beacon: 0
9. configuration interface:
# Iwconfig wlan0 essid ESSID
# Iwlist wlan0 scan
Wlan0 Scan completed:
Cell 01-Address: 00: 14: 78: A5: AE: D4
ESSID: "TP-LINK"
Protocol: IEEE 802.11g
Mode: Managed
Frequency: 2.437 GHz (Channel 6)
Quality: 78/100 Signal level:-46 dBm Noise level:-96 dBm
Encryption key: off
Bit Rates: 1 Mb/s, 2 Mb/s, 5.5 Mb/s, 11 Mb/s, and 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
48 Mb/s; 54 Mb/s
Extra: bcn_int = 100.
Extra: atim = 0
The nearby AP information is found. This indicates that the NIC has been successfully driven and can be used.
10. Create a ifcfg-wlan0 configuration file in the/etc/sysconfig/network-scripts directory.
The following is my configuration information for your reference only:
DEVICE = wlan0
BOOTPROTO = dhcp
HWADDR = 00: 14: 78: A5: AE: D4
ONBOOT = yes
USERCTL = no
IPV6INIT = no
PEERDNS = yes
ESSID = "TP-LINK"
Protocol = IEEE802.11g
Mode = Managed
11. Run system-config-network and you will find that you just need to start the network card wlan0.
# Ifconfig wlan0 up suspends the network interface, and a simple configuration (neat command) can enable normal Nic communication.
Success.
For installation information, refer to the following website:
Http://ndiswrapper.sourceforge.net/mediawiki/index.php/Distributions)
Attachment:
Procedure: (for reference only)
[Root @ localhost ~] # Cd/home/xjzhang/
[Root @ localhost xjzhang] # cd ndiswrapper-1.32 // extract location of ndiswrapper.
[Root @ localhost ndiswrapper-1.32] # make uninstall
NOTE: Not all installed files are removed, as different distributions install nd iswrapper files at different places.
Run uninstall as upload times as necessary until no "removing" messages appear bel ow.
Removing/sbin/loadndisdriver
Removing/usr/sbin/ndiswrapper
Removing/usr/sbin/ndiswrapper-buginfo
Removing/lib/modules/2.6.15-1.2054 _ FC5/misc/ndiswrapper. ko
[Root @ localhost ndiswrapper-1.32] # make distclean
Make-C driver clean
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/driver'
Rm-rf ndiswrapper. ko ndiswrapper. o crt. o hal. o iw_ndis.o loader. o ndis. o ntoske rnel. o ntoskernel_io.o pe_linker.o pnp. o proc. o rtl. o wrapmem. o wrapndis. o wrapp er. o usb. o divdi3.o usb. o win2lin_stubs.o \
Divdi3.o workqueue. o. *. ko. cmd. *. o. cmd \
Ndiswrapper. mod. [oc] * ~ . Tmp_versions Modules. symvers Module. symvers
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/driver'
Make-C utils clean
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/utils'
Rm-f *~ *. O loadndisdriver
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/utils'
Rm-f *~
Rm-fr ndiswrapper-1.32 ndiswrapper-1.32.tar.gz patch-stamp
Make-C driver distclean
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/driver'
Rm-rf ndiswrapper. ko ndiswrapper. o crt. o hal. o iw_ndis.o loader. o ndis. o ntoske rnel. o ntoskernel_io.o pe_linker.o pnp. o proc. o rtl. o wrapmem. o wrapndis. o wrapp er. o usb. o divdi3.o usb. o win2lin_stubs.o \
Divdi3.o workqueue. o. *. ko. cmd. *. o. cmd \
Ndiswrapper. mod. [oc] * ~ . Tmp_versions Modules. symvers Module. symvers
Rm-f * _ exports. h. \ # * win2lin_stubs.h
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/driver'
Make-C utils distclean
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/utils'
Rm-f *~ *. O loadndisdriver
Rm-f .\#*
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/utils'
Rm-f .\#*
[Root @ localhost ndiswrapper-1.32] # make
Make-C driver
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/driver'
Make-C/lib/modules/2.6.15-1.2054 _ FC5/build SUBDIRS =/home/xjzhang/ndiswrapper-1. 32/driver
Make [2]: Entering directory '/usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i6 86'
LD/home/xjprofile/ndiswrapper-1.32/driver/built-in.o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/crt. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/hal. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/iw_ndis.o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/loader. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/ndis. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/ntoskernel. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/ntoskernel_io.o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/pe_linker.o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/pnp. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/proc. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/rtl. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/wrapmem. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/wrapndis. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/wrapper. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/usb. o
CC [M]/home/xjzhang/ndiswrapper-1.32/driver/divdi3.o
LD [M]/home/xjzhang/ndiswrapper-1.32/driver/ndiswrapper. o
Building modules, stage 2.
MODPOST
CC/home/xjzhang/ndiswrapper-1.32/driver/ndiswrapper. mod. o
LD [M]/home/xjzhang/ndiswrapper-1.32/driver/ndiswrapper. ko
Make [2]: Leaving directory '/usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i68 6'
* ** WARNING: This kernel seems to use 4 K stack size option (CONFIG_4KSTACKS); ma ny Windows drivers will not work with this option enabled. Disable CONFIG_4KSTAC KS option, recompile and install kernel
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/driver'
Make-C utils
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/utils'
Gcc-g-Wall-I ../driver-o loadndisdriver. c
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/utils'
[Root @ localhost ndiswrapper-1.32] # make install
Make-C driver install
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/driver'
Make-C/lib/modules/2.6.15-1.2054 _ FC5/build SUBDIRS =/home/xjzhang/ndiswrapper-1.32/driver
Make [2]: Entering directory '/usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i686'
Building modules, stage 2.
MODPOST
Make [2]: Leaving directory '/usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i686'
* ** WARNING: This kernel seems to use 4 K stack size option (CONFIG_4KSTACKS); using Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel
Echo/lib/modules/2.6.15-1.2054 _ FC5/misc
/Lib/modules/2.6.15-1.2054 _ FC5/misc
Mkdir-p/lib/modules/2.6.15-1.2054 _ FC5/misc
Install-m 0644 ndiswrapper. ko/lib/modules/2.6.15-1.2054 _ FC5/misc
/Sbin/depmod-a 2.6.15-1.2054 _ FC5-B/
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/driver'
Make-C utils install
Make [1]: Entering directory '/home/xjzhang/ndiswrapper-1.32/utils'
Install-D-m 755 loadndisdriver/sbin/loadndisdriver
Install-D-m 755 ndiswrapper/usr/sbin/ndiswrapper
Install-D-m 755 ndiswrapper-buginfo/usr/sbin/ndiswrapper-buginfo
NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
Make [1]: Leaving directory '/home/xjzhang/ndiswrapper-1.32/utils'
Mkdir-p-m 0755/usr/share/man/man8
Install-m 644 ndiswrapper.8/usr/share/man/man8
Install-m 644 loadndisdriver.8/usr/share/man/man8
[Root @ localhost ndiswrapper-1.32] # ndiswrapper-I net5523.inf
Driver net5523 is already installed
# Ndiswrapper-I athfmwdl. inf
Driver athfmwdl is already installed
[Root @ localhost ndiswrapper-1.32] # ndiswrapper-l
Athfmwdl: driver installed
Net5523: driver installed
[Root @ localhost ndiswrapper-1.32] # modprobe ndiswrapper // restart and start the NIC again from this step
[Root @ localhost ndiswrapper-1.32] # dmesg | tail
Audit (1167183586.828: 12): avc: granted {execmem} for pid = 2444 comm = "nautilus" scontext = root: system_r: unconfined_t: s0-s0: c0.c255 tcontext = root: system_r: unconfined_t: s0-s0: c0.c255 tclass = process
Audit (1167183586.828: 13): avc: granted {execmem} for pid = 2444 comm = "nautilus" scontext = root: system_r: unconfined_t: s0-s0: c0.c255 tcontext = root: system_r: unconfined_t: s0-s0: c0.c255 tclass = process
Audit (1167183586.828: 14): avc: granted {execmem} for pid = 2444 comm = "nautilus" scontext = root: system_r: unconfined_t: s0-s0: c0.c255 tcontext = root: system_r: unconfined_t: s0-s0: c0.c255 tclass = process
Audit (1167183642.660: 15): avc: granted {execmem} for pid = 2444 comm = "nautilus" scontext = root: system_r: unconfined_t: s0-s0: c0.c255 tcontext = root: system_r: unconfined_t: s0-s0: c0.c255 tclass = process
Ndiswrapper version 1.32 loaded (preempt = no, smp = no)
Usb 1-8: reset high speed USB device using ehci_hcd and address 2
Ndiswrapper: driver net5523 (, 02/24/2005, 1.1.0.25) loaded
Wlan0: ethernet device 00: 0a: eb: a5: 81: e0 using NDIS driver: net5523, version: 0x10001, NDIS version: 0x501, vendor :'', 0CF3: 0001. f. conf
Wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Usbcore: registered new driver ndiswrapper
[Root @ localhost ndiswrapper-1.32] # iwconfig
Lo no wireless extensions.
Eth0 no wireless extensions.
Sit0 no wireless extensions.
Wlan0 IEEE 802.11b ESSID: off/any
Mode: Managed Frequency: 2.412 GHz Access Point: Not-Associated
Bit Rate: 54 Mb/s
Encryption key: off
Power Management: off
Link Quality: 0 Signal level: 0 Noise level: 0
Rx invalid nwid: 0 Rx invalid crypt: 0 Rx invalid frag: 0
Tx excessive retries: 0 Invalid misc: 0 Missed beacon: 0
[Root @ localhost ndiswrapper-1.32] # iwconfig wlan0 essid ESSID
[Root @ localhost ndiswrapper-1.32] # iwlist wlan0 scan
Wlan0 Scan completed:
Cell 01-Address: 00: 14: 78: A5: AE: D4
ESSID: "TP-LINK"
Protocol: IEEE 802.11g
Mode: Managed
Frequency: 2.437 GHz (Channel 6)
Quality: 100/100 Signal level:-28 dBm Noise level:-96 dBm
Encryption key: off
Bit Rates: 1 Mb/s, 2 Mb/s, 5.5 Mb/s, 11 Mb/s, and 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
48 Mb/s; 54 Mb/s
Extra: bcn_int = 100.
Extra: atim = 0
[Root @ localhost ~] # Iwconfig
Lo no wireless extensions.
Eth0 no wireless extensions.
Sit0 no wireless extensions.
Wlan0 IEEE 802.11b ESSID: "ESSID" Nickname: "localhost. localdomain"
Mode: Managed Frequency: 2.437 GHz Access Point: Not-Associated
Bit Rate = 108 Mb/s
Encryption key: off
Power Management: off
Link Quality: 0 Signal level: 0 Noise level: 0
Rx invalid nwid: 0 Rx invalid crypt: 0 Rx invalid frag: 0
Tx excessive retries: 0 Invalid misc: 0 Missed beacon: 0
[Root @ localhost ~] # Ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56 (84) bytes of data.
From 192.168.1.2 icmp_seq = 2 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 3 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 4 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 6 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 7 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 8 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
11 packets transmitted, 0 received, + 6 errors, 100% packet loss, time 10000 ms
, Pipe 3
[Root @ localhost ~] # Ifconfig wlan0 up // it seems that the wlan0 network must be suspended.
[Root @ localhost ~] # Ping 192.168.0.101 // test Ethernet
PING 192.168.0.101 (192.168.0.101) 56 (84) bytes of data.
64 bytes from 192.168.0.101: icmp_seq = 1 ttl = 64 time = 0.071 MS
64 bytes from 192.168.0.101: icmp_seq = 2 ttl = 64 time = 0.062 MS
64 bytes from 192.168.0.101: icmp_seq = 3 ttl = 64 time = 0.062 MS
64 bytes from 192.168.0.101: icmp_seq = 4 ttl = 64 time = 0.060 MS
--- 192.168.0.101 ping statistics ---
4 packets transmitted, 4 bytes ed, 0% packet loss, time 2999 ms
Rtt min/avg/max/mdev = 0.060/0.063/0.071/0.010 MS
// # Neat sets the network working mode of the IP addresses 192.168.1.2 and 192.168.1.3 to Infrastructuer uer (distributed)
[Root @ localhost ~] # Ping 192.168.1.1 // vro
PING 192.168.1.1 (192.168.1.1) 56 (84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq = 1 ttl = 64 time = 6.67 MS
64 bytes from 192.168.1.1: icmp_seq = 2 ttl = 64 time = 1.31 MS
64 bytes from 192.168.1.1: icmp_seq = 3 ttl = 64 time = 1.30 MS
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 bytes ed, 0% packet loss, time 1999 ms
Rtt min/avg/max/mdev = 1.307/3.100/6.676/2.528 MS
[Root @ localhost ~] # Ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56 (84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq = 1 ttl = 64 time = 0.068 MS
64 bytes from 192.168.1.2: icmp_seq = 2 ttl = 64 time = 0.063 MS
64 bytes from 192.168.1.2: icmp_seq = 3 ttl = 64 time = 0.063 MS
64 bytes from 192.168.1.2: icmp_seq = 4 ttl = 64 time = 0.063 MS
--- 192.168.1.2 ping statistics ---
4 packets transmitted, 4 bytes ed, 0% packet loss, time 2999 ms
Rtt min/avg/max/mdev = 0.063/0.064/0.068/0.006 MS
[Root @ localhost ~] # Ping 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56 (84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq = 1 ttl = 128 time = 6.61 MS
64 bytes from 192.168.1.3: icmp_seq = 2 ttl = 128 time = 2.13 MS
64 bytes from 192.168.1.3: icmp_seq = 3 ttl = 128 time = 2.10 MS
64 bytes from 192.168.1.3: icmp_seq = 4 ttl = 128 time = 2.08 MS
64 bytes from 192.168.1.3: icmp_seq = 5 ttl = 128 time = 2.05 MS
64 bytes from 192.168.1.3: icmp_seq = 6 ttl = 128 time = 2.27 MS
--- 192.168.1.3 ping statistics ---
6 packets transmitted, 6 encapsulated ed, 0% packet loss, time 5002 ms
Rtt min/avg/max/mdev = 2.057/2.877/6.615/1.673 MS
// # Neat sets the network working mode of the IP addresses 192.168.1.2 and 192.168.1.3 to Adhoc (peering)
[Root @ localhost ~] # Ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56 (84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq = 1 ttl = 64 time = 0.068 MS
64 bytes from 192.168.1.2: icmp_seq = 2 ttl = 64 time = 0.060 MS
64 bytes from 192.168.1.2: icmp_seq = 3 ttl = 64 time = 0.063 MS
--- 192.168.1.2 ping statistics ---
3 packets transmitted, 3 bytes ed, 0% packet loss, time 1998 ms
Rtt min/avg/max/mdev = 0.060/0.063/0.068/0.009 MS
[Root @ localhost ~] # Ping 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56 (84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq = 1 ttl = 128 time = 5.85 MS
64 bytes from 192.168.1.3: icmp_seq = 2 ttl = 128 time = 1.83 MS
64 bytes from 192.168.1.3: icmp_seq = 3 ttl = 128 time = 1.80 MS
64 bytes from 192.168.1.3: icmp_seq = 4 ttl = 128 time = 3.13 MS
64 bytes from 192.168.1.3: icmp_seq = 5 ttl = 128 time = 1.75 MS
--- 192.168.1.3 ping statistics ---
5 packets transmitted, 5 bytes ed, 0% packet loss, time 4000 ms
Rtt min/avg/max/mdev = 1.757/2.875/5.852/1.576 MS
[Root @ localhost ~] # Ping 192.168.1.1 // vro does not work in peer-to-peer mode
PING 192.168.1.1 (192.168.1.1) 56 (84) bytes of data.
From 192.168.1.2 icmp_seq = 2 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 3 Destination Host Unreachable
From 192.168.1.2 icmp_seq = 4 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, + 3 errors, 100% packet loss, time 4000 ms
, Pipe 3
The above information indicates that the USB wireless network adapter works properly. Now, the WINDOWS Driver is mounted to LINUX.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.