Skip to first unread message

Dileep D R

unread,
Aug 19, 2015, 2:05:44 AM8/19/15
to BeagleBoard

Hi,

Interfacing wifi module (wl12xx ti chipset) with beaglebone black. Unable to bring up wlan0 interface, please guide me for proper device tree configuration.

After booting excecuted
modprobe wlcore_sdio
modprobe wl12xx


Below are my configurations.

Kernel : 4.1
Rootfs : Debian

Device Tree:

/ {
    vwlan_en_reg: regulator-vwlan-en {
        compatible = "regulator-fixed";
        regulator-name = "vwlan_en";
        regulator-min-microvolt = <1800000>;
        regulator-max-microvolt = <1800000>;
        gpio = <&gpio0 27 0>;
        enable-active-high;
        startup-delay-us = <70000>;
        pinctrl-names = "default";
        pinctrl-0 = <&wlan_enable_pins>;
    };
};

&am33xx_pinmux {

    wlan_pins: pinmux_wlan_pins {
        pinctrl-single,pins = <
            0x28 (PIN_INPUT_PULLUP | MUX_MODE7)    /* gpio0_26 WL_IRQ */
        >;
    };

    wlan_enable_pins: pinmux_wlan_enable_pins {
        pinctrl-single,pins = <
            0x2c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpio0_27 WL_EN */
        >;
    };

    mmc2_pins: pinmux_mmc2_pins {
        pinctrl-single,pins = <
            0x3C (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat3 */
            0x38 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat2 */
            0x34 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat1 */
            0x30 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat0 */
            0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_clk */
            0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_cmd */
        >;
    };
};

&i2c2 {
    pinctrl-names = "default";
    pinctrl-0 = <&i2c2_pins>;

    status = "okay";
    clock-frequency = <100000>;

    /* ODIN-W160 EEPROM */
    eeprom@5D {
        compatible = "at,24c64";
        reg = <0x5D>;
        pagesize = <32>;
    };
};

&mmc2 {
    non-removable; /* TI specific feature */
    bus-width = <4>;
    cap-power-off-card; /* TI specific feature */
    vmmc-supply = <&vwlan_en_reg>;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc2_pins &wlan_pins>;
    status = "okay";

    #address-cells = <1>;
    #size-cells = <0>;
    wlcore: wlcore@0 {
        compatible = "ti,wl1273";
        reg = <2>;
        interrupt-parent = <&gpio0>;
        interrupts = <26 0x4>;
        ref-clock-frequency = <38400000>;
    };
};

dmesg log:

[    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.3+ (dileep@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #2 SMP PREEMPT Tue Aug 18 16:54:12 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 model: TI AM335x BeagleBone Black
[    0.000000] cma: Reserved 24 MiB at 0x9e000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 130560
[    0.000000] free_area_init_node: node 0, pgdat c0f4c700, node_mem_map df96d000
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130560 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] PERCPU: Embedded 13 pages/cpu @df925000 s22336 r8192 d22720 u53248
[    0.000000] pcpu-alloc: s22336 r8192 d22720 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129408
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs rw nfsroot=192.168.0.101:/home/dileep/BeagleBone/rootfs_debian ip=192.168.0.105:::::eth0
[    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: 475580K/522240K available (10502K kernel code, 881K rwdata, 3680K rodata, 672K init, 901K bss, 22084K reserved, 24576K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0de1d40   (14184 kB)
      .init : 0xc0de2000 - 0xc0e8a000   ( 672 kB)
      .data : 0xc0e8a000 - 0xc0f6666c   ( 882 kB)
       .bss : 0xc0f69000 - 0xc104a648   ( 902 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]     RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000]     RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, 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] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000040] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000054] OMAP clocksource: timer1 at 24000000 Hz
