WifiSupport

Android WIFI Usage

Requirements

On SAMA5D3xEK and SAMA5D4EK, it supports cm8723u USB module, which is a WIFI and BT combo module. For more detail information please see here.
On AT91SAM9M10G45-EK or AT91SAM9X5EK Kit, it support H&D SPB104 SDIO module, for more detail information please see here.

Setup WIFI

  • Power up the system

    Desktop-2.3.5_r1.png

  • Navigate to home screen and click Settings icon

    Settings_Icon.png

  • Navigate to Wireless & networks menu and click it

    Settings_WirelessNetwork_settings.png

  • Click Wi-Fi to enable WIFI, if it is not be enabled

    Click_Wi-Fi.png

  • Wi-Fi has been enabled

    Enabled_WiFi.png

  • Navigate to Wi-Fi settings menu, it will list the Wi-Fi networks

    Wi-Fi_settings_clicked.png

    Wi-Fi_settings.png

  • Choose one AP and connect to it. If password is needed, please enter it. Then it will connect to the AP

    WiFi_input_passwd.png

    Wi-Fi_connected.png

  • Browse network through the WIFI connection

    BrowseNetwork.png

Enable WIFI module

Take H&D SDIO WIFI module and SAM9M10 EK with Android4SAM 2.0 as an example

WIFI driver compiling

  • Get the WIFI hardware module. For example, H&D SDIO WIFI module.
  • Get the WIFI driver package and build it with the Linux kernel you're using.
  • After a successful compiling, you will get the driver module .ko file.

Android modification

  • Modify the "<android>/atmel/sam9m10/BoardConfig.mk" to set WIFI_MODULE := SDIO
  • Copy the driver ko file to "<android>/device/atmel/common/config/wifi"
  • Modify the "<android>/device/atmel/common/config/wifi/Android.mk" to add the driver file.
    For example: after $(LOCAL_PATH)/owl_sam9m10.ko:system/lib/modules/owl_sam9m10.ko add to this file, it looks like as following:
       ifeq ($(WIFI_MODULE),SDIO) 
       PRODUCT_COPY_FILES += \
            $(LOCAL_PATH)/owl_sam9m10.ko:system/lib/modules/owl_sam9m10.ko \
            $(LOCAL_PATH)/owl_sam9x5.ko:system/lib/modules/owl_sam9x5.ko \
            $(LOCAL_PATH)/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
       endif
       
  • Modify the "<android>/device/atmel/common/config/wifi/wpa_supplicant.conf" to specify the name of control interface.
    Take H&D as an example, it looks like: ctrl_interface=owl0

  • Modify the <android>/device/atmel/sam9m10/init.atmel.rc
    Set the parameter of the script (e.g: owl0 is for H&D WIFI module)
        setprop wifi.interface owl0
    
        service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iowl0 -c/data/misc/wifi/wpa_supplicant.conf
        
  • Recompile the Android source code and regenerate the Android file system
  • Flash the image to EK board and test the WIFI


r7 - 18 Nov 2014 - 08:13:03 - VoiceShen
 
Android4SAM

Copyright by the contributing authors. All material on the platform is the property of the contributing authors.

Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions

Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.This site is powered by the TWiki collaboration platform

ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.

Under the terms of the Creative Commons Attribution License

Syndicate this siteRSS ATOM