This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL18xx R8.5 release support for Android Jelly Bean 4.2.2 Devkit 4.1.1.....Urgently Help Needed !!



Hello All,

I am porting Android Jelly Bean 4.2.2 Devkit 4.1.1  on AM335x customized board having wifi WL18xx series.Kindly ,please let me the know the procedure for adding support of latest Wilink8 R8.5 release package.If possible please mention the steps. I have followed the 4.2.2 Devkit Porting Guide.But there no such procedure for compiling R8.5 drivers and utils.

I tried to use R8.5 package Android.mk file with similar heirarchy as in the Devkit 4.1.1 AOSP .But the modules are not compiled.

Please guide me in this regard.

Thanks and Regards

Nitish Mehta

  • Hi Nitish,

    Unfortunately we do not have a specific document or process that should help on that.
    More, we do not really have Android JB running on AM335x in TI.

    But, to add the WiLink R8.5 to your existing code, you should probably:
    - Need to create a compat out of R8.5, and then build it with the kernel used with this android release.
    - Need to take the firmware from R8.5 and replace in the android rootfs

    Shahar
  • Hi Sahar ,

    First of all thank you for your quick response.
    I am not able to compiled compat driver modules of AOSP wl18xx.I followed the Developer Guide and Porting of 4.2.2 Devkit 4.1.1.
    Kindly, please guide me in this.After that i will get a path for R8.5 as per your valuable suggestion.

    Regards
    Nitish Mehta
  • Hi Nitish,

    As I wrote, we do not have a process that can help on the porting

    To build a compat, please see follow link

    http://software-dl.ti.com/ecs/WiLink8/latest/index_FDS.html

    Please follow the instruction in the link provided, and after building the compat, and than please add that to your release

    Shahar

  • Hi Shahar ,
    I somehow manage to compile the R8.5 wilink wl18xx driver and inserted as kernel module in Android Kernel.
    But not i am not able to turn the Wifi "ON". as it gets "OFF " again from Settings->Wifi[UI] .
    I also able to understood that in file BoardConfig.mk
    i have to make the following changes.

    BOARD_WPA_SUPPLICANT_DRIVER := NL80211
    WPA_SUPPLICANT_VERSION := VER_0_8_X_TI
    BOARD_WLAN_DEVICE := wl12xx_mac80211
    BOARD_SOFTAP_DEVICE := wl12xx_mac80211
    WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wl18xx.ko"
    WIFI_DRIVER_MODULE_NAME := "wl18xx"

    i.e the last driver that need to be inserted in wl18xx list of modules to be inserted.
    So,when I "ON" the wifi ,hardware/libhardware_legacy/wlan/wifi.c inserts the module "wl18xx" and removes when it gets off.
    In my case ,when i ON it ,it again toggles back to OFF .I tried to debug it deeper.
    I found that when it gets OFF ,wl18xx module doesnt get rmmod as it should be ideally.
    Also,there are some logs regarding wpa_supplicant as it runs according to "wlan.driver.status" property which comes out to be "unloaded".

    Kindly ,please help me out.Overall i can say that i am not able to initialize the wpa_supplicant and scan the APs nearby.

    Regards
    Nitish Mehta
  • Hello All,

    I found the solution for the above problem.Just want to update it with the same.
    There was problem regarding the scheduling of driver "wl18xx" driver loaded.
    So, I put around 2 secs of delay in wifi_load_driver function after insertion of driver in hardware/libhardware_legacy/.........wifi.c file.

    So ,after this first driver gets loaded with making 'wlan0' node .After this all the rest of the operation for wpa_supplicant performs.
    Hope this might help someone.

    Regards
    Nitish Mehta