Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:usb:host_mode:usb_wifi [12 Jul 2020 10:53] – [Identify & Confirm the Chipset] sullivan liuresources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:usb:host_mode:usb_wifi [04 Feb 2021 03:20] (current) cathy fang
Line 1: Line 1:
 ====== USB to Wireless Dongle (Wifi) Support  ====== ====== USB to Wireless Dongle (Wifi) Support  ======
-[[https://en.wikipedia.org/wiki/Wireless_USB|Wireless_USB]] provides a approach for user to use the WIFI by adding a USB wireless dongle to the host (e.g. adsp-sc5xx board ) and the corresponding software configurations. This page describes how to use the USB Wireless (Wifi) feature on ADSP-sc5xx boards.+[[wp>Wireless_USB|Wireless_USB]] provides a approach for user to use the WIFI by adding a USB wireless dongle to the host (e.g. adsp-sc5xx board ) and the corresponding software configurations. This page describes how to use the USB Wireless (Wifi) feature on ADSP-sc5xx boards.
  
 **Using USB wireless Dongle in Linux:** **Using USB wireless Dongle in Linux:**
Line 26: Line 26:
   : chipset: ''Realtek RTL8188SU''   : chipset: ''Realtek RTL8188SU''
   : driver: ''rtl8172u.ko''   : driver: ''rtl8172u.ko''
-  : firmware: ''firmware/rtlwifi/rtl8712u.bin''+  : firmware: ''lib/firmware/rtlwifi/rtl8712u.bin''
   ; **ID 0cf3:7015**   ; **ID 0cf3:7015**
   : chipset: ''Atheros AR7010+AR9287''   : chipset: ''Atheros AR7010+AR9287''
   : driver: ''ath9k.ko''   : driver: ''ath9k.ko''
-  : firmware ''''+  : firmware ''lib/firmware/ath9k_htc/htc_7010-1.4.0.fw''
   ; **ID 0bda:818b**   ; **ID 0bda:818b**
   : chipset:''Realtek RTL8192EU 802.11b/g/n ''   : chipset:''Realtek RTL8192EU 802.11b/g/n ''
   : driver: '' RTL8xxxEU.ko''    : driver: '' RTL8xxxEU.ko'' 
-  : firmware: ''Monospaced Text'' +  : firmware: ''lib/firmware/rtlwifi/rtl8192eu_nic.bin''
- +
  
 ---- ----
- 
 ===== Hardware Configuration ===== ===== Hardware Configuration =====
 Connect the USB micro-A plug to A receptacle adaptor cable (found in the EZ-Board box) to the OTG port, below photo shows when it acts as Host and connected to a USB Wireless dongle device. Connect the USB micro-A plug to A receptacle adaptor cable (found in the EZ-Board box) to the OTG port, below photo shows when it acts as Host and connected to a USB Wireless dongle device.
-<WRAP center round todo 100%> + 
-To doadd a diagram of board and Wireless Dongle connection    +{{ :resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:usb:host_mode:wireless.jpg?nolink&600 |}}
-</WRAP>+
  
  
Line 55: Line 52:
 <code shell > <code shell >
 Device Drivers  ---> Device Drivers  --->
- [*] USB support  ---> +       [*] USB support  ---> 
- <*>   Support for Host-side USB+         <*>   Support for Host-side USB
                 [*]   Enable USB persist by default                  [*]   Enable USB persist by default 
                 <*>   Inventra Highspeed Dual Role Controller                 <*>   Inventra Highspeed Dual Role Controller
Line 65: Line 62:
                 [N]     Disable DMA (always use PIO)                   [N]     Disable DMA (always use PIO)  
                 [*]       Inventra                  [*]       Inventra 
 +</code>
 +dual role mode need the g_serial and CDC module
 +<code shell>
 +Device Drivers  --->
 +       [*] USB support  --->
 +                <*>   USB Gadget Support  --->
 +                      <M>   USB Gadget precomposed configurations
 +                      <M>     Serial Gadget (with CDC ACM and CDC OBEX support) 
 +                      <M>     CDC Composite Device (Ethernet and ACM)  
 </code> </code>
  
Line 88: Line 94:
 **Enable the Wireless Chipset supported Drivers** **Enable the Wireless Chipset supported Drivers**
  
-For the ID 2001:3306 chipset Realtek RTL8188SU+For the ID **''2001:3306''** chipset Realtek **''RTL8188SU''**
 <code shell> <code shell>
 Device Drivers  ---> Device Drivers  --->
Line 98: Line 104:
 </code> </code>
  
 +For the ID **''0cf3:7015''** chipset: Atheros **''AltAR7010+AR9287''**
 <hidden> <hidden>
-For the ID 0cf3:7015 chipset: Atheros AltAR7010+AR9287 
 <code shell> <code shell>
 Device Drivers  ---> Device Drivers  --->
Line 105: Line 111:
               [*]   Wireless LAN  --->               [*]   Wireless LAN  --->
                     [*]   Atheros/Qualcomm devices                      [*]   Atheros/Qualcomm devices 
-                    [*]     Atheros bluetooth coexistence support 
                     <*>     Atheros 802.11n wireless cards support                     <*>     Atheros 802.11n wireless cards support
 +                    [*]     Atheros bluetooth coexistence support
                     [*]       Atheros ath9k AHB bus support                     [*]       Atheros ath9k AHB bus support
                     [*]       Atheros ath9k ACK timeout estimation algorithm (EXPERIMENTAL)                      [*]       Atheros ath9k ACK timeout estimation algorithm (EXPERIMENTAL) 
Line 117: Line 123:
 </code></hidden> </code></hidden>
  
 +For the ID **''0bda:818b''** chipset **''rtl8188eu''** 
 <hidden> <hidden>
-For the ID 0bda:818b chipset rtl8188eu  
 <code shell> <code shell>
 +Device Drivers  ---> 
 +       [*] Network device support  ---> 
 +              [*]   Wireless LAN  ---> 
 +                    [*]   Realtek devices 
 +                    <*>     RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support    
 +                    [*]       Include support for untested Realtek 8xxx USB devices (EXPERIMENTAL) 
 +       [*] Staging drivers  ---> 
 +              <M>   Realtek RTL8188EU Wireless LAN NIC driver 
 +       [*]     Realtek RTL8188EU AP mode  
 </code></hidden> </code></hidden>
  
 **Adding the corresponding Firmware** **Adding the corresponding Firmware**
  
-Please modify and add the below codes to ''sources/meta-adi/meta-adi-adsp-sc5xx/recipes-adi/images/adsp-sc5xx-full.bb'' to enable the **wpa-supplicant ** and **wireless-tools ** tools and the chipset corresponding Firmware.+Standard Yocto layer provides a "sources/poky/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb" for user to get some common firmware. please modify and add the below codes to ''sources/meta-adi/meta-adi-adsp-sc5xx/recipes-adi/images/adsp-sc5xx-full.bb'' to enable the **wpa-supplicant ** and **wireless-tools ** tools and the chipset corresponding Firmware.
 <code java>  <code java> 
 USB_WIFI = " \ USB_WIFI = " \
Line 137: Line 151:
 " "
 </code> </code>
 +
 +Add the additional Firmware:
 +<hidden>
 +If we can't find the target chipset supported firmware from the linux-firmware_git.bb, we should write our own .bb file to fetch the corresponding Firmware or just adding it manually.
 +
 +**1. Manually fetch Firmware**
 +
 +<code c++>
 +git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/vkoul/firmware
 +sudo cp -r firmware/rtlwifi/rtl8192eu_nic.bin /romfs/lib/firmware/rtlwifi
 +</code>
 +</hidden>
  
 Reference: Reference:
Line 151: Line 177:
 Networking Utilities  ---> Networking Utilities  --->
        [*] Enable IPv6 support          [*] Enable IPv6 support  
-       [*] udhcp+       [*] udhcpc
        [*]   Verify that the offered address is free, using ARP ping         [*]   Verify that the offered address is free, using ARP ping 
        [*]   Do not pass malformed host and domain names        [*]   Do not pass malformed host and domain names
resources/tools-software/linuxdsp/docs/linux-kernel-and-drivers/usb/host_mode/usb_wifi.1594543983.txt.gz · Last modified: 12 Jul 2020 10:53 by sullivan liu