This thread has been locked.

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

wl18xx driver unable to give interface

Other Parts Discussed in Thread: WL1835, WL1835MOD, WL1271

Hai all,

I am using WL1835 Module, and integrating with TI-AM335x customized board.

I Compiled the driver with Linux 3.12.10.and also compiled the firmware by using the link http://processors.wiki.ti.com/index.php/WL18xx_System_Build_Scripts 

I have added the platform data in Board file.

All successfully compiled and I am booting with the compiled images, 

While I am loading the modules, There is no response from WL18xx. I meant to say Interface is not creating.

Here I am posting the logs.

root@am335x-evm:~# modprobe wlcore
[ 33.785224] cfg80211: Calling CRDA to update world regulatory domain
root@am335x-evm:~#

root@am335x-evm:~# modprobe wl18xx
root@am335x-evm:~# modprobe wlcore_sdio
root@am335x-evm:~#

root@am335x-evm:~# lsmod
Module Size Used by
wlcore_sdio 4253 0
wl18xx 81088 0
wlcore 165643 1 wl18xx
mac80211 254196 2 wl18xx,wlcore
cfg80211 164473 3 mac80211,wl18xx,wlcore


root@am335x-evm:~# dmesg | tail
[ 33.785224] cfg80211: Calling CRDA to update world regulatory domain
root@am335x-evm:~#

Thanks for your Time.

Please any one help me to solve the problem

Regards

~

