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.

AM335X using WL1271 support

Other Parts Discussed in Thread: WL1271

Hi,

I am using WL1271-TypeTN Wi-Fi+BT module interfaced with AM335X processor and try to runt he demo application for Blutooth and Wi-Fi. when i run the BT(Profusion TI App) it is getting the reponse as below./ when i serach the scan it is not detecting any devices near by. Please let us know, if there is any necessary actions need to be taken under the kernel or ?

--------------------------------------------------------------------------------------------------

Arago Project http://arago-project.org am335x-evm ttyO0

Arago 2011.09 am335x-evm ttyO0

am335x-evm login: root
root@am335x-evm:~#
root@am335x-evm:~# [ 276.428405] Disabling lock debugging due to kernel taint
[ 276.452178] Bluetooth: Core ver 2.16
[ 276.456054] NET: Registered protocol family 31
[ 276.460754] Bluetooth: HCI device and connection manager initialized
[ 276.467407] Bluetooth: HCI socket layer initialized
[ 276.472534] Bluetooth: L2CAP socket layer initialized
[ 276.477844] Bluetooth: SCO socket layer initialized

--------------------------------------------------------------------------------------------------

Thanks,

Lofna

  • Hi,

    What do you mean by Profusion TI App? I don't see the BTS (Service pack getting downloaded to the chip).
    Can you provided the complete BT ON sequence.

    see http://processors.wiki.ti.com/index.php/WL12xx_Bluetooth_Build_Instructions
  • Hi Sundeep,

    As per the link i did all the process and loaded all the compiled modules to my sdcard and run the wlan script, it seems not running. Please find the log
    -------------------------------------------------------------------------------------
    root@am335x-evm:/usr/bin# ./wpatest.sh
    wpa_supplicant v2.0-devel-ol_R5.SP7.01
    random: Trying to read entropy from /dev/random
    Successfully initialized wpa_supplicant
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    update_config=1
    ctrl_interface='/var/run/wpa_supplicant'
    eapol_version=1
    ap_scan=1
    fast_reauth=1
    Priority group 20
    id=18 ssid='example'
    Priority group 10
    id=4 ssid='example'
    Priority group 5
    id=0 ssid='simple'
    id=13 ssid='static-wep-test'
    id=14 ssid='static-wep-test2'
    Priority group 2
    id=1 ssid='second ssid'
    id=2 ssid='example'
    id=5 ssid='example'
    id=7 ssid='example'
    Priority group 1
    id=3 ssid='example'
    Priority group 0
    id=6 ssid='example'
    id=8 ssid='example'
    id=9 ssid=''
    id=10 ssid='1x-test'
    id=11 ssid='leap-example'
    id=12 ssid='plaintext-test'
    id=15 ssid='test adhoc'
    id=16 ssid='example'
    id=17 ssid='example'
    id=19 ssid='Stesalit-Pc-network2'
    nl80211: 'nl80211' generic netlink not found
    Failed to initialize driver 'nl80211'
    wlan0: Unsupported driver 'nl80211'
    Failed to add interface wlan0
    wlan0: Cancelling scan request
    wlan0: Cancelling authentication timeout
    wlan0: cancel_sched_scan called when no sched scan
    udhcpc: SIOCGIFINDEX: No such device
    Error unable to open fifo: No such device or address
    wpa_supplicant not running
    root@am335x-evm:/usr/bin# wpa_supplicant -B -Dnl80211 -iwlan0 -c /etc/wpa_suppl
    icant.conf
    Successfully initialized wpa_supplicant
    nl80211: 'nl80211' generic netlink not found
    Failed to initialize driver 'nl80211'
    wlan0: Unsupported driver 'nl80211'
    root@am335x-evm:/usr/bin# wpa_supplicant -B -Dwext -iwlan0 -c /etc/wpa_supplica
    nt.conf
    Successfully initialized wpa_supplicant
    Could not read interface wlan0 flags: No such device
    WEXT: Could not set interface 'wlan0' UP
    wlan0: Failed to initialize driver interface
    root@am335x-evm:/usr/bin#
    root@am335x-evm:/usr/bin#
    root@am335x-evm:/usr/bin# lsmod
    Module Size Used by
    ---------------------------------------------------------------------------------------------------
    while running the BT scripts it gives an timeout error. Find the BT log for your reference.

    root@am335x-evm:/usr/share/wl1271-demos/bluetooth/scripts# ./BT_Demo.sh
    Starting BT Demo .......

    /*
    * #################################################
    * Cleaning BT
    * #################################################
    */

    !!!!!!!!!!! Start from the MAIN MENU !!!!!!!!!!!!!!!!!

    /*
    * #################################################
    * Initialize BT
    * #################################################
    */

    [ 214.329956] Gpio value is :117
    [ 214.348815] WL1271: BT Enable
    [ 223.607757] Bluetooth: RFCOMM TTY layer initialized
    [ 223.612915] Bluetooth: RFCOMM socket layer initialized
    [ 223.618377] Bluetooth: RFCOMM ver 1.11

    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    MAIN NENU
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    1 - BT Scan Remote Devices
    2 - BT Get capabilities of Remote Device
    3 - OPP Test
    4 - FTP Test
    5 - HID Test
    6 - HSP Test
    7 - A2DP Test
    8 - AVRCP Test
    9 - Pair Remote Device
    10 - Unpair Remote Device
    11 - Exit Without BT Shut Down
    12 - Exit With BT Shut Down
    ====> Initialization timed out.
    1

    /*
    * ########### BT-Scan #############
    * Scan for the remote BT devices
    * #################################
    */

    Device is not available: No such device

    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    MAIN NENU
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    1 - BT Scan Remote Devices
    2 - BT Get capabilities of Remote Device
    3 - OPP Test
    4 - FTP Test
    5 - HID Test
    6 - HSP Test
    7 - A2DP Test
    8 - AVRCP Test
    9 - Pair Remote Device
    10 - Unpair Remote Device
    11 - Exit Without BT Shut Down
    12 - Exit With BT Shut Down
    ====> 1

    /*
    * ########### BT-Scan #############
    * Scan for the remote BT devices
    * #################################
    */

    Device is not available: No such device

    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    MAIN NENU
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    1 - BT Scan Remote Devices
    2 - BT Get capabilities of Remote Device
    3 - OPP Test
    4 - FTP Test
    5 - HID Test
    6 - HSP Test
    7 - A2DP Test
    8 - AVRCP Test
    9 - Pair Remote Device
    10 - Unpair Remote Device
    11 - Exit Without BT Shut Down
    12 - Exit With BT Shut Down
    ====> 2

    /*
    * #################### BT-Browse ##################
    * Browse the Device and get the device capabilities
    * #################################################
    */


    Note:
    Capture the following LOG for further reference

    Enter the BD Addr of remote Device for browsing
    ====>

    ---------------------------------------------------------------------------------------------------
    Please do the needful and let us know further any modifications.

    Thanks,
    Lofna
  • Hi,

    Thanks you,

    I hope the below kernel options are enabled in the .config file
    CONFIG_TI_ST=y
    CONFIG_BT_WILINK=y

  • Dear Sundeep,

     

    You want me to enable the above Y option in my kernel??? But in my kernel config i have't set this option.

    Please find attached .config file for your reference. If any changes required please let us know.

     

    Thanks,

    Lofna

     

    config.txt

  • Hi,

    Yes, could you please add below to your config file and rebuild the kernel, and then UIM and try.
    CONFIG_TI_ST=y
    CONFIG_BT_WILINK=y