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.

WL1837MOD Linux Kernel

Genius 5355 points

Based on the TI drivers I downloaded (followed the link http://processors.wiki.ti.com/index.php/WL18xx_System_Build_Scripts ) I can see there are patches for both 3.10.53 and 3.14.28.

 

I tried integrating 3.10.53 patch to imx6 sabre board BSP first but the compilation failed.

 

I tried integrating 3.14.28 patch to imx6 sabre board BSP, the compilation was OK. Loaded the TI drivers on imx6 sabre board and both wlan and bt were working.

 

I diff the patches for both version and there were only minor differences, and as per my understanding, integrating with 3.10.17 should work, it is just that integration had done manually since there is no patch for 3.10.17.

So, I did manual integration to kernel 3.10.17 and no compilation issue. I loaded the drivers to imx6 sabre board and  wlan works fine but Bluetooth does not work.

 

Attached log file.

Please advise what is the error related to so I can focus on that part. Otherwise, it is hard to debug.

  • Hi Shaun,

    I could not see the attachment, can you please reattach it?

    Regards,
    Gigi Joseph.
  • Hi Gigi... file attached.
  • Any update?

  • Hi Shaun,

    Sorry, I am a bit confused.
    You mentioned, "So, I did manual integration to kernel 3.10.17 and no compilation issue. I loaded the drivers to imx6 sabre board and wlan works fine but Bluetooth does not work." - I was expecting to see some logs which shows why bluetooth fails to load...

    I see that you've shared the build log which throws a compilation error: "error: redefinition of ‘reinit_completion’". It also mentions:
    include/linux/completion.h:86:20: note: previous definition of ‘reinit_completion’ was here

    AFAIK, reinit_completion was not part of the 3.10.x kernel

    Regards,
    Gigi Joseph.
  • Missed out to send the boot log. Please find the attached.

     

    Also to clarify, please see the following.

     

    Freescale Sabre board + TI wilink evk + kernel version 3.14.28 à both Wlan and BT works

     

    Freescale Sabre board + TI wilink evk + kernel version 3.10.53 à build error (modules_build_error_3.10.53.txt)

     

    Freescale Sabre board + TI wilink evk + kernel version 3.10.17à only Wlan works

     

    PCI stobu board + TI wilink  + kernel version 3.10.17 à only Wlan works (wilink_driver_integrated_stobu2_12Oct2015_BT_logs.txt)

     

    
    
    
    U-Boot 2013.04-04986-g06dd4f7-dirty (Oct 09 2015 - 09:18:40)
    
    
    CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
    
    CPU:   Temperature 28 C, calibration data: 0x59e50d69
    
    Reset cause: POR
    
    Board: MX6Q-STOBU
    
    I2C:   ready
    
    DRAM:  1 GiB
    
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    
    *** Warning - bad CRC, using default environment
    
    
    No panel detected: default to INNO-QVGA
    
    in hx8347_lcd_panel_init.
    
    hx8347_lcd_panel_init: spi_lcd = 0x4f55c398
    
    Display: INNO-QVGA (240x320)
    
    In:    serial
    
    Out:   serial
    
    Err:   serial
    
    Found PFUZE100! deviceid=10,revid=21
    
    mmc2(part 0) is current device
    
    Net:   Phy not found
    
    PHY reset timed out
    
    FEC [PRIME]
    
    Warning: failed to set MAC address
    
    
    Normal Boot
    
    Hit any key to stop autoboot:  1  0 
    
    mmc2(part 0) is current device
    
    reading boot.scr
    
    ** Unable to read file boot.scr **
    
    reading uImage
    
    5880504 bytes read in 154 ms (36.4 MiB/s)
    
    Booting from mmc ...
    
    reading imx6q-stobu2.dtb
    
    44888 bytes read in 17 ms (2.5 MiB/s)
    
    ## Booting kernel from Legacy Image at 12000000 ...
    
       Image Name:   Linux-3.10.17-1.0.2_ga+g33597e3
    
       Image Type:   ARM Linux Kernel Image (uncompressed)
    
       Data Size:    5880440 Bytes = 5.6 MiB
    
       Load Address: 10008000
    
       Entry Point:  10008000
    
       Verifying Checksum ... OK
    
    ## Flattened Device Tree blob at 18000000
    
       Booting using the fdt blob at 0x18000000
    
       Loading Kernel Image ... OK
    
    OK
    
    switch to ldo_bypass mode!
    
       Using Device Tree in place at 18000000, end 1800df57
    
    
    Starting kernel ...
    
    
    Booting Linux on physical CPU 0x0
    Linux version 3.10.17-1.0.2_ga+g33597e3 (paramod@et-HP-ENVY-15-Notebook-PC) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Thu Oct 8 17:03:53 SGT 2015
    CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 Quad SABRE Smart Device Board
    cma: CMA: reserved 320 MiB at 3c000000
    Memory policy: ECC disabled, Data cache writealloc
    PERCPU: Embedded 8 pages/cpu @81648000 s9088 r8192 d15488 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
    Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk0p2 rootwait rw video=mxcfb0:ldb,INNO-QVGA,if=RGB24 psplash=false
    PID hash table entries: 4096 (order: 2, 16384 bytes)
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Memory: 1024MB = 1024MB total
    Memory: 696512k/696512k available, 352064k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
        lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
        pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
        modules : 0x7f000000 - 0x7fe00000   (  14 MB)
          .text : 0x80008000 - 0x80d0d18c   (13333 kB)
          .init : 0x80d0e000 - 0x80d53380   ( 277 kB)
          .data : 0x80d54000 - 0x80dc6c18   ( 460 kB)
           .bss : 0x80dc6c18 - 0x80e31068   ( 426 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    Preemptible hierarchical RCU implementation.
    	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    NR_IRQS:16 nr_irqs:16 16
    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1048576 B
    sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
    CPU identified as i.MX6Q, silicon rev 1.2
    Console: colour dummy device 80x30
    Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0x806b1930 - 0x806b1988
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (3162.11 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    pinctrl core: initialized pinctrl subsystem
    regulator-dummy: no parameters
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    Use WDOG2 as reset source
    syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
    vdd1p1: 800 <--> 1375 mV at 1125 mV 
    vdd3p0: 2800 <--> 3150 mV at 3000 mV 
    vdd2p5: 2000 <--> 2750 mV at 2425 mV 
    cpu: 725 <--> 1450 mV 
    vddpu: 725 <--> 1450 mV 
    vddsoc: 725 <--> 1450 mV 
    syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered
    syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
    hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    hw-breakpoint: maximum watchpoint size is 4 bytes.
    imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
    bio: create slab <bio-0> at 0
    mxs-dma 110000.dma-apbh: initialized
    wlan-en-regulator: 1800 mV 
    usb_otg_vbus: 5000 mV 
    usb_h1_vbus: 4500 mV 
    usb_h3_vbus: 3300 mV 
    1P8V: 1800 mV 
    3P3V: 3300 mV 
    vgaarb: loaded
    i2c-core: driver [max17135] using legacy suspend method
    i2c-core: driver [max17135] using legacy resume method
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    i2c i2c-0: IMX I2C adapter registered
    genirq: Setting trigger mode 13 for irq 256 failed (gpio_set_irq_type+0x0/0x29c)
    i2c i2c-1: IMX I2C adapter registered
    i2c i2c-2: IMX I2C adapter registered
    Linux video capture interface: v2.00
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    PTP clock support registered
    imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
    imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
    MIPI CSI2 driver module loaded
    Advanced Linux Sound Architecture Driver Initialized.
    Bluetooth: Core ver 2.16
    NET: Registered protocol family 31
    Bluetooth: HCI device and connection manager initialized
    Bluetooth: HCI socket layer initialized
    Bluetooth: L2CAP socket layer initialized
    Bluetooth: SCO socket layer initialized
    Switching to clocksource mxc_timer1
    NET: Registered protocol family 2
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP: reno registered
    UDP hash table entries: 512 (order: 2, 16384 bytes)
    UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
    pureg-dummy: no parameters
    imx6_busfreq busfreq.15: DDR medium rate not supported.
    Bus freq driver module loaded
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    fuse init (API version 7.22)
    msgmni has been set to 2000
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    imx-weim 21b8000.weim: WEIM driver registered.
    (NULL device *): hx8347_init: Entry.
    (NULL device *): hx8347_init: Exit.
    reading of DT polarity-inverted = 1
    MIPI DSI driver module loaded
    mxc_sdc_fb fb.29: register mxc display driver ldb
    Console: switching to colour frame buffer device 30x40
    mxc_sdc_fb fb.30: register mxc display driver hdmi
    mxc_sdc_fb fb.30: NO mxc display driver found!
    mxc_sdc_fb fb.31: register mxc display driver lcd
    mxc_sdc_fb fb.31: NO mxc display driver found!
    mxc_sdc_fb fb.32: register mxc display driver ldb
    imx-sdma 20ec000.sdma: no iram assigned, using external mem
    imx-sdma 20ec000.sdma: loaded firmware 1.1
    imx-sdma 20ec000.sdma: initialized
    pfuze100-regulator 0-0008: Full lay: 2, Metal lay: 1
    pfuze100-regulator 0-0008: FAB: 0, FIN: 0
    pfuze100-regulator 0-0008: pfuze100 found.
    SW1AB: 300 <--> 1875 mV at 1175 mV 
    SW1C: 300 <--> 1875 mV at 1175 mV 
    SW2: 800 <--> 3300 mV at 3300 mV 
    SW3A: 400 <--> 1975 mV at 1500 mV 
    SW3B: 400 <--> 1975 mV at 1500 mV 
    SW4: 800 <--> 3300 mV at 3150 mV 
    SWBST: 5000 mV 
    VSNVS: 1000 <--> 3000 mV at 3000 mV 
    VREFDDR: 750 mV 
    VGEN1: 800 <--> 1550 mV at 1500 mV 
    VGEN2: 800 <--> 1550 mV at 1500 mV 
    VGEN3: 1800 <--> 3300 mV at 2800 mV 
    VGEN4: 1800 <--> 3300 mV at 1800 mV 
    VGEN5: 1800 <--> 3300 mV at 3000 mV 
    VGEN6: 1800 <--> 3300 mV at 3300 mV 
    Serial: IMX driver
    2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
    console [ttymxc1] enabled
    21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
    21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 62) is a IMX
    serial: Freescale lpuart driver
    [drm] Initialized drm 1.1.0 20060810
    [drm] Initialized vivante 1.0.0 20120216 on minor 0
    brd: module loaded
    loop: module loaded
    (stk) :sysfs entries created
    (stk) : debugfs entries created 
    (hci_tty): inside hci_tty_init
    (hci_tty): allocated 249, 0
    ssd1805 spi0.0: spi->master->bus_num = 0, spi->chip_select = 0, minor = 0, ssd1805->devt = 160432128
    ssd1805 spi0.0: OBU 3.5 inch LCD Board is plugged in!
    ssd1805 spi0.0: ssd1805->gpio_contrast1 = 0. gpio_get_value(ssd1805->gpio_contrast1) = 0x0
    (NULL device *): hx8347_probe: Entry.
    hx8347 spi0.1: Panel probed
    spi_imx 2008000.ecspi: probed
    CAN device driver interface
    PPP generic driver version 2.4.2
    NET: Registered protocol family 24
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-pci: EHCI PCI platform driver
    usbcore: registered new interface driver cdc_acm
    cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver usbserial
    usbcore: registered new interface driver cp210x
    usbserial: USB Serial support registered for cp210x
    usbcore: registered new interface driver ftdi_sio
    usbserial: USB Serial support registered for FTDI USB Serial Device
    usbcore: registered new interface driver option
    usbserial: USB Serial support registered for GSM modem (1-port)
    usbcore: registered new interface driver pl2303
    usbserial: USB Serial support registered for pl2303
    ci_hdrc ci_hdrc.0: EHCI Host Controller
    ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
    ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    ci_hdrc ci_hdrc.1: doesn't support gadget
    ci_hdrc ci_hdrc.1: EHCI Host Controller
    ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
    ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    ci_hdrc ci_hdrc.2: doesn't support gadget
    ci_hdrc ci_hdrc.2: EHCI Host Controller
    ci_hdrc ci_hdrc.2: new USB bus registered, assigned bus number 3
    ci_hdrc ci_hdrc.2: USB 2.0 started, EHCI 1.00
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 1 port detected
    mousedev: PS/2 mouse device common for all mice
    adxl34x 2-001d: no IRQ?
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    apds993x_probe: Failed to init apds993x
    apds993x: probe of 1-0039 failed with error -5
    rtc-pcf85063 0-0051: chip found, driver version 0.0.1
    rtc-pcf85063 0-0051: rtc core: registered rtc-pcf85063 as rtc0
    snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc1
    i2c /dev entries driver
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
    Bluetooth: HCI UART driver ver 2.2
    Bluetooth: HCI H4 protocol initialized
    Bluetooth: HCI BCSP protocol initialized
    Bluetooth: HCILL protocol initialized
    Bluetooth: HCIATH3K protocol initialized
    usbcore: registered new interface driver bcm203x
    usbcore: registered new interface driver btusb
    Bluetooth: Generic Bluetooth SDIO driver ver 0.1
    usbcore: registered new interface driver ath3k
    (stc):  chnl_id list empty :4 
    (stk) : st_kim_startcpuidle: using governor ladder
    cpuidle: using governor menu
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    sdhci-pltfm: SDHCI platform and OF driver helper
    mmc0: no vqmmc regulator found
    (stk) :ldisc_install = 1usb 1-1: new high-speed USB device number 2 using ci_hdrc
    mmc0: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
    mmc1: no vqmmc regulator found
    mmc1: no vmmc regulator found
    mmc0: card claims to support voltages below the defined range. These will be ignored.
    mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new high speed SDIO card at address 0001
    mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
    mmc1: BKOPS_EN bit is not set
    usb-storage 1-1:1.0: USB Mass Storage device detected
    mmc1: new high speed DDR MMC card at address 0001
    mmcblk0: mmc1:0001 004G90 3.68 GiB 
    scsi0 : usb-storage 1-1:1.0
    mmcblk0boot0: mmc1:0001 004G90 partition 1 2.00 MiB
    mmcblk0boot1: mmc1:0001 004G90 partition 2 2.00 MiB
    mmcblk0rpmb: mmc1:0001 004G90 partition 3 512 KiB
     mmcblk0: p1 p2
     mmcblk0boot1: unknown partition table
     mmcblk0boot0: unknown partition table
    usb 2-1: new high-speed USB device number 2 using ci_hdrc
    Galcore version 4.6.9.9754
    mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
    mxc_asrc 2034000.asrc: mxc_asrc registered
    mxc_vpu 2040000.vpu: VPU initialized
    caam 2100000.caam: device ID = 0x0a16010000000000 (Era -524)
    caam 2100000.caam: job rings = 2, qi = 0
    caam 2100000.caam: authenc-hmac-md5-cbc-aes-caam
    caam 2100000.caam: authencesn-hmac-md5-cbc-aes-caam
    caam 2100000.caam: authenc-hmac-sha1-cbc-aes-caam
    caam 2100000.caam: authencesn-hmac-sha1-cbc-aes-caam
    caam 2100000.caam: authenc-hmac-sha224-cbc-aes-caam
    caam 2100000.caam: authencesn-hmac-sha224-cbc-aes-caam
    caam 2100000.caam: authenc-hmac-sha256-cbc-aes-caam
    caam 2100000.caam: authencesn-hmac-sha256-cbc-aes-caam
    caam 2100000.caam: authenc-hmac-md5-cbc-des3_ede-caam
    caam 2100000.caam: authencesn-hmac-md5-cbc-des3_ede-caam
    caam 2100000.caam: authenc-hmac-sha1-cbc-des3_ede-caam
    caam 2100000.caam: authencesn-hmac-sha1-cbc-des3_ede-caam
    caam 2100000.caam: authenc-hmac-sha224-cbc-des3_ede-caam
    caam 2100000.caam: authencesn-hmac-sha224-cbc-des3_ede-caam
    caam 2100000.caam: authenc-hmac-sha256-cbc-des3_ede-caam
    caam 2100000.caam: authencesn-hmac-sha256-cbc-des3_ede-caam
    caam 2100000.caam: authenc-hmac-md5-cbc-des-caam
    caam 2100000.caam: authencesn-hmac-md5-cbc-des-caam
    caam 2100000.caam: authenc-hmac-sha1-cbc-des-caam
    caam 2100000.caam: authencesn-hmac-sha1-cbc-des-caam
    caam 2100000.caam: authenc-hmac-sha224-cbc-des-caam
    caam 2100000.caam: authencesn-hmac-sha224-cbc-des-caam
    caam 2100000.caam: authenc-hmac-sha256-cbc-des-caam
    caam 2100000.caam: authencesn-hmac-sha256-cbc-des-caam
    caam 2100000.caam: ecb-des-caam
    caam 2100000.caam: ecb-arc4-caam
    caam 2100000.caam: ecb-aes-caam
    caam 2100000.caam: ctr-aes-caam
    caam 2100000.caam: cbc-aes-caam
    caam 2100000.caam: ecb-des3-caam
    caam 2100000.caam: cbc-3des-caam
    caam 2100000.caam: cbc-des-caam
    caam 2100000.caam: fsl,sec-v4.0 algorithms registered in /proc/crypto
    platform 2101000.jr0: registering rng-caam
    platform caam_sm: caam_sm_test: 8-byte key test match OK
    platform caam_sm: caam_sm_test: 16-byte key test match OK
    platform caam_sm: caam_sm_test: 32-byte key test match OK
    platform caam_secvio.34: security violation service handlers armed
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    i2c-core: driver [cs42888] using legacy suspend method
    i2c-core: driver [cs42888] using legacy resume method
    fsl-hdmi-dai hdmi_audio.16: failed to probe. Load HDMI-video first.
    usb 3-1: new high-speed USB device number 2 using ci_hdrc
    fsl-hdmi-dai: probe of hdmi_audio.16 failed with error -12
    sgtl5000 2-000a: sgtl5000 revision 0x11
    2-000a: 1200 mV normal 
    sgtl5000 2-000a: Using internal LDO instead of VDDD
    imx-sgtl5000 sound.28:  sgtl5000 <-> 202c000.ssi mapping ok
    NET: Registered protocol family 26
    nf_conntrack version 0.5.0 (16003 buckets, 64012 max)
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP: cubic registered
    NET: Registered protocol family 10
    sit: IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    can: controller area network core (rev 20120528 abi 9)
    NET: Registered protocol family 29
    can: raw protocol (rev 20120528)
    can: broadcast manager protocol (rev 20120528 t)
    can: netlink gateway (rev 20130117) max_hops=1
    Bluetooth: RFCOMM TTY layer initialized
    Bluetooth: RFCOMM socket layer initialized
    Bluetooth: RFCOMM ver 1.11
    Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    Bluetooth: BNEP filters: protocol multicast
    Bluetooth: BNEP socket layer initialized
    Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    Bluetooth: HIDP socket layer initialized
    8021q: 802.1Q VLAN Support v1.8
    lib80211: common routines for IEEE802.11 drivers
    Key type dns_resolver registered
    
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    VGEN3: disabling
    VGEN2: disabling
    hub 3-1:1.0: USB hub found
    hub 3-1:1.0: 2 ports detected
    VGEN1: disabling
    input: gpio-keys.27 as /devices/soc0/gpio-keys.27/input/input0
    rtc-pcf85063 0-0051: setting system clock to 2015-10-12 20:12:40 UTC (1444680760)
    ALSA device list:
      #0: imx6-stobu-sgtl5000
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing unused kernel memory: 276K (80d0e000 - 80d53000)
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0
    INIT: version 2.88 booting
    
    Boot splashscreen disabled
    scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.10 PQ: 0 ANSI: 2
    sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] No Caching mode page found
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    Starting udev
    sd 0:0:0:0: [sda] No Caching mode page found
    sd 0:0:0:0: [sda] Assuming drive cache: write through
     sda: sda1
    sd 0:0:0:0: [sda] No Caching mode page found
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sd 0:0:0:0: [sda] Attached SCSI removable disk
    udevd[187]: starting version 182
    Loading modules backported from Linux version R8.6-0-g3f5b34f
    Backport generated by backports.git R8.6-0-g4677dc3
    
    (stk) : timed out waiting for ldisc to be un-installedcfg80211: Calling CRDA to update world regulatory domain
    (stk) :ldisc_install = 1cfg80211: World regulatory domain updated:
    wlcore: Time Sync: gpio requested
    wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
    
    cfg80211:  DFS Master region: unsetwlcore: WARNING falling back to default config
    cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    wlcore: loaded
    wlcore: driver version: R8.6
    wlcore: compilation time: Thu Oct  1 12:06:54 2015
    FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0UIM SYSFS Node Found at /sys/./devices/soc0/kim.19/install
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/soc0/kim.19/install
    uim:dev_name = /sys/./devices/soc0/kim.19/dev_name
    uim:baud_rate = /sys/./devices/soc0/kim.19/baud_rate
    uim:flow_cntrl = /sys/./devices/soc0/kim.19/flow_cntrl
    uim:begin polling...
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    ALSA: Restoring mixer settings...
    No state is present for card imx6stobusgtl50
    Found hardware: "imx6-stobu-sgtl" "" "" "" ""
    Hardware is initialized using a generic method
    Configuring network interfaces... No state is present for card imx6stobusgtl50
    ifconfig: SIOCGIFFLAGS: No such device
    Starting rpcbind daemon...done.
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.all.rp_filter = 1
    
    INIT: Entering runlevel: 5
    
    (stk) : timed out waiting for ldisc to be un-installedStarting Xserver
    Starting system message bus: 
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from install 
    
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttymxc2
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Setting speed to 3000000
    uim:@ read_command_complete
    uim: Command complete started
    uim:@ read_hci_event
    uim: read_hci_event
    dbus.
    Starting Connection Manager
    Starting Dropbear SSH server: dropbear.
    Starting advanced power management daemon: uim:Invalid response
    No APM support in kernel
    (failed.)
    creating NFS state directory: done
    NFS daemon support not enabled in kernel
    Starting syslogd/klogd: done
     * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
       ...done.
    Starting Telephony daemon
    Starting Linux NFC daemon
    Starting OProfileUI server
    Running local boot scripts (/etc/rc.hdmi).
    Running local boot scripts (/etc/rc.local).
    Stopping Bootlog daemon: bootlogd.
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0
    
    Poky (Yocto Project Reference Distro) 1.5.3 imx6qsabresd /dev/ttymxc1
    
    
    
    imx6qsabresd login: (stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
    
    Poky (Yocto Project Reference Distro) 1.5.3 imx6qsabresd /dev/ttymxc1
    
    
    
    imx6qsabresd login: 
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0usb 3-1.1: new high-speed USB device number 3 using ci_hdrc
    option 3-1.1:1.0: GSM modem (1-port) converter detected
    usb 3-1.1: GSM modem (1-port) converter now attached to ttyUSB0
    option 3-1.1:1.3: GSM modem (1-port) converter detected
    usb 3-1.1: GSM modem (1-port) converter now attached to ttyUSB1
    option 3-1.1:1.4: GSM modem (1-port) converter detected
    usb 3-1.1: GSM modem (1-port) converter now attached to ttyUSB2
    option 3-1.1:1.5: GSM modem (1-port) converter detected
    usb 3-1.1: GSM modem (1-port) converter now attached to ttyUSB3
    option 3-1.1:1.6: GSM modem (1-port) converter detected
    usb 3-1.1: GSM modem (1-port) converter now attached to ttyUSB4
    (stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0
    
    Poky (Yocto Project Reference Distro) 1.5.3 imx6qsabresd /dev/ttymxc1
    
    
    
    imx6qsabresd login: (stk) : timed out waiting for ldisc to be un-installed
    Bluetooth: st_register failed -22
    root
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# hfc   
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# hciconfig hci0 uo p
    (stc):  chnl_id list empty :4 
    (stk) : st_kim_start(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim:begin polling...
    uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from install 
    
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttymxc2
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Setting speed to 3000000
    uim:@ read_command_complete
    uim: Command complete started
    uim:@ read_hci_event
    uim: read_hci_event
    uim:Invalid response
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installedBluetooth: st_register failed -22
    Can't init device hci0: Input/output error (5)
    root@imx6qsabresd:~# uim:begin polling...
    uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# dmesg | grep stk
    (stk) :sysfs entries created
    (stk) : debugfs entries created 
    (stk) : st_kim_start<6>cpuidle: using governor ladder
    (stk) :ldisc_install = 1
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed<6>cfg80211: Calling CRDA to update world regulatory domain
    (stk) :ldisc_install = 1
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0<6>usb 3-1.1: new high-speed USB device number 3 using ci_hdrc
    (stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1(stk) :ldisc installation timeout
    (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
    (stk) : st_kim_start(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    (stk) : timed out waiting for ldisc to be un-installed<3>Bluetooth: st_register failed -22
    root@imx6qsabresd:~# dmesg | grep stk c
    (stc):  chnl_id list empty :4 
    (stc):  chnl_id list empty :4 
    root@imx6qsabresd:~# dmesg | grep stc   kim
    (stk) : st_kim_start<6>cpuidle: using governor ladder
    (stk) : st_kim_start(stk) :ldisc_install = 1
    root@imx6qsabresd:~# 

     

  • Hi,

    From the logs, it looks like device is not init. Can you verify proper device power up (as per datasheet)?
    Also, please verify if you have provided the correct details to the "kim" dts node.

    Regards,
    Gigi Joseph.
  • Hi Gigi.

     

    The power up sequence and dts configuration are ok.

     

    BTW, if the power up sequence is not correct, will wi-fi still work?

    Or are there separate power up sequence for WiFi and BT?

    Is the DTS setting different from 3.14.28 vs 3.10.17?

     

    Thanks, Shaun.

  • Hi Gigi,

    Any update?

    Thanks, Shaun.

  • Hi Shaun,

    For BT power up,

    1. Ensure slow clock, VIO, and VBAT are stable.
    2. Assert BT_EN high
    3. The device signals that a proper boot-up was performed by pulling HCI_RTS low.

    Can you verify this on your setup?

    The dts shouldn't change between 3.14.28 vs 3.10.17 - but the BT failure logs that you provided were for "PCI stobu board". The working 3.14.28 version was for "Freescale Sabre board". I'm not sure if they are the same.

    Regards,
    Gigi Joseph.