Giter Site home page Giter Site logo

rtl8821cu's Introduction

rtl8811cu Based on rtl8821cu

Background

I bought an USB-wifi-adapter "TP-Link TL-WDN5200H" for my ubuntu server, whose core chip is "RTL8811CU" (ID: 0x0bda:0xc811) by The Realtek Corp., but this product only has official driver for WINDOWS system.

To make it work on ubuntu, I have searched for many relavent guides on the Internet, such as Driver for rtl8811cu? - Ubuntu Forums and TP-LINK TL-WDN5200 usb wifi adapter install on ubuntu?. But they didn't solve my problem until I found that "rtl8821cu driver source code contains some support for rtl8811cu" in alteman's rtl8821cu repo as follow.

#ifdef CONFIG_RTL8821C
	/*=== Realtek demoboard ===*/
	...
	{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK, 0xC811, 0xff, 0xff, 0xff), .driver_info = RTL8821C}, /* 8811CU */
	...
	/*=== Customer ID ===*/
#endif

I changed a little in Makefile of alteman's repo for compiling on i386-PC platform.

And finally, the compiled driver can drive my USB-wifi-adapter on ubuntu.

How to do

Install driver

copy the whole repo to your PC, enter (your_dir)/rtl8821cu/, open a terminal and type:

make
sudo make install
sudo modprobe 8821cu

the driver installed.

Plug your USB-wifi-adapter into your PC

If wifi can be detected, congratulations. If not, maybe you need to switch your device usb mode by the following steps in terminal:

  1. find your usb-wifi-adapter device ID, like "0bda:1a2b", by type:
lsusb
  1. switch the mode by type: (the device ID must be yours.)
sudo usb_modeswitch -KW -v 0bda -p 1a2b

It should work.

Something more

I think this driver source code can be compiled for a series of Realtek wifi devices by minor changes with Makefile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.