[    0.000437] Console: colour dummy device 80x30
[    0.000465] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000474] This ensures that you still see kernel messages. Please
[    0.000482] update your kernel commandline.
[    0.000504] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.088666] pid_max: default: 32768 minimum: 301
[    0.088826] Security Framework initialized
[    0.088911] AppArmor: AppArmor disabled by boot time parameter
[    0.088921] Yama: becoming mindful.
[    0.089140] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089154] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090088] Initializing cgroup subsys blkio
[    0.090116] Initializing cgroup subsys memory
[    0.090164] Initializing cgroup subsys devices
[    0.090185] Initializing cgroup subsys freezer
[    0.090213] Initializing cgroup subsys net_cls
[    0.090231] Initializing cgroup subsys perf_event
[    0.090249] Initializing cgroup subsys net_prio
[    0.090309] CPU: Testing write buffer coherency: ok
[    0.090373] ftrace: allocating 34337 entries in 101 pages
[    0.185862] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.185994] Setting up static identity map for 0x80008280 - 0x800082d8
[    0.238749] Brought up 1 CPUs
[    0.238776] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.238786] CPU: All CPU(s) started in SVC mode.
[    0.239723] devtmpfs: initialized
[    0.258431] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.280001] omap_hwmod: tptc0 using broken dt data from edma
[    0.280242] omap_hwmod: tptc1 using broken dt data from edma
[    0.280462] omap_hwmod: tptc2 using broken dt data from edma
[    0.286479] omap_hwmod: debugss: _wait_target_disable failed
[    0.341305] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.343537] xor: measuring software checksum speed
[    0.438761]    arm4regs  :  1218.400 MB/sec
[    0.538693]    8regs     :  1090.800 MB/sec
[    0.638691]    32regs    :   807.600 MB/sec
[    0.738692]    neon      :  1662.000 MB/sec
[    0.738702] xor: using function: neon (1662.000 MB/sec)
[    0.738887] pinctrl core: initialized pinctrl subsystem
[    0.740981] NET: Registered protocol family 16
[    0.743658] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.749925] OMAP GPIO hardware version 0.1
[    0.762640] No ATAGs?
[    0.762674] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.764679] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.764700] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.968887] raid6: int32x1  gen()   205 MB/s
[    1.138747] raid6: int32x1  xor()   165 MB/s
[    1.308851] raid6: int32x2  gen()   241 MB/s
[    1.478767] raid6: int32x2  xor()   188 MB/s
[    1.648854] raid6: int32x4  gen()   234 MB/s
[    1.818742] raid6: int32x4  xor()   162 MB/s
[    1.988999] raid6: int32x8  gen()   183 MB/s
[    2.158816] raid6: int32x8  xor()   117 MB/s
[    2.328691] raid6: neonx1   gen()  1452 MB/s
[    2.498720] raid6: neonx2   gen()  1864 MB/s
[    2.668706] raid6: neonx4   gen()   785 MB/s
[    2.838694] raid6: neonx8   gen()   321 MB/s
[    2.838703] raid6: using algorithm neonx2 gen() 1864 MB/s
[    2.838712] raid6: using intx1 recovery algorithm
[    2.848426] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    2.849484] reg-fixed-voltage regulator-vwlan-en: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wlan_enable_pins, deferring probe
[    2.852189] vgaarb: loaded
[    2.852959] SCSI subsystem initialized
[    2.853364] libata version 3.00 loaded.
[    2.853752] usbcore: registered new interface driver usbfs
[    2.853837] usbcore: registered new interface driver hub
[    2.853949] usbcore: registered new device driver usb
[    2.854623] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    2.854684] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
[    2.854724] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    2.854881] pps_core: LinuxPPS API ver. 1 registered
[    2.854892] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[    2.854928] PTP clock support registered
[    2.855199]
********** sdio_register_bus ************
[    2.855783] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    2.856573] Advanced Linux Sound Architecture Driver Initialized.
[    2.857468] NetLabel: Initializing
[    2.857482] NetLabel:  domain hash size = 128
[    2.857489] NetLabel:  protocols = UNLABELED CIPSOv4
[    2.857558] NetLabel:  unlabeled traffic allowed by default
[    2.857834] Switched to clocksource timer1
[    2.980571] NET: Registered protocol family 2
[    2.981561] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    2.981613] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    2.981674] TCP: Hash tables configured (established 4096 bind 4096)
[    2.981755] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.981777] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.982101] NET: Registered protocol family 1
[    2.982733] RPC: Registered named UNIX socket transport module.
[    2.982750] RPC: Registered udp transport module.
[    2.982758] RPC: Registered tcp transport module.
[    2.982766] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.982802] PCI: CLS 0 bytes, default 64
[    2.983781] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[    2.983846] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    2.986618] futex hash table entries: 256 (order: 2, 16384 bytes)
[    2.986744] audit: initializing netlink subsys (disabled)
[    2.986838] audit: type=2000 audit(2.920:1): initialized
[    2.988629] zpool: loaded
[    2.989061] VFS: Disk quotas dquot_6.6.0
[    2.989143] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.989891] NFS: Registering the id_resolver key type
[    2.989962] Key type id_resolver registered
[    2.989971] Key type id_legacy registered
[    2.989998] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.990402] fuse init (API version 7.23)
[    2.990707] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.994152] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.994424] io scheduler noop registered
[    2.994442] io scheduler deadline registered
[    2.994482] io scheduler cfq registered (default)
[    2.996068] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    2.998805] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    3.000202] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    3.003670] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
[    3.893828] console [ttyS0] enabled
[    3.899290] [drm] Initialized drm 1.1.0 20060810
[    3.904057] usbcore: registered new interface driver udl
[    3.913901] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.920600] ehci-pci: EHCI PCI platform driver
[    3.925141] ehci-platform: EHCI generic platform driver
[    3.930629] ehci-omap: OMAP-EHCI Host Controller driver
[    3.937665] 47401300.usb-phy supply vcc not found, using dummy regulator
[    3.960185] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[    3.960209] musb-hdrc: MHDRC RTL version 2.0
[    3.960219] musb-hdrc: setup fifo_mode 4
[    3.960240] musb-hdrc: 28/31 max ep, 16384/16384 memory
[    3.961710] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    4.040050] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[    4.040072] musb-hdrc: MHDRC RTL version 2.0
[    4.040081] musb-hdrc: setup fifo_mode 4
[    4.040098] musb-hdrc: 28/31 max ep, 16384/16384 memory
[    4.040258] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    4.046430] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    4.054669] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.061540] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.068817] usb usb1: Product: MUSB HDRC host driver
[    4.073805] usb usb1: Manufacturer: Linux 4.1.3+ musb-hcd
[    4.079249] usb usb1: SerialNumber: musb-hdrc.1.auto
[    4.085151] hub 1-0:1.0: USB hub found
[    4.089097] hub 1-0:1.0: 1 port detected
[    4.128166] using random self ethernet address
[    4.132658] using random host ethernet address
[    4.138000] usb0: HOST MAC ba:72:11:b3:c2:c6
[    4.142464] usb0: MAC 92:c9:55:43:50:65
[    4.146381] using random self ethernet address
[    4.150896] using random host ethernet address
[    4.155446] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[    4.162188] g_ether gadget: g_ether ready
[    4.167180] mousedev: PS/2 mouse device common for all mice
[    4.173952] omap_rtc 44e3e000.rtc: already running
[    4.179409] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    4.187374] i2c /dev entries driver
[    4.193145] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    4.201190] omap_hsmmc 48060000.mmc: Got CD GPIO
[    4.249108] omap_hsmmc 481d8000.mmc: unable to get vmmc regulator -517
[    4.279501] ledtrig-cpu: registered to indicate activity on CPUs
[    4.285888] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    4.293691] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    4.301349] hidraw: raw HID events driver (C) Jiri Kosina
[    4.308266] usbcore: registered new interface driver usbhid
[    4.313872] usbhid: USB HID core driver
[    4.318160] ashmem: initialized
[    4.322238]  remoteproc0: wkup_m3 is available
[    4.326710]  remoteproc0: Note: remoteproc is still under development and considered experimental.
[    4.335969]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    4.350061] oprofile: using arm/armv7
[    4.354191] NET: Registered protocol family 10
[    4.360338] mip6: Mobile IPv6
[    4.363353] NET: Registered protocol family 17
[    4.368117] Key type dns_resolver registered
[    4.372418] mpls_gso: MPLS GSO support
[    4.376411] omap_voltage_late_init: Voltage driver support not added
[    4.383430] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[    4.392253] cpu cpu0: cpu0 clock notifier not ready, retry
[    4.398058] ThumbEE CPU extension supported.
[    4.402373] Registering SWP/SWPB emulation handler
[    4.408634] registered taskstats version 1
[    4.413877] Btrfs loaded
[    4.418978] Key type encrypted registered
[    4.445887] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    4.452094] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    4.459174] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    4.466228] i2c i2c-1: of_i2c: modalias failure on /ocp/i2c@4802a000/tps1@24
[    4.474001] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    4.481068] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[    4.488603] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    4.495968] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    4.503378] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    4.510729] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    4.518085] at24 2-005d: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[    4.541231] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    4.548374]  remoteproc0: powering up wkup_m3
[    4.552816]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219663
[    4.560415]  remoteproc0: remote processor wkup_m3 is now up
[    4.566118] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version 190 not supported
[    4.577885] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,000C,2115BBBK1462'
[    4.585167] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[    4.647855] bone_capemgr bone_capemgr: slot #0: No cape found
[    4.677721] bone_capemgr bone_capemgr: Invalid signature 'd484c1cb' at slot 1
[    4.684920] bone_capemgr bone_capemgr: slot #1: No cape found
[    4.747848] bone_capemgr bone_capemgr: slot #2: No cape found
[    4.807845] bone_capemgr bone_capemgr: slot #3: No cape found
[    4.813740] bone_capemgr bone_capemgr: initialized OK.
[    4.938834] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
[    4.952524] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
[    5.011928] mmc1: MAN_BKOPS_EN bit is not set
[    5.020139] mmc1: new high speed MMC card at address 0001
[    5.026393] mmcblk0: mmc1:0001 MMC04G 3.65 GiB
[    5.031055] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    5.037182] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    5.043759] mmcblk0boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
[    5.050347] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[    5.057025] davinci_mdio: dt: updated phy_id[1] from phy_mask[fffffffe]
[    5.063822] mmcblk0boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
[    5.072203] libphy: 4a101000.mdio: probed
[    5.076256] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    5.085719]  mmcblk0: p1 p2
[    5.092320] cpsw 4a100000.ethernet: Detected MACID = 54:4a:16:bc:f0:07
[    5.101063] omap_rtc 44e3e000.rtc: setting system clock to 2015-08-19 05:52:17 UTC (1439963537)
[    5.109982] of_cfs_init
[    5.112501] of_cfs_init: OK
[    5.122207] net eth0: initializing cpsw version 1.12 (0)
[    5.130201] net eth0: phy found : id is : 0x7c0f1
[    5.135034] libphy: PHY 4a101000.mdio:01 not found
[    5.139970] net eth0: phy 4a101000.mdio:01 not found on slave 1
[    5.147711] net eth0: BQL enabled
[    5.155329] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.208497] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    8.217890] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.238046] IP-Config: Guessing netmask 255.255.255.0
[    8.243383] IP-Config: Complete:
[    8.246635]      device=eth0, hwaddr=54:4a:16:bc:f0:07, ipaddr=192.168.0.105, mask=255.255.255.0, gw=255.255.255.255
[    8.257365]      host=192.168.0.105, domain=, nis-domain=(none)
[    8.263381]      bootserver=255.255.255.255, rootserver=192.168.0.101, rootpath=
[    8.271037] PM: Hibernation image not present or could not be loaded.
[    8.271078] vmmcsd_fixed: disabling
[    8.274725] ALSA device list:
[    8.277705]   No soundcards found.
[    8.290284] VFS: Mounted root (nfs filesystem) on device 0:16.
[    8.296840] devtmpfs: mounted
[    8.300733] Freeing unused kernel memory: 672K (c0de2000 - c0e8a000)
[    8.589596] random: systemd urandom read with 76 bits of entropy available
[    8.605983] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    8.620102] systemd[1]: Detected architecture 'arm'.
[    8.650971] systemd[1]: Set hostname to <arm>.
[    9.222198] random: nonblocking pool is initialized
[    9.336637] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.354827] systemd[1]: Expecting device dev-ttyS0.device...
[    9.378113] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.386249] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    9.394114] systemd[1]: Starting Remote File Systems (Pre).
[    9.418011] systemd[1]: Reached target Remote File Systems (Pre).
[    9.424425] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    9.458041] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    9.467685] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[    9.476237] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    9.484400] systemd[1]: Starting Paths.
[    9.508007] systemd[1]: Reached target Paths.
[    9.512491] systemd[1]: Starting Encrypted Volumes.
[    9.538036] systemd[1]: Reached target Encrypted Volumes.
[    9.543576] systemd[1]: Starting Swap.
[    9.558008] systemd[1]: Reached target Swap.
[    9.562393] systemd[1]: Starting Root Slice.
[    9.578009] systemd[1]: Created slice Root Slice.
[    9.582836] systemd[1]: Starting Delayed Shutdown Socket.
[    9.608024] systemd[1]: Listening on Delayed Shutdown Socket.
[    9.613900] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    9.638031] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    9.645130] systemd[1]: Starting Journal Socket (/dev/log).
[    9.668028] systemd[1]: Listening on Journal Socket (/dev/log).
[    9.674092] systemd[1]: Starting User and Session Slice.
[    9.698047] systemd[1]: Created slice User and Session Slice.
[    9.704008] systemd[1]: Starting udev Control Socket.
[    9.728031] systemd[1]: Listening on udev Control Socket.
[    9.733630] systemd[1]: Starting udev Kernel Socket.
[    9.758017] systemd[1]: Listening on udev Kernel Socket.
[    9.763503] systemd[1]: Starting Journal Socket.
[    9.788023] systemd[1]: Listening on Journal Socket.
[    9.793230] systemd[1]: Starting System Slice.
[    9.818058] systemd[1]: Created slice System Slice.
[    9.823280] systemd[1]: Starting Increase datagram queue length...
[    9.852339] systemd[1]: Mounting Debug File System...
[    9.882329] systemd[1]: Mounted Huge Pages File System.
[    9.942035] systemd[1]: Started Set Up Additional Binary Formats.
[    9.970778] systemd[1]: Starting udev Coldplug all Devices...
[   10.039712] systemd[1]: Starting Load Kernel Modules...
[   10.094019] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   10.152586] systemd[1]: Mounting POSIX Message Queue File System...
[   10.223222] systemd[1]: Starting system-getty.slice.
[   10.288491] systemd[1]: Created slice system-getty.slice.
[   10.294104] systemd[1]: Starting system-serial\x2dgetty.slice.
[   10.318233] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   10.324740] systemd[1]: Starting Slices.
[   10.348076] systemd[1]: Reached target Slices.
[   10.352745] systemd[1]: Starting Remount Root and Kernel File Systems...
[   10.408276] systemd[1]: Mounted POSIX Message Queue File System.
[   10.428295] systemd[1]: Mounted Debug File System.
[   10.448106] systemd[1]: Started Increase datagram queue length.
[   10.478241] systemd[1]: Started Load Kernel Modules.
[   10.495567] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   10.538302] systemd[1]: Started Remount Root and Kernel File Systems.
[   10.678220] systemd[1]: Started udev Coldplug all Devices.
[   10.744485] systemd[1]: Started Various fixups to make systemd work better on Debian.
[   10.752692] systemd[1]: Starting Load/Save Random Seed...
[   10.782770] systemd[1]: Starting Create Static Device Nodes in /dev...
[   10.812724] systemd[1]: Mounting Configuration File System...
[   10.852426] systemd[1]: Mounting FUSE Control File System...
[   10.931549] systemd[1]: Starting Apply Kernel Variables...
[   10.972493] systemd[1]: Starting Syslog Socket.
[   11.018437] systemd[1]: Listening on Syslog Socket.
[   11.023549] systemd[1]: Starting Journal Service...
[   11.061573] systemd[1]: Started Journal Service.
[   11.446764] systemd-udevd[130]: starting version 215
[   11.810498] systemd-journald[128]: Received request to flush runtime journal from PID 1
[   13.545674] tlv320aic32x4 2-0018: Failed getting the mclk. The current implementation does not support the usage of this codec without mclk
[   13.678280] tlv320aic32x4: probe of 2-0018 failed with error -2
[   13.731513] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[   13.837397] tilcdc 4830e000.lcdc: no encoders/connectors found
[   13.887711] tilcdc 4830e000.lcdc: failed to initialize mode setting
[   14.330292] ERROR: could not get clock /sound:mclk(0)
[   14.335448] davinci_evm sound: ASoC: CODEC DAI hdmi-hifi not registered
[   14.409356] davinci_evm sound: snd_soc_register_card failed (-517)
[   47.948829]
********** wl1271_init ************
[   47.955815]
********** sdio_register_driver ************
[   47.971580]
********** sdio_register_driver : wl1271_sdio ************
[   55.377163]
********** Country : COUNTRY=00 *********
[   55.403907] cfg80211: Calling CRDA to update world regulatory domain
[   55.711247] cfg80211: World regulatory domain updated:
[   55.717027] cfg80211:  DFS Master region: unset
[   55.736080] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   55.751760] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   55.759998] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   55.769404] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   55.777464] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   55.788266] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   55.797901] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   55.806030] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   55.815257] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

