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.

Wilink8 Platform data not set

Other Parts Discussed in Thread: WL1271

Hi,

       I am trying to integrate the Wilink8 1835 module with Zedboard. But I am getting the following error which i have highlighted in mine following console dump.Also i want to know that i am working on WilinkMod1835 then why it is asking for platform data not set for Wilink 1271. I am also attaching mine device tree..Please guide me.

[ 1.197634] cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted freq: 666666 KHz
[ 1.205185] cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial frequency changed to: 666667 KHz
[ 1.214100] Xilinx Zynq CpuIdle Driver started
[ 1.218799] sdhci: Secure Digital Host Controller Interface driver
[ 1.224913] sdhci: Copyright(c) Pierre Ossman
[ 1.229239] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.235123] sdhci-arasan e0100000.ps7-sdio: No vmmc regulator found
[ 1.241334] sdhci-arasan e0100000.ps7-sdio: No vqmmc regulator found
[ 1.279613] mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using ADMA
[ 1.289703] sdhci-arasan e0101000.ps7-sdio: No vqmmc regulator found
[ 1.339236] mmc0: new high speed SDHC card at address 0007
[ 1.345029] mmcblk0: mmc0:0007 SD04G 3.70 GiB
[ 1.350757] mmcblk0: p1 p2
[ 1.409614] mmc1: SDHCI controller on e0101000.ps7-sdio [e0101000.ps7-sdio] using ADMA
[ 1.421891] usbcore: registered new interface driver usbhid
[ 1.427391] usbhid: USB HID core driver
[ 1.433562] sdhci-arasan e0101000.ps7-sdio: card claims to support voltages below defined range
[ 1.435048] TCP: cubic registered
[ 1.435062] NET: Registered protocol family 17
[ 1.435189] Bluetooth: RFCOMM TTY layer initialized
[ 1.435203] Bluetooth: RFCOMM socket layer initialized
[ 1.435220] Bluetooth: RFCOMM ver 1.11
[ 1.435240] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.435244] Bluetooth: BNEP filters: protocol multicast
[ 1.435254] Bluetooth: BNEP socket layer initialized
[ 1.435264] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.435274] Bluetooth: HIDP socket layer initialized
[ 1.435445] Registering SWP/SWPB emulation handler
[ 1.494993] RAMDISK: gzip image found at block 0
[ 1.510769] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.517328] mmc1: new high speed SDIO card at address 0001
[ 3.048977] VFS: Mounted root (ext2 filesystem) on device 1:0.
[ 3.054947] devtmpfs: mounted
[ 3.058097] Freeing unused kernel memory: 216K (c067e000 - c06b4000)
INIT: version 2.88 booting
Starting udev
[ 3.289074] udevd[572]: starting version 182
[ 3.550748] wl1271_sdio mmc1:0001:2: No platform data set
[ 3.562326] wl1271_sdio: probe of mmc1:0001:2 failed with error -12
bootlogd: cannot allocate pseudo tty: No such file or directory
[ 3.841748] random: dd urandom read with 24 bits of entropy available
Populating dev cache
hwclock: can't open '/dev/misc/rtc': No such file or directory
Tue Nov 1 14:23:14 UTC 2016
hwclock: can't open '/dev/misc/rtc': No such file or directory
INIT: Entering runlevel: 5
Configuring network interfaces... udhcpc (v1.22.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
done.
Starting system message bus: dbus.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting syslogd/klogd: done

**************************************************************
*** WiLinkTM 8: Enabling WLAN interface...
ifconfig: SIOCGIFFLAGS: No such device

*** WiLinkTM 8: Scan for local SSIDs...
dev <devname> ibss join <SSID> <freq in MHz> [HT20|HT40+|HT40-|NOHT|5MHZ|10MHZ] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
Join the IBSS cell with the given SSID, if it doesn't exist create
join/create a cell on a different frequency. When a fixed BSSID is
requested use that BSSID and do not adopt another cell's BSSID even
if it has higher TSF and the same SSID. If an IBSS is created, create
Scan on the given frequencies and probe for the given SSIDs
SSIDs (or wildcard if not given) unless passive scanning is requested.
dev <devname> auth <SSID> <bssid> <type:open|shared> <freq in MHz> [key 0:abcde d:1:6162636465]
dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465]
Join the network with the given SSID (and frequency, BSSID).

Regards

