DM3359平台移植USB WIFI RTL8192CU驱动

本文提供了详细的步骤指导,包括从Realtek官网下载并预处理RTL8192xC USB驱动,进行源码编译,安装驱动,以及配置BeagleBone上的无线网络设置。最后通过插入USB WIFI适配器并重启设备,实现自动获取IP地址并顺利上网。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考:

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/


~~

=============================================================================== Software Package - Component =============================================================================== 1. ReleaseNotes.pdf 2. document/ 2.1 Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf 2.2 Quick_Start_Guide_for_Station_Mode.pdf 2.3 wpa_cli_with_wpa_supplicant.pdf 2.4 HowTo_support_more_VidPids.pdf 2.5 Wireless_tools_porting_guide.pdf 2.6 HowTo_enable_driver_to_support_WIFI_certification_test.pdf 2.7 HowTo_enable_the_power_saving_functionality.pdf 2.8 Quick_Start_Guide_for_SoftAP.pdf 2.9 SoftAP_Mode_features.pdf 2.10 linux_dhcp_server_notes.txt 2.11 Quick_Start_Guide_for_Bridge.pdf 2.13 RTK_Wi-Fi_Direct_Programming_guide.pdf 3. driver/ 3.1 rtl8188C_8192C_usb_linux_v3.4.3_4369.20120622.tar.gz Naming rule: rtlCHIPS_linux_vM.N.P_ssss.yyyymmdd.tar.gz where: CHIPS: supported chips M: Major version N: miNor version P: Patch number s: SVN number y: package year m: package month d: package day 4. wpa_supplicant_hostapd/ 4.1 wpa_supplicant_hostapd-0.8_rtw_20120622.zip 4.1.1 wpa_supplicant The tool help the wlan network to communicate under the protection of WPAPSK mechanism (WPA/WPA2) and add WPS patch 4.1.2 hostapd 4.2 wpa_0_8.conf Configure file sample for wpa_supplicant-0.8 4.3 rtl_hostapd_2G.conf 4.4 rtl_hostapd_5G.conf Configure files for Soft-AP mode 2.4G/5G 4.5 p2p_hostapd.conf Configure file for hostapd for Wi-Fi Direct (P2P) 4.6 wpa_supplicant-0.6.9_wps_patch_20100201_1.zip 4.7 wpa_0_6_9.conf Configure file sample for wpa_supplicant-0.6.9 5. wireless_tools/ 5.1 wireless_tools.30.rtl.tar.gz 6. hardware_wps_pbc/ 6.1 Readme.txt 6.2 sample.c 7. WiFi_Direct_User_Interface/ 7.1 p2p_api_test_linux.c 7.2 p2p_ui_test_linux.c 7.3 p2p_test.h 7.4 S
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值