Maxim Podbereznyy

unread,
Aug 19, 2015, 9:32:14 AM8/19/15
to beagleboard
did you place t-connectivity directory to /lib/firmware?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Maxim Podbereznyy

unread,
Aug 19, 2015, 9:33:12 AM8/19/15
to beagleboard
I don't see a wl12 boot message when the firmware is successfully loaded

Dileep

unread,
Aug 19, 2015, 9:49:46 AM8/19/15
to beagl...@googlegroups.com
Wl12xx will not support device tree. Need to find out other procedure to enable in some board init function

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/_Edxe-s1MxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Maxim Podbereznyy

unread,
Aug 19, 2015, 10:06:40 AM8/19/15
to beagleboard
why not? this package enables wl12 for TI's am335x EVMSK and uses the device tree

drhun...@gmail.com

unread,
Aug 19, 2015, 10:55:58 AM8/19/15
to BeagleBoard
Hi,
Which wilink device are you building for?
The wl18xx family is now fully supported in 4.1 kernel. There is a device tree file for the wl1835 cape in the kernel that is best place to look.
If you are looking at wl127x or wl128x then device tree will be similar but you'll need to build the Wi-Fi drivers out of tree.
For the wl1835 cape look at the ti processor wiki for a page to describe full build and configuration on 4.1 kernel.
Iain

