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.

Unable to calibrate wl18xx

Other Parts Discussed in Thread: WL1835MODCOM8B, AM3352, WL1835, WL1271

Hello all,

We are using AM3352 custom board and connected to WL1835MODCOM8B module. We have done required configuration in .dts file and .config using menuconfig. Checked power up sequence for WL18XX and it's proper.

Tried to insert module(wlcore,wl18xx,wlcore_sdio) manually using modprobe but no use. Please help us in calibrating  module.

PFA logs.

root@am335x-evm:~# lsmod
Module                  Size  Used by
wlcore_sdio             6042  0
wl18xx                 89922  0
wlcore                180451  1 wl18xx
mac80211              480610  2 wl18xx,wlcore
cfg80211              248876  3 mac80211,wl18xx,wlcore
ipv6                  305284  24
pm33xx                  4633  0
omap_rng                4470  0
rng_core                7464  2 omap_rng
omap_wdt                4347  0
rtc_omap                7578  1

root@am335x-evm:~# ifconfig wlan0 up
ifconfig: SIOCGIFFLAGS: No such device

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:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

root@am335x-evm:~#

Thanks and regards,

Lahari P.

  • Hi,

    Most likely this is an issue with the dts file (the module is not getting detected).
    As a start, can you share the full boot logs?

    Please also let me know the kernel version and the wl18xx driver version.

    Regards,
    Gigi Joseph.
  • Hi Gigi Joseph,

    Thanks for the quick reply.

    I'm using linux-4.1.13 version(ti-processor-sdk-linux-am335x-evm-02.00.01.07). As per our understanding this linux version has inbuilt driver for wl18xx module and we are using the same.

    http://processors.wiki.ti.com/index.php/WiLink8_Linux_Getting_Started_Guide

    PFA boot log

    U-Boot SPL 2015.07 (Jan 28 2016 - 19:28:18)
    Entering am33xx_spl_board_init func
    inside read_eeprom
    inside ti_i2c_eeprom_am_get func
    trace 1
    ### Use AM335x_SK V1.2 setting ###
    trace 2
    after read_eeprom!!!
    trace 3
    trace 5
    after i2c_probe
    after MPU voltage
    tps65217_reg_write
    tps65217_voltage_update
    do_setup_dpll
    mpu_vdd
    DEFLS1
    DEFLS2
    trace 7
    boot device 
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2015.07 (Jan 28 2016 - 19:28:18 +0530)
    
           Watchdog enabled
    I2C:   ready
    DRAM:  256 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env
    
    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment
    
    inside ti_i2c_eeprom_am_get func
    trace 1
    ### Use AM335x_SK V1.2 setting ###
    trace 2
    Net:   Net Initialization Skipped
    No ethernet found.
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    syntax error
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    2641392 bytes read in 240 ms (10.5 MiB/s)
    32458 bytes read in 61 ms (519.5 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x284df0 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ef26000, end 8ef30ec9 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.13-g8dc6617 (administrator@MYTSP00128) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-20156
    [    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 model: TI AM335x EVM-SK
    [    0.000000] cma: Reserved 24 MiB at 0x8d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=00000000-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 227412K/262144K available (5071K kernel code, 195K rwdata, 1668K rodata, 232K init, 210K bss, 10156K reserved,)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc069d07c   (6741 kB)
    [    0.000000]       .init : 0xc069e000 - 0xc06d8000   ( 232 kB)
    [    0.000000]       .data : 0xc06d8000 - 0xc0708ce8   ( 196 kB)
    [    0.000000]        .bss : 0xc070b000 - 0xc073f9c8   ( 211 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Additional per-CPU info printed with stalls.
    [    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] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000045] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000059] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000277] Console: colour dummy device 80x30
    [    0.000308] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000317] This ensures that you still see kernel messages. Please
    [    0.000324] update your kernel commandline.
    [    0.000347] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118932] pid_max: default: 32768 minimum: 301
    [    0.119058] Security Framework initialized
    [    0.119123] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119138] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119997] Initializing cgroup subsys blkio
    [    0.120029] Initializing cgroup subsys memory
    [    0.120082] Initializing cgroup subsys devices
    [    0.120102] Initializing cgroup subsys freezer
    [    0.120120] Initializing cgroup subsys perf_event
    [    0.120152] CPU: Testing write buffer coherency: ok
    [    0.120598] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.122466] devtmpfs: initialized
    [    0.135049] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.146858] omap_hwmod: tptc0 using broken dt data from edma
    [    0.147010] omap_hwmod: tptc1 using broken dt data from edma
    [    0.147140] omap_hwmod: tptc2 using broken dt data from edma
    [    0.152066] omap_hwmod: debugss: _wait_target_disable failed
    [    0.208836] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.211556] pinctrl core: initialized pinctrl subsystem
    [    0.213200] NET: Registered protocol family 16
    [    0.215993] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.238935] cpuidle: using governor ladder
    [    0.268923] cpuidle: using governor menu
    [    0.273673] OMAP GPIO hardware version 0.1
    [    0.284374] No ATAGs?
    [    0.284413] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.328446] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.330933] SCSI subsystem initialized
    [    0.331414] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, de
    [    0.331609] pps_core: LinuxPPS API ver. 1 registered
    [    0.331621] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.331664] PTP clock support registered
    [    0.332736] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.333969] Switched to clocksource timer1
    [    0.347465] NET: Registered protocol family 2
    [    0.348514] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.348561] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.348599] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.348702] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.348728] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.348945] NET: Registered protocol family 1
    [    0.349415] RPC: Registered named UNIX socket transport module.
    [    0.349433] RPC: Registered udp transport module.
    [    0.349441] RPC: Registered tcp transport module.
    [    0.349450] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.350242] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.350297] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.352826] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.352929] audit: initializing netlink subsys (disabled)
    [    0.353011] audit: type=2000 audit(0.330:1): initialized
    [    0.362928] VFS: Disk quotas dquot_6.6.0
    [    0.363214] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.366209] NFS: Registering the id_resolver key type
    [    0.366299] Key type id_resolver registered
    [    0.366311] Key type id_legacy registered
    [    0.366420] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.369077] io scheduler noop registered
    [    0.369106] io scheduler deadline registered
    [    0.369174] io scheduler cfq registered (default)
    [    0.370420] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.371773] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.372474] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.377494] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
    [    1.000246] console [ttyS0] enabled
    [    1.004969] [drm] Initialized drm 1.1.0 20060810
    [    1.022789] brd: module loaded
    [    1.032413] loop: module loaded
    [    1.036197] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.047324] mousedev: PS/2 mouse device common for all mice
    [    1.052951] i2c /dev entries driver
    [    1.057763] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.134690]  remoteproc0: wkup_m3 is available
    [    1.139171]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.148304]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.158946]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.168616] oprofile: using arm/armv7
    [    1.172759] Initializing XFRM netlink socket
    [    1.177183]  remoteproc0: Falling back to user helper
    [    1.182525] NET: Registered protocol family 17
    [    1.187149] NET: Registered protocol family 15
    [    1.191805] Key type dns_resolver registered
    [    1.196598] omap_voltage_late_init: Voltage driver support not added
    [    1.203535] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [    1.212411] cpu cpu0: cpu0 clock notifier not ready, retry
    [    1.218458] ThumbEE CPU extension supported.
    [    1.222846] Registering SWP/SWPB emulation handler
    [    1.230876] tps65217-pmic tps65217-pmic: tps65217_regulator_probe function
    [    1.242121] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.254562] mmc0: new high speed SDHC card at address e624
    [    1.261589] mmcblk0: mmc0:e624 SU04G 3.69 GiB 
    [    1.270063]  mmcblk0: p1 p2
    [    1.277086] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.282464] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.292523] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1100000]:-22
    [    1.303037] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1100000]:-22
    [    1.313487] hctosys: unable to open rtc device (rtc0)
    [    1.324627] wlan-en-regulator: disabling
    [    1.328599] vbat: disabling
    [    1.761930] EXT4-fs (mmcblk0p2): recovery complete
    [    1.769703] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.778021] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.791113] devtmpfs: mounted
    [    1.795344] Freeing unused kernel memory: 232K (c069e000 - c06d8000)
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such file or directory
    Starting udev
    [    2.706872] udevd[77]: starting version 182
    [    3.314798] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    3.422928] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.685886] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    3.732634] cryptodev: disagrees about version of symbol module_layout
    [    3.887783] PM: bootloader does not support rtc-only!
    [    4.051568] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [    4.531401]  remoteproc0: powering up wkup_m3
    [    4.574792]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219803
    [    4.582362]  remoteproc0: remote processor wkup_m3 is now up
    [    4.582395] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    bootlogd: cannot allocate pseudo tty: No such file or directory
    Starting random number generator daemon.
    
    udevadm settle - timeout of 3 seconds reached, the event queue contains:
      /sys/devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:e624/block/mmcblk0/mmcblk0p1 (673)
      /sys/devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:e624/block/mmcblk0/mmcblk0p2 (674)
      /sys/devices/virtual/block/ram9 (826)
    [    6.741628] random: dd urandom read with 117 bits of entropy available
    [    6.999869] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Sat Jan  9 00:07:57 UTC 2016
    INIT: Entering runlevel: 5
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    done.
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Initializing the graphics driver ...
    [    9.214985] random: nonblocking pool is initialized
    PVR:(Error): OpenServices: Cannot open device driver /dev/omapdrm_pvr. [140, /pvr_bridge_u.c]
    PVR:(Error): PVRSRVInitSrvConnect: PVRSRVConnect failed [2572, /bridged_pvr_glue.c]
    PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (4) [37, /srvinit.c]
    PVR:(Error): main: SrvInit failed (4) [49, /pvrsrvinit.c]
    Starting Dropbear SSH server: [    9.731926] NET: Registered protocol family 10
    dropbear.
    Starting telnet daemon.
    Starting rpcbind daemon...done.
    starting statd: done
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting Lighttpd Web Server: lighttpd.
    2016-01-09 00:07:59: (/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa8h 
    /
    /etc/rc5.d/S97matrix-gui-2.0: line 37: /sys/class/graphics/fbcon/cursor_blink: No such file or directory
    Starting Matrix GUI application.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            binutils
            cpp-symlinks
            cpp
            g++-symlinks
            g++
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gstreamer1.0-libav
            libgmp10
            libmpc3
            libmpfr4
            make
    
    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
    ***************************************************************
    ***************************************************************
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2015.12 am335x-evm /dev/ttyO0
    
    am335x-evm login: 
                                                     
    
    

    Regards,

    Lahari

  • Hi

    Another thing i noticed is, when i do the modprobe, i get below msg, which looks unusual - what may wrong?

    modprobe mac80211
    [   61.036987] ------------[ cut here ]------------
    [   61.042019] WARNING: CPU: 0 PID: 624 at net/wireless/reg.c:524 regulatory_init+0x74/0x114 [cfg80211]()
    [   61.069167] db.txt is empty, you should update it...
    [   61.074038] Modules linked in: cfg80211(+) ipv6 pm33xx omap_rng rng_core omap_wdt rtc_omap [last unloaded: cfg80211]
    [   61.086033] CPU: 0 PID: 624 Comm: modprobe Tainted: G        W       4.1.13-g8dc6617 #17
    [   61.094177] Hardware name: Generic AM33XX (Flattened Device Tree)
    [   61.101101] Backtrace:
    [   61.103656] [<c0012b08>] (dump_backtrace) from [<c0012d28>] (show_stack+0x18/0x1c)
    [   61.111866]  r7:bf0f7320 r6:0000020c r5:00000009 r4:00000000
    [   61.117784] [<c0012d10>] (show_stack) from [<c04f71c0>] (dump_stack+0x20/0x28)
    [   61.125585] [<c04f71a0>] (dump_stack) from [<c0037920>] (warn_slowpath_common+0x7c/0xb4)
    [   61.133748] [<c00378a4>] (warn_slowpath_common) from [<c0037990>] (warn_slowpath_fmt+0x38/0x40)
    [   61.143060]  r8:cb90dec0 r7:cf36d440 r6:c06e0560 r5:bf0f857c r4:bf0f7d24
    [   61.150281] [<c003795c>] (warn_slowpath_fmt) from [<bf109160>] (regulatory_init+0x74/0x114 [cfg80211])
    [   61.160256]  r3:00000000 r2:bf0f7d24
    [   61.163895]  r4:bf0f8420
    [   61.167195] [<bf1090ec>] (regulatory_init [cfg80211]) from [<bf109064>] (cfg80211_init+0x64/0xec [cfg80211])
    [   61.177634]  r5:bf0f8568 r4:00000000
    [   61.181458] [<bf109000>] (cfg80211_init [cfg80211]) from [<c0009674>] (do_one_initcall+0x88/0x1e0)
    [   61.191003]  r5:bf109000 r4:c06e0560
    [   61.194720] [<c00095ec>] (do_one_initcall) from [<c04f50d8>] (do_init_module+0x60/0x1b0)
    [   61.202859]  r10:bf0f8428 r9:00000001 r8:cb90dec0 r7:bf0f8470 r6:cf36da00 r5:cb90dec8
    [   61.211302]  r4:bf0f8428
    [   61.213897] [<c04f5078>] (do_init_module) from [<c008fa70>] (load_module+0x1b0c/0x1d40)
    [   61.222572]  r6:00000001 r5:cb90dec8 r4:cb887f48
    [   61.227451] [<c008df64>] (load_module) from [<c008fe48>] (SyS_finit_module+0x6c/0x7c)
    [   61.235848]  r10:00000000 r9:cb886000 r8:c000fa24 r7:0000017b r6:00029818 r5:00000003
    [   61.243802]  r4:00000000
    [   61.246758] [<c008fddc>] (SyS_finit_module) from [<c000f880>] (ret_fast_syscall+0x0/0x3c)
    [   61.255466]  r6:00040000 r5:00000000 r4:00000000
    [   61.260166] ---[ end trace e9de9465fee98602 ]---
    [   61.266116] cfg80211: Calling CRDA to update world regulatory domain
    [   61.311465] cfg80211: World regulatory domain updated:
    [   61.318236] cfg80211:  DFS Master region: unset
    [   61.322641] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [   61.335120] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   61.344838] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   61.354159] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [   61.364012] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [   61.375689] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [   61.386472] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [   61.396413] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   61.405788] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

  • Hi

    Hi
    below is my changes in the DTS file, is there any problem with the changes?

    As mentioned in the reply#2, i have used only drivers available in with the kernel. Is that correct or do i need to add any other driver
    There is no clear procedure for the linux-4.1.13 version(ti-processor-sdk-linux-am335x-evm-02.00.01.07 how to compile the wilink module drivers, can you please provide the link?



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

    /* WLAN_EN GPIO for this board - Bank1, pin29 */
    gpio = <&gpio1 29 0>;

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

    mmc2_pins_default: pinmux_mmc2_pins_default {
    pinctrl-single,pins = <
    0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
    0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
    0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
    0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
    0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
    0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
    >;
    };

    wl12xx_gpio_default: pinmux_wl12xx_gpio_default {
    pinctrl-single,pins = <
    0x7c (PIN_OUTPUT | MUX_MODE7) /* gpmc_csn0.gpio1_29 */ //WL_EN
    0x74 (PIN_INPUT | MUX_MODE7) /* gpmc_wpn.gpio0_31 */ //IRQ
    0x1B4 (PIN_OUTPUT | MUX_MODE7) /* gpmc_csn0.gpio0_20 */
    >;
    };

    &mmc2 {
    /* these are on the crossbar and are outlined in the
    xbar-event-map element
    dmas = <&edma 12
    &edma 13>;
    dma-names = "tx", "rx";*/
    status = "okay";
    vmmc-supply = <&wlan_en_reg>;
    bus-width = <4>;
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&mmc2_pins_default &wl12xx_gpio_default>;
    pinctrl-1 = <&mmc2_pins_sleep &wl12xx_gpio_sleep>;
    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,wl1835";
    reg = <2>;
    interrupt-parent = <&gpio0>;
    interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
    ref-clock-frequency = <38400000>;
    };
    };
  • Hi,

    The process is explained in processors.wiki.ti.com/.../WiLink8_Linux_Getting_Started_Guide
    I can see that your device is not getting enumerated. Can you check if WLAN_EN goes high during boot up (using a scope)? Do you have the correct mapping in your dts file? Please also check if CONFIG_REGULATOR & CONFIG_REGULATOR_FIXED_VOLTAGE is enabled in your kernel?


    Regards,
    Gigi Joseph.
  • Hi,

    WLAN_EN is not going high during boot up.

    dts: gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;

    root@am335x-evm:~# cat /sys/kernel/debug/gpio
    GPIOs 0-31, platform/44e07000.gpio, gpio:
     gpio-6   (cd                  ) in  lo IRQ

    GPIOs 32-63, platform/4804c000.gpio, gpio:
     gpio-61  (wlan-en-regulator   ) out lo    

    GPIOs 64-95, platform/481ac000.gpio, gpio:

    GPIOs 96-127, platform/481ae000.gpio, gpio:
    root@am335x-evm:~#

    By using manual steps like "echo "out" > direction" , " echo 1 > value" WLAN_EN is going high (1.8v) but not during boot up. CONFIG_REGULATOR and CONFIG_REGULATOR_FIXED_VOLTAGE are enabled .

    Please let me know how to enable using dts file?

    Thanks and Regards,

    Lahari

  • Hi Lahiri,

    You might want to debug the regulator if this is the case.
    Please check if the values are properly parsed inside "drivers/regulator/fixed.c" and its being toggled inside "drivers/regulator/core.c"

    Regards,
    Gigi Joseph.
  • Hello Gigi Joseph,

    I checked in fixed.c value of "cfg.ena_gpio_flags" is taking as low.  Couldnot see toggling in core.c. when I probe at WL_EN pin..initially it ll be high later goes low

    If I comment/remove "enable-active-high" in wlan_en_reg. I'm able to get 1.8v at WL_EN. Am I doing something wrong?

    How to remove "wlan-en-regulator: disabling" error??

    Regads,

    Lahari

  • Hi Lahiri,

    Do you mean to say that if you remove "enable-active-high", then wl18xx is turning on?
    "enable-active-high" => Polarity of GPIO is Active high

    Regards,
    Gigi Joseph.
  • Thanks for your response..No progress.. still facing issue in mmc1 SDIO interface.
    If I remove "enable-active-high", WL_EN is 1.8V. I'm not sure wl18xx is turned on or not.
    How to check WL1835MODCOM8B is turned on or still in off state?


    Thanks and Regards,
    Lahari
  • Hi.

    The easiest way is to see if wlan0 interface is created. You can check that by "ifconfig -a"
    If you don't see it, then please share the full boot logs.

    Regards,
    Gigi Joseph.
  • No Gigi, wlan0 is not created. Please find attached boot log

    U-Boot SPL 2015.07 (Jan 28 2016 - 19:28:18)
    Entering am33xx_spl_board_init func
    inside read_eeprom
    inside ti_i2c_eeprom_am_get func
    trace 1
    ### Use AM335x_SK V1.2 setting ###
    trace 2
    after read_eeprom!!!
    trace 3
    trace 5
    after i2c_probe
    after MPU voltage
    tps65217_reg_write
    tps65217_voltage_update
    do_setup_dpll
    mpu_vdd
    DEFLS1
    DEFLS2
    trace 7
    boot device 
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2015.07 (Jan 28 2016 - 19:28:18 +0530)
    
           Watchdog enabled
    I2C:   ready
    DRAM:  256 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env
    
    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment
    
    inside ti_i2c_eeprom_am_get func
    trace 1
    ### Use AM335x_SK V1.2 setting ###
    trace 2
    Net:   Net Initialization Skipped
    No ethernet found.
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    syntax error
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    2649704 bytes read in 230 ms (11 MiB/s)
    32572 bytes read in 60 ms (529.3 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x286e68 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ef26000, end 8ef30f3b ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.13-g8dc6617 (administrator@MYTSP00128) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-20156
    [    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 model: TI AM335x EVM-SK
    [    0.000000] cma: Reserved 24 MiB at 0x8d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=00000000-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 227384K/262144K available (5087K kernel code, 196K rwdata, 1672K rodata, 236K init, 210K bss, 10184K reserved,)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc06a207c   (6761 kB)
    [    0.000000]       .init : 0xc06a3000 - 0xc06de000   ( 236 kB)
    [    0.000000]       .data : 0xc06de000 - 0xc070f0a8   ( 197 kB)
    [    0.000000]        .bss : 0xc0712000 - 0xc07469e0   ( 211 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Additional per-CPU info printed with stalls.
    [    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] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000043] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000058] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000276] Console: colour dummy device 80x30
    [    0.000305] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000313] This ensures that you still see kernel messages. Please
    [    0.000320] update your kernel commandline.
    [    0.000342] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118930] pid_max: default: 32768 minimum: 301
    [    0.119050] Security Framework initialized
    [    0.119117] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119131] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119992] Initializing cgroup subsys blkio
    [    0.120022] Initializing cgroup subsys memory
    [    0.120072] Initializing cgroup subsys devices
    [    0.120091] Initializing cgroup subsys freezer
    [    0.120109] Initializing cgroup subsys perf_event
    [    0.120143] CPU: Testing write buffer coherency: ok
    [    0.120597] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.122457] devtmpfs: initialized
    [    0.135095] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.147000] omap_hwmod: tptc0 using broken dt data from edma
    [    0.147151] omap_hwmod: tptc1 using broken dt data from edma
    [    0.147281] omap_hwmod: tptc2 using broken dt data from edma
    [    0.152228] omap_hwmod: debugss: _wait_target_disable failed
    [    0.209030] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.211718] pinctrl core: initialized pinctrl subsystem
    [    0.212286] regulator_register: register 
    [    0.213365] NET: Registered protocol family 16
    [    0.216199] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.238934] cpuidle: using governor ladder
    [    0.268920] cpuidle: using governor menu
    [    0.273655] OMAP GPIO hardware version 0.1
    [    0.284483] No ATAGs?
    [    0.284522] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.328355] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.328858] reg_fixed_voltage_probe:  entered
    [    0.328874] of_get_fixed_voltage_config:  fixed vtg extract
    [    0.329080] reg_fixed_voltage_probe:  if config->enabled_at_boot
    [    0.329088] reg_fixed_voltage_probe:  gpio low
    [    0.329100] regulator_register: register 
    [    0.329513] reg_fixed_voltage_probe:  entered
    [    0.329525] of_get_fixed_voltage_config:  fixed vtg extract
    [    0.329566] reg_fixed_voltage_probe:  else
    [    0.329574] reg_fixed_voltage_probe:  gpio high
    [    0.329582] cfg.ena_gpio_flags [2]
    [    0.329590] regulator_register: register 
    [    0.329919] reg_fixed_voltage_probe:  entered
    [    0.329931] of_get_fixed_voltage_config:  fixed vtg extract
    [    0.330036] reg_fixed_voltage_probe:  else
    [    0.330044] reg_fixed_voltage_probe:  gpio high
    [    0.330051] cfg.ena_gpio_flags [2]
    [    0.330059] regulator_register: register 
    [    0.330264] regulator_ena_gpio_request: gpio enable func 
    [    0.330279] gpio_request_one: gpiolib_legacy.c 
    [    0.330363] gpio_request_one: gpio output 
    [    0.330379] regulator_ena_gpio_request: after gpio_request_one config->ena_gpio_flags [2]
    [    0.331316] SCSI subsystem initialized
    [    0.331751] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, de
    [    0.331946] pps_core: LinuxPPS API ver. 1 registered
    [    0.331958] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.332000] PTP clock support registered
    [    0.333067] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.334622] Switched to clocksource timer1
    [    0.348014] NET: Registered protocol family 2
    [    0.349047] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.349096] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.349133] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.349238] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.349264] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.349465] NET: Registered protocol family 1
    [    0.349922] RPC: Registered named UNIX socket transport module.
    [    0.349941] RPC: Registered udp transport module.
    [    0.349950] RPC: Registered tcp transport module.
    [    0.349958] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.350757] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.350810] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.353319] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.353433] audit: initializing netlink subsys (disabled)
    [    0.353521] audit: type=2000 audit(0.330:1): initialized
    [    0.363333] VFS: Disk quotas dquot_6.6.0
    [    0.363607] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.366559] NFS: Registering the id_resolver key type
    [    0.366649] Key type id_resolver registered
    [    0.366660] Key type id_legacy registered
    [    0.366751] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.369597] io scheduler noop registered
    [    0.369628] io scheduler deadline registered
    [    0.369700] io scheduler cfq registered (default)
    [    0.370977] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.372367] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.373080] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.378022] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
    [    1.103670] console [ttyS0] enabled
    [    1.108389] [drm] Initialized drm 1.1.0 20060810
    [    1.126234] brd: module loaded
    [    1.135876] loop: module loaded
    [    1.139479] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.150542] mousedev: PS/2 mouse device common for all mice
    [    1.156504] i2c /dev entries driver
    [    1.161173] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.166857] mmc_regulator_set_ocr:  entered4
    [    1.171156] mmc_regulator_set_ocr:  regulator_not enabled
    [    1.176680] mmc_regulator_set_ocr:  enabled true
    [    1.181319] mmc_regulator_set_ocr:  returning!!!
    [    1.185989] __mmc_set_signal_voltage:  entered1
    [    1.190543] mmc_regulator_set_ocr:  entered4
    [    1.194850] mmc_regulator_set_ocr:  returning!!!
    [    1.236318] mmc_regulator_set_ocr:  entered4
    [    1.240615] mmc_regulator_set_ocr:  regulator_not enabled
    [    1.250409] mmc0: mmc_attach_sdio: mmc_attach_sdio
    [    1.255262] mmc0: mmc_send_io_op_cond: entering mmc_send_io_op_cond
    [    1.263003] mmc_send_io_op_cond:  break 1
    [    1.267061] mmc_send_io_op_cond:  after for
    [    1.271261] mmc_send_io_op_cond:  rocr..!!!
    [    1.275480] mmc0: mmc_attach_sdio: error mmc_send_io_op_cond
    [    1.324634] mmc_regulator_set_ocr:  enabled true
    [    1.329273] mmc_regulator_set_ocr:  returning!!!
    [    1.333914] __mmc_set_signal_voltage:  entered1
    [    1.338503] __mmc_set_signal_voltage:  entered1
    [    1.343077] mmc_regulator_set_ocr:  entered4
    [    1.347405] mmc_regulator_set_ocr:  returning!!!
    [    1.376048] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.385358]  remoteproc0: wkup_m3 is available
    [    1.390016] mmc0: new high speed SDHC card at address e624
    [    1.395589]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.404590]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.415552] mmcblk0: mmc0:e624 SU04G 3.69 GiB 
    [    1.421076]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.430000]  mmcblk0: p1 p2
    [    1.434083] oprofile: using arm/armv7
    [    1.439262] Initializing XFRM netlink socket
    [    1.444749]  remoteproc0: Falling back to user helper
    [    1.451910] NET: Registered protocol family 17
    [    1.456464] mmc1: mmc_attach_sdio: mmc_attach_sdio
    [    1.461279] mmc1: mmc_send_io_op_cond: entering mmc_send_io_op_cond
    [    1.468086] NET: Registered protocol family 15
    [    1.472696] Key type dns_resolver registered
    [    1.477382] omap_voltage_late_init: Voltage driver support not added
    [    1.484305] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [    1.493195] cpu cpu0: cpu0 clock notifier not ready, retry
    [    1.498786] mmc_send_io_op_cond:  break 1
    [    1.502815] mmc_send_io_op_cond:  after for
    [    1.507433] ThumbEE CPU extension supported.
    [    1.511753] Registering SWP/SWPB emulation handler
    [    1.516642] mmc_send_io_op_cond:  rocr..!!!
    [    1.520848] mmc1: mmc_attach_sdio: error mmc_send_io_op_cond
    [    1.529658] tps65217-pmic tps65217-pmic: tps65217_regulator_probe function
    [    1.536830] regulator_register: register 
    [    1.542385] mmc_regulator_set_ocr:  entered4
    [    1.546751] mmc_regulator_set_ocr:  regulator disable
    [    1.551836] mmc_regulator_set_ocr:  enabled false
    [    1.556687] mmc_regulator_set_ocr:  returning!!!
    [    1.562227] regulator_register: register 
    [    1.568207] regulator_register: register 
    [    1.573379] regulator_register: register 
    [    1.578582] regulator_register: register 
    [    1.583725] regulator_register: register 
    [    1.588910] regulator_register: register 
    [    1.595797] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.601166] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.607952] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1100000]:-22
    [    1.618335] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1100000]:-22
    [    1.628665] hctosys: unable to open rtc device (rtc0)
    [    1.638273] Entering regulator_init_complete
    [    1.642600] wlan-en-regulator: i'm here :'(
    [    1.646957] wlan-en-regulator: disabling
    [    1.650906] vbat: i'm here :'(
    [    1.653971] vbat: disabling
    [    1.688230] EXT4-fs (mmcblk0p2): recovery complete
    [    1.693088] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.701381] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.713463] devtmpfs: mounted
    [    1.716919] Freeing unused kernel memory: 236K (c06a3000 - c06de000)
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such file or directory
    Starting udev
    [    2.800356] udevd[79]: starting version 182
    [    3.187626] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.287630] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    3.627306] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    3.690405] cryptodev: disagrees about version of symbol module_layout
    [    4.012043] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [    4.366862] PM: bootloader does not support rtc-only!
    [    4.454304]  remoteproc0: powering up wkup_m3
    [    4.476460]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219803
    [    4.484034]  remoteproc0: remote processor wkup_m3 is now up
    [    4.484071] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    bootlogd: cannot allocate pseudo tty: No such file or directory
    Starting random number generator daemon.
    
    udevadm settle - timeout of 3 seconds reached, the event queue contains:
      /sys/devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:e624/block/mmcblk0/mmcblk0p1 (680)
      /sys/devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:e624/block/mmcblk0/mmcblk0p2 (681)
    [    6.653602] random: dd urandom read with 110 bits of entropy available
    [    6.944186] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Sat Jan  9 00:07:57 UTC 2016
    INIT: Entering runlevel: 5
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    done.
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Initializing the graphics driver ...
    PVR:(Error): OpenServices: Cannot open device driver /dev/omapdrm_pvr. [140, /pvr_bridge_u.c]
    PVR:(Error): PVRSRVInitSrvConnect: PVRSRVConnect failed [2572, /bridged_pvr_glue.c]
    PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (4) [37, /srvinit.c]
    PVR:(Error): main: SrvInit failed (4) [49, /pvrsrvinit.c]
    Starting Dropbear SSH server: [    9.676754] NET: Registered protocol family 10
    dropbear.
    Starting telnet daemon.
    [    9.806612] random: nonblocking pool is initialized
    Starting rpcbind daemon...done.
    starting statd: done
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting Lighttpd Web Server: lighttpd.
    2016-01-09 00:07:59: (/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa8h 
    /
    /etc/rc5.d/S97matrix-gui-2.0: line 37: /sys/class/graphics/fbcon/cursor_blink: No such file or directory
    Starting Matrix GUI application.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            binutils
            cpp-symlinks
            cpp
            g++-symlinks
            g++
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gstreamer1.0-libav
            libgmp10
            libmpc3
            libmpfr4
            make
    
    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
    ***************************************************************
    ***************************************************************
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2015.12 am335x-evm /dev/ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# ifconfig -a
    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:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)
    
    root@am335x-evm:~# cat /sys/kernel/debug/gpio 
    GPIOs 0-31, platform/44e07000.gpio, gpio:
     gpio-6   (cd                  ) in  lo IRQ
    
    GPIOs 32-63, platform/4804c000.gpio, gpio:
     gpio-61  (wlan-en-regulator   ) out hi    
    
    GPIOs 64-95, platform/481ac000.gpio, gpio:
    
    GPIOs 96-127, platform/481ae000.gpio, gpio:
    root@am335x-evm:~# 
    
    

    Thanks and Regards,

    Lahari

  • Hi Gigi,

    On debugging we got to know that it is failing in mmc_attach_sdio ( mmc_send_io_op_cond ) function for mmc1.
    mmc1 is not attached to SDIO so we are not getting wlan0 after ifconfig.
    What might be the problem with sdio and mmc1.
    Also is there any other way or any output pin to check Wl18xx is active apart from ifconfig?

    Thanks and regards,
    Lahari
  • Hi Lahiri,

    Please take a look at the Module hardware integration guide and fill out the check list.

    Regards,
    Gigi Joseph.

  • Thank u Gigi.. we are referring and verify our connection. in the mean time I have another query.
    we are connecting only WLAN related pins using wires and Bluetooth ones are left floating. Can that cause any issue?

    Connected pins are
    VBAT, WLAN_IRQ,
    RX, TX,
    WL_EN,
    SDIO D3,D2,D1,D0,
    SDIO_CMD, SDIO_CLK, SLOW_CLK and ground pins.
  • Hi,

    That should be fine. Please refer to "10.5.1 WLAN Host Interface (SDIO)" in the document. What is Rx/Tx?
    Please also verify the slow clock accuracy.

    Regards,
    Gigi Joseph.
  • Thanks Gigi.

    After checking all connections and  changing my .dts file ( adding pullup for WL_EN and WL_IRQ and uncommenting enable-active-high in wlan_en_reg), now I'm able to get MMC1: new high speed SDIO card at address 0001.

    But we are getting error as below

    [    6.645463] ------------[ cut here ]------------

    [    6.650488] WARNING: CPU: 0 PID: 81 at net/wireless/reg.c:524 regulatory_init+0x74/0x114 [cfg80211]()

    [    6.661483] db.txt is empty, you should update it...

    [    6.668875] Modules linked in: cfg80211(+) pm33xx wlcore_sdio omap_rng rng_core omap_wdt rtc_omap

    [    6.678263] CPU: 0 PID: 81 Comm: udevd Not tainted 4.1.13-g8dc6617 #58

    [    6.705876] Hardware name: Generic AM33XX (Flattened Device Tree)

    [    6.712034] Backtrace:

    [    6.714606] [<c0012b08>] (dump_backtrace) from [<c0012d28>] (show_stack+0x18/0x1c)

    [    6.723164] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

    [    6.744872]  r7:bf05032c r6:0000020c r5:00000009 r4:00000000

    [    6.750660] [<c0012d10>] (show_stack) from [<c04f838c>] (dump_stack+0x20/0x28)

    [    6.762138] [<c04f836c>] (dump_stack) from [<c0037920>] (warn_slowpath_common+0x7c/0xb4)

    [    6.784301] [<c00378a4>] (warn_slowpath_common) from [<c0037990>] (warn_slowpath_fmt+0x38/0x40)

    [    6.814821]  r8:cb3f0d80 r7:cb3f0080 r6:c06e2560 r5:bf051584 r4:bf050d30

    [    6.821878] [<c003795c>] (warn_slowpath_fmt) from [<bf062160>] (regulatory_init+0x74/0x114 [cfg80211])

    [    6.843092]  r3:00000000 r2:bf050d30

    [    6.846915]  r4:bf05142c

    [    6.849771] [<bf0620ec>] (regulatory_init [cfg80211]) from [<bf062064>] (cfg80211_init+0x64/0xec [cfg80211])

    [    6.874802]  r5:bf051570 r4:00000000

    [    6.878693] [<bf062000>] (cfg80211_init [cfg80211]) from [<c0009674>] (do_one_initcall+0x88/0x1e0)

    [    6.901734]  r5:bf062000 r4:c06e2560

    [    6.907372] [<c00095ec>] (do_one_initcall) from [<c04f62a4>] (do_init_module+0x60/0x1b0)

    [    6.924995]  r10:bf051434 r9:00000001 r8:cb3f0d80 r7:bf05147c r6:cb3f03c0 r5:cb3f0d88

    [    6.932934]  r4:bf051434

    [    6.947184] [<c04f6244>] (do_init_module) from [<c008fa70>] (load_module+0x1b0c/0x1d40)

    [    6.966088]  r6:00000001 r5:cb3f0d88 r4:cf3cdf48

    [    6.970815] [<c008df64>] (load_module) from [<c008fe48>] (SyS_finit_module+0x6c/0x7c)

    [    6.994536]  r10:00000000 r9:cf3cc000 r8:c000fa24 r7:0000017b r6:b6ed853c r5:00000005

    [    7.002657]  r4:00000000

    [    7.015523] [<c008fddc>] (SyS_finit_module) from [<c000f880>] (ret_fast_syscall+0x0/0x3c)

    [    7.023749]  r6:bedd0cc4 r5:00000000 r4:00000000

    [    7.040197] ---[ end trace 28f0c56ae662c8c0 ]---

    Complete log file is attached.

    U-Boot SPL 2015.07-00080-gfa53e9d-dirty (Mar 14 2016 - 11:25:16)
    Entering am33xx_spl_board_init func
    inside read_eeprom
    inside ti_i2c_eeprom_am_get func
    trace 1
    ### Use AM335x_SK V1.2 setting ###
    trace 2
    after read_eeprom!!!
    trace 3
    trace 5
    after i2c_probe
    after MPU voltage
    tps65217_reg_write
    tps65217_voltage_update
    do_setup_dpll
    mpu_vdd
    DEFLS1
    DEFLS2
    trace 7
    boot device 
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2015.07-00080-gfa53e9d-dirty (Mar 14 2016 - 11:25:16 +0530)
    
           Watchdog enabled
    I2C:   ready
    DRAM:  256 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env
    
    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment
    
    inside ti_i2c_eeprom_am_get func
    trace 1
    ### Use AM335x_SK V1.2 setting ###
    trace 2
    Net:   Net Initialization Skipped
    No ethernet found.
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    syntax error
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    2649528 bytes read in 236 ms (10.7 MiB/s)
    32519 bytes read in 60 ms (528.3 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x286db8 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ef26000, end 8ef30f06 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.13-g8dc6617 (administrator@MYTSP00128) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-20156
    [    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 model: TI AM335x EVM-SK
    [    0.000000] cma: Reserved 24 MiB at 0x8d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=00000000-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 227384K/262144K available (5087K kernel code, 196K rwdata, 1672K rodata, 236K init, 210K bss, 10184K reserved,)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc06a207c   (6761 kB)
    [    0.000000]       .init : 0xc06a3000 - 0xc06de000   ( 236 kB)
    [    0.000000]       .data : 0xc06de000 - 0xc070f0a8   ( 197 kB)
    [    0.000000]        .bss : 0xc0712000 - 0xc07469e0   ( 211 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Additional per-CPU info printed with stalls.
    [    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] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000044] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000058] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000273] Console: colour dummy device 80x30
    [    0.000302] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000311] This ensures that you still see kernel messages. Please
    [    0.000318] update your kernel commandline.
    [    0.000341] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118898] pid_max: default: 32768 minimum: 301
    [    0.119022] Security Framework initialized
    [    0.119086] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119100] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119962] Initializing cgroup subsys blkio
    [    0.119990] Initializing cgroup subsys memory
    [    0.120040] Initializing cgroup subsys devices
    [    0.120060] Initializing cgroup subsys freezer
    [    0.120078] Initializing cgroup subsys perf_event
    [    0.120109] CPU: Testing write buffer coherency: ok
    [    0.120562] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.122425] devtmpfs: initialized
    [    0.134985] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.146876] omap_hwmod: tptc0 using broken dt data from edma
    [    0.147029] omap_hwmod: tptc1 using broken dt data from edma
    [    0.147159] omap_hwmod: tptc2 using broken dt data from edma
    [    0.152095] omap_hwmod: debugss: _wait_target_disable failed
    [    0.208906] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.211571] pinctrl core: initialized pinctrl subsystem
    [    0.213214] NET: Registered protocol family 16
    [    0.216030] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.238900] cpuidle: using governor ladder
    [    0.268888] cpuidle: using governor menu
    [    0.273614] OMAP GPIO hardware version 0.1
    [    0.284229] No ATAGs?
    [    0.284267] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.328345] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.329028] reg_fixed_voltage_probe:  entered
    [    0.329049] of_get_fixed_voltage_config:  fixed vtg extract
    [    0.329106] reg_fixed_voltage_probe:  if config->enabled_at_boot
    [    0.329114] reg_fixed_voltage_probe:  gpio low
    [    0.329513] reg_fixed_voltage_probe:  entered
    [    0.329525] of_get_fixed_voltage_config:  fixed vtg extract
    [    0.329565] reg_fixed_voltage_probe:  else
    [    0.329573] reg_fixed_voltage_probe:  gpio high
    [    0.329581] cfg.ena_gpio_flags [2]
    [    0.329920] reg_fixed_voltage_probe:  entered
    [    0.329932] of_get_fixed_voltage_config:  fixed vtg extract
    [    0.330032] reg_fixed_voltage_probe:  else
    [    0.330040] reg_fixed_voltage_probe:  gpio low
    [    0.330237] gpio_request_one: gpiolib_legacy.c 
    [    0.330322] gpio_request_one: gpio output 
    [    0.331277] SCSI subsystem initialized
    [    0.331723] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, de
    [    0.331915] pps_core: LinuxPPS API ver. 1 registered
    [    0.331926] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.331967] PTP clock support registered
    [    0.333025] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.334585] Switched to clocksource timer1
    [    0.347913] NET: Registered protocol family 2
    [    0.348943] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.348989] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.349027] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.349135] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.349161] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.349366] NET: Registered protocol family 1
    [    0.349824] RPC: Registered named UNIX socket transport module.
    [    0.349841] RPC: Registered udp transport module.
    [    0.349849] RPC: Registered tcp transport module.
    [    0.349858] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.350644] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.350700] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.353189] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.353308] audit: initializing netlink subsys (disabled)
    [    0.353396] audit: type=2000 audit(0.330:1): initialized
    [    0.363203] VFS: Disk quotas dquot_6.6.0
    [    0.363473] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.366432] NFS: Registering the id_resolver key type
    [    0.366523] Key type id_resolver registered
    [    0.366535] Key type id_legacy registered
    [    0.366630] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.369492] io scheduler noop registered
    [    0.369521] io scheduler deadline registered
    [    0.369593] io scheduler cfq registered (default)
    [    0.370873] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.372247] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.372972] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.377937] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
    [    1.070399] console [ttyS0] enabled
    [    1.075117] [drm] Initialized drm 1.1.0 20060810
    [    1.092865] brd: module loaded
    [    1.102441] loop: module loaded
    [    1.106201] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.117301] mousedev: PS/2 mouse device common for all mice
    [    1.123108] i2c /dev entries driver
    [    1.127892] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.170617] mmc0: mmc_attach_sdio: mmc_attach_sdio
    [    1.176942] mmc0: mmc_attach_sdio: error mmc_send_io_op_cond
    [    1.255947] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.268186] mmc0: new high speed SDHC card at address e624
    [    1.274302] mmcblk0: mmc0:e624 SU04G 3.69 GiB 
    [    1.280961]  mmcblk0: p1 p2
    [    1.285380]  remoteproc0: wkup_m3 is available
    [    1.289860]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.299244]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.309960]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.322779] oprofile: using arm/armv7
    [    1.326584] mmc1: mmc_attach_sdio: mmc_attach_sdio
    [    1.331879] Initializing XFRM netlink socket
    [    1.336258] mmc1: mmc_attach_sdio: Point after mmc_attach_bus
    [    1.342044] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [    1.350211]  remoteproc0: Falling back to user helper
    [    1.355374] NET: Registered protocol family 17
    [    1.359895] NET: Registered protocol family 15
    [    1.364512] Key type dns_resolver registered
    [    1.369536] omap_voltage_late_init: Voltage driver support not added
    [    1.376505] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [    1.385372] cpu cpu0: cpu0 clock notifier not ready, retry
    [    1.391332] ThumbEE CPU extension supported.
    [    1.395816] Registering SWP/SWPB emulation handler
    [    1.404056] tps65217-pmic tps65217-pmic: tps65217_regulator_probe function
    [    1.417151] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.423463] mmc1: new high speed SDIO card at address 0001
    [    1.439725] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.445152] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.451917] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1100000]:-22
    [    1.462314] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1100000]:-22
    [    1.472645] hctosys: unable to open rtc device (rtc0)
    [    1.482223] wlan-en-regulator: i'm here :'(
    [    1.486634] wlan-en-regulator: disabling
    [    1.490582] vbat: i'm here :'(
    [    1.493648] vbat: disabling
    [    1.528340] EXT4-fs (mmcblk0p2): recovery complete
    [    1.533198] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.541495] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.552555] devtmpfs: mounted
    [    1.556013] Freeing unused kernel memory: 236K (c06a3000 - c06de000)
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udev: Not using udev cache because of changes detected in the following files:
    udev:     /proc/version /proc/cmdline /proc/devices
    udev:     lib/udev/rules.d/* etc/udev/rules.d/*
    udev: The udev cache will be regenerated. To identify the detected changes,
    udev: compare the cached sysconf at   /etc/udev/cache.data
    udev: against the current sysconf at  /dev/shm/udev.cache
    [    2.489001] udevd[78]: starting version 182
    [    2.892299] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    2.976299] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.286629] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    3.487347] PM: bootloader does not support rtc-only!
    [    3.585453] wl1271_sdio mmc1:0001:1: inside wl1271_probe -wlcore sdio.c
    [    3.783389] wl1271_sdio mmc1:0001:2: inside wl1271_probe -wlcore sdio.c
    [    4.212275]  remoteproc0: powering up wkup_m3
    [    4.228025]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219803
    [    4.313645]  remoteproc0: remote processor wkup_m3 is now up
    [    4.313687] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    [    6.645463] ------------[ cut here ]------------
    [    6.650488] WARNING: CPU: 0 PID: 81 at net/wireless/reg.c:524 regulatory_init+0x74/0x114 [cfg80211]()
    [    6.661483] db.txt is empty, you should update it...
    [    6.668875] Modules linked in: cfg80211(+) pm33xx wlcore_sdio omap_rng rng_core omap_wdt rtc_omap
    [    6.678263] CPU: 0 PID: 81 Comm: udevd Not tainted 4.1.13-g8dc6617 #58
    [    6.705876] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    6.712034] Backtrace: 
    [    6.714606] [<c0012b08>] (dump_backtrace) from [<c0012d28>] (show_stack+0x18/0x1c)
    [    6.723164] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    6.744872]  r7:bf05032c r6:0000020c r5:00000009 r4:00000000
    [    6.750660] [<c0012d10>] (show_stack) from [<c04f838c>] (dump_stack+0x20/0x28)
    [    6.762138] [<c04f836c>] (dump_stack) from [<c0037920>] (warn_slowpath_common+0x7c/0xb4)
    [    6.784301] [<c00378a4>] (warn_slowpath_common) from [<c0037990>] (warn_slowpath_fmt+0x38/0x40)
    [    6.814821]  r8:cb3f0d80 r7:cb3f0080 r6:c06e2560 r5:bf051584 r4:bf050d30
    [    6.821878] [<c003795c>] (warn_slowpath_fmt) from [<bf062160>] (regulatory_init+0x74/0x114 [cfg80211])
    [    6.843092]  r3:00000000 r2:bf050d30
    [    6.846915]  r4:bf05142c
    [    6.849771] [<bf0620ec>] (regulatory_init [cfg80211]) from [<bf062064>] (cfg80211_init+0x64/0xec [cfg80211])
    [    6.874802]  r5:bf051570 r4:00000000
    [    6.878693] [<bf062000>] (cfg80211_init [cfg80211]) from [<c0009674>] (do_one_initcall+0x88/0x1e0)
    [    6.901734]  r5:bf062000 r4:c06e2560
    [    6.907372] [<c00095ec>] (do_one_initcall) from [<c04f62a4>] (do_init_module+0x60/0x1b0)
    [    6.924995]  r10:bf051434 r9:00000001 r8:cb3f0d80 r7:bf05147c r6:cb3f03c0 r5:cb3f0d88
    [    6.932934]  r4:bf051434
    [    6.947184] [<c04f6244>] (do_init_module) from [<c008fa70>] (load_module+0x1b0c/0x1d40)
    [    6.966088]  r6:00000001 r5:cb3f0d88 r4:cf3cdf48
    [    6.970815] [<c008df64>] (load_module) from [<c008fe48>] (SyS_finit_module+0x6c/0x7c)
    [    6.994536]  r10:00000000 r9:cf3cc000 r8:c000fa24 r7:0000017b r6:b6ed853c r5:00000005
    [    7.002657]  r4:00000000
    [    7.015523] [<c008fddc>] (SyS_finit_module) from [<c000f880>] (ret_fast_syscall+0x0/0x3c)
    [    7.023749]  r6:bedd0cc4 r5:00000000 r4:00000000
    [    7.040197] ---[ end trace 28f0c56ae662c8c0 ]---
    [    7.045041] cfg80211: Calling CRDA to update world regulatory domain
    [    7.605980] cfg80211: World regulatory domain updated:
    [    7.614987] cfg80211:  DFS Master region: unset
    [    7.619415] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [    7.631520] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    7.639952] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    7.650447] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [    7.658642] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [    7.671660] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [    7.681350] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [    7.693046] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [    7.701257] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [    8.181643] wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2
    [    8.204871] wl18xx_driver wl18xx.0.auto: Falling back to user helper
    [    8.360621] cryptodev: disagrees about version of symbol module_layout
    [    8.425746] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    bootlogd: cannot allocate pseudo tty: No such file or directory
    Starting random number generator daemon.
    [    8.583477] random: nonblocking pool is initialized
    [    8.605838] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [    8.690060] wlcore: loaded
    Populating dev cache
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Sat Jan  9 00:07:57 UTC 2016
    INIT: Entering runlevel: 5
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    done.
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Initializing the graphics driver ...
    PVR:(Error): OpenServices: Cannot open device driver /dev/omapdrm_pvr. [140, /pvr_bridge_u.c]
    PVR:(Error): PVRSRVInitSrvConnect: PVRSRVConnect failed [2572, /bridged_pvr_glue.c]
    PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (4) [37, /srvinit.c]
    PVR:(Error): main: SrvInit failed (4) [49, /pvrsrvinit.c]
    Starting Dropbear SSH server: [   11.632930] NET: Registered protocol family 10
    dropbear.
    Starting telnet daemon.
    Starting rpcbind daemon...done.
    starting statd: done
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting Lighttpd Web Server: lighttpd.
    2016-01-09 00:08:00: (/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa8h 
    /
    /etc/rc5.d/S97matrix-gui-2.0: line 37: /sys/class/graphics/fbcon/cursor_blink: No such file or directory
    Starting Matrix GUI application.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            binutils
            cpp-symlinks
            cpp
            g++-symlinks
            g++
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gstreamer1.0-libav
            libgmp10
            libmpc3
            libmpfr4
            make
    
    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
    ***************************************************************
    ***************************************************************
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2015.12 am335x-evm /dev/ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# ifconfig wlan0 up
    [   32.069625] wlcore: PHY firmware version: Rev 8.2.0.0.232
    [   32.171749] wlcore: firmware booted (Rev 8.9.0.0.48)
    [   32.198598] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@am335x-evm:~# iw wlan0 scan | grep SSID
            SSID: LTTS
            SSID: LTTS-Guest
            SSID: L&T TS
            SSID: LTTS-Guest
            SSID: LNTIES_MYS
            SSID: THE WAY
            SSID: JellyCrush2
            SSID: JellyCrushMac2\xe2\x80\x99s iMac
            SSID: MOCHADXNLND09
    root@am335x-evm:~# iw wlan0 scan | grep SSID
            SSID: LTTS-Guest
            SSID: LNTIES_MYS
            SSID: THE WAY
            SSID: JellyCrush2
            SSID: JellyCrushMac2\xe2\x80\x99s iMac
            SSID: L&T TS
            SSID: LTTS
            SSID: XT1068 1626
    root@am335x-evm:~# 
    
    

    output for ifconfig -a is as below

    root@am335x-evm:~# ifconfig -a
    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:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

    wlan0     Link encap:Ethernet  HWaddr 84:DD:20:93:44:C6  
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    root@am335x-evm:~# ifconfig wlan0 up
    [   32.069625] wlcore: PHY firmware version: Rev 8.2.0.0.232
    [   32.171749] wlcore: firmware booted (Rev 8.9.0.0.48)
    [   32.198598] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@am335x-evm:~# iw wlan0 scan | grep SSID
            SSID: LTTS-Guest
            SSID: LNTIES_MYS
            SSID: THE WAY
            SSID: JellyCrush2
            SSID: JellyCrushMac2\xe2\x80\x99s iMac
            SSID: L&T TS
            SSID: LTTS
            SSID: XT1068 1626
    root@am335x-evm:~#

    Please help in resolving the error

    Regards,

    Lahari

  • Hi Lahiri,

    Looks like you have wl18xx up and running.

    The error that you are getting seems to be because of crda. Have you built/copied it? Does "/usr/lib/crda/regulatory.bin" exist on your filesystem?

    Regards,
    Gigi Joseph.
  • Gigi,

    I haven't copied any file explicitly.. regulatory.bin file exists on filesystem

    administrator@MYTSP00128:~$ ls /media/administrator/rootfs/usr/lib/crda/

    libreg.so  regulatory.bin

    How to resolve this error? Kindly help

    Thanks and regards,

    Lahari

  • Hi Lahiri,

    Can you unset "CONFIG_CFG80211_INTERNAL_REGDB" in your defconfig and retry?
    It's not needed.

    Regards,
    Gigi Joseph.
  • Thanks a lot Gigi.. It worked. Now no error :)

    If we give "/usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B" command getting error.

    onf -iwlan0 -Bm:~# /usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.c
    wpa_supplicant v2.5-devel
    random: Trying to read entropy from /dev/random
    Successfully initialized wpa_supplicant
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    update_config=1
    ctrl_interface='/var/run/wpa_supplicant'
    eapol_version=1
    ap_scan=1
    fast_reauth=1
    device_name='Blaze'
    manufacturer='TI'
    model_name='Wilink'
    model_number='wl18xx'
    serial_number='12345'
    driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
    p2p_go_max_inactivity=60
    p2p_go_ht40=1
    disassoc_low_ack=1
    Line 63: unknown global field 'concurrent_sched_scan=1'.
    Line 63: Invalid configuration line 'concurrent_sched_scan=1'.
    p2p_disabled=1
    Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
    Failed to add interface wlan0
    : Cancelling scan request
    : Cancelling authentication timeout
    root@am335x-evm:~#

    Regards,

    Lahari

  • Hi Lahiri,

    Since the original question is answered, I will mark this as closed.
    Please raise a new post for the new question.

    Regards,
    Gigi Joseph.
  • Hi SMitha R /Lahari ,

    I am facing a problem while calibrating wl1271 with kernel version 4.4 ,can you suggest me the best way to do it.

    Thanks & Regards,
    Rajesh