Install Inspector 11.4 wireless network adapter (nw336 V2) in opensuse 336)

Source: Internet
Author: User

The Zookeeper 336 and V2 use the rtl8188cus chip. In the given document (included with the CD), the supported kernel is 2.6.18-2.6.33, And the opensuse11.4 kernel version is 2.6.37.

Opensuse:/usr/src/Linux # lsusb <br/> bus 001 device 001: Id 1d6b: 0002 Linux Foundation 2.0 root hub <br/> bus 002 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root hub <br/> bus 003 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root hub <br/> bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root hub <br/> bus 005 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root hub <br/> bus 004 device 002: Id 1c4f: 0002 Sigma micro <br/> bus 004 device 003: Id 0e8f: 0016 greenasia Inc. 4 port USB 1.1 hub UH-174 <br/> bus 004 device 004: Id 192f: 0416 avago technologies, Pte. <br/> bus 004 device 005: Id 0133: 8176 RealTek semiconducorp. rtl8188cu802.11n WLAN <br/> opensuse:/usr/src/Linux # uname-A <br/> Linux opensuse. me 2.6.37.1-1.2-desktop #1 SMP preempt 10:34:10 + 0100 i686 i686 i386 GNU/Linux <br/>


First, you must install the kernel source code and kernel header files (many of these releases are not automatically installed ):

Zypper in kernel-source kernel-devel kernel-firmware kernel-desktop-devel kernel-devel <br/>

Now the kernel source code 2.6.37 should be added under the/usr/src directory:

Opensuse:/usr/src/Linux # ls/usr/src <br/> Linux linux-2.6.37.1-1.2 linux-2.6.37.1-1.2-obj Linux-OBJ packages <br/>


Then go to the 336 driver directory and copy the config file to/usr/src/Linux (Linux is a soft connection to the linux-2.6.37.1-1.2 ),

In this way, the config error cannot be found during compilation.


If the chip is 8192 (336v2), switch to the 336v2 directory and start the operation:

The following problems still occur during compilation. What is the problem?

/Home/wolf/temp/nw336v2/Linux/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/modules/OS _dep/osdep_service.c: 291: 2: Error: Implicit declaration of function 'init _ mutex '<br/>


This is because the new kernel uses sema_init () instead of init_mutex (), so init_mutex (prwlock) in OS _dep/osdep_service.c is modified to sema_init (prwlock, 1 ).


Make it after you finish the work.

# Make

If you can't wait to try the following

# Insmod 8192cu. Ko


You can install the module for a long time.

# Make install


You can also use

# Modprobe 8192cu. Ko

Open and load the module.



**************************************** **************************************** **********************************

In opensuse, I used the command line method to access the Internet, but later I thought it was good to use NetworkManager, so I used NetworkManager to access the Internet.

(It can be set through YaST. It is easy to conflict with each other rather than mixed use)



Refer:

Http://www.nerdlinux.com/post/124/

**************************************** **************************************** **************************************** ***********


The kernel versions of Debian squeeze (stable) and Debian wheezy are 2.6.32, but you may need to pay attention to them during installation.


After the kernel source code and header file are installed in Debian wheezy (only header files are required ), A soft connection to/lib/modules/2.6.32-5-686/build to/usr/src/linux-headers-2.6.32-5-686 is automatically created:

Wolf @ wheezy :~ $ LS-L/lib/modules/2.6.32-5-686/build <br/> lrwxrwxrwx 1 Root 35 March 23 13:02/lib/modules/2.6.32-5-686/build- >/usr/src/linux-headers-2.6.32-5-686 <br/>

Therefore, you can save one step during compilation (there is no such inexplicable error) and install

Kernel header file and source code:


# Aptitude install linux-source-2.6.32 linux-headers-2.6.32-5-686

Then make will also appear when the error, said no/usr/src/linux-headers-2.6.32-5-common/autoconf_rtl8192c_usb_linux.h,

You need to know the autoconf_rtl8192c_usb_linux.h server in/usr/src/Linux/headers-2.6.32-5-common. (It is strange why the common header file is used ).

You do not need to copy the config file, but the init_mutex (prwlock) should be changed to sema_init (prwlock, 1) (because this is in the kernel)


Debian Sid is similar to wheezy.



In Debian squeeze, although the 2.6.32 kernel is also used, but we didn't automatically add the soft connection mentioned above, so when making, will there be

/Lib/modules/2.6.32-5-686/build error occurs. In this case, you only need to create a connection (based on the above steps)

# Ln-S/lib/modules/2.6.32-5-686/build/usr/src/linux-headers-2.6.32-5-686/

The rest is the same as Debian Wheezy and Sid.

 

 

**************************************** **************************************** *****************************

In mandriva 2010.2, it seems to be simpler.
Change init_mutex (prwlock) to sema_init (prwlock, 1 ),

Then install the Kernel File and kernel source code.

[Root @ localhost SRC] # uprmi kernel-desktop586-2.6.33.7-2mnb kernel-desktop586-devel-2.6.33.7-2mnb <br/> [root @ localhost SRC] # PWD <br/>/usr/src <br/> [root @ localhost SRC] # ls linux-2.6.33.7-desktop-2mnb/<br/>

 

Then make compilation.

 

**************************************** **************************************** **********************************

The latest kernel 2.6.39 already has the firmware for this Nic, so you do not need to manually install it. Download the firmware and set it

Firmware-RealTek

 

**************************************** **************************************** **************************************** ****************

When the kernel module 8192cu. Ko is compiled in the latest mageia 1 (kernel 2.6.38), it is found that insmode is unsuccessful and appears

 

1 invalid module format

 

This is because the running kernel version is inconsistent with the kernel version (header file) linked during compilation. Originally, the kernel header file I installed was:


Kernel-tmb-desktop-devel-2.6.38.7-1.mga
Instead of the header file of the running kernel on my PC, the header file of the running kernel should be:


Kernel-desktop-devel-2.6.38.7-1.mga


Therefore, the compilation and loading are successful!

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.