Iain Hunter

unread,
Aug 20, 2015, 6:48:19 AM8/20/15
to beagl...@googlegroups.com

Hi,
As a follow up I agree with the previous statement that wl127x drivers have no device tree support. So you'll need to merge device tree support from wl18xx drivers. As far as I can remember there are no major changes to parameters passed by device tree to WiFi driver from wl127x to wl18xx. As long as you successfully pass the wl12xx probe function without an error you should be ok. Caveat is that I've not done this exercise.
Iain

Dileep

unread,
Aug 26, 2015, 4:57:05 AM8/26/15
to beagl...@googlegroups.com
Hi,
 
When i add wl12xx module, none of the functions from wl12xx and wlcore are getting called.

logs:
root@arm:~# modprobe wlcore_sdio
[   48.682409]
[   48.682409] ********** wl1271_init ************
[   48.690385]
[   48.690385] ********** sdio_register_driver ************
[   48.708615]
[   48.708615] ********** sdio_register_driver : wl1271_sdio ************
root@arm:~# modprobe wl12xx
[   57.901415]
[   57.901415] ********** Country : COUNTRY=00 *********
[   57.908006] cfg80211: Calling CRDA to update world regulatory domain
[   58.061324]
[   58.061324] ********** ieee80211_init ************
[   58.067658]
[   58.067658] ********** ieee80211_init 1 ************
[   58.076820]
[   58.076820] ********** ieee80211_init 2 ************
[   58.086826]
[   58.086826] ********** ieee80211_init 3 ************
root@arm:~# [   58.207791] cfg80211: World regulatory domain updated:
[   58.213206] cfg80211:  DFS Master region: unset
[   58.217588] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   58.229554] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   58.237609] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   58.246721] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   58.255431] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   58.265659] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   58.275796] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   58.284697] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   58.293341] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