Bhaskar

  • Hi Bhaskar,

    Do you see the wlan0 interface when you do "ifconfig -a" ? Can you check if the WLAN_EN is going high with a scope?

    Regards,
    Gigi Joseph.
  • Thank you Gigi Joseph or quick reply.

    There is no wlan0 interface with the ifconfig -a and also with iwconfig
    No sir, WLAN_EN pin is not going to high, when i load the modules.
    It remains in LOW only.
  • Hi Bhaskar,

    This would mean that there is some issue with the dts file, probably the wrong pin is mapped to the WLAN_EN . Please see: processors.wiki.ti.com/.../WL18xx_Platform_Integration_Guide to get details on the dts changes that are required.

    Regards,
    Gigi Joseph
  • Dear Gigi Joseph,

    we have muxed the GPIO as per your provided link.

    + wlan_en_reg: fixedregulator@2 {
    + compatible = "regulator-fixed";
    + regulator-name = "wlan-en-regulator";
    + regulator-min-microvolt = <3300000>;
    + regulator-max-microvolt = <3300000>;
    +
    + /* WLAN_EN GPIO for this board - Bank3, pin9 */
    + gpio = <&gpio3 9 0>;
    +
    + /* WLAN card specific delay */
    + startup-delay-us = <70000>;
    + enable-active-high;
    + };

    + /* wl18xx card enable/irq GPIOs. */
    + wlan_pins: pinmux_wlan_pins {
    + pinctrl-single,pins = <
    + 0x12C (PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_tx_clk.gpio3_9   WLAN_ENABLE*/
    + 0x108 (PIN_INPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_10   WLAN_IRQ */
    + >;
    + };
    };

    +&mmc1 {
    + status = "okay";
    + vmmc-supply = <&wlan_en_reg>;
    + bus-width = <4>;
    + pinctrl-names = "default";
    + pinctrl-0 = <&mmc1_pins &wlan_pins>;
    + ti,non-removable;
    + ti,needs-special-hs-handling;
    + cap-power-off-card;
    + keep-power-in-suspend;
    +
    + #address-cells = <1>;
    + #size-cells = <0>;
    + wlcore: wlcore@0 {
    + compatible = "ti,wlcore";
    + reg = <2>;
    + interrupt-parent = <&gpio3>;
    + interrupts = <10 0>;
    + };

    I have tested the GPIO pins with sysfs entries , both are working good.

    Please help me, where I am missing to get wlan0 interface.

    Regards,

    Bhaskar

  • Dear Gigi Joseph,

    Happy to say that, WLAN_ENABLE is going to High state when the kernel starts booting.
    I have used another GPIO, from that it is happening.

    But same issue, Interface is not creating.
    Please help me to solve.

    Regards,
    Bhaskar
  • Hi Bhaskar,

    Can you please share the complete boot logs?

    Regards,
    Gigi Joseph.
  • Dear sir,

    Please find the attached log_msg.txt

    Regards,

    Bhaskar 

    Loading ARM Linux zImage '/mnt/tftp/zImage'
    Loading devicetree from '/mnt/tftp/am335x-phycore-rdk.dtb'
    commandline: console=ttyO0,115200n8 consoleblank=0 ip=192.168.1.94:192.168.1.68:192.168.1.1:255.255.255.0::eth0: root=/dev/nfs 
    nfsroot=/home/bhaskar/work/wifi/rootfs,vers=3,udp rw
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.30-dirty (bhaskar@phytec) (gcc version 4.7.3 20121106 (prerelease) (OSELAS.Toolchain-2012.12.
    1 linaro-4.7-2012.11) ) #3 SMP Wed Jul 8 12:11:25 IST 2015
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: Phytec AM335x PCM-953
    [    0.000000] cma: CMA: reserved 24 MiB at 9e000000
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon )
    [    0.000000] PERCPU: Embedded 8 pages/cpu @c0d4d000 s9024 r8192 d15552 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129280
    [    0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 ip=192.168.1.94:192.168.1.68:192.168.1.1:255.255.255.
    0::eth0: root=/dev/nfs nfsroot=/home/bhaskar/work/wifi/rootfs,vers=3,udp rw
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 482484K/521216K available (6107K kernel code, 579K rwdata, 2052K rodata, 396K init, 258K bss, 38732K res
    erved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0800064   (8161 kB)
    [    0.000000]       .init : 0xc0801000 - 0xc0864340   ( 397 kB)
    [    0.000000]       .data : 0xc0866000 - 0xc08f6f88   ( 580 kB)
    [    0.000000]        .bss : 0xc08f6f90 - 0xc0937b24   ( 259 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    [    0.000000] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000442] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
    [    0.049605] pid_max: default: 32768 minimum: 301
    [    0.049782] Security Framework initialized
    [    0.049871] Mount-cache hash table entries: 512
    [    0.064782] Initializing cgroup subsys debug
    [    0.064820] Initializing cgroup subsys devices
    [    0.064836] Initializing cgroup subsys perf_event
    [    0.064914] CPU: Testing write buffer coherency: ok
    [    0.065435] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.065509] Setting up static identity map for 0xc05fc7d8 - 0xc05fc848
    [    0.066585] Brought up 1 CPUs
    [    0.066605] SMP: Total of 1 processors activated.
    [    0.066617] CPU: All CPU(s) started in SVC mode.
    [    0.067518] devtmpfs: initialized
    [    0.073375] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.141916] omap_hwmod: debugss: _wait_target_disable failed
    [    0.142935] pinctrl core: initialized pinctrl subsystem
    [    0.144288] regulator-dummy: no parameters
    [    0.147203] NET: Registered protocol family 16
    [    0.150689] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.155201] cpuidle: using governor ladder
    [    0.155224] cpuidle: using governor menu
    [    0.166585] platform mpu.2: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.168357] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.170463] OMAP GPIO hardware version 0.1
    [    0.186852] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/pinmux_nandflash, deferring probe
    [    0.186899] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.187539] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.192936] DSS not supported on this SoC
    [    0.192962] No ATAGs?
    [    0.192977] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.195749] cpsw.1: No hwaddr in dt. Using d0:ff:50:0b:0c:a9 from efuse
    [    0.243134] bio: create slab <bio-0> at 0
    [    0.269188] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.341325] wlan-en-regulator: 1800 mV 
    [    0.342302] vcc3v3: 3300 mV 
    [    0.342883] lcd_3v3: 3300 mV 
    [    0.349029] SCSI subsystem initialized
    [    0.351425] usbcore: registered new interface driver usbfs
    [    0.351733] usbcore: registered new interface driver hub
    [    0.352102] usbcore: registered new device driver usb
    [    0.353676] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0, deferring probe
    [    0.353715] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.354146] media: Linux media interface: v0.10
    [    0.354444] Linux video capture interface: v2.00
    [    0.354914] pps_core: LinuxPPS API ver. 1 registered
    [    0.354929] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.355152] PTP clock support registered
    [    0.360183] Switched to clocksource timer1
    [    0.394143] NET: Registered protocol family 2
    [    0.395501] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.395613] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.395713] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.395801] TCP: reno registered
    [    0.395823] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.395856] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.396183] NET: Registered protocol family 1
    [    0.396714] RPC: Registered named UNIX socket transport module.
    [    0.396733] RPC: Registered udp transport module.
    [    0.396744] RPC: Registered tcp transport module.
    [    0.396755] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.397283] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.397452] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
    [    0.398529] PM: Loading am335x-pm-firmware.bin
    [    0.602298] VFS: Disk quotas dquot_6.5.2
    [    0.602519] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.603566] NFS: Registering the id_resolver key type
    [    0.603665] Key type id_resolver registered
    [    0.603680] Key type id_legacy registered
    [    0.603738] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.603997] msgmni has been set to 990
    [    0.606851] NET: Registered protocol family 38
    [    0.606914] io scheduler noop registered
    [    0.606927] io scheduler deadline registered
    [    0.606964] io scheduler cfq registered (default)
    [    0.610116] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.622282] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.626520] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.315370] console [ttyO0] enabled
    [    1.320456] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    1.331535] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a OMAP UART3
    [    1.344246] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.352047] [drm] Initialized drm 1.1.0 20060810
    [    1.375319] brd: module loaded
    [    1.388323] loop: module loaded
    [    1.398566] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.408736] edma-dma-engine edma-dma-engine.0: allocated channel for 0:17
    [    1.416441] edma-dma-engine edma-dma-engine.0: allocated channel for 0:16
    [    1.424390] m25p80 spi1.0: found s25sl064p, expected m25p80
    [    1.430444] m25p80 spi1.0: s25sl064p (8192 Kbytes)
    [    1.435537] 5 ofpart partitions found on MTD device spi1.0
    [    1.441370] Creating 5 MTD partitions on "spi1.0":
    [    1.446438] 0x000000000000-0x000000020000 : "xload"
    [    1.454098] 0x000000020000-0x0000000a0000 : "barebox"
    [    1.461862] 0x0000000a0000-0x0000000c0000 : "bareboxenv"
    [    1.469648] 0x0000000c0000-0x0000000e0000 : "oftree"
    [    1.477199] 0x0000000e0000-0x000000800000 : "kernel"
    [    1.491237] CAN device driver interface
    [    1.497308] c_can_platform 481d0000.d_can: c_can_platform device registered (regs=fa1d0000, irq=71)
    [    1.510596] usbcore: registered new interface driver asix
    [    1.516644] usbcore: registered new interface driver ax88179_178a
    [    1.523613] usbcore: registered new interface driver cdc_ether
    [    1.530070] usbcore: registered new interface driver r815x
    [    1.536297] usbcore: registered new interface driver smsc95xx
    [    1.542771] usbcore: registered new interface driver net1080
    [    1.549003] usbcore: registered new interface driver cdc_subset
    [    1.555550] usbcore: registered new interface driver zaurus
    [    1.561842] usbcore: registered new interface driver cdc_ncm
    [    1.568587] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.575569] ehci-pci: EHCI PCI platform driver
    [    1.580913] usbcore: registered new interface driver cdc_wdm
    [    1.587193] usbcore: registered new interface driver usb-storage
    [    1.599183] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    [    1.606129] musb-hdrc musb-hdrc.0.auto: Falied to request rx1.
    [    1.612526] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [    1.620826] platform musb-hdrc.0.auto: Driver musb-hdrc requests probe deferral
    [    1.631566] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
    [    1.638127] musb-hdrc musb-hdrc.1.auto: Falied to request rx1.
    [    1.644497] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
    [    1.652799] platform musb-hdrc.1.auto: Driver musb-hdrc requests probe deferral
    [    1.684747] mousedev: PS/2 mouse device common for all mice
    [    1.696640] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc1
    [    1.704603] 44e3e000.rtc: already running
    [    1.711209] i2c /dev entries driver
    [    1.715836] Driver for 1-wire Dallas network protocol.
    [    1.725590] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.735542] pinctrl-single 44e10800.pinmux: pin 44e108f0.0 already requested by 44e10800.pinmux; cannot claim for 48060000.mmc
    [    1.747714] pinctrl-single 44e10800.pinmux: pin-60 (48060000.mmc) status -22
    [    1.755217] pinctrl-single 44e10800.pinmux: could not request pin 60 (44e108f0.0) from group pinmux_mmc1_pins  on device pinctrl-single
    [    1.768108] omap_hsmmc 48060000.mmc: Error applying setting, reverse things back
    [    1.776478] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.783748] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.908158] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.915173] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.922522] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.930835] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.936953] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.944538] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.954019] usbcore: registered new interface driver usbhid
    [    1.959893] usbhid: USB HID core driver
    [    1.968732] oprofile: using arm/armv7
    [    1.973167] TCP: cubic registered
    [    1.976658] Initializing XFRM netlink socket
    [    1.981271] NET: Registered protocol family 17
    [    1.986023] NET: Registered protocol family 15
    [    1.990835] can: controller area network core (rev 20120528 abi 9)
    [    1.997671] NET: Registered protocol family 29
    [    2.002611] 8021q: 802.1Q VLAN Support v1.8
    [    2.007146] Key type dns_resolver registered
    [    2.012670] cpu cpu0: cpu0 regulator not ready, retry
    [    2.018038] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    2.026527] PM: CM3 Firmware Version = 0x186
    [    2.031722] ThumbEE CPU extension supported.
    [    2.036260] Registering SWP/SWPB emulation handler
    [    2.043756] vcc3v3: disabling
    [    2.046906] wlan-en-regulator: disabling
    [    2.051196] regulator-dummy: disabling
    [    2.056294] Error: Driver 'tfp410' is already registered, aborting...
    [    2.067048] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [    2.074189] [drm] No driver support for vblank timestamp query.
    [    2.128469] Console: switching to colour frame buffer device 100x30
    [    2.142111] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    2.147994] tilcdc 4830e000.lcdc: registered panic notifier
    [    2.153910] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    2.161118] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.166560] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    2.174459] ONFI param page 0 valid
    [    2.178144] ONFI flash detected
    [    2.181550] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
    [    2.193540] omap2-nand: detected x8 NAND flash
    [    2.198203] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.203862] omap2-nand: using custom ecc layout
    [    2.208848] 9 ofpart partitions found on MTD device omap2-nand.0
    [    2.215219] Creating 9 MTD partitions on "omap2-nand.0":
    [    2.220840] 0x000000000000-0x000000020000 : "xload"
    [    2.228556] 0x000000020000-0x000000040000 : "xload_backup1"
    [    2.236981] 0x000000040000-0x000000060000 : "xload_backup2"
    [    2.245384] 0x000000060000-0x000000080000 : "xload_backup3"
    [    2.253926] 0x000000080000-0x000000100000 : "barebox"
    [    2.262204] 0x000000100000-0x000000140000 : "bareboxenv"
    [    2.270442] 0x000000140000-0x000000180000 : "oftree"
    [    2.278283] 0x000000180000-0x000000980000 : "kernel"
    [    2.292929] 0x000000980000-0x000020000000 : "root"
    [    2.724341] tps65910 0-002d: No interrupt support, no core IRQ
    [    2.733544] vrtc: 1800 mV 
    [    2.736738] vrtc: supplied by wlan-en-regulator
    [    2.813748] vio: at 1500 mV 
    [    2.816916] vio: supplied by wlan-en-regulator
    [    2.823943] vdd_mpu: 912 <--> 1375 mV at 1287 mV 
    [    2.828988] vdd_mpu: supplied by wlan-en-regulator
    [    2.836345] vdd_core: 912 <--> 1150 mV at 1100 mV 
    [    2.841590] vdd_core: supplied by wlan-en-regulator
    [    2.847997] vdd3: 5000 mV 
    [    2.852596] vdig1_1p8v: 1800 mV 
    [    2.856085] vdig1_1p8v: supplied by wlan-en-regulator
    [    2.863173] vdig2: at 1800 mV 
    [    2.866483] vdig2: supplied by wlan-en-regulator
    [    2.873118] vpll: at 1800 mV 
    [    2.876337] vpll: supplied by wlan-en-regulator
    [    2.882965] vdac: at 1800 mV 
    [    2.886185] vdac: supplied by wlan-en-regulator
    [    2.892733] vaux1: at 1800 mV 
    [    2.896050] vaux1: supplied by wlan-en-regulator
    [    2.902686] vaux2: at 3300 mV 
    [    2.905999] vaux2: supplied by wlan-en-regulator
    [    2.912618] vaux33: at 3300 mV 
    [    2.916013] vaux33: supplied by wlan-en-regulator
    [    2.922724] vmmc: 1800 <--> 3300 mV at 3300 mV 
    [    2.927586] vmmc: supplied by wlan-en-regulator
    [    2.934321] tps65910-rtc tps65910-rtc: IRQ is not free.
    [    2.939848] tps65910-rtc: probe of tps65910-rtc failed with error -22
    [    2.948214] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 32 bytes/write
    [    2.956403] rtc-m41t80 0-0068: chip found, driver version 0.05
    [    2.963702] rtc-m41t80 0-0068: rtc core: registered rv4162c7 as rtc0
    [    2.972137] edt_ft5x06 0-0038: touchscreen probe failed
    [    2.977683] edt_ft5x06: probe of 0-0038 failed with error -121
    [    2.984109] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.990712] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    [    2.999828] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    3.006823] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    3.015527] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.022731] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.030352] usb usb1: Product: MUSB HDRC host driver
    [    3.035570] usb usb1: Manufacturer: Linux 3.12.30-dirty musb-hcd
    [    3.041929] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    3.048618] hub 1-0:1.0: USB hub found
    [    3.052765] hub 1-0:1.0: 1 port detected
    [    3.058599] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
    [    3.067872] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    3.074703] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    3.083470] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.090709] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.098306] usb usb2: Product: MUSB HDRC host driver
    [    3.103580] usb usb2: Manufacturer: Linux 3.12.30-dirty musb-hcd
    [    3.109894] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    3.116581] hub 2-0:1.0: USB hub found
    [    3.120742] hub 2-0:1.0: 1 port detected
    [    3.170258] tilcdc 4830e000.lcdc: timeout waiting for framedone
    [    3.270277] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    3.276703] davinci_mdio 4a101000.mdio: detected phy mask fffffffa
    [    3.285025] libphy: 4a101000.mdio: probed
    [    3.289261] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [    3.298932] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver Micrel KSZ9021 Gigabit PHY
    [    3.310153] Detected MACID = d0:ff:50:0b:0c:a7
    [    3.316499] cpsw: Detected MACID = d0:ff:50:0b:0c:a9
    [    3.324548] rtc-m41t80 0-0068: setting system clock to 2015-07-08 11:26:01 UTC (1436354761)
    [    3.338568] net eth0: initializing cpsw version 1.12 (0)
    [    3.347555] net eth0: phy found : id is : 0x7c0f1
    [    3.358186] 8021q: adding VLAN 0 to HW filter on device eth0
    [    6.420856] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
    [    6.441020] IP-Config: Complete:
    [    6.444500]      device=eth0, hwaddr=d0:ff:50:0b:0c:a7, ipaddr=192.168.1.94, mask=255.255.255.0, gw=192.168.1.1
    [    6.455340]      host=192.168.1.94, domain=, nis-domain=(none)
    [    6.461642]      bootserver=192.168.1.68, rootserver=192.168.1.68, rootpath=
    [    6.482711] VFS: Mounted root (nfs filesystem) on device 0:14.
    [    6.489766] devtmpfs: mounted
    [    6.494520] Freeing unused kernel memory: 396K (c0801000 - c0864000)
    INIT: version 2.88 booting
    Starting udev
    [    7.647320] udevd[1010]: starting version 182
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    ALSA: Restoring mixer settings...
    NOT configuring network interfaces: / is an NFS mount
    /usr/sbin/alsactl: load_state:1696: No soundcards found...
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    ioctl FBIOPUT_VSCREENINFO: Invalid argument
    Starting PVR
    Error: missing filename.
    Could not find pvrsrvkm driver
    Starting Lighttpd Web Server: lighttpd.
    2015-07-08 11:26:15: (log.c.166) server started 
    /
    Starting Matrix GUI application.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the followin GPLv3 packages:
            binutils-symlinks
            binutils
            gdbserver
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    Stopping Bootlog daemon: bootlogd.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO0
    
    Arago 2013.12 am335x-evm ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# modprobe wlcore
    [   43.314356] cfg80211: Calling CRDA to update world regulatory domain
    [   44.128811] cfg80211: World regulatory domain updated:
    [   44.134394] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [   44.143079] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   44.151304] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   44.159506] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   44.167718] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   44.175929] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    root@am335x-evm:~# 
    root@am335x-evm:~# modprobe wl18xx
    root@am335x-evm:~# modprobe wlcore_sdio
    root@am335x-evm:~#     
    root@am335x-evm:~# lsmod | head
    Module                  Size  Used by
    wl18xx                 81088  0 
    wlcore                165643  1 wl18xx
    mac80211              254196  2 wl18xx,wlcore
    cfg80211              164473  3 mac80211,wl18xx,wlcore
    wlcore_sdio             4253  0 
    snd_soc_omap            2502  0 
    snd_pcm_dmaengine       2985  1 snd_soc_omap
    snd_soc_core           99216  1 snd_soc_omap
    regmap_spi              1477  1 snd_soc_core
    root@am335x-evm:~# 
    root@am335x-evm:~#
    root@am335x-evm:~# iwconfig 
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      no wireless extensions.
    
    can0      no wireless extensions.
    
    root@am335x-evm:~# ifconfig -a
    can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
              NOARP  MTU:16  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:10 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:71 
    
    eth0      Link encap:Ethernet  HWaddr D0:FF:50:0B:0C:A7  
              inet addr:192.168.1.94  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:57150 errors:0 dropped:0 overruns:0 frame:0
              TX packets:24637 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:71654325 (68.3 MiB)  TX bytes:4049964 (3.8 MiB)
              Interrupt:56 
    
    eth1      Link encap:Ethernet  HWaddr D0:FF:50:0B:0C:A9  
              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)
    
    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:122 errors:0 dropped:0 overruns:0 frame:0
              TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:248791 (242.9 KiB)  TX bytes:248791 (242.9 KiB)
    
    root@am335x-evm:~#
    

  • Hi Bhaskar,

    I see the below information in your logs:

    [ 1.735542] pinctrl-single 44e10800.pinmux: pin 44e108f0.0 already requested by 44e10800.pinmux; cannot claim for 48060000.mmc
    [ 1.747714] pinctrl-single 44e10800.pinmux: pin-60 (48060000.mmc) status -22
    [ 1.755217] pinctrl-single 44e10800.pinmux: could not request pin 60 (44e108f0.0) from group pinmux_mmc1_pins on device pinctrl-single
    [ 1.768108] omap_hsmmc 48060000.mmc: Error applying setting, reverse things back


    This looks like some sort of a conflict. Can you please check this?

    Regards,
    Gigi Joseph.
  • Dear Gigi Joseph,

    Thanks for info, I solved that conflict issue,

    But same problem, unable to get interface.

    Here I am attaching updated log.

    Please find it, and let me know, where i am doing wrong.

    Regards

    Bhaskar

    Loading ARM Linux zImage '/mnt/tftp/zImage'
    Loading devicetree from '/mnt/tftp/am335x-phycore-rdk.dtb'
    commandline: console=ttyO0,115200n8 consoleblank=0 ip=192.168.1.94:192.168.1.68:192.168.1.1:255.255.255.0::eth0: root=/dev/nfs 
    nfsroot=/home/bhaskar/work/wifi/rootfs,vers=3,udp rw
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.30-dirty (bhaskar@phytec) (gcc version 4.7.3 20121106 (prerelease) (OSELAS.Toolchain-2012.12.
    1 linaro-4.7-2012.11) ) #3 SMP Wed Jul 8 12:11:25 IST 2015
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: Phytec AM335x PCM-953
    [    0.000000] cma: CMA: reserved 24 MiB at 9e000000
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon )
    [    0.000000] PERCPU: Embedded 8 pages/cpu @c0d4d000 s9024 r8192 d15552 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129280
    [    0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 ip=192.168.1.94:192.168.1.68:192.168.1.1:255.255.255.
    0::eth0: root=/dev/nfs nfsroot=/home/bhaskar/work/wifi/rootfs,vers=3,udp rw
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 482484K/521216K available (6107K kernel code, 579K rwdata, 2052K rodata, 396K init, 258K bss, 38732K res
    erved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0800064   (8161 kB)
    [    0.000000]       .init : 0xc0801000 - 0xc0864340   ( 397 kB)
    [    0.000000]       .data : 0xc0866000 - 0xc08f6f88   ( 580 kB)
    [    0.000000]        .bss : 0xc08f6f90 - 0xc0937b24   ( 259 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    [    0.000000] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000444] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
    [    0.049607] pid_max: default: 32768 minimum: 301
    [    0.049781] Security Framework initialized
    [    0.049869] Mount-cache hash table entries: 512
    [    0.064797] Initializing cgroup subsys debug
    [    0.064834] Initializing cgroup subsys devices
    [    0.064850] Initializing cgroup subsys perf_event
    [    0.064930] CPU: Testing write buffer coherency: ok
    [    0.065444] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.065520] Setting up static identity map for 0xc05fc7d8 - 0xc05fc848
    [    0.066596] Brought up 1 CPUs
    [    0.066614] SMP: Total of 1 processors activated.
    [    0.066626] CPU: All CPU(s) started in SVC mode.
    [    0.067537] devtmpfs: initialized
    [    0.073388] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.141937] omap_hwmod: debugss: _wait_target_disable failed
    [    0.142962] pinctrl core: initialized pinctrl subsystem
    [    0.144313] regulator-dummy: no parameters
    [    0.147214] NET: Registered protocol family 16
    [    0.150713] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.155219] cpuidle: using governor ladder
    [    0.155244] cpuidle: using governor menu
    [    0.166614] platform mpu.2: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.168377] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.170509] OMAP GPIO hardware version 0.1
    [    0.186914] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/pinmux_nandflash, deferring probe
    [    0.186961] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.187604] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.192940] DSS not supported on this SoC
    [    0.192966] No ATAGs?
    [    0.192982] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.195746] cpsw.1: No hwaddr in dt. Using d0:ff:50:0b:0c:a9 from efuse
    [    0.243152] bio: create slab <bio-0> at 0
    [    0.269239] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.341364] wlan-en-regulator: 1800 mV 
    [    0.342344] vcc3v3: 3300 mV 
    [    0.342916] lcd_3v3: 3300 mV 
    [    0.349080] SCSI subsystem initialized
    [    0.351486] usbcore: registered new interface driver usbfs
    [    0.351782] usbcore: registered new interface driver hub
    [    0.352144] usbcore: registered new device driver usb
    [    0.353741] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0, deferring probe
    [    0.353779] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.354218] media: Linux media interface: v0.10
    [    0.354516] Linux video capture interface: v2.00
    [    0.354983] pps_core: LinuxPPS API ver. 1 registered
    [    0.354998] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.355224] PTP clock support registered
    [    0.360270] Switched to clocksource timer1
    [    0.393992] NET: Registered protocol family 2
    [    0.395339] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.395451] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.395549] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.395639] TCP: reno registered
    [    0.395660] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.395693] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.396025] NET: Registered protocol family 1
    [    0.396566] RPC: Registered named UNIX socket transport module.
    [    0.396583] RPC: Registered udp transport module.
    [    0.396594] RPC: Registered tcp transport module.
    [    0.396605] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.397133] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.397300] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
    [    0.398395] PM: Loading am335x-pm-firmware.bin
    [    0.602242] VFS: Disk quotas dquot_6.5.2
    [    0.602464] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.603515] NFS: Registering the id_resolver key type
    [    0.603616] Key type id_resolver registered
    [    0.603633] Key type id_legacy registered
    [    0.603692] jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
    [    0.603947] msgmni has been set to 990
    [    0.606786] NET: Registered protocol family 38
    [    0.606852] io scheduler noop registered
    [    0.606866] io scheduler deadline registered
    [    0.606901] io scheduler cfq registered (default)
    [    0.610062] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.622181] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.626414] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.316324] console [ttyO0] enabled
    [    1.321329] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    1.332465] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a OMAP UART3
    [    1.345148] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.352956] [drm] Initialized drm 1.1.0 20060810
    [    1.376257] brd: module loaded
    [    1.389176] loop: module loaded
    [    1.399436] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.409654] edma-dma-engine edma-dma-engine.0: allocated channel for 0:17
    [    1.417335] edma-dma-engine edma-dma-engine.0: allocated channel for 0:16
    [    1.425294] m25p80 spi1.0: found s25sl064p, expected m25p80
    [    1.431368] m25p80 spi1.0: s25sl064p (8192 Kbytes)
    [    1.436462] 5 ofpart partitions found on MTD device spi1.0
    [    1.442282] Creating 5 MTD partitions on "spi1.0":
    [    1.447351] 0x000000000000-0x000000020000 : "xload"
    [    1.455003] 0x000000020000-0x0000000a0000 : "barebox"
    [    1.462744] 0x0000000a0000-0x0000000c0000 : "bareboxenv"
    [    1.470674] 0x0000000c0000-0x0000000e0000 : "oftree"
    [    1.478111] 0x0000000e0000-0x000000800000 : "kernel"
    [    1.492176] CAN device driver interface
    [    1.498227] c_can_platform 481d0000.d_can: c_can_platform device registered (regs=fa1d0000, irq=71)
    [    1.511614] usbcore: registered new interface driver asix
    [    1.517644] usbcore: registered new interface driver ax88179_178a
    [    1.524592] usbcore: registered new interface driver cdc_ether
    [    1.531221] usbcore: registered new interface driver r815x
    [    1.537308] usbcore: registered new interface driver smsc95xx
    [    1.543673] usbcore: registered new interface driver net1080
    [    1.549899] usbcore: registered new interface driver cdc_subset
    [    1.556456] usbcore: registered new interface driver zaurus
    [    1.562853] usbcore: registered new interface driver cdc_ncm
    [    1.569579] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.576562] ehci-pci: EHCI PCI platform driver
    [    1.581892] usbcore: registered new interface driver cdc_wdm
    [    1.588171] usbcore: registered new interface driver usb-storage
    [    1.600193] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    [    1.607128] musb-hdrc musb-hdrc.0.auto: Falied to request rx1.
    [    1.613534] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [    1.621830] platform musb-hdrc.0.auto: Driver musb-hdrc requests probe deferral
    [    1.632553] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
    [    1.639117] musb-hdrc musb-hdrc.1.auto: Falied to request rx1.
    [    1.645511] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
    [    1.653798] platform musb-hdrc.1.auto: Driver musb-hdrc requests probe deferral
    [    1.685808] mousedev: PS/2 mouse device common for all mice
    [    1.697636] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc1
    [    1.705665] 44e3e000.rtc: already running
    [    1.712274] i2c /dev entries driver
    [    1.716908] Driver for 1-wire Dallas network protocol.
    [    1.726800] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.737132] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.744734] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.868284] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.875282] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.882640] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.891088] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.897214] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.904596] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.914068] usbcore: registered new interface driver usbhid
    [    1.919933] usbhid: USB HID core driver
    [    1.928853] oprofile: using arm/armv7
    [    1.933326] TCP: cubic registered
    [    1.936821] Initializing XFRM netlink socket
    [    1.941665] NET: Registered protocol family 17
    [    1.946402] NET: Registered protocol family 15
    [    1.951146] can: controller area network core (rev 20120528 abi 9)
    [    1.957787] NET: Registered protocol family 29
    [    1.962751] 8021q: 802.1Q VLAN Support v1.8
    [    1.967315] Key type dns_resolver registered
    [    1.972809] cpu cpu0: cpu0 regulator not ready, retry
    [    1.978156] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    1.986604] PM: CM3 Firmware Version = 0x186
    [    1.991781] ThumbEE CPU extension supported.
    [    1.996333] Registering SWP/SWPB emulation handler
    [    2.003590] vcc3v3: disabling
    [    2.006740] wlan-en-regulator: disabling
    [    2.011021] regulator-dummy: disabling
    [    2.016134] Error: Driver 'tfp410' is already registered, aborting...
    [    2.026876] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [    2.033994] [drm] No driver support for vblank timestamp query.
    [    2.088561] Console: switching to colour frame buffer device 100x30
    [    2.102194] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    2.108077] tilcdc 4830e000.lcdc: registered panic notifier
    [    2.113999] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    2.121218] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.126659] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    2.134551] ONFI param page 0 valid
    [    2.138235] ONFI flash detected
    [    2.141648] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
    [    2.153646] omap2-nand: detected x8 NAND flash
    [    2.158318] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.163976] omap2-nand: using custom ecc layout
    [    2.168957] 9 ofpart partitions found on MTD device omap2-nand.0
    [    2.175362] Creating 9 MTD partitions on "omap2-nand.0":
    [    2.181008] 0x000000000000-0x000000020000 : "xload"
    [    2.188767] 0x000000020000-0x000000040000 : "xload_backup1"
    [    2.197232] 0x000000040000-0x000000060000 : "xload_backup2"
    [    2.205674] 0x000000060000-0x000000080000 : "xload_backup3"
    [    2.214241] 0x000000080000-0x000000100000 : "barebox"
    [    2.222609] 0x000000100000-0x000000140000 : "bareboxenv"
    [    2.230926] 0x000000140000-0x000000180000 : "oftree"
    [    2.238716] 0x000000180000-0x000000980000 : "kernel"
    [    2.253170] 0x000000980000-0x000020000000 : "root"
    [    2.684667] tps65910 0-002d: No interrupt support, no core IRQ
    [    2.693833] vrtc: 1800 mV 
    [    2.697027] vrtc: supplied by wlan-en-regulator
    [    2.774133] vio: at 1500 mV 
    [    2.777306] vio: supplied by wlan-en-regulator
    [    2.784351] vdd_mpu: 912 <--> 1375 mV at 1287 mV 
    [    2.789404] vdd_mpu: supplied by wlan-en-regulator
    [    2.796756] vdd_core: 912 <--> 1150 mV at 1100 mV 
    [    2.802003] vdd_core: supplied by wlan-en-regulator
    [    2.808399] vdd3: 5000 mV 
    [    2.813020] vdig1_1p8v: 1800 mV 
    [    2.816520] vdig1_1p8v: supplied by wlan-en-regulator
    [    2.823611] vdig2: at 1800 mV 
    [    2.826926] vdig2: supplied by wlan-en-regulator
    [    2.833545] vpll: at 1800 mV 
    [    2.836759] vpll: supplied by wlan-en-regulator
    [    2.843403] vdac: at 1800 mV 
    [    2.846639] vdac: supplied by wlan-en-regulator
    [    2.853199] vaux1: at 1800 mV 
    [    2.856523] vaux1: supplied by wlan-en-regulator
    [    2.863138] vaux2: at 3300 mV 
    [    2.866451] vaux2: supplied by wlan-en-regulator
    [    2.873086] vaux33: at 3300 mV 
    [    2.876498] vaux33: supplied by wlan-en-regulator
    [    2.883224] vmmc: at 3300 mV 
    [    2.886458] vmmc: supplied by wlan-en-regulator
    [    2.893167] tps65910-rtc tps65910-rtc: IRQ is not free.
    [    2.898698] tps65910-rtc: probe of tps65910-rtc failed with error -22
    [    2.907110] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 32 bytes/write
    [    2.915316] rtc-m41t80 0-0068: chip found, driver version 0.05
    [    2.922629] rtc-m41t80 0-0068: rtc core: registered rv4162c7 as rtc0
    [    2.930989] edt_ft5x06 0-0038: touchscreen probe failed
    [    2.936547] edt_ft5x06: probe of 0-0038 failed with error -121
    [    2.943035] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.949542] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    [    2.958874] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    2.965745] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    2.974445] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.981662] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.989262] usb usb1: Product: MUSB HDRC host driver
    [    2.994511] usb usb1: Manufacturer: Linux 3.12.30-dirty musb-hcd
    [    3.000857] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    3.007524] hub 1-0:1.0: USB hub found
    [    3.011670] hub 1-0:1.0: 1 port detected
    [    3.017480] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
    [    3.026855] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    3.033657] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    3.042461] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.049620] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.057312] usb usb2: Product: MUSB HDRC host driver
    [    3.062586] usb usb2: Manufacturer: Linux 3.12.30-dirty musb-hcd
    [    3.068909] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    3.075594] hub 2-0:1.0: USB hub found
    [    3.079642] hub 2-0:1.0: 1 port detected
    [    3.130357] tilcdc 4830e000.lcdc: timeout waiting for framedone
    [    3.230369] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    3.236784] davinci_mdio 4a101000.mdio: detected phy mask fffffffa
    [    3.245034] libphy: 4a101000.mdio: probed
    [    3.249256] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [    3.258894] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver Micrel KSZ9021 Gigabit PHY
    [    3.270126] Detected MACID = d0:ff:50:0b:0c:a7
    [    3.276431] cpsw: Detected MACID = d0:ff:50:0b:0c:a9
    [    3.284398] rtc-m41t80 0-0068: setting system clock to 2015-07-09 05:43:38 UTC (1436420618)
    [    3.298394] net eth0: initializing cpsw version 1.12 (0)
    [    3.307340] net eth0: phy found : id is : 0x7c0f1
    [    3.317984] 8021q: adding VLAN 0 to HW filter on device eth0
    [    6.380965] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
    [    6.401111] IP-Config: Complete:
    [    6.404594]      device=eth0, hwaddr=d0:ff:50:0b:0c:a7, ipaddr=192.168.1.94, mask=255.255.255.0, gw=192.168.1.1
    [    6.415439]      host=192.168.1.94, domain=, nis-domain=(none)
    [    6.421747]      bootserver=192.168.1.68, rootserver=192.168.1.68, rootpath=
    [    6.443121] VFS: Mounted root (nfs filesystem) on device 0:14.
    [    6.450126] devtmpfs: mounted
    [    6.454885] Freeing unused kernel memory: 396K (c0801000 - c0864000)
    INIT: version 2.88 booting
    Starting udev
    [    7.348464] udevd[1010]: starting version 182
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1696: No soundcards found...
    NOT configuring network interfaces: / is an NFS mount
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    ioctl FBIOPUT_VSCREENINFO: Invalid argument
    Starting PVR
    Error: missing filename.
    Could not find pvrsrvkm driver
    Starting Lighttpd Web Server: lighttpd.
    2015-07-09 05:43:52: (log.c.166) server started 
    /
    Starting Matrix GUI application.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the followin GPLv3 packages:
            binutils-symlinks
            binutils
            gdbserver
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    Stopping Bootlog daemon: bootlogd.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO0
    
    Arago 2013.12 am335x-evm ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# dmesg | grep mmc
    [    2.883224] vmmc: at 3300 mV 
    [    2.886458] vmmc: supplied by wlan-en-regulator
    root@am335x-evm:~# 
    root@am335x-evm:~# modprobe wlcore
    [  265.174130] cfg80211: Calling CRDA to update world regulatory domain
    [  265.914682] cfg80211: World regulatory domain updated:
    [  265.920113] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [  265.928827] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  265.936981] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [  265.945116] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [  265.953253] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  265.961382] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    root@am335x-evm:~# 
    root@am335x-evm:~# modprobe wl18xx
    root@am335x-evm:~# 
    root@am335x-evm:~# modprobe wlcore_sdio
    root@am335x-evm:~# 
    root@am335x-evm:~# ifconfig -a
    can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
              NOARP  MTU:16  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:10 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:71 
    
    eth0      Link encap:Ethernet  HWaddr D0:FF:50:0B:0C:A7  
              inet addr:192.168.1.94  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:57209 errors:0 dropped:6 overruns:0 frame:0
              TX packets:24713 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:71598684 (68.2 MiB)  TX bytes:4060804 (3.8 MiB)
              Interrupt:56 
    
    eth1      Link encap:Ethernet  HWaddr D0:FF:50:0B:0C:A9  
              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)
    
    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:144 errors:0 dropped:0 overruns:0 frame:0
              TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:249967 (244.1 KiB)  TX bytes:249967 (244.1 KiB)
    
    root@am335x-evm:~# 
    root@am335x-evm:~# iwconfig 
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      no wireless extensions.
    
    can0      no wireless extensions.
    
    root@am335x-evm:~# 
    root@am335x-evm:~#
    root@am335x-evm:~# dmesg | tail
    [    6.454885] Freeing unused kernel memory: 396K (c0801000 - c0864000)
    >[    7.348464] udevd[1010]: starting version 182
    [  265.174130] cfg80211: Calling CRDA to update world regulatory domain
    [  265.914682] cfg80211: World regulatory domain updated:
    [  265.920113] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [  265.928827] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  265.936981] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [  265.945116] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [  265.953253] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  265.961382] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    root@am335x-evm:~#
    

  • Hi Bhaskar,

    I don't see the WL8 getting detected on the SDIO bus.
    Ideally, you should see something like:

    mmc1: new high speed SDIO card at address 0001

    in the kernel logs.

    Can you verify if you have integrated the module correctly. You can refer to: processors.wiki.ti.com/.../WL18xx_Module_Schematic_Checklist and fill out the checklist.

    Please also verify proper power up sequence.

    Regards,
    Gigi Joseph.
  • Hi Gigi Joseph,

    Here we are facing an issue with WLAN_EN_SOC pin at WL1835 .

    If I remove the 0 ohm resistor between WL_EN_1V8 and WLAN_EN_SOC, then I am getting proper 1.8V at WL_EN_1V8 pin.

    If I connected the 0 ohm resistor , the voltage drop is happening at WL_EN_1V8, we are getting 0.95V.

    Here I am attaching the image for reference, and 0 ohm resistor is R2, which is in circle.

    Regards

    ~ Bhaskar

  • Hi Bhaskar,

    Need to understand:

    1. What else connected on the line.
    2. Have you connected the enble to the correct pin number (can be checked by module ds)

    Regards,
    Gigi Joseph.
  • Dear Gigi Joseph,

    Here I am sharing the connected lines to WL_ENABLE.

    I am connecting the GPIO pin proerly to HOST_WL_EN_3V3 ( 8 pin of j9 ),

    Then It is going to 3V3V to 1.8V Level Translator.

    At pin Number 3 of U3, I am getting the 1.8V If that R2 (0 ohm) resister removed as i told you before.

    Then this WL_EN_1V8 is going directly to WL1835 MOD.

    Please let me know, where i am doing wrong.

    If you want, I will share full schematic of my WL1385 Eval module.

    Regards

    ~ Bhaskar

  • Hi Bhaskar,

    Please try to remove the pull downs and check.

    Regards,
    Gigi Joseph.
  • Dear Gigi Joseph,

    We have tried that too, Same result.

    Regards,
    ~ Bhaskar
  • Hi Bhaskar,

    Can you share your full schematics?

    Regards,
    Gigi Joseph.
  • Hello Gigi Joseph,

    Here I am attaching the Full schematic.

    Regards,

    ~ Bhaskar

    WL18xx_interface_board_l.pdf

  • Hi Bhaskar,

    Please see the below response I received internally.

    ***
    There is a dedicated directional LS for the enable lines.


    What is the voltage on B2?
    If the resistor is removed and there is 3.3V on pin 6 of U3 there is no way that there is no 1.8V on pin A2
    ***

    Regards,
    Gigi Joseph

  • Hello Gigi Joseph,

    If LS means Level Shifter, we are using same LS which is used by TI EVM Module. We have taken reference from TI.

    The voltage at B2 is 3.3V, which is coming from GPIO Pin.

    We are getting 1.8V on pin A2, If we removed the 0 ohm resister at WL1835MOD, as i shared before.

    Regards

    ~ Bhaskar

  • Hi,

    Several more clarifications:
    Is it possible to remove the LS and the pull down resistor and drive externally 1.8v(using the jumper) - is there a voltage drop?
    Is it only one board or several?
    Can you please measure the resistance to ground on the line once the 0R removed from the module side?

    Thanks,
    Alexey
  • Hello Alexey &  Gigi Joseph,

    After remounting the WL1835 and LS properly, Now I am getting proper voltage levels.

    and sdio card also got detected.

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

    [    1.896329] 8021q: 802.1Q VLAN Support v1.8

    [    1.902152] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)

    [    1.908117] Key type dns_resolver registered

    [    1.914315] mmc0: new high speed SDIO card at address 0001

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

    But after inserting kernel modules, I am getting below error log.

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

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

    [   14.654710] cfg80211: World regulatory domain updated:

    [   14.660579] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

    [   14.669290] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

    [   14.677514] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

    [   14.685716] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

    [   14.693927] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

    [   14.702174] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory

    bootlogd.

    [   15.647421] ------------[ cut here ]------------

    [   15.652372] WARNING: CPU: 0 PID: 4 at drivers/net/wireless/ti/wlcore/sdio.c:145 wl12xx_sdio_raw_write+0xb0/0x130 [wlcore_sdi

    o]()

    [   15.664678] Modules linked in: wl18xx wlcore mac80211 cfg80211 snd_soc_davinci_mcasp snd_soc_omap snd_soc_tlv320aic3x snd_so

    c_davinci snd_soc_evm snd_pcm_dmaengine snd_soc_core regmap_spi wlcore_sdio snd_pcm snd_timer snd_page_alloc snd_compress snd s

    oundcore

    [   15.689283] CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 3.12.30-dirty #3

    [   15.696393] Workqueue: events request_firmware_work_func

    [   15.702049] Backtrace:

    [   15.704655] [<c00184f8>] (dump_backtrace+0x0/0x10c) from [<c0018694>] (show_stack+0x18/0x1c)

    [   15.713615]  r6:bf0b925c r5:00000009 r4:00000000 r3:00000000

    [   15.719665] [<c001867c>] (show_stack+0x0/0x1c) from [<c05f34c4>] (dump_stack+0x80/0x9c)

    [   15.728187] [<c05f3444>] (dump_stack+0x0/0x9c) from [<c004af2c>] (warn_slowpath_common+0x70/0x94)

    [   15.737603]  r4:00000000 r3:00000000

    [   15.741405] [<c004aebc>] (warn_slowpath_common+0x0/0x94) from [<c004af74>] (warn_slowpath_null+0x24/0x2c)

    [   15.751561]  r8:00000004 r7:cdf2f700 r6:cdd27410 r5:0001ffc8 r4:cdb55200

    [   15.758718] [<c004af50>] (warn_slowpath_null+0x0/0x2c) from [<bf0b925c>] (wl12xx_sdio_raw_write+0xb0/0x130 [wlcore_sdio])

    [   15.770427] [<bf0b91ac>] (wl12xx_sdio_raw_write+0x0/0x130 [wlcore_sdio]) from [<bf23152c>] (wlcore_set_partition+0x1f8/0x444

    [wlcore])

    [   15.783301] [<bf231334>] (wlcore_set_partition+0x0/0x444 [wlcore]) from [<bf225234>] (wl12xx_set_power_on+0x78/0x128 [wlcore

    ])

    [   15.795386]  r7:bf246b10 r6:cdd27400 r5:00000000 r4:ccfd6ce0

    [   15.801456] [<bf2251bc>] (wl12xx_set_power_on+0x0/0x128 [wlcore]) from [<bf22bf0c>] (wlcore_nvs_cb+0x148/0x980 [wlcore])

    [   15.812984]  r5:00000000 r4:ccfd6ce0

    [   15.816805] [<bf22bdc4>] (wlcore_nvs_cb+0x0/0x980 [wlcore]) from [<c03a87e0>] (request_firmware_work_func+0x40/0x60)

    [   15.827991] [<c03a87a0>] (request_firmware_work_func+0x0/0x60) from [<c0060be0>] (process_one_work+0x11c/0x37c)

    [   15.838693]  r4:cd8700c0

    [   15.841390] [<c0060ac4>] (process_one_work+0x0/0x37c) from [<c0060fb8>] (worker_thread+0x13c/0x3c0)

    [   15.851010] [<c0060e7c>] (worker_thread+0x0/0x3c0) from [<c0067754>] (kthread+0xac/0xb8)

    [   15.859615] [<c00676a8>] (kthread+0x0/0xb8) from [<c0014958>] (ret_from_fork+0x14/0x3c)

    [   15.868107]  r7:00000000 r6:00000000 r5:c00676a8 r4:cd881dd8

    [   15.874122] ---[ end trace ff3e2cd16d6d2572 ]---

    [   15.879039] wl1271_sdio mmc0:0001:2: sdio write failed (-84)

    [   15.889047] wlcore: ERROR couldn't get hw info

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

    what could be the reason for the sdio write failed ?

    and My WLAN_EN pin is toggling once after booting the kernel.

    Please help me to solve this.

    Regards,

    ~ Bhaskar

  • Hello Alexey & Gigi Joseph,

    Thanks for your help.

    After remounting the WL1835 and LS properly, Now I am getting proper voltage levels.
    and sdio card also got detected.

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

    [ 1.896329] 8021q: 802.1Q VLAN Support v1.8
    [ 1.902152] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 1.908117] Key type dns_resolver registered
    [ 1.914315] mmc0: new high speed SDIO card at address 0001

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

    But after inserting kernel modules, I am getting below error log.

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

    [ 14.008967] cfg80211: Calling CRDA to update world regulatory domain
    [ 14.654710] cfg80211: World regulatory domain updated:
    [ 14.660579] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 14.669290] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 14.677514] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 14.685716] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 14.693927] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 14.702174] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    [ 15.647421] ------------[ cut here ]------------
    [ 15.652372] WARNING: CPU: 0 PID: 4 at drivers/net/wireless/ti/wlcore/sdio.c:145 wl12xx_sdio_raw_write+0xb0/0x130 [wlcore_sdi
    o]()
    [ 15.664678] Modules linked in: wl18xx wlcore mac80211 cfg80211 snd_soc_davinci_mcasp snd_soc_omap snd_soc_tlv320aic3x snd_so
    c_davinci snd_soc_evm snd_pcm_dmaengine snd_soc_core regmap_spi wlcore_sdio snd_pcm snd_timer snd_page_alloc snd_compress snd s
    oundcore
    [ 15.689283] CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 3.12.30-dirty #3
    [ 15.696393] Workqueue: events request_firmware_work_func
    [ 15.702049] Backtrace:
    [ 15.704655] [<c00184f8>] (dump_backtrace+0x0/0x10c) from [<c0018694>] (show_stack+0x18/0x1c)
    [ 15.713615] r6:bf0b925c r5:00000009 r4:00000000 r3:00000000
    [ 15.719665] [<c001867c>] (show_stack+0x0/0x1c) from [<c05f34c4>] (dump_stack+0x80/0x9c)
    [ 15.728187] [<c05f3444>] (dump_stack+0x0/0x9c) from [<c004af2c>] (warn_slowpath_common+0x70/0x94)
    [ 15.737603] r4:00000000 r3:00000000
    [ 15.741405] [<c004aebc>] (warn_slowpath_common+0x0/0x94) from [<c004af74>] (warn_slowpath_null+0x24/0x2c)
    [ 15.751561] r8:00000004 r7:cdf2f700 r6:cdd27410 r5:0001ffc8 r4:cdb55200
    [ 15.758718] [<c004af50>] (warn_slowpath_null+0x0/0x2c) from [<bf0b925c>] (wl12xx_sdio_raw_write+0xb0/0x130 [wlcore_sdio])
    [ 15.770427] [<bf0b91ac>] (wl12xx_sdio_raw_write+0x0/0x130 [wlcore_sdio]) from [<bf23152c>] (wlcore_set_partition+0x1f8/0x444
    [wlcore])
    [ 15.783301] [<bf231334>] (wlcore_set_partition+0x0/0x444 [wlcore]) from [<bf225234>] (wl12xx_set_power_on+0x78/0x128 [wlcore
    ])
    [ 15.795386] r7:bf246b10 r6:cdd27400 r5:00000000 r4:ccfd6ce0
    [ 15.801456] [<bf2251bc>] (wl12xx_set_power_on+0x0/0x128 [wlcore]) from [<bf22bf0c>] (wlcore_nvs_cb+0x148/0x980 [wlcore])
    [ 15.812984] r5:00000000 r4:ccfd6ce0
    [ 15.816805] [<bf22bdc4>] (wlcore_nvs_cb+0x0/0x980 [wlcore]) from [<c03a87e0>] (request_firmware_work_func+0x40/0x60)
    [ 15.827991] [<c03a87a0>] (request_firmware_work_func+0x0/0x60) from [<c0060be0>] (process_one_work+0x11c/0x37c)
    [ 15.838693] r4:cd8700c0
    [ 15.841390] [<c0060ac4>] (process_one_work+0x0/0x37c) from [<c0060fb8>] (worker_thread+0x13c/0x3c0)
    [ 15.851010] [<c0060e7c>] (worker_thread+0x0/0x3c0) from [<c0067754>] (kthread+0xac/0xb8)
    [ 15.859615] [<c00676a8>] (kthread+0x0/0xb8) from [<c0014958>] (ret_from_fork+0x14/0x3c)
    [ 15.868107] r7:00000000 r6:00000000 r5:c00676a8 r4:cd881dd8
    [ 15.874122] ---[ end trace ff3e2cd16d6d2572 ]---
    [ 15.879039] wl1271_sdio mmc0:0001:2: sdio write failed (-84)
    [ 15.889047] wlcore: ERROR couldn't get hw info

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

    what could be the reason for the sdio write failed ?

    and My WLAN_EN pin is toggling once after booting the kernel.

    Please help me to solve this.

    Regards,
    ~ Bhaskar

  • Hi Bhaskar,

    Error: -84 indicates "Illegal byte sequence" - This could mean some error on the SDIO bus itself.

    Regards,
    Gigi Joseph.
  • Hello Gigi Joseph,

    May i Know, What is the error in SDIO bus ?
    I am getting proper voltage values at WL_SDIO_XXX_1V8 lines.

    Is any problem with Driver ?
    Please provide me any current ratings on SDIO lines , I will verify it.

    Please help me in this, Project dead lines are very near.


    Regards,
    ~ Bhaskar

  • Hello Gigi Joseph,

    We are unable to get the IRQ from WL1385MOD.
    We are getting low voltage at WLAN_IRQ (Pin no 14 of WL1835MOD).

    What could be the cause for this ?

    Thanks & Regards
    ~ Bhaskar
  • Hi Bhaskar,

    Can you share the dts file that you are using? Have you taken care of the platform integration from - processors.wiki.ti.com/.../WL18xx_Platform_Integration_Guide ?

    Also, please provide the below information as well:

    boot the system (set a probe on the IRQ line) and enable the WLAN (only ifconfig wlan0 up) then do a scan (iw wlan0 scan) and provide kernel log for this as well as the behavior of the IRQ through this process.

    The IRQ should be ~1.6V before enable and then drop to zero, once the scan is run it should be rising/level to 1 depends on the configuration.


    Regards,
    Gigi Joseph.
  • Dear Gigi Joseph,

    Thank you for support to get my Wlan0 interface.

    Yes I have taken reference from WL18xx_Platform_Integration_Guide.

    The Problem with Connectivity with MMC slot. Small loose contact is there.

    Now I am able to do all connections,  And I am able to connect to My AP.

    But small problem is that, I am unable to get dhcp ip for Wlan0.

    There is no dhclient command in rootfs. I Cross compiled the dhclinet and coped into Board.

    But No result.

    The output log is :

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

    root@am335x-evm:~# sh wifi start
    [ 74.635974] wlcore: PHY firmware version: Rev 8.2.0.0.195
    [ 74.733989] wlcore: firmware booted (Rev 8.8.0.0.13)
    [ 74.762894] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@am335x-evm:~# [ 78.164478] wlan0: authenticate with cc:b2:55:d1:98:b7
    [ 78.181422] wlan0: send auth to cc:b2:55:d1:98:b7 (try 1/3)
    [ 78.220650] wlan0: authenticated
    [ 78.230971] wlan0: associate with cc:b2:55:d1:98:b7 (try 1/3)
    [ 78.304737] wlan0: RX AssocResp from cc:b2:55:d1:98:b7 (capab=0x411 status=0 aid=18)
    [ 78.334122] wlan0: associated
    [ 78.337393] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [ 81.140908] wlcore: Association completed.

    root@am335x-evm:~# iw wlan0 link
    Connected to cc:b2:55:d1:98:b7 (on wlan0)
    SSID: XXXXXXXXXXXXXX
    freq: 2412
    RX: 9791 bytes (85 packets)
    TX: 3270 bytes (20 packets)
    signal: -61 dBm
    tx bitrate: 1.0 MBit/s

    bss flags: short-slot-time
    dtim period: 1
    beacon int: 100
    root@am335x-evm:~#

    root@am335x-evm:~# ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:164 errors:0 dropped:0 overruns:0 frame:0
    TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:12600 (12.3 KiB) TX bytes:12600 (12.3 KiB)

    wlan0 Link encap:Ethernet HWaddr 5C:31:3E:DD:DE:58
    inet6 addr: fe80::5e31:3eff:fedd:de58/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:16 errors:0 dropped:0 overruns:0 frame:0
    TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1606 (1.5 KiB) TX bytes:1128 (1.1 KiB)

    root@am335x-evm:~# dhclient wlan0

    root@am335x-evm:~# ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:164 errors:0 dropped:0 overruns:0 frame:0
    TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:12600 (12.3 KiB) TX bytes:12600 (12.3 KiB)

    wlan0 Link encap:Ethernet HWaddr 5C:31:3E:DD:DE:58
    inet6 addr: fe80::5e31:3eff:fedd:de58/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:50 errors:0 dropped:0 overruns:0 frame:0
    TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:5405 (5.2 KiB) TX bytes:3028 (2.9 KiB)

    root@am335x-evm:~# ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8): 56 data bytes
    ping: sendto: Network is unreachable

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

    Please tell me, where I am missing to get DHCP IP. 

    Regards,
    Bhaskar

  • Hi Bhaskar,

    I can see with "ifconfig" that you haven't received at IP address from the AP. Possibly the dhcp client is not running.
    On the AM335x, we do "udhcpc -iwlan0"? Since you are using "dhclinet" (which I'm not familiar with), can you try something similar with that?

    Regards,
    Gigi Joseph.
  • Dear Gigi Joseph,

    Than you So much, It starts working .
    I am so happy to get a this much help from you.

    *********************************************************************
    root@am335x-evm:~# udhcpc -iwlan0
    udhcpc (v1.22.1) started
    Sending discover...
    Sending select for 192.168.0.124...
    Lease of 192.168.0.124 obtained, lease time 86400
    /etc/udhcpc.d/50default: Adding DNS 192.168.0.1

    root@am335x-evm:~# ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:167 errors:0 dropped:0 overruns:0 frame:0
    TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:12834 (12.5 KiB) TX bytes:12834 (12.5 KiB)

    wlan0 Link encap:Ethernet HWaddr 5C:31:3E:DD:DE:58
    inet addr:192.168.0.124 Bcast:192.168.0.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:3726 errors:0 dropped:0 overruns:0 frame:0
    TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:295868 (288.9 KiB) TX bytes:7429 (7.2 KiB)

    root@am335x-evm:~# ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8): 56 data bytes
    64 bytes from 8.8.8.8: seq=0 ttl=55 time=139.416 ms
    64 bytes from 8.8.8.8: seq=1 ttl=55 time=27.990 ms

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

    Thanks again.

    Best Regards,
    Bhaskar.
  • Dear Gigi Joseph,

    This problem solved, But we have done one more module, In that some error coming. I am using same BSP.
    please look into below issue.

    e2e.ti.com/.../443499

    Regards,
    Bhaskar