OpenSUSE11.4 install Inspector 336 wireless network adapter (NW336V2)

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: usrsrclinux # lsusbBus001Device001: ID1d6b: 0002LinuxFoundation2. 0roothubBus002Device

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 # lsusbBus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hubBus 002 Device

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 # lsusbBus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hubBus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hubBus 004 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hubBus 005 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hubBus 004 Device 002: ID 1c4f: 0002 SiGma Micro Bus 004 Device 003: ID 0e8f: 0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174Bus 004 Device 004: ID 192f: 0416 Avago Technologies, Pte. bus 004 Device 005: ID 0133: 8176 Realtek semiconducorp. rtl8188cu802.11n WLANopenSUSE:/usr/src/linux # uname-aLinux openSUSE. me 2.6.37.1-1.2-desktop #1 smp preempt 10:34:10 + 0100 i686 i686 i386 GNU/Linux


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

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

OpenSUSE:/usr/src/linux # ls/usr/srclinux linux-2.6.37.1-1.2 linux-obj packages


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/rtl8192CU_linux_v2.0.974.20100803/OS _dep/osdep_service.c: 291: 2: error: implicit declaration function 'init _ MUTEX'


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/buildlrwxrwxrwx 1 root 35 March 23 13:02/lib/modules/2.6.32-5-686/build->/usr/src linux-headers-2.6.32-5-686

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. You only need to 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 [root @ localhost src] # pwd/usr/src [root @ localhost src] # lslinux-2.6.33.7-desktop-2mnb/

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.