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.

Wi-Fi/BlueTooth module WL1831MOD

Other Parts Discussed in Thread: WL1831MOD, WL1835

Hi Bin

I am working on Wi-Fi module WL1831MOD on the TI package am335x-evm-sdk-src-07.00.00.00.tar.gz and kernel linux-3.12.10-ti2013.12.01.tar.bz2

I copy the firmware board-support/extra-drivers/wl18xx-firmware-r8.a8.10/wl18xx-fw-2.bin to my fileystem rootfs/lib/firmware/ti-connectivity

I compiled linux-3.12.10-ti2013.12.01 zImage and modules, and install all modules Wi-Fi WL1831MOD needs like the following:

insmod  configfs.ko

insmod wlcore_sdio.ko

insmod wlcore_spi.ko

insmod rfkill.ko

insmod rfkill-gpio.ko

insmod rfkill-regulator.ko

insmod cfg80211.ko

insmod mac80211.ko

insmod wlcore.ko

But there is no wlan0 interface appears in my board, do you know why.

Thank you!

desmond

  • Desmond,

    I guess you are calling me ;)

    Sorry, I am not familiar with WL/wifi stuff, but have you checked the kernel dmesg log? maybe there is any clue telling if any driver probing failure.

  • WL18xx should work "out of the box" with SDK7.0

    Are you using the following command to enable STA?

    /usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B

    Below is my log using the prebuilt am335x-evm-sdk-bin-07.00.00.00.tar.gz files om AM335x EVM + COM8 board.

    (Sorry, I have not build SDK7 from src as you have.  But you can always test with bin files). 

    More docs here: https://processors.wiki.ti.com/index.php/Connect_to_Secure_AP_using_WPA_Supplicant#Connect_to_secured_network_-_WPA

    root@am335x-evm:~# /usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.c
    onf -iwlan0 -B
    wpa_supplicant v2.0-devel
    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
    device_name='Blaze'
    manufacturer='TI'
    model_name='Wilink'
    model_number='wl18xx'
    serial_number='12345'
    driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    p2p_go_max_inactivity=60
    p2p_go_ht40=1
    p2p_multi_chan=1
    disassoc_low_ack=1
    concurrent_sched_scan=1
    nl80211: interface wlan0 in phy phy0
    rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
    rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
    nl80211: Set mode ifindex 3 iftype 2 (STATION)
    nl80211: Subscribe to mgmt frames with non-AP handle 0xf2020
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0a
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0b
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0c
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0d
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=1): 06
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 0a 07
    [  312.346299] wlcore: PHY firmware version: Rev 8.2.0.0.195
    [  312.434253] wlcore: firmware booted (Rev 8.8.0.0.13)
    netlink: Operstate: linkmode=1, operstate=5
    nl80211: Using driver-based off-channel TX
    nl80211: Use separate P2P group interface (driver advertised support)
    nl80211: Enable multi-channel concurrent (driver advertised support)
    nl80211: Supports Probe Response offload in AP mode
    nl80211: driver param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    nl80211: Use separate P2P group interface
    nl80211: Regulatory information - country=00
    nl80211: 2402-2472 @ 40 MHz
    nl80211: 2457-2482 @ 20 MHz
    nl80211: 2474-2494 @ 20 MHz
    nl80211: 5170-5250 @ 40 MHz
    nl80211: 5735-5835 @ 40 MHz
    nl80211: Added 802.11b mode based on 802.11g information
    wlan0: Own MAC address: e0:c7:9d:39:b3:79
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_le
    n=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_le
    n=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_le
    n=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_le
    n=0 key_len=0
    wlan0: RSN: flushing PMKID list in the driver
    nl80211: Flush PMKIDs
    wlan0: State: DISCONNECTED -> INACTIVE
    WPS: Set UUID for interface wlan0
    WPS: UUID based on MAC address - hexdump(len=16): c8 be 61 e9 84 31 58 47 82 07
    3a 54 4d a0 cf 55
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    EAPOL: SUPP_BE entering state INITIALIZE
    EAP: EAP entering state DISABLED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: Supplicant port status: Unauthorized
    Using existing control interface directory.
    Disable P2P on wlan0
    wlan0: Added interface wlan0
    wlan0: State: INACTIVE -> DISCONNECTED
    wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
    netlink: Operstate: linkmode=-1, operstate=5
    Daemonize..
    root@am335x-evm:~# iw wlan0 scan |grep SSID
            SSID: externalhotspot84
            SSID: net4guest
            SSID: externalhotspot84
            SSID: halekoa75
            SSID: net4guest
            SSID: hpsetup
            SSID: \x00
            SSID: SWSPLBIZ
            SSID: SWSPLGUEST
    root@am335x-evm:~# lsmod
    Module                  Size  Used by
    g_mass_storage          1787  0
    usb_f_mass_storage     32479  2 g_mass_storage
    libcomposite           30114  2 usb_f_mass_storage,g_mass_storage
    configfs               19119  3 libcomposite,usb_f_mass_storage
    bufferclass_ti          5405  0
    omaplfb                11426  0
    cryptodev              31027  1
    wl18xx                 82396  0
    wlcore                166046  1 wl18xx
    mac80211              251723  2 wl18xx,wlcore
    cfg80211              163054  3 mac80211,wl18xx,wlcore
    musb_dsps               6511  0
    musb_hdrc              52593  1 musb_dsps
    snd_soc_omap            2494  0
    snd_pcm_dmaengine       2997  1 snd_soc_omap
    pvrsrvkm              175491  2 bufferclass_ti,omaplfb
    snd_soc_evm             7186  0
    snd_soc_tlv320aic3x    28998  1
    snd_soc_davinci_mcasp     9484  2
    snd_soc_davinci         5438  1 snd_soc_davinci_mcasp
    snd_soc_core           99221  5 snd_soc_davinci_mcasp,snd_soc_omap,snd_soc_davin
    ci,snd_soc_tlv320aic3x,snd_soc_evm
    snd_compress            7419  1 snd_soc_core
    regmap_spi              1469  1 snd_soc_core
    snd_pcm                66734  5 snd_soc_core,snd_soc_omap,snd_soc_davinci,snd_so
    c_evm,snd_pcm_dmaengine
    wlcore_sdio             4233  0
    snd_page_alloc          4843  1 snd_pcm
    snd_timer              16028  1 snd_pcm
    lm75                    3794  0
    snd                    45368  4 snd_soc_core,snd_timer,snd_pcm,snd_compress
    lis3lv02d_i2c           2777  0
    tsl2550                 3484  0
    soundcore               4767  1 snd
    lis3lv02d              12765  1 lis3lv02d_i2c
    input_polldev           2384  1 lis3lv02d
    btwilink                3560  0
    ti_am335x_adc           3183  0
    industrialio           32701  1 ti_am335x_adc
    musb_am335x             1199  0
    bluetooth             204293  2 btwilink
    root@am335x-evm:~

    root@am335x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr D4:94:A1:80:AC:F8
              inet addr:158.218.121.125  Bcast:0.0.0.0  Mask:255.255.254.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:717 errors:0 dropped:3 overruns:0 frame:0
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:55725 (54.4 KiB)  TX bytes:656 (656.0 B)
              Interrupt:56

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:116 errors:0 dropped:0 overruns:0 frame:0
              TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:248480 (242.6 KiB)  TX bytes:248480 (242.6 KiB)

    wlan0     Link encap:Ethernet  HWaddr E0:C7:9D:39:B3:79
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    root@am335x-evm:~#

     

  • Hi Joe,

    I use the same package prebuilt am335x-evm-sdk-bin-07.00.00.00.tar.gz files, but I don't get wlan0 interface as you:

    root@am335x-evm:~# uname -a
    Linux am335x-evm 3.12.10-ti2013.12.01 #1 Sun Mar 30 20:55:31 CDT 2014 armv7l GNU/Linux
    root@am335x-evm:~# lsmod
    Module                  Size  Used by
    wl18xx                 82396  0
    wlcore                166046  1 wl18xx
    mac80211              251723  2 wl18xx,wlcore
    cfg80211              163054  3 mac80211,wl18xx,wlcore
    wlcore_sdio             4233  0
    g_mass_storage          1787  0
    usb_f_mass_storage     32479  2 g_mass_storage
    libcomposite           30114  2 usb_f_mass_storage,g_mass_storage
    configfs               19119  3 libcomposite,usb_f_mass_storage
    cryptodev              31027  0
    musb_dsps               6511  0
    musb_hdrc              52593  1 musb_dsps
    snd_soc_omap            2494  0
    snd_pcm_dmaengine       2997  1 snd_soc_omap
    snd_soc_core           99221  1 snd_soc_omap
    snd_compress            7419  1 snd_soc_core
    regmap_spi              1469  1 snd_soc_core
    snd_pcm                66734  3 snd_soc_core,snd_soc_omap,snd_pcm_dmaengine
    snd_page_alloc          4843  1 snd_pcm
    snd_timer              16028  1 snd_pcm
    snd                    45368  4 snd_soc_core,snd_timer,snd_pcm,snd_compress
    soundcore               4767  1 snd
    pvrsrvkm              175491  0
    musb_am335x             1199  0
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 1C:BA:8C:DA:22:88  
              inet addr:192.168.100.90  Bcast:0.0.0.0  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:6 errors:0 dropped:0 overruns:0 frame:0
              TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:926 (926.0 B)  TX bytes:838 (838.0 B)
              Interrupt:56

    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    Do you know why.

    Thanks!

    desmond

  • Hi Joe,

    am335x-evm-sdk-src-07.00.00.00.tar.gz linux-3.12.10-ti2013.12.01.tar.bz2

    I use board + uart5 + mmc2 for Wi-Fi purpose. The following is my DeviceTree for Wi-Fi:

        am33xx_pinmux: pinmux@44e10800 {
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&clkout2_pin &mmc3_pins &wlan_pins &uart5_pins_default>;
            pinctrl-1 = <&clkout2_pin &mmc3_pins_sleep &wlan_pins_sleep &uart5_pins_sleep>;

           uart5_pins_default: pinmux_uart5_pins_default {
                pinctrl-single,pins = <
                    0x0d8 (PIN_INPUT | MUX_MODE6)           /* lcd_data14/uart5_cts/gpio0-10 */
                    0x0dc (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* lcd_data15/uart5_rts/gpio0-11 */
                    0x0c4 (PIN_INPUT_PULLUP | MUX_MODE4)    /* lcd_data9/uart5_rxd/gpio2-15 */
                    0x0c0 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* lcd_data8/uart5_txd/gpio2-14 */
                >;
            };

            uart5_pins_sleep: pinmux_uart5_pins_sleep {
                pinctrl-single,pins = <
                    0x0d8 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_data14/uart5_cts gpio0-10 */
                    0x0dc (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_data15/uart5_rts gpio0-11 */
                    0x0c4 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_data9/uart5_rxd gpio2-15 */
                    0x0c0 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_data8/uart5_txd gpio2-14 */
                >;
            };

            clkout2_pin: pinmux_clkout2_pin {
                pinctrl-single,pins = <
                    0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
                >;
            };

            mmc3_pins: pinmux_mmc3_pins {
                pinctrl-single,pins = <
                    0x08c (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_clk/mmc2_clk */
                    0x088 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_csn3/mmc2_cmd */
                    0x044 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_a1/mmc2_dat0 */
                    0x048 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_a2/mmc2_dat1 */
                    0x04c (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_a3/mmc2_dat2 */
                    0x078 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_ben1/mmc2_dat3 */
                >;
            };

            mmc3_pins_sleep: pinmux_mmc3_pins_sleep {
                pinctrl-single,pins = <
                    0x08c (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_clk/mmc2_clk */
                    0x088 (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_csn3/mmc2_cmd */
                    0x044 (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a1/mmc2_dat0 */
                    0x048 (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a2/mmc2_dat1 */
                    0x04c (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a3/mmc2_dat2 */
                    0x078 (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ben1/mmc2_dat3 */
                >;
            };

            /* wl12xx/wl18xx card enable/irq GPIOs. */
            wlan_pins: pinmux_wlan_pins {
                pinctrl-single,pins = <
                    0x0ec (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* WF_EN/lcd_ac_bias_en/gpio2-25 */
                    0x0e4 (PIN_INPUT_PULLUP | MUX_MODE7)    /* WF_IRQ/lcd_hsync/gpio2-23 */
                    0x0b8 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* BT_EN/lcd_dat6/gpio2-12 */
                    0x060 (PIN_OUTPUT_PULLUP | MUX_MODE0)   /* WF_RES/gpmc_a8/gpio1-24 */
                >;
            };

            /* wl12xx/wl18xx card enable/irq GPIOs. */
            wlan_pins_sleep: pinmux_wlan_pins_sleep {
                pinctrl-single,pins = <
                    0x0ec (PIN_OUTPUT_PULLUP | MUX_MODE7)  /* WF_EN/lcd_ac_bias_en/gpio2-25 */
                    0x0e4 (PIN_INPUT_PULLUP | MUX_MODE7)   /* WF_IRQ/lcd_hsync/gpio2-23 */
                    0x0b8 (PIN_OUTPUT_PULLUP | MUX_MODE7)  /* BT_EN/lcd_dat6/gpio2-12 */
                    0x060 (PIN_OUTPUT_PULLUP | MUX_MODE0)  /* WF_RES/gpmc_a8/gpio1-24 */
                >;
            };

            uart5: serial@481aa000 {
                pinctrl-names = "default", "sleep";
                pinctrl-0 = <&uart5_pins_default>;
                pinctrl-1 = <&uart5_pins_sleep>;

                status = "okay";
            };

        wlan_en_reg: fixedregulator@1 {
            compatible = "regulator-fixed";
            regulator-name = "wlan-en-regulator";
            regulator-min-microvolt = <1800000>;
            regulator-max-microvolt = <1800000>;

            /* WLAN_EN GPIO for this board - Bank2, pin25 */
            gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;

            /* WLAN card specific delay */
            startup-delay-us = <70000>;
            enable-active-high;
        };

        wlcore {
            compatible = "wlcore";
            gpio = <87>; /* WF_IRQ Bank2, pin23 */
            platform-quirks = <1>;

            /* if a 12xx card is there, configure the clock to WL12XX_REFCLOCK_38_XTAL */
            board-ref-clock = <4>;
        };

        kim {
            compatible = "kim";
            nshutdown_gpio = <76>; /* BT_EN GPIO Bank2, pin12 */
            dev_name = "/dev/ttyO5";
            flow_cntrl = <1>;
            baud_rate = <3000000>;
        };

        btwilink {
            compatible = "btwilink";
        };

    &mmc3 {
        status = "okay";
        vmmc-supply = <&wlan_en_reg>;
        bus-width = <4>;
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&mmc3_pins>;
        pinctrl-1 = <&mmc3_pins_sleep>;
        ti,non-removable;
        ti,needs-special-hs-handling;
        cap-power-off-card;
        keep-power-in-suspend;
    };

    Do you know why it does not work, could you give me some clue.

    Thank you!

    desmond

  • Again, are you using the following command to enable STA?

    /usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B

    Even though I see all the same modules you do, I don't see the wlan0 adaptor

    root@am335x-evm:/lib/firmware/ti-connectivity# ifconfig
    eth0      Link encap:Ethernet  HWaddr D4:94:A1:80:AC:F8
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:56

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:117 errors:0 dropped:0 overruns:0 frame:0
              TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:248534 (242.7 KiB)  TX bytes:248534 (242.7 KiB)

    Until I run wpa_supplicant:

    root@am335x-evm:/lib/firmware/ti-connectivity# /usr/sbin/wpa_supplicant -d -Dnl8
    0211 -c/etc/wpa_supplicant.conf -iwlan0 -B
    wpa_supplicant v2.0-devel
    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
    device_name='Blaze'
    manufacturer='TI'
    model_name='Wilink'
    model_number='wl18xx'
    serial_number='12345'
    driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    p2p_go_max_inactivity=60
    p2p_go_ht40=1
    p2p_multi_chan=1
    disassoc_low_ack=1
    concurrent_sched_scan=1
    nl80211: interface wlan0 in phy phy0
    rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
    rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
    nl80211: Set mode ifindex 3 iftype 2 (STATION)
    nl80211: Subscribe to mgmt frames with non-AP handle 0xf2020
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0a
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0b
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0c
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 04 0d
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=1): 06
    nl80211: Register frame type=0xd0 nl_handle=0xf2020
    nl80211: Register frame match - hexdump(len=2): 0a 07
    [   84.452516] wlcore: PHY firmware version: Rev 8.2.0.0.195
    [   84.546439] wlcore: firmware booted (Rev 8.8.0.0.13)
    netlink: Operstate: linkmode=1, operstate=5
    nl80211: Using driver-based off-channel TX
    nl80211: Use separate P2P group interface (driver advertised support)
    nl80211: Enable multi-channel concurrent (driver advertised support)
    nl80211: Supports Probe Response offload in AP mode
    nl80211: driver param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    nl80211: Use separate P2P group interface
    nl80211: Regulatory information - country=00
    nl80211: 2402-2472 @ 40 MHz
    nl80211: 2457-2482 @ 20 MHz
    nl80211: 2474-2494 @ 20 MHz
    nl80211: 5170-5250 @ 40 MHz
    nl80211: 5735-5835 @ 40 MHz
    nl80211: Added 802.11b mode based on 802.11g information
    wlan0: Own MAC address: e0:c7:9d:39:b3:79
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_le
    n=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_le
    n=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_le
    n=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_le
    n=0 key_len=0
    wlan0: RSN: flushing PMKID list in the driver
    nl80211: Flush PMKIDs
    wlan0: State: DISCONNECTED -> INACTIVE
    WPS: Set UUID for interface wlan0
    WPS: UUID based on MAC address - hexdump(len=16): c8 be 61 e9 84 31 58 47 82 07
    3a 54 4d a0 cf 55
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    EAPOL: SUPP_BE entering state INITIALIZE
    EAP: EAP entering state DISABLED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: Supplicant port status: Unauthorized
    Using existing control interface directory.
    Disable P2P on wlan0
    wlan0: Added interface wlan0
    wlan0: State: INACTIVE -> DISCONNECTED
    wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
    netlink: Operstate: linkmode=-1, operstate=5
    Daemonize..
    root@am335x-evm:/lib/firmware/ti-connectivity# ifconfig
    eth0      Link encap:Ethernet  HWaddr D4:94:A1:80:AC:F8
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:56

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:117 errors:0 dropped:0 overruns:0 frame:0
              TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:248534 (242.7 KiB)  TX bytes:248534 (242.7 KiB)

    wlan0     Link encap:Ethernet  HWaddr E0:C7:9D:39:B3:79
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    root@am335x-evm:/lib/firmware/ti-connectivity#

    Could you please post your ENTIRE log?

  • Hi Joe,

    Thank you for your reply. The log message for

    wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B

    is as the following:

    wpa_supplicant v1.0
    random: Trying to read entropy from /dev/random
    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
    device_name='Blaze'
    manufacturer='TI'
    model_name='Wilink'
    model_number='wl18xx'
    serial_number='12345'
    driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    Line 60: unknown global field 'p2p_go_max_inactivity=60'.
    Line 60: Invalid configuration line 'p2p_go_max_inactivity=60'.
    Line 61: unknown global field 'p2p_go_ht40=1'.
    Line 61: Invalid configuration line 'p2p_go_ht40=1'.
    Line 62: unknown global field 'p2p_multi_chan=1'.
    Line 62: Invalid configuration line 'p2p_multi_chan=1'.
    disassoc_low_ack=1
    Line 64: unknown global field 'concurrent_sched_scan=1'.
    Line 64: Invalid configuration line 'concurrent_sched_scan=1'.
    Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
    Failed to add interface wlan0
    : Cancelling scan request
    : Cancelling authentication timeout

    Do you what's wrong with it?

    desmond

  • Desmond,

    desmond liu said:
    wpa_supplicant v1.0

    Can you please double check if you use the root filesystem from the SDK? Joe's log shows 'wpa_supplicant v2.0-devel', but yours is v1.0, which seems telling you use a different version of the wpa_supplicant utility.

  • Hi Bin,

    I am using TI am335x-evm-sdk-bin-07.00.00.00.tar.gz filesystems, tisdk-rootfs-image-am335x-evm.tar.gz /usr/sbin/wpa_supplicant whose version is 1.0, I don't know where does Joe get wpa_supplicant 2.0dvel.

    Thank you!

    desmond

  • This is strange... I use SDK7.0 as while and my wpa_supplicant is v2.0-devel too.  Even in SDK6.0 it is already v2.0-devel.

    Look at http://hostap.epitest.fi/releases/, v1.0 is already two years old.

  • Hi Bin,

    Right now, I get version 2.0devel: please take a look at the log message:

    wpa_supplicant v2.0-devel
    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
    device_name='Blaze'
    manufacturer='TI'
    model_name='Wilink'
    model_number='wl18xx'
    serial_number='12345'
    driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    p2p_go_max_inactivity=60
    p2p_go_ht40=1
    p2p_multi_chan=1
    disassoc_low_ack=1
    concurrent_sched_scan=1
    nl80211: Could not add multicast membership for testmode events: -2 (No such file or directory)
    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

    desmond

  • Hi Joe,

    When I use the following command:

    wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B

    I get the following message:

    wpa_supplicant v2.0-devel
    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
    device_name='Blaze'
    manufacturer='TI'
    model_name='Wilink'
    model_number='wl18xx'
    serial_number='12345'
    driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    p2p_go_max_inactivity=60
    p2p_go_ht40=1
    p2p_multi_chan=1
    disassoc_low_ack=1
    concurrent_sched_scan=1
    nl80211: Could not add multicast membership for testmode events: -2 (No such file or directory)
    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

    But when I check WF_EN GPIO89, it still be low. Do you know why?

    cat /sys/kernel/debug/gpio        
    GPIOs 0-31, gpio:

    GPIOs 32-63, gpio:

    GPIOs 64-95, gpio:
     gpio-76  (kim                 ) out lo
     gpio-89  (wlan-en-regulator   ) out lo

    Thank you!

    desmond

  • Hi Joe,

    Now I am working on BlueTooth, I have some problem, please see the following message:

    [  149.742576] cfg80211: Calling CRDA to update world regulatory domain
    [  150.884288] Bluetooth: Core ver 2.16
    [  150.887939] NET: Registered protocol family 31
    [  150.892389] Bluetooth: HCI device and connection manager initialized
    [  150.899503] Bluetooth: HCI socket layer initialized
    [  150.904326] Bluetooth: L2CAP socket layer initialized
    [  150.909767] Bluetooth: SCO socket layer initialized
    webtech@(none):~# [  150.951639] (stc):  chnl_id list empty :4
    [  150.955510] (stk) : st_kim_start(stk) :ldisc_install = 1
    [  152.148678] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [  153.148672] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [  154.348677] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [  155.348676] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [  156.548909] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [  157.549177] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [  158.748662] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [  159.748677] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [  160.948661] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [  161.948672] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [  163.148672] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [  164.148762] (stk) : timed out waiting for ldisc to be un-installed[  164.158488] Bluetooth: st_register failed -22

    webtech@(none):~# lsmod
    btwilink 3544 0 - Live 0xbf1ce000
    bluetooth 208956 2 btwilink, Live 0xbf18b000
    wl18xx 81932 0 - Live 0xbf16d000
    wlcore 164931 1 wl18xx, Live 0xbf137000
    mac80211 369155 2 wl18xx,wlcore, Live 0xbf0c1000
    cfg80211 186770 3 wl18xx,wlcore,mac80211, Live 0xbf082000
    rfkill_regulator 1491 0 - Live 0xbf07e000
    rfkill_gpio 2223 0 - Live 0xbf07a000
    rfkill 9355 4 bluetooth,cfg80211,rfkill_regulator,rfkill_gpio, Live 0xbf072000
    wlcore_spi 3559 0 - Live 0xbf06e000
    wlcore_sdio 4217 0 - Live 0xbf069000
    configfs 19223 0 - Live 0xbf05f000
    musb_dsps 6450 0 - Live 0xbf017000
    musb_hdrc 53008 1 musb_dsps, Live 0xbf004000
    musb_am335x 1199 0 [permanent], Live 0xbf000000

    ++++++++++

    Do you know what's wrong with it?

    Thanks!

    desmond

  • For BT, I have only used the SS1 Bluetoia stack available here: http://www.ti.com/tool/linuxezsdk-am335x-wilink8

    And documented here: http://processors.wiki.ti.com/index.php/StoneStreet_One_Bluetopia_Platform_Manager_Bluetooth_Stack_for_TI_WL18xx

    http://processors.wiki.ti.com/index.php/WiLink8_Bluetooth_Demo:_Linux-Stonestreet_One

     

    Have you run any of this on a TI board either AM335x EVM + COM8 or a Beaglebone White + WL1835 Cape?

    Having a working reference might make debugging your system easier

  • Hi Joe,

    Thank you very much for your reply.

    The problem of BlueTooth is that it seems uart5 does not communicate with WL18xxMOD, but if we send out characters from uart5, it seems uart5 functions. For this scenario could you give me some suggestions?

    desmond