Aditya

  • Hi,

    The first messages you have marked are all normal and the module is detected on the SDIO bus:
    [ 1.433562] sdhci-arasan e0101000.ps7-sdio: card claims to support voltages below defined range
    [ 1.510769] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 1.517328] mmc1: new high speed SDIO card at address 0001

    The following messages:
    [ 3.550748] wl1271_sdio mmc1:0001:2: No platform data set
    [ 3.562326] wl1271_sdio: probe of mmc1:0001:2 failed with error -12

    indicate that you are probably missing the mmc/wlcore sub sections of your .dts file.
    Please check the folowing wiki and make sure you have the wlcore section under the relvant mmc:

    processors.wiki.ti.com/.../WL18xx_Platform_Integration_Guide

    BR,
    Eyal
  • Hi Sir,

                 Thanks for reply. Sir i was working on mine .dts file before your this gentle reply and now i have corrected and now i have come out of above problem but trap into new problem. I think i am very near to mine success but something subtle is still missing which i am not able to figure out. Here i am again going to share mine partial dump of serial console , please have a look and guide me and i will be highlighting the relevant and problematic section as well  as per mine understanding and guide me to accomplish mine goal.

    [ 1.410992] mmc1: SDHCI controller on e0101000.ps7-sdio [e0101000.ps7-sdio] using ADMA
    [ 1.419209] usbcore: registered new interface driver usbhid
    [ 1.421549] sdhci-arasan e0101000.ps7-sdio: card claims to support voltages below defined range
    [ 1.432728] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 1.433824] mmc1: new high speed SDIO card at address 0001
    [ 1.441445] wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2
    [ 1.441497] wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl18xx-conf.bin failed with error -2
    [ 1.441503] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
    [ 1.441506] wlcore: WARNING falling back to default config
    [ 1.479812] usbhid: USB HID core driver
    [ 1.485504] TCP: cubic registered
    [ 1.488742] NET: Registered protocol family 17
    [ 1.493311] Bluetooth: RFCOMM TTY layer initialized
    [ 1.498119] Bluetooth: RFCOMM socket layer initialized
    [ 1.503273] Bluetooth: RFCOMM ver 1.11
    [ 1.506980] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 1.512289] Bluetooth: BNEP filters: protocol multicast
    [ 1.517472] Bluetooth: BNEP socket layer initialized
    [ 1.522442] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [ 1.528321] Bluetooth: HIDP socket layer initialized
    [ 1.533465] Registering SWP/SWPB emulation handler
    [ 1.543913] RAMDISK: gzip image found at block 0
    [ 1.681603] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [ 1.692638] wlcore: loaded
    [ 1.695295] wlcore: driver version: xilinx-v2014.4-trd-dirty
    [ 1.700910] wlcore: compilation time: 2014/december
    [ 3.083176] VFS: Mounted root (ext2 filesystem) on device 1:0.
    [ 3.089055] devtmpfs: mounted
    [ 3.092270] Freeing unused kernel memory: 216K (c06b4000 - c06ea000)
    INIT: version 2.88 booting
    Starting udev
    [ 3.318077] udevd[601]: starting version 182
    bootlogd: cannot allocate pseudo tty: No such file or directory
    [ 3.787909] random: dd urandom read with 23 bits of entropy available
    Populating dev cache
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Tue Nov 1 14:23:14 UTC 2016
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    INIT: Entering runlevel: 5
    Configuring network interfaces... udhcpc (v1.22.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Starting system message bus: dbus.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done

    **************************************************************
    *** WiLinkTM 8: Enabling WLAN interface...
    [ 16.812674] wlcore: PHY firmware version: Rev 8.2.0.0.224
    [ 16.896579] ------------[ cut here ]------------
    [ 16.901158] WARNING: CPU: 0 PID: 1018 at drivers/net/wireless/ti/wlcore/sdio.c:108 wl12xx_sdio_raw_read+0xb0/0x138()
    [ 16.911640] Modules linked in:
    [ 16.914663] CPU: 0 PID: 1018 Comm: ifconfig Not tainted 3.17.0-xilinx-dirty #13
    [ 16.921997] [<c0015698>] (unwind_backtrace) from [<c00118a0>] (show_stack+0x10/0x14)
    [ 16.929689] [<c00118a0>] (show_stack) from [<c04ff254>] (dump_stack+0x88/0xc8)
    [ 16.936931] [<c04ff254>] (dump_stack) from [<c0023f08>] (warn_slowpath_common+0x70/0x8c)
    [ 16.944977] [<c0023f08>] (warn_slowpath_common) from [<c0023fc0>] (warn_slowpath_null+0x1c/0x24)
    [ 16.953749] [<c0023fc0>] (warn_slowpath_null) from [<c030ef78>] (wl12xx_sdio_raw_read+0xb0/0x138)

     

    Please reply me.

     

    Regards

    Aditya

  • Hi,

    Yes, you are much closer now. It seems like it is crashing now on an sdio access after the firmware was already loaded successfully. It could be hardware related to the SDIO bus lines configuration.

    Can you try lowering the sdio bus speed for testing and see if it helps?
    You can do that by adding:

    max-frequency = <10000000>;

    to the mmc node in your .dts file and it will limit the sdio speed to 10Mhz. if it still doesn't work try an even lower frequency.

    In addition, you are not using the latest drivers/firmware. It would be better that you switch later on to the latest release which is (R8.7_SP1)

    BR,
    Eyal
  • Hi Sir,

                Thanks for such a quick and gentle reply. I will try it and let you know in next few minutes. By the way here i am attaching mine .dts file . Please have a look meanwhile and if anything wrong please tell me.

    / {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "xlnx,zynq-7000";
    model = "Xilinx Zynq";
    aliases {
    ethernet0 = "/amba@0/ps7-ethernet@e000b000";
    serial0 = "/amba@0/serial@e0001000";
    spi0 = "/amba@0/ps7-qspi@e000d000";
    };
    chosen {
    bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootwait";
    linux,stdout-path = "/amba@0/serial@e0001000";
    };
    cpus {
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    cpu@0 {
    bus-handle = <0x1>;
    clock-latency = <0x3e8>;
    clocks = <0x2 0x3>;
    compatible = "arm,cortex-a9";
    device_type = "cpu";
    interrupt-handle = <0x3>;
    operating-points = <0xa2c2b 0xf4240 0x51616 0xf4240 0x3640f 0xf4240>;
    reg = <0x0>;
    };
    cpu@1 {
    bus-handle = <0x1>;
    clocks = <0x2 0x3>;
    compatible = "arm,cortex-a9";
    device_type = "cpu";
    interrupt-handle = <0x3>;
    reg = <0x1>;
    };
    };
    pmu {
    compatible = "arm,cortex-a9-pmu";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x5 0x4 0x0 0x6 0x4>;
    reg = <0xf8891000 0x1000 0xf8893000 0x1000>;
    reg-names = "cpu0", "cpu1";
    };
    memory@0 {
    device_type = "memory";
    reg = <0x0 0x20000000>;
    };
    fixedregulator@1 {
    compatible = "regulator-fixed";
    regulator-name = "wlan-en-regulator";
    regulator-min-microvolt = <0x325aa0>;
    regulator-max-microvolt = <0x325aa0>;
    gpio = <0x5 0x9 0x4>;
    startup-delay-us = <0x11170>;
    enable-active-high;
    linux,phandle = <0x6>;
    phandle = <0x6>;
    };
    amba@0 {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "xlnx,ps7-axi-interconnect-1.00.a", "simple-bus";
    ranges;
    linux,phandle = <0x1>;
    phandle = <0x1>;
    ps7-afi@f8008000 {
    compatible = "xlnx,ps7-afi-1.00.a";
    reg = <0xf8008000 0x1000>;
    };
    ps7-afi@f8009000 {
    compatible = "xlnx,ps7-afi-1.00.a";
    reg = <0xf8009000 0x1000>;
    };
    ps7-afi@f800a000 {
    compatible = "xlnx,ps7-afi-1.00.a";
    reg = <0xf800a000 0x1000>;
    };
    ps7-afi@f800b000 {
    compatible = "xlnx,ps7-afi-1.00.a";
    reg = <0xf800b000 0x1000>;
    };
    ps7-ddrc@f8006000 {
    compatible = "xlnx,zynq-ddrc-1.0";
    reg = <0xf8006000 0x1000>;
    xlnx,has-ecc = <0x0>;
    };
    ps7-dev-cfg@f8007000 {
    clock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
    clocks = <0x2 0xc 0x2 0xf 0x2 0x10 0x2 0x11 0x2 0x12>;
    compatible = "xlnx,zynq-devcfg-1.0";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x8 0x4>;
    reg = <0xf8007000 0x100>;
    };
    ps7-dma@f8003000 {
    #dma-cells = <0x1>;
    #dma-channels = <0x8>;
    #dma-requests = <0x4>;
    clock-names = "apb_pclk";
    clocks = <0x2 0x1b>;
    compatible = "arm,primecell", "arm,pl330";
    interrupt-names = "abort", "dma0", "dma1", "dma2", "dma3", "dma4", "dma5", "dma6", "dma7";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0xd 0x4 0x0 0xe 0x4 0x0 0xf 0x4 0x0 0x10 0x4 0x0 0x11 0x4 0x0 0x28 0x4 0x0 0x29 0x4 0x0 0x2a 0x4 0x0 0x2b 0x4>;
    reg = <0xf8003000 0x1000>;
    };
    ps7-ethernet@e000b000 {
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    clock-names = "ref_clk", "aper_clk";
    clocks = <0x2 0xd 0x2 0x1e>;
    compatible = "xlnx,ps7-ethernet-1.00.a";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x16 0x4>;
    local-mac-address = [00 0a 35 00 00 00];
    phy-handle = <0x4>;
    phy-mode = "rgmii-id";
    reg = <0xe000b000 0x1000>;
    xlnx,eth-mode = <0x1>;
    xlnx,has-mdio = <0x1>;
    xlnx,ptp-enet-clock = <0x69f6bcb>;
    mdio {
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    phy@0 {
    compatible = "marvell,88e1510";
    device_type = "ethernet-phy";
    reg = <0x0>;
    linux,phandle = <0x4>;
    phandle = <0x4>;
    };
    };
    };
    ps7-globaltimer@f8f00200 {
    clocks = <0x2 0x4>;
    compatible = "arm,cortex-a9-global-timer";
    interrupt-parent = <0x3>;
    interrupts = <0x1 0xb 0x301>;
    reg = <0xf8f00200 0x100>;
    };
    ps7-gpio@e000a000 {
    #gpio-cells = <0x2>;
                #interrupt-cells = <0x2>;
    clocks = <0x2 0x2a>;
    compatible = "xlnx,zynq-gpio-1.0";
    emio-gpio-width = <0x40>;
    gpio-controller;
    gpio-mask-high = <0x0>;
    gpio-mask-low = <0x5600>;
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x14 0x4>;
    reg = <0xe000a000 0x1000>;
    linux,phandle = <0x5>;
    phandle = <0x5>;
    };
    ps7-iop-bus-config@e0200000 {
    compatible = "xlnx,ps7-iop-bus-config-1.00.a";
    reg = <0xe0200000 0x1000>;
    };
    ps7-ocmc@f800c000 {
    compatible = "xlnx,zynq-ocmc-1.0";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x3 0x4>;
    reg = <0xf800c000 0x1000>;
    };
    ps7-pl310@f8f02000 {
    arm,data-latency = <0x3 0x2 0x2>;
    arm,tag-latency = <0x2 0x2 0x2>;
    cache-level = <0x2>;
    cache-unified;
    compatible = "arm,pl310-cache";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x2 0x4>;
    reg = <0xf8f02000 0x1000>;
    };
    ps7-qspi@e000d000 {
    clock-names = "ref_clk", "pclk";
    clocks = <0x2 0xa 0x2 0x2b>;
    compatible = "xlnx,zynq-qspi-1.0";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x13 0x4>;
    is-dual = <0x0>;
    num-cs = <0x1>;
    reg = <0xe000d000 0x1000>;
    xlnx,fb-clk = <0x1>;
    xlnx,qspi-mode = <0x0>;
    #address-cells = <0x1>;
    #size-cells = <0x0>;
    flash@0 {
    compatible = "n25q128";
    reg = <0x0>;
    spi-tx-bus-width = <0x1>;
    spi-rx-bus-width = <0x4>;
    spi-max-frequency = <0x2faf080>;
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    partition@qspi-fsbl-uboot {
    label = "qspi-fsbl-uboot";
    reg = <0x0 0x100000>;
    };
    partition@qspi-linux {
    label = "qspi-linux";
    reg = <0x100000 0x500000>;
    };
    partition@qspi-device-tree {
    label = "qspi-device-tree";
    reg = <0x600000 0x20000>;
    };
    partition@qspi-rootfs {
    label = "qspi-rootfs";
    reg = <0x620000 0x5e0000>;
    };
    partition@qspi-bitstream {
    label = "qspi-bitstream";
    reg = <0xc00000 0x400000>;
    };
    };
    };
    ps7-qspi-linear@fc000000 {
    clock-names = "ref_clk", "aper_clk";
    clocks = <0x2 0xa 0x2 0x2b>;
    compatible = "xlnx,ps7-qspi-linear-1.00.a";
    reg = <0xfc000000 0x1000000>;
    };
    ps7-scugic@f8f01000 {
    #address-cells = <0x2>;
    #interrupt-cells = <0x3>;
    #size-cells = <0x1>;
    compatible = "arm,cortex-a9-gic", "arm,gic";
    interrupt-controller;
    num_cpus = <0x2>;
    num_interrupts = <0x60>;
    reg = <0xf8f01000 0x1000 0xf8f00100 0x100>;
    linux,phandle = <0x3>;
    phandle = <0x3>;
    };
    ps7-scutimer@f8f00600 {
    clocks = <0x2 0x4>;
    compatible = "arm,cortex-a9-twd-timer";
    interrupt-parent = <0x3>;
    interrupts = <0x1 0xd 0x301>;
    reg = <0xf8f00600 0x20>;
    };
    ps7-scuwdt@f8f00620 {
    clocks = <0x2 0x4>;
    compatible = "xlnx,ps7-scuwdt-1.00.a";
    device_type = "watchdog";
    interrupt-parent = <0x3>;
    interrupts = <0x1 0xe 0x301>;
    reg = <0xf8f00620 0xe0>;
    };
    ps7-sdio@e0100000 {
    clock-frequency = <0x2faf080>;
    clock-names = "clk_xin", "clk_ahb";
    clocks = <0x2 0x15 0x2 0x20>;
    compatible = "arasan,sdhci-8.9a";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x18 0x4>;
    reg = <0xe0100000 0x1000>;
    xlnx,has-cd = <0x1>;
    xlnx,has-power = <0x0>;
    xlnx,has-wp = <0x1>;
    xlnx,sdio-clk-freq-hz = <0x2faf080>;
    };
    ps7-sdio@e0101000 {
    clock-frequency = <0x2faf080>;
    clock-names = "clk_xin", "clk_ahb";
    clocks = <0x2 0x16 0x2 0x21>;
                compatible = "arasan,sdhci-8.9a";
                interrupt-parent = <0x3>;
    interrupts = <0x0 0x2f 0x4>;
    reg = <0xe0101000 0x1000>;
                bus-width = <4>;
                ti,non-removable;
                ti,needs-special-hs-handling;
                cap-power-off-card;
                keep-power-in-suspend;
                vmmc-supply = <0x6>;
    #address-cells = <1>;
                #size-cells = <0>;
           wlcore:wlcore@0 {
           compatible = "ti,wlcore";
           interrupt-parent = <0x5>;
           interrupts = <0x0 0x4>;
                    reg = <2>;
           platform-quirks = <0x1>;
           board-ref-clock = <0x4>;
           };
    };
    ps7-slcr@f8000000 {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "xlnx,zynq-slcr", "syscon";
    ranges;
    reg = <0xf8000000 0x1000>;
    clkc@100 {
    #clock-cells = <0x1>;
    clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci", "lqspi", "smc", "pcap", "gem0", "gem1", "fclk0", "fclk1", "fclk2", "fclk3", "can0", "can1", "sdio0", "sdio1", "uart0", "uart1", "spi0", "spi1", "dma", "usb0_aper", "usb1_aper", "gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper", "spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper", "uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper", "swdt", "dbg_trc", "dbg_apb";
    compatible = "xlnx,ps7-clkc";
    fclk-enable = <0xf>;
    ps-clk-frequency = <0x1fca055>;
    reg = <0x100 0x100>;
    linux,phandle = <0x2>;
    phandle = <0x2>;
    };
    };
    ps7-ttc@f8001000 {
    clocks = <0x2 0x6>;
    compatible = "cdns,ttc";
    interrupt-names = "ttc0", "ttc1", "ttc2";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0xa 0x4 0x0 0xb 0x4 0x0 0xc 0x4>;
    reg = <0xf8001000 0x1000>;
    };
    serial@e0001000 {
    clock-names = "ref_clk", "aper_clk";
    clocks = <0x2 0x18 0x2 0x29>;
    compatible = "xlnx,xuartps";
    current-speed = <0x1c200>;
    device_type = "serial";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x32 0x4>;
    port-number = <0x0>;
    reg = <0xe0001000 0x1000>;
    xlnx,has-modem = <0x0>;
    };
    serial@e0000000 {
    compatible = "xlnx,xuartps";
    reg = <0xe0000000 0x1000>;
    interrupts = <0x0 0x1b 0x4>;
    interrupt-parent = <0x3>;
    clock-names = "ref_clk", "aper_clk";
    clocks = <0x2 0x17 0x2 0x28>;
    port-number = <0x1>;
    current-speed = <0x1c200>;
    device_type = "serial";
    xlnx,has-modem = <0x1>;
    };
    ps7-usb@e0002000 {
    clocks = <0x2 0x1c>;
    compatible = "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";
    dr_mode = "host";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x15 0x4>;
    phy_type = "ulpi";
    reg = <0xe0002000 0x1000>;
    };
    ps7-xadc@f8007100 {
    clocks = <0x2 0xc>;
    compatible = "xlnx,zynq-xadc-1.00.a";
    interrupt-parent = <0x3>;
    interrupts = <0x0 0x7 0x4>;
    reg = <0xf8007100 0x20>;
    };
    };
    } ;

    Regards

    Aditya

  • Hi Sir,

               I tried your suggestion and gone till <1000000> but still i am not getting success. I more thing sir, I am using R8.5 because i am following

                 website

                because this site is being managed by Avnet Silica for the Zedboard  and they have given the sequential steps for Integration of Wilink8 adaptor with Zedboard with kernel 3.17. As i am very new to this development that is why i thought that first let me at least get the Wilink8 1835 module to work properly with the provided steps, then i will try to upgrade with R8.7 mineself. Hope u understand this. So please help me to work it out with R8.5 now later on i will try with R8.7. Here i am again sharing mine dump please have a look and suggest me.

    [    1.119678] zynq-ehci zynq-ehci.0: irq 53, io mem 0x00000000

    [    1.139666] zynq-ehci zynq-ehci.0: USB 2.0 started, EHCI 1.00

    [    1.146151] hub 1-0:1.0: USB hub found

    [    1.149870] hub 1-0:1.0: 1 port detected

    [    1.154288] usbcore: registered new interface driver usb-storage

    [    1.160886] mousedev: PS/2 mouse device common for all mice

    [    1.166688] i2c /dev entries driver

    [    1.171044] Bluetooth: HCI UART driver ver 2.2

    [    1.175408] Bluetooth: HCI H4 protocol initialized

    [    1.180206] Bluetooth: HCI Three-wire UART (H5) protocol initialized

    [    1.186605] zynq-edac f8006000.ps7-ddrc: ecc not enabled

    [    1.192056] cpufreq_cpu0: failed to get cpu0 regulator: -19

    [    1.197594] cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted freq: 666666 KHz

    [    1.205135] cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial frequency changed to: 666667 KHz

    [    1.214035] Xilinx Zynq CpuIdle Driver started

    [    1.218719] sdhci: Secure Digital Host Controller Interface driver

    [    1.224836] sdhci: Copyright(c) Pierre Ossman

    [    1.229162] sdhci-pltfm: SDHCI platform and OF driver helper

    [    1.236022] sdhci-arasan e0100000.ps7-sdio: No vmmc regulator found

    [    1.242228] sdhci-arasan e0100000.ps7-sdio: No vqmmc regulator found

    [    1.289669] mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using ADMA

    [    1.297714] sdhci-arasan e0101000.ps7-sdio: No vqmmc regulator found

    [    1.343305] mmc0: new high speed SDHC card at address aaaa

    [    1.349085] mmcblk0: mmc0:aaaa SS04G 3.69 GiB

    [    1.354873]  mmcblk0: p1

    [    1.419669] mmc1: SDHCI controller on e0101000.ps7-sdio [e0101000.ps7-sdio] using ADMA

    [    1.427903] usbcore: registered new interface driver usbhid

    [    1.430216] sdhci-arasan e0101000.ps7-sdio: card claims to support voltages below defined range

    [    1.441394] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)

    [    1.442466] mmc1: new high speed SDIO card at address 0001

    [    1.453032] usbhid: USB HID core driver

    [    1.458674] TCP: cubic registered

    [    1.461979] NET: Registered protocol family 17

    [    1.466471] Bluetooth: RFCOMM TTY layer initialized

    [    1.471309] Bluetooth: RFCOMM socket layer initialized

    [    1.476400] Bluetooth: RFCOMM ver 1.11

    [    1.480168] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

    [    1.485413] Bluetooth: BNEP filters: protocol multicast

    [    1.490656] Bluetooth: BNEP socket layer initialized

    [    1.495576] Bluetooth: HIDP (Human Interface Emulation) ver 1.2

    [    1.501510] Bluetooth: HIDP socket layer initialized

    [    1.506596] Registering SWP/SWPB emulation handler

    [    1.517018] RAMDISK: gzip image found at block 0

    [    3.069429] VFS: Mounted root (ext2 filesystem) on device 1:0.

    [    3.075356] devtmpfs: mounted

    [    3.078516] Freeing unused kernel memory: 216K (c067e000 - c06b4000)

    INIT: version 2.88 booting

    Starting udev

    [    3.306083] udevd[570]: starting version 182

    bootlogd: cannot allocate pseudo tty: No such file or directory

    [    3.783094] random: dd urandom read with 23 bits of entropy available

    Populating dev cache

    [    3.920491] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)

    [    3.934982] wlcore: loaded

    [    3.937667] wlcore: driver version: xilinx-v2014.4-trd-dirty

    [    3.943427] wlcore: compilation time: 2014/december

    hwclock: can't open '/dev/misc/rtc': No such file or directory

    Tue Nov  1 14:23:14 UTC 2016

    hwclock: can't open '/dev/misc/rtc': No such file or directory

    INIT: Entering runlevel: 5

    Configuring network interfaces... udhcpc (v1.22.1) started

    Sending discover...

    Sending discover...

    Sending discover...

    No lease, forking to background

    done.

    Starting system message bus: dbus.

    hwclock: can't open '/dev/misc/rtc': No such file or directory

    Starting syslogd/klogd: done

    **************************************************************

    *** WiLinkTM 8: Enabling WLAN interface...

    [   16.831208] wlcore: PHY firmware version: Rev 8.2.0.0.224

    [   16.917709] ------------[ cut here ]------------

    [   16.922279] WARNING: CPU: 0 PID: 985 at drivers/net/wireless/ti/wlcore/sdio.c:108 wl12xx_sdio_raw_read+0xb0/0x138 [wlcore_sdio]()

    [   16.933909] Modules linked in: wl18xx wlcore wlcore_sdio

    [   16.939175] CPU: 0 PID: 985 Comm: ifconfig Not tainted 3.17.0-xilinx-dirty #14

    [   16.946434] [<c0015698>] (unwind_backtrace) from [<c00118a0>] (show_stack+0x10/0x14)

    [   16.954132] [<c00118a0>] (show_stack) from [<c04dc638>] (dump_stack+0x88/0xc8)

    [   16.961336] [<c04dc638>] (dump_stack) from [<c0023f08>] (warn_slowpath_common+0x70/0x8c)

    [   16.969383] [<c0023f08>] (warn_slowpath_common) from [<c0023fc0>] (warn_slowpath_null+0x1c/0x24)

    [   16.978174] [<c0023fc0>] (warn_slowpath_null) from [<bf000314>] (wl12xx_sdio_raw_read+0xb0/0x138 [wlcore_sdio])

    [   16.988264] [<bf000314>] (wl12xx_sdio_raw_read [wlcore_sdio]) from [<bf014f38>] (wlcore_cmd_wait_for_event_or_timeout+0x10c/0x234 [wlcore])

    [   17.000770] [<bf014f38>] (wlcore_cmd_wait_for_event_or_timeout [wlcore]) from [<bf017b5c>] (wlcore_cmd_regdomain_config_locked+0x1b8/0x274 [wlcore])

    [   17.014046] [<bf017b5c>] (wlcore_cmd_regdomain_config_locked [wlcore]) from [<bf020f30>] (wl1271_hw_init+0x50/0x160 [wlcore])

    [   17.025330] [<bf020f30>] (wl1271_hw_init [wlcore]) from [<bf012a10>] (wl1271_op_add_interface+0x6e4/0x860 [wlcore])

    [   17.035729] [<bf012a10>] (wl1271_op_add_interface [wlcore]) from [<c04b1da0>] (ieee80211_do_open+0x540/0xa1c)

    [   17.045632] [<c04b1da0>] (ieee80211_do_open) from [<c03a8d68>] (__dev_open+0xa8/0x10c)

    [   17.053512] [<c03a8d68>] (__dev_open) from [<c03a8fec>] (__dev_change_flags+0x94/0x144)

    [   17.061511] [<c03a8fec>] (__dev_change_flags) from [<c03a90b4>] (dev_change_flags+0x18/0x48)

    [   17.069921] [<c03a90b4>] (dev_change_flags) from [<c03fccd8>] (devinet_ioctl+0x66c/0x740)

    [   17.078061] [<c03fccd8>] (devinet_ioctl) from [<c0391590>] (sock_ioctl+0x1c8/0x29c)

    [   17.085734] [<c0391590>] (sock_ioctl) from [<c00e405c>] (do_vfs_ioctl+0x3dc/0x5a0)

    [   17.093267] [<c00e405c>] (do_vfs_ioctl) from [<c00e4254>] (SyS_ioctl+0x34/0x5c)

    [   17.100563] [<c00e4254>] (SyS_ioctl) from [<c000e560>] (ret_fast_syscall+0x0/0x30)

    [   17.108084] ---[ end trace 2a51725de53efd96 ]---

    [   17.112713] wl1271_sdio mmc1:0001:2: sdio read failed (-123)

    [   17.118325] wlcore: ERROR reg domain conf error

    [   17.302695] wlcore: ERROR firmware boot failed despite 3 retries

    ifconfig: SIOCSIFFLAGS: No medium found

    [   17.410400] mmc1: card 0001 removed

    [   17.540206] sdhci-arasan e0101000.ps7-sdio: card claims to support voltages below defined range

    [   17.560533] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)

    [   17.567159] mmc1: new high speed SDIO card at address 0001

    [   17.810425] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)

    [   17.821355] wlcore: loaded

    [   17.825837] wlcore: driver version: xilinx-v2014.4-trd-dirty

    [   17.831464] wlcore: compilation time: 2014/december

     

    *** WiLinkTM 8: Scan for local SSIDs...

    command failed: Network is down (-100)

     

    *** WiLinkTM 8: Connect to Wireless A/P (X-Fest2014-IoT)...

    command failed: Network is down (-100)

     

    Regards

    Aditya

  • Hi Sir,
    Much Thanks for your guidance . Mine above problem got solved. Only one thing is remaining.....when i am running the following command

    iw wlan0 XZ10 1003

    It is giving me o/p as follows;-

    command failed: Invalid argument (-22)

    What is reason for this???? (XZ10 1003 is mine mobile hotspot name)

    Regards
    ADITYA
  • should be:
    iw wlan0 connect <sdid>
  • Hi Sir,

    Here is mine commands:-
    1-ifconfig wlan0 up
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: firmware booted (Rev 8.9.0.0.31)
    2-iw wlan0 scan | grep SSID
    SSID: G604T_WIRELESS
    SSID: XZ10 1003
    SSID: MOBILE_LAB
    SSID: ASUS
    SSID: HP-Print-28-LaserJet Pro MFP
    3-iw wlan0 connect XZ10 1003
    So when i am typing above it is giving me error that i have mentioned in mine previous post.
    But when i am typing
    iw wlan0 connect XZ10-1003
    Then it is showing no error But in this if type the following command
    4-iw wlan0 link
    Then it shows not connected.

    Please suggest me some idea.

    Regards
    Aditya
  • Sir,

          Adding to above POST , also when i tried to connect MOBILE_LAB SSID ,i got the following thing:-

    [  112.713190] wlan0: send auth to e8:ba:70:c2:41:92 (try 1/3)

    [  112.741755] wlan0: authenticated

    [  112.749747] wlan0: associate with e8:ba:70:c2:41:92 (try 1/3)

    [  112.758246] wlan0: RX AssocResp from e8:ba:70:c2:41:92 (capab=0x421 status=0 aid=1)

    [  112.772864] wlcore: Association completed.

    [  112.778662] wlan0: associated

    [  112.781703] cfg80211: Calling CRDA to update world regulatory domain

    [  252.976566] wlan0: disassociated from e8:ba:70:c2:41:92 (Reason: 1)

     

    After this i stuck there and  then i pressed cntrl- c to get mine propmt.

     

    Regards

    Aditya

  • Hi again,

    Seems all is working as expected on your side now.

    Your issue is that using iw you can only connect to open AP (with no security configured).

    For the ap with the SSID "XZ10 1003", in case it is an open AP (no security enabled) you should probably use:
    iw wlan0 connect "XZ10 1003"
    The space inside the AP SSID is your issue.

    If you connect to a secure AP (WPA2 etc.) you need to use the wpa_supllicant.

    In case you have the example scripts under:

    /usr/share/wl18xx

    You can use the following examples wiki:

    processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    In case you don't have it, you can use wpa_cli commands direcly. See the following wiki:

    BR,

    Eyal

  • Hi Sir,
    Thanks for such a pin point guidelines. It worked........ YES I am able to ping the unsecured networks and now i have to look that how to reach secured networks. Sir one thing when i tried to use the following command :
    1- iw reg get.............then i got the below output
    country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
    (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    2- when i type the
    iw reg set IN
    then it is giving me the following msg:-
    cfg80211: Calling CRDA to update world regulatory domain

    and it is stuck at above line

    So how to get out of this. I think if this done then we can access the secure networks also.
    Please guide me.

    Regards
    Aditya
  • Hi Aditya,

    Great you are able to ping!

    What is not working for you now is not related directly to the wlan drivers but rather to the regulatory domain application in your file system.
    You can still use WPA supplicant just that you are avilable to the channels listed above that are supported by the "world" regulatory domain which is a subset of the channels that are allowed all around.

    do you have the "crda" utility installed in you file system?
    What is the output you get if you execute the following from command line:
    COUNTRY=IN crda

    Best Regards,
    Eyal
  • Hi Sir,
    Thanks a lot . Without you i would not have completed this task. Right now i am looking into crda regulatory problem and i will update you accordingly.Please do not close this thread now. I will tell myself for it. Sir i do not think i have crda utility in mine system. By the way where to look for this crda?????and sir when i typed the command mentioned by u, it shows that.........crda: command not found... and now mine full system is booted so i do not want to compile mine kernel again. So even if i have to install the crda in mine running system on mine zedboard....then how to do that.Could u plz guide me.

    Regards
    Aditya
  • Have you used our build script for building all the related components that are on your file system, or have you taken a ready made one?
    In case you use our build script , crda is built as part of it.

    When using our build script, the crda code is fetched and built from:
    git.ti.com/.../R8.7_SP1

    but it is a standard linux userspace package, so you can get it from other sources also for your target.

    BR,
    Eyal
  • Hi sir,
    Actualy i am using Xilinx-linux-3.17 and i followed your scripts but build mine kernel at mine own just i took necessary items like ti drivers, many patches etc from your build scripts/src folder and paste in mine kernel and complile it.But when i build mine kernel i have seen there is no crda folder. So can i copy the crda folder from inside the crda folder generated by your script and copy it in mine kernel . But where to copy it and build it.
    One more question do i need mac80211.ko, cfg80211.ko modules also( As i have found it from www.google.co.in/webhp

    Regards
    Aditya
  • Adding to mine above post , just now found out that i have wpa-supplicant.conf file in the etc folder. So now next what should i do????

    Regards
    Aditya
  • the "outputs" directory of the build script contain a compressed version of the fs directory content in a file called fs_skeleton.tbz2.
    Please make sure you extract the content the entire fs_skeleton.tar.tbz2 into your rootfs as the files are spread across multiple locations (libs, init scripts, config files, binaries) for all components (supplicant, crda, libnl etc.)
    Can't really help you in case you are trying to selectively copy only part of the files.

    BR,
    Eyal
  • Hi Sir,
    That is fine. So if i unzip this so it might possible that i will find a folder crda somewhere , then i will copy this in mine respective rootfs. But one thing ...dose this got any dependency on the kernel build???What i want to say that :- can i copy the crda folder directlly into mine rootfs without building mine kernel??? or do i need to build mine kernel with some special configuration???? Just give me your opinion if you have any idea abt this. Otherwise it is fine.
    Meanwhile alsoi am looking into wpa_supplicant.conf file which is available in mine etc folder????It seems that this requires some simple configurations......and mine work will be done. I will update you.

    Regards
    Aditya
  • You can checks the build-utilites/fs folder. Everything is created in there before it is zipped into fs_skeleton.tbz2.
    If you look there you should see crda as well under .../fs/sbin/crda
    but there are other related files as well.
    Same for all the relvant wpa_supplicant components/conf files

    The only part that is dependent on the kernel is the kernel modules (.ko files) but you have copied this part already anyway, right?
    Just copy/extract everything into your rootfs.

    BR,
    Eyal
  • Hi,

        I just want to clarify something from you. I have got wpi_cli in mine board and i am trying to configure so that i connect it with secure APs. Still i tried to put crda in mine build but i think there is something missing and i got some errors that am working out. But mine question is this :-- whenever i am trying to connect to a AP it is calling one CRDA update regulatory domain agent..............so what is this doing and what for it looking. As crda is not in mine filesystem even then i am able to reach non secured as well as secured APs, though in the case of secured APs i am not able to establish the connection, but in both the cases i am getting the following msg on mine console

    CRDA update regulatory domain agent..

    1- So why crda is important to me????

    2- I do not have crda in mine file system and now i do not have any issue but i want to know that :--in what case i will be needing this and why and what problem it may create if it is not there:- i.e which applications will be looking for this.

    Regards

    Aditya

  • Please check the following page regarding CRDA and what it is:

    As I wrote before you can work without it but only a subsequent of the channels will be usable. Threre may be channels in India that will not be open to you unless you update your regulatory to IN.

    If the AP you use is on one of the "World" channels and you can connect to it then you are ok for now.

    BR,

    Eyal

  • Hi Sir,
    Thanks for reply. So sir , right now i am planning to start without any crda kind of stuffs as it is working without it also. I will come to this issue again in later time and update you.
    By the way sir i was exploring wpa_supplicant and i found that i have one wpa_supplicat.conf file in etc folder and its content is as follows:-

    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    update_config=1
    network={
    key_mgmt=NONE
    }

    So you suggested one webpage being managed by TI, if i want to worked with secured APs also , so as per this when i executed the very first command which is as below;-

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

    to run the web_supplicant as a Daemon process in background. It gave me the following error

    -sh: /usr/sbin#: No such file or directory

    could u plz tell me what is the missing thing here??
    Also sir is there any app here on TI e2e community so that i chat with u online............

    Regards
    Aditya
  • Hi Sir,
    i found the mistake . Actually in the above # is wrong.
  • Hi Sir,

               I want to know one thing. When i run the command "wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B", i found something very strange. Here is mine dump. In this i will be making the lines BOLD about which i want to ask something. First plz have a look :--

    wpa_supplicant v2.2

    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'

    ctrl_interface='/var/run/wpa_supplicant'

    ctrl_interface_group='0'

    update_config=1

    Priority group 0

      id=0 ssid=''

    rfkill: Cannot open RFKILL control device

    nl80211: RFKILL status not available

    nl80211: Supported cipher 00-0f-ac:1

    nl80211: Supported cipher 00-0f-ac:5

    nl80211: Supported cipher 00-0f-ac:2

    nl80211: Supported cipher 00-0f-ac:4

    nl80211: Supported cipher 00-14-72:1

    nl80211: Supports Probe Response offload in AP mode

    nl80211: Using driver-based off-channel TX

    nl80211: Supported vendor command: vendor_id=0x80028 subcmd=0

    nl80211: Supported vendor command: vendor_id=0x80028 subcmd=1

    nl80211: Supported vendor command: vendor_id=0x80028 subcmd=2

    nl80211: Supported vendor event: vendor_id=0x80028 subcmd=0

    nl80211: Supported vendor event: vendor_id=0x80028 subcmd=1

    nl80211: Use separate P2P group interface (driver advertised support)

    nl80211: Enable multi-channel concurrent (driver advertised support)

    nl80211: interface wlan0 in phy phy0

    nl80211: Set mode ifindex 3 iftype 2 (STATION)

    nl80211: Subscribe to mgmt frames with non-AP handle 0xf5b98

    nl80211: Register frame type=0xd0 nl_handle=0xf5b98 match=06

    nl80211: Register frame type=0xd0 nl_handle=0xf5b98 match=0a07

    nl80211: Register frame type=0xd0 nl_handle=0xf5b98 match=0a11

    netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)

    nl80211: driver param='(null)'

    Add interface wlan0 to a new radio phy0

    nl80211: Regulatory information - country=00

    nl80211: 2402-2472 @ 40 MHz 20 mBm

    nl80211: 2457-2482 @ 40 MHz 20 mBm (no IR)

    nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)

    nl80211: 5170-5250 @ 160 MHz 20 mBm (no IR)

    nl80211: 5250-5330 @ 160 MHz 20 mBm (DFS) (no IR)

    nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)

    nl80211: Added 802.11b mode based on 802.11g information

    wlan0: Own MAC address: 20:91:48:d0:e0:90

    wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0

    wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0

    wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0

    wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0

    wlan0: RSN: flushing PMKID list in the driver

    nl80211: Flush PMKIDs

    wlan0: WPS: UUID based on MAC address: a4ba8536-6e69-5eb0-896e-4b55fc295da5

    EAPOL: SUPP_PAE entering state DISCONNECTED

    EAPOL: Supplicant port status: Unauthorized

    nl80211: Skip set_supp_port(unauthorized) while not associated

    EAPOL: KEY_RX entering state NO_KEY_RECEIVE

    EAPOL: SUPP_BE entering state INITIALIZE

    EAP: EAP entering state DISABLED

    Using existing control interface directory.

    ctrl_interface_group=0

    wlan0: Added interface wlan0

    wlan0: State: DISCONNECTED -> DISCONNECTED

    nl80211: Set wlan0 operstate 0->0 (DORMANT)

    netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)

    Daemonize..

    root@zedboard:/# [ 5673.862171] wlan0: deauthenticating from e8:ba:70:c2:44:32 by local choice (Reason: 2=PREV_AUTH_NOT_VALID)

    [ 5673.878475] cfg80211: Calling CRDA for country: IN

    [ 5673.885067] wlan0: authenticate with 00:19:5b:1f:fd:30

    [ 5673.892778] wlan0: send auth to 00:19:5b:1f:fd:30 (try 1/3)

    [ 5674.029627] wlan0: send auth to 00:19:5b:1f:fd:30 (try 2/3)

    [ 5674.269615] wlan0: send auth to 00:19:5b:1f:fd:30 (try 3/3)

    [ 5674.379618] wlan0: authentication with 00:19:5b:1f:fd:30 timed out

    [ 5678.500545] wlan0: authenticate with e8:ba:70:c2:44:30

    [ 5678.508220] wlan0: send auth to e8:ba:70:c2:44:30 (try 1/3)

    [ 5678.537290] wlan0: authenticated

    [ 5678.549669] wlan0: associate with e8:ba:70:c2:44:30 (try 1/3)

    [ 5678.560154] wlan0: RX AssocResp from e8:ba:70:c2:44:30 (capab=0x421 status=0 aid=3)

    [ 5678.575178] wlan0: associated

    [ 5678.579198] wlcore: Association completed.

     

    So i want to know that :- i have done nothing(CRDA is not installed till now)  but when i called the daemon process by that command how it has automatically called "Calling CRDA for country: IN".

    That is how it knows that it has to call country code IN ?????? I have not given nay country code before running that command.

    Could you explain the above process.

     

    Regards

    Aditya

     

  • First of all, it looks like it is working for you.
    Second, it get's this info (country: IN) from the AP you have connected to, and tries to update it in the local regulatory.bin config file so it will allow all the relevant chennels etc supported in India.
    Nothing happens as you don't have working CRDA.

    BR,
    Eyal
  • Hi Sir,

               Everything is working fine . I am able to connect with secured IPs by following the scripts on that web page. I did one change in mine wpa_supplicant.conf file and i added "country=IN". Then this time when i called daemon process , it did not not display the following line ,which you can observe in mine previous post.

    wlan0: deauthenticating from e8:ba:70:c2:44:32 by local choice (Reason: 2=PREV_AUTH_NOT_VALID)

    Sir i want to discuss something for mine own curiosity .

    After connection with secured IP when i called "iw reg get" then it is showing:-

    country 00: DFS-UNSET

           (2402 - 2472 @ 40), (6, 20), (N/A)

           (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN

           (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN

           (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN

           (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN

           (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN

    Then i called 

    iw reg set IN

    This time it displays 

    cfg80211: Calling CRDA to update world regulatory domain

    Q.1-  When i do not have crda in mine kernel then who is calling this and why???Nothing is there to updat???? So as per mine understanding this iw is calling crda to update some database as i have used the command "set iw reg set IN"...............Am i right????

    After this now i typed the folowing command:-

    iw reg get

    an its result is following

    country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
    (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN

    Q.2- If i am right as per mine observation then when i executed the command "iw reg get" now,  then it should have showed me country IN but it is showing the default. This means that there is no regulatory update, which has been indicated by above in mine Q.1

    Q3. According to mine observation in Q.2, then there is no meaning of setting country=IN in wpa_supplicant.conf file.

    Sir, plz could u explain what is going on. Though mine system is working but i want to know just becoz of mine curiosity.

    Regards

    Aditya

  • Hi,

    The mac80211 layer in the kernel is triggering the call to crda. However as you don't have it nothing happens...:

    cfg80211: Calling CRDA to update world regulatory domain

    In case you had crda installed correctly you should have seen additional messages like:

    [ 338.519037] cfg80211: Calling CRDA to update world regulatory domain
    [ 338.523266] cfg80211: World regulatory domain updated:
    [ 338.523269] cfg80211: (start_freq - end_freq @ bandwidth),
    (max_antenna_gain, max_eirp)
    [ 338.523272] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300
    mBi, 2000 mBm)
    [ 338.523276] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300
    mBi, 2000 mBm)
    [ 338.523279] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300
    mBi, 2000 mBm)
    [ 338.523281] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300
    mBi, 2000 mBm)
    [ 338.523284] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300
    mBi, 2000 mBm)

    BR,
    Eyal
  • Hi Sir,
    Thnaks for reply. I understood what u want to say. I will work on crda and update u later time. Sir is there any document or webpage that tells about the complete capability of this Wilink8 module which talks about its various configuration and network modes. Can we make this Wilink8 module as a AP for the other devices in the network(It must be there.....). So regarding all this could u please suggest me something???
    Actually i would like to work on some kind of IoT application where i want to make module as a AP and other devices to connect with it.

    Regards
    Aditya
  • PS , In mine previous post , it is typo mistake and i wrote Thnaks.
    Plz read it as ,Thanks .

    Regards
    Aditya
  • Yes, AP mode is supported of course.
    See the following usefull wiki page:
    processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    BR,
    Eyal
  • Hi Sir,

                 Thanks for reply. Do not close this thread. I would like to discuss with u as i get much clarity when i discuss with u. Though right now mine system is working fine.One thing that i want to ask:---

           Actually i want to transfer some file from mine laptop to the board attached with Wilink8 module via one AP with which both mine laptop and board having Wilink8 module are connected. Yesterday i tried to use some ftp and scp command but it shows there is no command like this in mine kernel. Could u please suggest me some references for this and the additional application that i need to have in mine kernel and the way to achieve this.

    Regards

    Aditya

  • Hi Sir,

              i am able to successfully transfer the some file.txt ,which is of few KB, from mine Ubuntu PC to the Zedboard attached with Wifi module and i have used  tftp command. But moment i tried to transfer a boot.bin (4 MB). Something wrong happened for which i am dumping mine console data here. Plz have a look and suggest me something. I am doubting on two things:-

    1- either , there is issue in mine device tree at the place where i have defined reg varibable. As currently the value of reg =<0x0e010000 0x1000> .So mine doubt is that the value 0x1000 is less for 4MB file?????

    2- or i am using the command 

    tftp -g -r boot.bin 10.10.2.2...........

    So, is tftp not understanding the .bin format???? because when i used the same command to get the .txt file(few KB) , then it was fine but when i used the command to get the .bin file then some problem occured.

    Here is mine dump while doing tftp for 4mb boot.bin file.

    tftp -g -r boot.bin 10.10.2.2

    [ 839.748027] ------------[ cut here ]------------

    [ 839.752617] WARNING: CPU: 0 PID: 647 at drivers/net/wireless/ti/wlcore/sdio.c:108 wl12xx_sdio_raw_read+0xb0/0x138 [wlcore_sdio]()
    [ 839.764217] Modules linked in: wl18xx wlcore wlcore_sdio
    [ 839.769495] CPU: 0 PID: 647 Comm: irq/96-wl18xx Tainted: G W 3.17.0-xilinx-dirty #19
    [ 839.778317] [<c0015698>] (unwind_backtrace) from [<c00118a0>] (show_stack+0x10/0x14)
    [ 839.786028] [<c00118a0>] (show_stack) from [<c04dc638>] (dump_stack+0x88/0xc8)
    [ 839.793222] [<c04dc638>] (dump_stack) from [<c0023f08>] (warn_slowpath_common+0x70/0x8c)
    [ 839.801288] [<c0023f08>] (warn_slowpath_common) from [<c0023fc0>] (warn_slowpath_null+0x1c/0x24)
    [ 839.810057] [<c0023fc0>] (warn_slowpath_null) from [<bf000314>] (wl12xx_sdio_raw_read+0xb0/0x138 [wlcore_sdio])
    [ 839.820150] [<bf000314>] (wl12xx_sdio_raw_read [wlcore_sdio]) from [<bf01b9f0>] (wlcore_rx+0x1a8/0x734 [wlcore])
    [ 839.830308] [<bf01b9f0>] (wlcore_rx [wlcore]) from [<bf0100bc>] (wlcore_irq_locked+0x100/0x2b4 [wlcore])
    [ 839.839759] [<bf0100bc>] (wlcore_irq_locked [wlcore]) from [<bf010f24>] (wlcore_irq+0xcc/0x16c [wlcore])
    [ 839.849203] [<bf010f24>] (wlcore_irq [wlcore]) from [<c005c8dc>] (irq_thread_fn+0x1c/0x40)
    [ 839.857453] [<c005c8dc>] (irq_thread_fn) from [<c005cbd8>] (irq_thread+0x124/0x164)
    [ 839.865079] [<c005cbd8>] (irq_thread) from [<c003b8e8>] (kthread+0xd0/0xe8)
    [ 839.872029] [<c003b8e8>] (kthread) from [<c000e5f8>] (ret_from_fork+0x14/0x3c)
    [ 839.879206] ---[ end trace 5c833d44da661e5c ]---
    [ 839.883833] wl1271_sdio mmc1:0001:2: sdio read failed (-84)
    [ 839.889359] ------------[ cut here ]------------
    [ 839.894001] WARNING: CPU: 0 PID: 647 at drivers/net/wireless/ti/wlcore/main.c:829 wl12xx_queue_recovery_work.part.38+0x58/0x5c [wlcore]()
    [ 839.906297] Modules linked in: wl18xx wlcore wlcore_sdio
    [ 839.911585] CPU: 0 PID: 647 Comm: irq/96-wl18xx Tainted: G W 3.17.0-xilinx-dirty #19
    [ 839.920383] [<c0015698>] (unwind_backtrace) from [<c00118a0>] (show_stack+0x10/0x14)
    [ 839.928084] [<c00118a0>] (show_stack) from [<c04dc638>] (dump_stack+0x88/0xc8)
    [ 839.935307] [<c04dc638>] (dump_stack) from [<c0023f08>] (warn_slowpath_common+0x70/0x8c)
    [ 839.943369] [<c0023f08>] (warn_slowpath_common) from [<c0023fc0>] (warn_slowpath_null+0x1c/0x24)
    [ 839.952161] [<c0023fc0>] (warn_slowpath_null) from [<bf010d34>] (wl12xx_queue_recovery_work.part.38+0x58/0x5c [wlcore])
    [ 839.962922] [<bf010d34>] (wl12xx_queue_recovery_work.part.38 [wlcore]) from [<bf010fc0>] (wlcore_irq+0x168/0x16c [wlcore])
    [ 839.973942] [<bf010fc0>] (wlcore_irq [wlcore]) from [<c005c8dc>] (irq_thread_fn+0x1c/0x40)
    [ 839.982171] [<c005c8dc>] (irq_thread_fn) from [<c005cbd8>] (irq_thread+0x124/0x164)
    [ 839.989815] [<c005cbd8>] (irq_thread) from [<c003b8e8>] (kthread+0xd0/0xe8)
    [ 839.996739] [<c003b8e8>] (kthread) from [<c000e5f8>] (ret_from_fork+0x14/0x3c)
    [ 840.003978] ---[ end trace 5c833d44da661e5d ]---
    [ 840.008567] wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.31
    [ 840.015338] wlcore: down
    [ 840.018955] ieee80211 phy0: Hardware restart was requested
    [ 840.455738] wlcore: PHY firmware version: Rev 8.2.0.0.224
    [ 840.562828] wlcore: firmware booted (Rev 8.9.0.0.31)
    [ 840.585208] wlcore: Association completed.

    Please suggest me.

    Regards

    Aditya

  • Hi,

    San you please open a new thread on this?

    BR,
    Eyal