DM3359平台移植USB WIFI RTL8192CU驱动

2019-07-12 19:24发布

参考:

wpa_supplicant无线网络配置 :http://blog.163.com/wxiongn@126/blog/static/11788203820102262748358/

http://alansun.iteye.com/blog/1150893 嵌入式linux usb wifi移植[s3c6410平台原创]:blog.chinaunix.net/uid-8048969-id-3251135.html DM8168-ARM平台移植USB WIFI RTL8192CU驱动:http://www.61ic.com/Article/DaVinci/TMS320DM81x/201305/48855.html 我这次是在

WIFI on BeagleBone:


Steps
  1. Get a binary of the Realtek drivers
  2. Install the driver
  3. Configure your WIFI settings
1) Build the RTL8192 Driver Note: You can get the pre-patched source code here and a pre-built binary of the driver here.  These may or may not work though, so I would recommend building it yourself.
  1. Download the Unix/Linux driver from the Realtek web site - It will be called something like RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
  2. Unzip the file and then unpack the driver source which is  driver/tl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz in the zip file cp rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz ~/ tar xvfz rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz cd rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105
  3. Download this patch to add BB config and to fix building on linux 3.8 into the driver directory and apply it wget https://raw.github.com/cmicali/rtl8192cu_beaglebone/master/util/rtl-8192-beaglebone-linux-3.8.patch patch -p1 < rtl-8192-beaglebone-linux-3.8.patch
  4. Build the driver - Replace your_kernel_dir with the root of your BeagleBone 3.8 kernel source (mine is ~/projects/beaglebone_kernel/kernel) make KSRC=your_kernel_dir
***注意:3处的patch必须做,4处的KSRC是当前所在源码的绝对路径,当编译模块.ko文件时make KSRC=~/source-kernel/,当要编译进内核镜像,则可以把KSRC=~/source-kernel修改进rtl8192cu目录下的makefile里面。
2) Install the RTL8192 Driver     此处直接在目标板上insmod 8192cu.ko或者下载镜像即可 3) Configure your Access Point
  1. Edit /var/lib/connman/settings and enable WIFI [global] OfflineMode=false [Wired] Enable=true Tethering=false [WiFi] Enable=true Tethering=false
  2. Encrypt your passphrase wpa_passphrase YourSSID YourPassphrase
  3. Edit /var/lib/connman/wifi.config and set it to the following [service_home] Type=wifi Name=YourSSID Passphrase=YourEncryptedPassphrase
  4. Plug in your WIFI adaptor and reboot shutdown -r 0
之后插上usb wifi之后,就会自动获取ip,上网
需要细看的话,这里有以上的详细文档:http://bonenotes.tumblr.com/
~~