root@arm:~# lsmod
Module                  Size  Used by
wl12xx                 64379  0
wlcore                213095  1 wl12xx
mac80211              631232  2 wl12xx,wlcore
cfg80211              518978  2 mac80211,wlcore
rfkill                 20618  1 cfg80211
wlcore_sdio             8050  0
snd_soc_evm             7798  0
omap_rng                5144  0
rng_core                8712  1 omap_rng
tilcdc                 31000  0
snd_soc_tlv320aic32x4    16689  1
snd_soc_davinci_mcasp    18424  2
snd_soc_edma            1166  1 snd_soc_davinci_mcasp
uio_pdrv_genirq         3625  0
uio                     9898  1 uio_pdrv_genirq
root@arm:~#

Iain Hunter

unread,
Aug 27, 2015, 12:33:44 PM8/27/15
to beagl...@googlegroups.com
Did you use device tree in the end or modify a board.c?
If so that looks like the mmc port is not being probed correctly as it is not defined. You should at least get some activity on mmc to try and read the type of "sd card" on this bus. This should identify as a wl12xx and then load the drivers when you insmod wlcore_sdio 
Iain

Dileep

unread,
Aug 27, 2015, 11:35:12 PM8/27/15
to beagl...@googlegroups.com
Hi lain,

I have configured MMC3 for SDIO communiction. but still sdio communication is not up.

If clock is not enabled by default for MMC3 how can it be done in device tree,

dmesg log shows:
[    4.259093] omap_hsmmc 47810000.mmc: unable to get vmmc regulator -517


Device tree configurations.

wl12xx_vmmc: fixedregulator@2 {
        pinctrl-names = "default";
        pinctrl-0 = <&wl12xx_gpio>;
        compatible = "regulator-fixed";
        regulator-name = "vwl1271";

        regulator-min-microvolt = <1800000>;
        regulator-max-microvolt = <1800000>;
        gpio = <&gpio0 27 0>;
        startup-delay-us = <70000>;
        enable-active-high;
    };

    mmc3_pins: pinmux_mmc3_pins {

        pinctrl-single,pins = <
            0x3C (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat3 */
            0x38 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat2 */
            0x34 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat1 */
            0x30 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat0 */
            0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_clk */
            0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_cmd */
        >;
    };

&mmc3 {
    /* these are on the crossbar and are outlined in the
        xbar-event-map element */
    dmas = <&edma 32 &edma 33>;
    dma-names = "tx", "rx";

    status = "okay";
    vmmc-supply = <&wl12xx_vmmc>;
    ti,non-removable;
    bus-width = <4>;
    cap-power-off-card;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc3_pins>;


    #address-cells = <1>;
    #size-cells = <0>;
    wlcore: wlcore@2 {
        compatible = "ti,wl1271";

        reg = <2>;
        interrupt-parent = <&gpio0>;
        interrupts = <26 0x4>; /* gpio 31 */
        ref-clock-frequency = <38400000>;
    };
};

&edma {
ti,edma-xbar-event-map = /bits/ 16 <1 32 2 33>;
};

Iain Hunter

unread,
Aug 28, 2015, 7:30:42 AM8/28/15
to beagl...@googlegroups.com
Hi

This is not good. You have tried to start mmc3 but it failed to get a regulator, so may not have continued its initialisation - i don't know how driver behaves in this case.
 omap_hsmmc 47810000.mmc: unable to get vmmc regulator -517

So suggestion would be to trace omap_hsmmc driver to understand why it fails to get a regulator.
Iain

Maxim Podbereznyy

unread,
Aug 28, 2015, 3:26:08 PM8/28/15
to beagleboard

Enable dummy regulators in the kernel

28 Авг 2015 г. 14:30 пользователь "Iain Hunter" <drhun...@gmail.com> написал:
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Message has been deleted
Message has been deleted

r2a...@gmail.com

unread,
Sep 16, 2015, 7:32:06 AM9/16/15
to BeagleBoard
Hi  Dileep,

I am also trying to bring up wl12xx based on BBB kernel. Is there any update on this ?

Do we need to use &mmc2 or & mmc3 ?  

Thanks & Regard
Raghu Ramaraj

Dileep

unread,
Sep 18, 2015, 1:15:51 AM9/18/15
to beagl...@googlegroups.com
Hi Raghu,

you should use &mmc3.

Because of other work, currently we are not working on that. still we need to debug SDIO communication on hardware line.

Regards,
Dileep
Reply all
Reply to author
Forward
0 new messages