This thread has been locked.

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

wilink8: bluetooth configuration for creating kim node

Other Parts Discussed in Thread: WL1835MOD, WL1835, WL1837

Hi lian,

I am working on wilink8 (wl1835mod), and trying to configure bluetooth.

For that i do pin muxing and platform data initialization in dts file, bluetooth are connecting on uart5.. below are the my changes.

platform data:----

kim {

        compatible = "kim";
        nshutdown_gpio = <103>;     /*gpio4_io07 */
        dev_name = "/dev/ttymxc4";  /* at uart5 */
        flow_control = <1>;
        baud_rate = <3000000>;
        };

        btwilink {

        compatible = "btwilink";
        };

uart initialization :-

&uart5 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart5_1>;
        status = "okay";
};

pin muxing:-

uart5 {
                pinctrl_uart5_1: uart5grp-1 {
                        fsl,pins = <
                                MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
                                MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
                                MX6QDL_PAD_KEY_ROW4__UART5_CTS_B   0x1b0b1
                                MX6QDL_PAD_KEY_COL4__UART5_RTS_B   0x1b0b1
                                MX6QDL_PAD_KEY_ROW0__GPIO4_IO07    0x1b0b1        /* bt enable pin */
                        >;
                };
        };
------------------------------------------------------------

bt enable pin is connected on gpio4_io07.

i also did changes in linux menuconfig and select the required config options.

But i am not geting kim node, after kernel boot.

when i am runnning uim, i am getting "uim:unable to open /sys/devices/platform/kim/install(No such file or directory).


Please give me some suggestion, and please verify that all the configuration are correct?

Alks

  • Hi Alks,

    Attached are the patches I used on an imx6SL with 3.10.17 kernel

    I think the main one you are missing is that kim needs to be patched to allow it to read the dts properties. It is missing from Freescale kernel code.

    Iain

    patches.zip
  • Hi lian,

    Thanks for your support.

    I used the dts patch and driver patch, after that i was able to see some logs.

    But still i am not able to find kim node after kernel up, and getting same uim log(uim:unable to open /sys/devices/platform/kim/install(No such file or directory)

    Below are the attached log.

    Please give me some suggestion, that what i am missing.

    Thanks

    Alks

    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 3.10.17-1.0.0_ga+g232293e (alok@Alok) (gcc version 4.8.2 (GCC) ) #20 SMP PREEMPT Wed Aug 13 12:37:10 IST 2014
    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 @814fd000 s8896 r8192 d15680 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
    Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
    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: 697780k/697780k available, 350796k 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 - 0x80be4bec   (12147 kB)
          .init : 0x80be5000 - 0x80c2a2c0   ( 277 kB)
          .data : 0x80c2c000 - 0x80c7cd20   ( 324 kB)
           .bss : 0x80c7cd20 - 0x80ce5ebc   ( 421 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Preemptible hierarchical RCU implementation.
    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 0x80614c38 - 0x80614c90
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU2: Booted secondary processor
    CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    CPU3: Booted secondary processor
    CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    Brought up 4 CPUs
    SMP: Total of 4 processors activated (6324.22 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 WDOG1 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 at 1150 mV 
    vddpu: 725 <--> 1450 mV at 1150 mV 
    vddsoc: 725 <--> 1450 mV at 1175 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
    3p3v: 3300 mV 
    wilink_wl_en: 1800 mV 
    usb_otg_vbus: 5000 mV 
    usb_h1_vbus: 5000 mV 
    wm8962-supply: no parameters
    mipi_dsi_pwr_on: no parameters
    sensor-supply: 3300 mV 
    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
    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)
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
    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 2002
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    imx-weim 21b8000.weim: WEIM driver registered.
    mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
    MIPI DSI driver module loaded
    mxc_sdc_fb fb.35: register mxc display driver ldb
    imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
    Console: switching to colour frame buffer device 128x48
    mxc_sdc_fb fb.36: register mxc display driver hdmi
    mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
    fbcvt: 1920x1080@60: CVT Name - 2.073M9
    mxc_sdc_fb fb.37: register mxc display driver lcd
    mxc_sdc_fb fb.37: ipu0-di0 already in use
    mxc_sdc_fb: probe of fb.37 failed with error -16
    mxc_sdc_fb fb.38: 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 1-0008: Full lay: 1, Metal lay: 1
    pfuze100-regulator 1-0008: FAB: 0, FIN: 1
    SW1AB: 300 <--> 1875 mV at 1375 mV 
    SW1C: 300 <--> 1875 mV at 1375 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 <--> 5150 mV at 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 2500 mV 
    VGEN4: 1800 <--> 3300 mV at 1800 mV 
    VGEN5: 1800 <--> 3300 mV at 2800 mV 
    VGEN6: 1800 <--> 3300 mV at 3300 mV 
    Serial: IMX driver
    2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    console [ttymxc0] enabled
    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 
    Wait for CR ACK error!
    sata phy RX_PLL is stable!
    ahci: SSS flag set, parallel bus scan disabled
    ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
    imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_KEY_COL1 already requested by 21f4000.serial; cannot claim for 2008000.ecspi
    imx6q-pinctrl 20e0000.iomuxc: pin-128 (2008000.ecspi) status -22
    imx6q-pinctrl 20e0000.iomuxc: could not request pin 128 on device 20e0000.iomuxc
    spi_imx 2008000.ecspi: Error applying setting, reverse things back
    m25p80 spi32766.0: found mr25h256, expected m25p32
    m25p80 spi32766.0: mr25h256 (32 Kbytes)
    spi_imx 2008000.ecspi: probed
    CAN device driver interface
    libphy: fec_enet_mii_bus: probed
    fec 2188000.ethernet eth0: registered PHC device 0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver usb-storage
    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
    mousedev: PS/2 mouse device common for all mice
    elan-touch 2-0010: elan - Read Hello Packet Failed
    elan-touch: probe of 2-0010 failed with error -22
    egalax_ts 1-0004: Failed to read firmware version
    egalax_ts: probe of 1-0004 failed with error -5
    input: eGalax Touch Screen as /devices/soc0/soc.1/2100000.aips-bus/21a8000.i2c/i2c-2/2-0004/input/input0
    input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input1
    ata1: SATA link down (SStatus 0 SControl 300)
    input: isl29023 light sensor as /devices/virtual/input/input2
    isl29023 2-0044: driver version 1.0 enabled
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
    i2c /dev entries driver
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video16
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video17
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video18
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video19
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video20
    mag3110 2-000e: check mag3110 chip ID
    input: mag3110 as /devices/virtual/input/input3
    mag3110 2-000e: mag3110 is probed
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    input: mma845x as /devices/virtual/input/input4
    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: HCILL protocol initialized
    usbcore: registered new interface driver btusb
    (stc):  chnl_id list empty :4 cpuidle: 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
    sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
    mmc0: no vqmmc regulator found
    
    (stk) : st_kim_startmmc0: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
    mmc1: no vqmmc regulator found
    mmc1: no vmmc regulator found
    (stk) :ldisc_install = 1mmc0: 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 2198000.usdhc [2198000.usdhc] using ADMA
    mmc2: no vqmmc regulator found
    mmc2: no vmmc regulator found
    mmc2: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
    mmc1: new high speed SD card at address 0001
    mmcblk0: mmc1:0001 00000 1.85 GiB 
     mmcblk0: p1 p2
    mmc2: BKOPS_EN bit is not set
    mmc2: new high speed DDR MMC card at address 0001
    mmcblk1: mmc2:0001 SEM08G 7.39 GiB 
    mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB
    mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB
    mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB
     mmcblk1: p1 p2 p3 < p5 p6 p7 > p4
    
    mmcblk1: p4 size 13336576 extends beyond EOD, truncated
     mmcblk1boot1: unknown partition table
    Galcore version 4.6.9.9754
     mmcblk1boot0: unknown partition table
    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
    leds-gpio leds.20: pins are not configured from the driver
    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.45: 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
    wm8962 0-001a: customer id 0 revision D
    input: WM8962 Beep Generator as /devices/soc0/soc.1/2100000.aips-bus/21a0000.i2c/i2c-0/0-001a/input/input5
    imx-wm8962 sound.33:  wm8962 <-> 202c000.ssi mapping ok
    input: wm8962-audio AMIC as /devices/soc0/sound.33/sound/card0/input6
    input: wm8962-audio Headphone Jack as /devices/soc0/sound.33/sound/card0/input7
    imx-audio-hdmi sound-hdmi.34:  hdmi-hifi <-> hdmi_audio.16 mapping ok
    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
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    VGEN3: disabling
    VGEN2: disabling
    VGEN1: disabling
    input: gpio-keys.32 as /devices/soc0/gpio-keys.32/input/input8
    snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2014-08-13 07:43:39 UTC (1407915819)
    ALSA device list:
      #0: wm8962-audio
      #1: imx-hdmi-soc
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0kjournald 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 (80be5000 - 80c2a000)
    INIT: version 2.88 booting
    Starting udev
    udevd[207]: starting version 182
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    (stk) : timed out waiting for ldisc to be un-installed
    INIT: Entering runlevel: 5
    Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq)
    IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.22.1) started
    Sending discover...
    (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 = 0libphy: 2188000.ethernet:01 - Li+-----------------------------+
    IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready |                             |
    Sending discover...                                     |  Cannot open /dev/ttyUSB0!  |
    Sending select for 192.168.4.123...                     |                             |
    (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 = 1Sending select for 192.168.4.123...
    Lease of 192.168.4.123 obtained, lease time 36000
    /etc/udhcpc.d/50default: Adding DNS 180.151.151.151
    /etc/udhcpc.d/50default: Adding DNS 180.151.151.152
    done.
    Starting syslogd/klogd: done
    Stopping Bootlog daemon: bootlogd.
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0
    Poky (Yocto Project Reference Distro) 1.6.1 imx6qsabresd /dev/ttymxc0
    
    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
    Bluetooth: st_register failed -22
    
    Poky (Yocto Project Reference Distro) 1.6.1 imx6qsabresd /dev/ttymxc0
    
    imx6qsabresd login: root
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# cd /
    root@imx6qsabresd:/# find . -name "kim"
    ./sys/bus/platform/drivers/kim
    root@imx6qsabresd:/#
    

  • Is that the correct log you attached. I couldn't see the UIM message you referred to.

    In my log I get:

    UIM SYSFS Node Found at /sys/./devices/soc0/kim.16/install
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/soc0/kim.16/install
    uim:dev_name = /sys/./devices/soc0/kim.16/dev_name
    uim:baud_rate = /sys/./devices/soc0/kim.16/baud_rate
    uim:flow_cntrl = /sys/./devices/soc0/kim.16/flow_cntrl

    This is triggered by the startup script /etc/init.d/rcS.d/S03uim-sysfs that is part of  0003-add-bt-and-upgrade-to-bluez5-7.patch that I uploaded.

    Iain

  • Hi Lian,

    My code is updated with the patches.

    And i also probed nshutdown_gpio (bt_en) pin which is initially high and toggling when uim running, and after kernel boot it goes low.

    Below are the log file attach..and some logs are

    ------------------

    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/ttymxc4
    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
    Sending discover...
    uim:Invalid response
    uim:begin polling...

    ____________________

    thanks

    Alks

    U-Boot 2014.01 (Jul 03 2014 - 20:20:45)
    
    CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
    Reset cause: POR
    Board: MX6-SabreSD
    DRAM:  1 GiB
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    *** Warning - bad CRC, using default environment
    
    No panel detected: default to Hannstar-XGA
    Display: Hannstar-XGA (1024x768)
    In:    serial
    Out:   serial
    Err:   serial
    Net:   FEC [PRIME]
    Hit any key to stop autoboot:  0 
    mmc1 is current device
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uImage
    5202936 bytes read in 260 ms (19.1 MiB/s)
    Booting from mmc ...
    reading imx6q-sabresd-ldo.dtb
    47727 bytes read in 20 ms (2.3 MiB/s)
    ## Booting kernel from Legacy Image at 12000000 ...
       Image Name:   Linux-3.10.17-1.0.0_ga+g232293e
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    5202872 Bytes = 5 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
       Using Device Tree in place at 18000000, end 1800ea6e
    
    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 3.10.17-1.0.0_ga+g232293e (alok@Alok) (gcc version 4.8.2 (GCC) ) #22 SMP PREEMPT Mon Aug 18 14:02:54 IST 2014
    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 @814fd000 s8896 r8192 d15680 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
    Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
    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: 697780k/697780k available, 350796k 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 - 0x80be4c0c   (12148 kB)
          .init : 0x80be5000 - 0x80c2a2c0   ( 277 kB)
          .data : 0x80c2c000 - 0x80c7cd20   ( 324 kB)
           .bss : 0x80c7cd20 - 0x80ce5ebc   ( 421 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Preemptible hierarchical RCU implementation.
    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 0x80614f78 - 0x80614fd0
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU2: Booted secondary processor
    CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    CPU3: Booted secondary processor
    CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    Brought up 4 CPUs
    SMP: Total of 4 processors activated (6324.22 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 WDOG1 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 at 1150 mV 
    vddpu: 725 <--> 1450 mV at 1150 mV 
    vddsoc: 725 <--> 1450 mV at 1175 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
    3p3v: 3300 mV 
    wilink_wl_en: 1800 mV 
    usb_otg_vbus: 5000 mV 
    usb_h1_vbus: 5000 mV 
    wm8962-supply: no parameters
    mipi_dsi_pwr_on: no parameters
    sensor-supply: 3300 mV 
    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
    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)
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
    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 2002
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    imx-weim 21b8000.weim: WEIM driver registered.
    mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
    MIPI DSI driver module loaded
    mxc_sdc_fb fb.35: register mxc display driver ldb
    imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
    Console: switching to colour frame buffer device 128x48
    mxc_sdc_fb fb.36: register mxc display driver hdmi
    mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
    fbcvt: 1920x1080@60: CVT Name - 2.073M9
    mxc_sdc_fb fb.37: register mxc display driver lcd
    mxc_sdc_fb fb.37: ipu0-di0 already in use
    mxc_sdc_fb: probe of fb.37 failed with error -16
    mxc_sdc_fb fb.38: 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 1-0008: Full lay: 1, Metal lay: 1
    pfuze100-regulator 1-0008: FAB: 0, FIN: 1
    SW1AB: 300 <--> 1875 mV at 1375 mV 
    SW1C: 300 <--> 1875 mV at 1375 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 <--> 5150 mV at 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 2500 mV 
    VGEN4: 1800 <--> 3300 mV at 1800 mV 
    VGEN5: 1800 <--> 3300 mV at 2800 mV 
    VGEN6: 1800 <--> 3300 mV at 3300 mV 
    Serial: IMX driver
    2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    console [ttymxc0] enabled
    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 
    Wait for CR ACK error!
    sata phy RX_PLL is stable!
    ahci: SSS flag set, parallel bus scan disabled
    ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
    imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_KEY_COL1 already requested by 21f4000.serial; cannot claim for 2008000.ecspi
    imx6q-pinctrl 20e0000.iomuxc: pin-128 (2008000.ecspi) status -22
    imx6q-pinctrl 20e0000.iomuxc: could not request pin 128 on device 20e0000.iomuxc
    spi_imx 2008000.ecspi: Error applying setting, reverse things back
    m25p80 spi32766.0: found mr25h256, expected m25p32
    m25p80 spi32766.0: mr25h256 (32 Kbytes)
    spi_imx 2008000.ecspi: probed
    CAN device driver interface
    libphy: fec_enet_mii_bus: probed
    fec 2188000.ethernet eth0: registered PHC device 0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver usb-storage
    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
    mousedev: PS/2 mouse device common for all mice
    elan-touch 2-0010: elan - Read Hello Packet Failed
    elan-touch: probe of 2-0010 failed with error -22
    egalax_ts 1-0004: Failed to read firmware version
    egalax_ts: probe of 1-0004 failed with error -5
    input: eGalax Touch Screen as /devices/soc0/soc.1/2100000.aips-bus/21a8000.i2c/i2c-2/2-0004/input/input0
    input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input1
    ata1: SATA link down (SStatus 0 SControl 300)
    input: isl29023 light sensor as /devices/virtual/input/input2
    isl29023 2-0044: driver version 1.0 enabled
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
    i2c /dev entries driver
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video16
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video17
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video18
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video19
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video20
    mag3110 2-000e: check mag3110 chip ID
    input: mag3110 as /devices/virtual/input/input3
    mag3110 2-000e: mag3110 is probed
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    input: mma845x as /devices/virtual/input/input4
    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: HCILL protocol initialized
    usbcore: registered new interface driver btusb
    (stc):  chnl_id list empty :4 cpuidle: 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
    sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
    mmc0: no vqmmc regulator found
    
    (stk) : st_kim_startmmc0: 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.
    (stk) :ldisc_install = 1mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new high speed SDIO card at address 0001
    mmc1: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
    mmc2: no vqmmc regulator found
    mmc2: no vmmc regulator found
    mmc2: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
    mmc1: new high speed SD card at address fd57
    mmcblk0: mmc1:fd57 SD02G 1.83 GiB 
     mmcblk0: p1 p2
    mmc2: BKOPS_EN bit is not set
    mmc2: new high speed DDR MMC card at address 0001
    Galcore version 4.6.9.9754
    mmcblk1: mmc2:0001 SEM08G 7.39 GiB 
    mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB
    mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB
    mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB
     mmcblk1: p1 p2 p3 < p5 p6 p7 > p4
    mmcblk1: p4 size 13336576 extends beyond EOD, truncated
     mmcblk1boot1: unknown partition table
     mmcblk1boot0: unknown partition table
    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
    leds-gpio leds.20: pins are not configured from the driver
    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.45: 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
    wm8962 0-001a: customer id 0 revision D
    input: WM8962 Beep Generator as /devices/soc0/soc.1/2100000.aips-bus/21a0000.i2c/i2c-0/0-001a/input/input5
    imx-wm8962 sound.33:  wm8962 <-> 202c000.ssi mapping ok
    input: wm8962-audio AMIC as /devices/soc0/sound.33/sound/card0/input6
    input: wm8962-audio Headphone Jack as /devices/soc0/sound.33/sound/card0/input7
    imx-audio-hdmi sound-hdmi.34:  hdmi-hifi <-> hdmi_audio.16 mapping ok
    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
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    VGEN3: disabling
    VGEN2: disabling
    VGEN1: disabling
    input: gpio-keys.32 as /devices/soc0/gpio-keys.32/input/input8
    snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2014-08-18 06:46:15 UTC (1408344375)
    ALSA device list:
      #0: wm8962-audio
      #1: imx-hdmi-soc
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    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 (80be5000 - 80c2a000)
    INIT: version 2.88 booting
    UIM SYSFS Node Found at /sys/./devices/soc0/kim.30/install
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/soc0/kim.30/install
    uim:dev_name = /sys/./devices/soc0/kim.30/dev_name
    uim:baud_rate = /sys/./d
    evices/soc0/kim.30/baud_rate
    uim(stk) : timed out waiting for ldisc to be un-installed:flow_cntrl = /sys/./devices/soc0/kim.30/flow_cntrl
    uim:begin polling...
    Starting udev
    udevd[212]: starting version 182
    (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/ttymxc4
    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
    uim:begin polling...
    Starting Bootlog daemon: bootlogd.
    Populating dev cache
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc4
    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
    Mon Aug 18 09:12:00 UTC 2014
    INIT: Entering runlevel: 5
    Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq)
    IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    uim:Invalid response
    uim:begin polling...
    udhcpc (v1.22.1) started
    Sending discover...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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...
    Sending discover...
    (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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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/ttymxc4
    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
    Sending discover...
    uim:Invalid response
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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
    Bluetooth: st_register failed -22
    No lease, failing
    Starting system message bus: dbus.
    Starting syslogd/klogd: done
    Stopping Bootlog daemon: bootlogd.
    
    Poky (Yocto Project Reference Distro) 1.6.1 imx6qsabresd /dev/ttymxc0
    
    imx6qsabresd login: root
    
    

  • We can assume the firmware has loaded as we move to subsequent step of changing uart speed. So I expect that the problem is the wrong firmware.

    For any processor/stack we can take the instructions from the StoneStreetOne installation guide http://processors.wiki.ti.com/index.php/WL18xx_Bluetopia_Platform_Manager_Demo_Guide#Software to get correct firmware.

    For WL183x it is TIInit_11.8.32.bts and the latest version is service pack 3.3.

    Actual link to wget is https://github.com/TI-ECS/bt-firmware/raw/master/TIInit_11.8.32.bts. It needs to go in /lib/firmware.

    Iain 

  • Hi Lian,

    Thank you for your support.

    I am not sure that firmware has been loaded or not. And i am using latest firmware which you suggest.

    And i can see the hci0 node. after log-in.

    I test my images with different baud rate:-

    1. set baud rate-115200  and i got following log:-

    root@imx6qsabresd:~# hciconfig hci0 up
    (stc):  chnl_id list empty :4
    (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)

    uim:read 1 from ins(stc): st_tty_open tall

    uim:@ st_uart_config
    ui
    (stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)

    2. set baud rate-3,000,000 and logs are:

    root@imx6qsabresd:~# hciconfig hci0 up
    (stc):  chnl_id list empty :4
    (stk) : st_kim_start(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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)

    -----------------------------------------------------------------------------------------------

    my queries are:-

    what should be the baud rate for wl1835mod in BT case?

    I am using correct baud rate(3000000).?

    Something i am missing in initialization?

    Why it is not able to change the baud rate, still i am using latest one which you suggest?

    Please find the full log at different baud rates.

    Thanks

    Alks

    U-Boot 2014.01 (Jul 03 2014 - 20:20:45)
    
    CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
    Reset cause: POR
    Board: MX6-SabreSD
    DRAM:  1 GiB
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    *** Warning - bad CRC, using default environment
    
    No panel detected: default to Hannstar-XGA
    Display: Hannstar-XGA (1024x768)
    In:    serial
    Out:   serial
    Err:   serial
    Net:   FEC [PRIME]
    Hit any key to stop autoboot:  0 
    mmc1 is current device
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uImage
    5202936 bytes read in 259 ms (19.2 MiB/s)
    Booting from mmc ...
    reading imx6q-sabresd-ldo.dtb
    47727 bytes read in 20 ms (2.3 MiB/s)
    ## Booting kernel from Legacy Image at 12000000 ...
       Image Name:   Linux-3.10.17-1.0.0_ga+g232293e
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    5202872 Bytes = 5 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
       Using Device Tree in place at 18000000, end 1800ea6e
    
    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 3.10.17-1.0.0_ga+g232293e (alok@Alok) (gcc version 4.8.2 (GCC) ) #22 SMP PREEMPT Mon Aug 18 14:02:54 IST 2014
    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 @814fd000 s8896 r8192 d15680 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
    Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
    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: 697780k/697780k available, 350796k 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 - 0x80be4c0c   (12148 kB)
          .init : 0x80be5000 - 0x80c2a2c0   ( 277 kB)
          .data : 0x80c2c000 - 0x80c7cd20   ( 324 kB)
           .bss : 0x80c7cd20 - 0x80ce5ebc   ( 421 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Preemptible hierarchical RCU implementation.
    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 0x80614f78 - 0x80614fd0
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU2: Booted secondary processor
    CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    CPU3: Booted secondary processor
    CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    Brought up 4 CPUs
    SMP: Total of 4 processors activated (6324.22 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 WDOG1 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 at 1150 mV 
    vddpu: 725 <--> 1450 mV at 1150 mV 
    vddsoc: 725 <--> 1450 mV at 1175 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
    3p3v: 3300 mV 
    wilink_wl_en: 1800 mV 
    usb_otg_vbus: 5000 mV 
    usb_h1_vbus: 5000 mV 
    wm8962-supply: no parameters
    mipi_dsi_pwr_on: no parameters
    sensor-supply: 3300 mV 
    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
    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)
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
    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 2002
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    imx-weim 21b8000.weim: WEIM driver registered.
    mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
    MIPI DSI driver module loaded
    mxc_sdc_fb fb.35: register mxc display driver ldb
    imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
    Console: switching to colour frame buffer device 128x48
    mxc_sdc_fb fb.36: register mxc display driver hdmi
    mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
    fbcvt: 1920x1080@60: CVT Name - 2.073M9
    mxc_sdc_fb fb.37: register mxc display driver lcd
    mxc_sdc_fb fb.37: ipu0-di0 already in use
    mxc_sdc_fb: probe of fb.37 failed with error -16
    mxc_sdc_fb fb.38: 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 1-0008: Full lay: 1, Metal lay: 1
    pfuze100-regulator 1-0008: FAB: 0, FIN: 1
    SW1AB: 300 <--> 1875 mV at 1375 mV 
    SW1C: 300 <--> 1875 mV at 1375 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 <--> 5150 mV at 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 2500 mV 
    VGEN4: 1800 <--> 3300 mV at 1800 mV 
    VGEN5: 1800 <--> 3300 mV at 2800 mV 
    VGEN6: 1800 <--> 3300 mV at 3300 mV 
    Serial: IMX driver
    2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    console [ttymxc0] enabled
    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 
    Wait for CR ACK error!
    sata phy RX_PLL is stable!
    ahci: SSS flag set, parallel bus scan disabled
    ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
    imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_KEY_COL1 already requested by 21f4000.serial; cannot claim for 2008000.ecspi
    imx6q-pinctrl 20e0000.iomuxc: pin-128 (2008000.ecspi) status -22
    imx6q-pinctrl 20e0000.iomuxc: could not request pin 128 on device 20e0000.iomuxc
    spi_imx 2008000.ecspi: Error applying setting, reverse things back
    m25p80 spi32766.0: found mr25h256, expected m25p32
    m25p80 spi32766.0: mr25h256 (32 Kbytes)
    spi_imx 2008000.ecspi: probed
    CAN device driver interface
    libphy: fec_enet_mii_bus: probed
    fec 2188000.ethernet eth0: registered PHC device 0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver usb-storage
    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
    mousedev: PS/2 mouse device common for all mice
    elan-touch 2-0010: elan - Read Hello Packet Failed
    elan-touch: probe of 2-0010 failed with error -22
    egalax_ts 1-0004: Failed to read firmware version
    egalax_ts: probe of 1-0004 failed with error -5
    input: eGalax Touch Screen as /devices/soc0/soc.1/2100000.aips-bus/21a8000.i2c/i2c-2/2-0004/input/input0
    input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input1
    ata1: SATA link down (SStatus 0 SControl 300)
    input: isl29023 light sensor as /devices/virtual/input/input2
    isl29023 2-0044: driver version 1.0 enabled
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
    i2c /dev entries driver
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video16
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video17
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video18
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video19
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video20
    mag3110 2-000e: check mag3110 chip ID
    input: mag3110 as /devices/virtual/input/input3
    mag3110 2-000e: mag3110 is probed
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    input: mma845x as /devices/virtual/input/input4
    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: HCILL protocol initialized
    usbcore: registered new interface driver btusb
    (stc):  chnl_id list empty :4 cpuidle: 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
    sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
    mmc0: no vqmmc regulator found
    
    (stk) : st_kim_startmmc0: 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.
    (stk) :ldisc_install = 1mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new high speed SDIO card at address 0001
    mmc1: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
    mmc2: no vqmmc regulator found
    mmc2: no vmmc regulator found
    mmc2: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
    mmc1: new high speed SD card at address fd57
    mmcblk0: mmc1:fd57 SD02G 1.83 GiB 
     mmcblk0: p1 p2
    mmc2: BKOPS_EN bit is not set
    mmc2: new high speed DDR MMC card at address 0001
    mmcblk1: mmc2:0001 SEM08G 7.39 GiB 
    mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB
    mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB
    mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB
     mmcblk1: p1 p2 p3 < p5 p6 p7 > p4
    mmcblk1: p4 size 13336576 extends beyond EOD, truncated
     mmcblk1boot1: unknown partition table
     mmcblk1boot0: unknown partition table
    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
    leds-gpio leds.20: pins are not configured from the driver
    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.45: 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
    wm8962 0-001a: customer id 0 revision D
    input: WM8962 Beep Generator as /devices/soc0/soc.1/2100000.aips-bus/21a0000.i2c/i2c-0/0-001a/input/input5
    imx-wm8962 sound.33:  wm8962 <-> 202c000.ssi mapping ok
    input: wm8962-audio AMIC as /devices/soc0/sound.33/sound/card0/input6
    input: wm8962-audio Headphone Jack as /devices/soc0/sound.33/sound/card0/input7
    imx-audio-hdmi sound-hdmi.34:  hdmi-hifi <-> hdmi_audio.16 mapping ok
    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
    Key type dns_resolver registered
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    VGEN3: disabling
    VGEN2: disabling
    VGEN1: disabling
    input: gpio-keys.32 as /devices/soc0/gpio-keys.32/input/input8
    snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2014-08-20 04:56:35 UTC (1408510595)
    ALSA device list:
      #0: wm8962-audio
      #1: imx-hdmi-soc
    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 (80be5000 - 80c2a000)
    INIT: version 2.88 booting
    (stk) : timed out waiting for ldisc to be un-installed
    (stk) :ldisc_install = 1UIM SYSFS Node Found at /sys/./devices/soc0/kim.30/install
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/soc0/kim.30/install
    uim:dev_name = /sys/./devices/soc0/kim.30/dev_name
    uim:baud_rate = /sys/./devices/soc0/kim.30/baud_rate
    uim:flow_cntrl = /sys/./devices/soc0/kim.30/flow_cntrl
    uim:install set previously...
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttymxc4
    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
    Starting udev
    udevd[214]: starting version 182
    uim:Invalid response
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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...
    Starting Bootlog daemon: bootlogd.
    INIT: Entering runlevel: 5
    Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=)
    IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.22.1) started
    Sending discover...
    
    (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/ttymxc4
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    Sending discover...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeoutuim:poll broke due to event 10(PR(stk) :ldisc_install = 0I:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    Sending discover...
    (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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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-installedBluetooth: st_register failed -22
    No lease, failing
    Starting system message bus: dbus.
    Starting syslogd/klogd: done
    Stopping Bootlog daemon: bootlogd.
    
    Poky (Yocto Project Reference Distro) 1.6.1 imx6qsabresd /dev/ttymxc0
    
    imx6qsabresd login: root
    
    
    *************************************************************************************************************************************************
    root@imx6qsabresd:~# hciconfig
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
            DOWN 
            RX bytes:0 acl:0 sco:0 events:0 errors:0
            TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    root@imx6qsabresd:~# hciconfig hci0 up
    (stc):  chnl_id list empty :4 
    (stk) : st_kim_start(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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0uim: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/ttymxc4
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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
    Bluetooth: st_register failed -22
    Can't init device hci0: Input/output error (5)
    
    
    
    
    
    

    U-Boot 2014.01 (Jul 03 2014 - 20:20:45)                                              
    
    CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
    Reset cause: POR
    Board: MX6-SabreSD
    DRAM:  1 GiB
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    *** Warning - bad CRC, using default environment
    
    No panel detected: default to Hannstar-XGA
    Display: Hannstar-XGA (1024x768)
    In:    serial
    Out:   serial
    Err:   serial
    Net:   FEC [PRIME]
    Hit any key to stop autoboot:  0 
    mmc1 is current device
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uImage
    5202936 bytes read in 259 ms (19.2 MiB/s)
    Booting from mmc ...
    reading imx6q-sabresd-ldo.dtb
    47727 bytes read in 20 ms (2.3 MiB/s)
    ## Booting kernel from Legacy Image at 12000000 ...
       Image Name:   Linux-3.10.17-1.0.0_ga+g232293e
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    5202872 Bytes = 5 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
       Using Device Tree in place at 18000000, end 1800ea6e
    
    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 3.10.17-1.0.0_ga+g232293e (alok@Alok) (gcc version 4.8.2 (GCC) ) #22 SMP PREEMPT Mon Aug 18 14:02:54 IST 2014
    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 @814fd000 s8896 r8192 d15680 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
    Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
    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: 697780k/697780k available, 350796k 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 - 0x80be4c0c   (12148 kB)
          .init : 0x80be5000 - 0x80c2a2c0   ( 277 kB)
          .data : 0x80c2c000 - 0x80c7cd20   ( 324 kB)
           .bss : 0x80c7cd20 - 0x80ce5ebc   ( 421 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Preemptible hierarchical RCU implementation.
    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 0x80614f78 - 0x80614fd0
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU2: Booted secondary processor
    CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    CPU3: Booted secondary processor
    CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    Brought up 4 CPUs
    SMP: Total of 4 processors activated (6324.22 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 WDOG1 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 at 1150 mV 
    vddpu: 725 <--> 1450 mV at 1150 mV 
    vddsoc: 725 <--> 1450 mV at 1175 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
    3p3v: 3300 mV 
    wilink_wl_en: 1800 mV 
    usb_otg_vbus: 5000 mV 
    usb_h1_vbus: 5000 mV 
    wm8962-supply: no parameters
    mipi_dsi_pwr_on: no parameters
    sensor-supply: 3300 mV 
    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
    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)
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
    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 2002
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    imx-weim 21b8000.weim: WEIM driver registered.
    mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
    MIPI DSI driver module loaded
    mxc_sdc_fb fb.35: register mxc display driver ldb
    imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
    Console: switching to colour frame buffer device 128x48
    mxc_sdc_fb fb.36: register mxc display driver hdmi
    mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
    fbcvt: 1920x1080@60: CVT Name - 2.073M9
    mxc_sdc_fb fb.37: register mxc display driver lcd
    mxc_sdc_fb fb.37: ipu0-di0 already in use
    mxc_sdc_fb: probe of fb.37 failed with error -16
    mxc_sdc_fb fb.38: 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 1-0008: Full lay: 1, Metal lay: 1
    pfuze100-regulator 1-0008: FAB: 0, FIN: 1
    SW1AB: 300 <--> 1875 mV at 1375 mV 
    SW1C: 300 <--> 1875 mV at 1375 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 <--> 5150 mV at 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 2500 mV 
    VGEN4: 1800 <--> 3300 mV at 1800 mV 
    VGEN5: 1800 <--> 3300 mV at 2800 mV 
    VGEN6: 1800 <--> 3300 mV at 3300 mV 
    Serial: IMX driver
    2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    console [ttymxc0] enabled
    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 
    Wait for CR ACK error!
    sata phy RX_PLL is stable!
    ahci: SSS flag set, parallel bus scan disabled
    ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
    imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_KEY_COL1 already requested by 21f4000.serial; cannot claim for 2008000.ecspi
    imx6q-pinctrl 20e0000.iomuxc: pin-128 (2008000.ecspi) status -22
    imx6q-pinctrl 20e0000.iomuxc: could not request pin 128 on device 20e0000.iomuxc
    spi_imx 2008000.ecspi: Error applying setting, reverse things back
    m25p80 spi32766.0: found mr25h256, expected m25p32
    m25p80 spi32766.0: mr25h256 (32 Kbytes)
    spi_imx 2008000.ecspi: probed
    CAN device driver interface
    libphy: fec_enet_mii_bus: probed
    fec 2188000.ethernet eth0: registered PHC device 0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver usb-storage
    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
    mousedev: PS/2 mouse device common for all mice
    elan-touch 2-0010: elan - Read Hello Packet Failed
    elan-touch: probe of 2-0010 failed with error -22
    egalax_ts 1-0004: Failed to read firmware version
    egalax_ts: probe of 1-0004 failed with error -5
    input: eGalax Touch Screen as /devices/soc0/soc.1/2100000.aips-bus/21a8000.i2c/i2c-2/2-0004/input/input0
    input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input1
    ata1: SATA link down (SStatus 0 SControl 300)
    input: isl29023 light sensor as /devices/virtual/input/input2
    isl29023 2-0044: driver version 1.0 enabled
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
    i2c /dev entries driver
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video16
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video17
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video18
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video19
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video20
    mag3110 2-000e: check mag3110 chip ID
    input: mag3110 as /devices/virtual/input/input3
    mag3110 2-000e: mag3110 is probed
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    input: mma845x as /devices/virtual/input/input4
    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: HCILL protocol initialized
    usbcore: registered new interface driver btusb
    (stc):  chnl_id list empty :4 cpuidle: 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
    sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
    mmc0: no vqmmc regulator found
    
    (stk) : st_kim_startmmc0: 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.
    (stk) :ldisc_install = 1mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new high speed SDIO card at address 0001
    mmc1: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
    mmc2: no vqmmc regulator found
    mmc2: no vmmc regulator found
    mmc2: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
    mmc1: new high speed SD card at address fd57
    mmcblk0: mmc1:fd57 SD02G 1.83 GiB 
     mmcblk0: p1 p2
    mmc2: BKOPS_EN bit is not set
    mmc2: new high speed DDR MMC card at address 0001
    Galcore version 4.6.9.9754
    mmcblk1: mmc2:0001 SEM08G 7.39 GiB 
    mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB
    mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB
    mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB
     mmcblk1: p1 p2 p3 < p5 p6 p7 > p4
    mmcblk1: p4 size 13336576 extends beyond EOD, truncated
     mmcblk1boot1: unknown partition table
    mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
     mmcblk1boot0: unknown partition table
    mxc_asrc 2034000.asrc: mxc_asrc registered
    mxc_vpu 2040000.vpu: VPU initialized
    leds-gpio leds.20: pins are not configured from the driver
    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.45: 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
    wm8962 0-001a: customer id 0 revision D
    input: WM8962 Beep Generator as /devices/soc0/soc.1/2100000.aips-bus/21a0000.i2c/i2c-0/0-001a/input/input5
    imx-wm8962 sound.33:  wm8962 <-> 202c000.ssi mapping ok
    input: wm8962-audio AMIC as /devices/soc0/sound.33/sound/card0/input6
    input: wm8962-audio Headphone Jack as /devices/soc0/sound.33/sound/card0/input7
    imx-audio-hdmi sound-hdmi.34:  hdmi-hifi <-> hdmi_audio.16 mapping ok
    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
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    VGEN3: disabling
    VGEN2: disabling
    VGEN1: disabling
    input: gpio-keys.32 as /devices/soc0/gpio-keys.32/input/input8
    snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2014-08-19 11:33:41 UTC (1408448021)
    ALSA device list:
      #0: wm8962-audio
      #1: imx-hdmi-soc
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0kjournald 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 (80be5000 - 80c2a000)
    INIT: version 2.88 booting
    UIM SYSFS Node Found at /sys/./devices/soc0/kim.30/install
    
    (stk) : timed out waiting for ldisc to be un-installedStarting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/soc0/kim.30/install
    uim:dev_name = /sys/./devices/soc0/kim.30/dev_name
    uim:baud_rate = /sys/./devices/soc0/kim.30/baud_rate
    uim:flow_cntrl = /sys/./devices/soc0/kim.30/flow_cntrl
    uim:begin polling...
    Starting udev
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from in
    stall 
    
    uim:@ st_uart_config
    u(stc): st_tty_open im: signal received, opening /dev(stk) :line discipline installed/ttymxc4
    uim:@ set_baud_rate
    ui
    m:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    udevd[214]: starting version 182
    Starting Bootlog daemon: bootlogd.
    (stk) : waiting for ver info- timed out 
    (stk) :kim: failed to read local ver(stk) :download firmware failed
    (stk) :ldisc_install = 0
    (stc): st_tty_close 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) :ldisc_install = 1uim:poll broke due to event 10(PR
    I:2/ERR:8)
    
    uim:read 1 from i(stc): st_tty_open nstall 
    
    uim:@ st_uart_config(stk) :line discipline installed
    uim: signal received, opening 
    /dev/ttymxc4
    uim:@ set_baud_rat
    uim:begin polling...
    INIT: Entering runlevel: 5
    Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=)
    IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.22.1) started
    Sending discover...
    (stk) : waiting for ver info- timed out 
    (stk) :kim: failed to read local ver(stk) :download firmware failed
    (stk) :ldisc_install = 0
    (stc): st_tty_close 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) :ldisc_install = 1uim:poll broke due to event 10(PR
    (stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from i(stk) :line discipline installednstall 
    
    uim:@ st_uart_config
    
    uim: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out 
    (stk) :kim: failed to read local ver(stk) :download firmware failed
    (stk) :ldisc_install = 0
    (stc): st_tty_close 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) :ldisc_install = 1uim:poll broke due to event 10(PR
    (stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from i(stk) :line discipline installednstall 
    
    uim:@ st_uart_config
    
    uim: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out 
    (stk) :kim: failed to read local ver(stk) :download firmware failed
    (stk) :ldisc_install = 0
    (stc): st_tty_close 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) :ldisc_install = 1uim:poll broke due to event 10(PR
    (stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from i(stk) :line discipline installednstall 
    
    uim:@ st_uart_config
    
    uim: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    Sending discover...
    (stk) : waiting for ver info- timed out 
    (stk) :kim: failed to read local ver(stk) :download firmware failed
    (stk) :ldisc_install = 0uim:poll broke due to event 10(PR
    I:2/ERR:8)
    
    uim:read 0 from i(stc): st_tty_close nstall 
    
    uim:@ st_uart_configBluetooth: st_register failed -22
    
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    libphy: 2188000.ethernet:01 - Link is Up - 1000/Full
    IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Sending discover...
    Sending select for 10.42.0.88...
    Lease of 10.42.0.88 obtained, lease time 3600
    /etc/udhcpc.d/50default: Adding DNS 10.42.0.1
    done.
    Starting system message bus: dbus.
    Starting syslogd/klogd: done
    Stopping Bootlog daemon: bootlogd.
    
    Poky (Yocto Project Reference Distro) 1.6.1 imx6qsabresd /dev/ttymxc0
    
    imx6qsabresd login: root
    ************************************************************************************************************************************************
    
    root@imx6qsabresd:~# hciconfig
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
            DOWN 
            RX bytes:0 acl:0 sco:0 events:0 errors:0
            TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    root@imx6qsabresd:~# hciconfig hci0 up
    (stc):  chnl_id list empty :4 
    (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from ins(stc): st_tty_open tall 
    
    uim:@ st_uart_config
    ui
    (stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PR(stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from ins
    tall 
    
    uim:@ st_uart_config
    ui(stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PR(stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from ins
    tall 
    
    uim:@ st_uart_config
    ui(stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PR(stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from ins
    tall 
    
    uim:@ st_uart_config
    ui(stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PR(stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from ins
    tall 
    
    uim:@ st_uart_config
    ui(stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    (stk) :ldisc_install = 1uim:poll broke due to event 10(PR(stc): st_tty_open I:2/ERR:8)
    
    uim:read 1 from ins
    tall 
    
    uim:@ st_uart_config
    ui(stk) :line discipline installedm: signal received, opening /dev/ttymxc4
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) : waiting for ver info- timed out (stk) :kim: failed to read local ver
    (stk) :download firmware failed(stk) :ldisc_install = 0uim:poll broke due to event 10(PR(stc): st_tty_close I:2/ERR:8)
    
    uim:read 0 from insBluetooth: st_register failed -22
    tall 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    Can't init device hci0: Input/output error (5
    
    
    
    
    

  • Alks,

    Can you uncomment the

    #define DEBUG

    #define VERBOSE

    in drivers/misc/ti-st/tty-hci.c

    this will allow you to log the activity over the UART. We need to find why you are getting "uim:Invalid response". I'm still suspicious of theTIInit_11_8_32.bts file in use.

    Also as a quick sanity check probe the UART lines with a scope to check there is actually activity.

    Iain

  • Hi Lian,

    Where is the drivers/misc/ti-st/tty-hci.c file, i can't find that in my code. Inside the ti-st folder there are only st_kim.c,st_core.c, st_ll.c.

    This "uim:Invalid response",  i am getting from the 'read_hci_event' function inside the uim, when it failed.

    i put print inside the 'read_hci_event'  in while loop

    ---------------------------------------------------------------------------

    /* The first byte identifies the packet type. For HCI event packets, it
             * should be 0x04, so we read until we get to the 0x04. */

    while (reading) {
                    rd = read(fd, buf, 1);
                    if (rd <= 0 && rd_retry_count++ < 4) {
                            nanosleep(&tm, NULL);
                            continue;
                    } else if (rd_retry_count >= 4) {
                            UIM_VER("function=%s, line=%d, rd_retry_count=%d", __func__ , __LINE__, rd_retry_count);
                            return -1;
                    }

                    if (buf[0] == RESP_PREFIX) {
                            break;
                    }
            }
            count++;
    ---------------------------------------------------------

    and output is

    function=read_hci_event, line=101, rd_retry_count=5

    ---------------------------------------------------------

    And inside the read_hci_event, there is a comment which says "For HCI event packets, it should be 0x04, so we read until we get to the 0x04." Means value of 'rd_retry_count' is not correct.

     

    Thanks

    Alks

  • Sorry, I'd looked in my AM335x code base for a quick answer.

    In the i.Mx patch file it is added to drivers/misc/ti-st/st_core.c

    Iain

  • Thanks Lian,

    I defined the Verbose and debug in st_core.c file. But i am not able to see any extra log when kernel up and not also in 'hciconfig hci0 up'.

    Please find the attached logs.

    Regards

    Alks

    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    root@imx6qsabresd:~# 
    
    U-Boot 2014.01 (Jul 03 2014 - 20:20:45)
    
    CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
    Reset cause: POR
    Board: MX6-SabreSD
    DRAM:  1 GiB
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
    *** Warning - bad CRC, using default environment
    
    No panel detected: default to Hannstar-XGA
    Display: Hannstar-XGA (1024x768)
    In:    serial
    Out:   serial
    Err:   serial
    Net:   FEC [PRIME]
    Hit any key to stop autoboot:  0 
    mmc1 is current device
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uImage
    5202992 bytes read in 259 ms (19.2 MiB/s)
    Booting from mmc ...
    reading imx6q-sabresd-ldo.dtb
    47679 bytes read in 20 ms (2.3 MiB/s)
    ## Booting kernel from Legacy Image at 12000000 ...
       Image Name:   Linux-3.10.17-1.0.0_ga+g232293e
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    5202928 Bytes = 5 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
       Using Device Tree in place at 18000000, end 1800ea3e
    
    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 3.10.17-1.0.0_ga+g232293e (alok@Alok) (gcc version 4.8.2 (GCC) ) #26 SMP PREEMPT Wed Aug 27 17:44:31 IST 2014
    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 @814fd000 s8896 r8192 d15680 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
    Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
    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: 697780k/697780k available, 350796k 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 - 0x80be4bf4   (12147 kB)
          .init : 0x80be5000 - 0x80c2a2c0   ( 277 kB)
          .data : 0x80c2c000 - 0x80c7cd20   ( 324 kB)
           .bss : 0x80c7cd20 - 0x80ce5ebc   ( 421 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Preemptible hierarchical RCU implementation.
    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 0x80614ff8 - 0x80615050
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU2: Booted secondary processor
    CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    CPU3: Booted secondary processor
    CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    Brought up 4 CPUs
    SMP: Total of 4 processors activated (6324.22 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 WDOG1 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 at 1150 mV 
    vddpu: 725 <--> 1450 mV at 1150 mV 
    vddsoc: 725 <--> 1450 mV at 1175 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
    3p3v: 3300 mV 
    wilink_wl_en: 1800 mV 
    usb_otg_vbus: 5000 mV 
    usb_h1_vbus: 5000 mV 
    wm8962-supply: no parameters
    mipi_dsi_pwr_on: no parameters
    sensor-supply: 3300 mV 
    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
    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)
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
    mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
    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 2002
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    imx-weim 21b8000.weim: WEIM driver registered.
    mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
    MIPI DSI driver module loaded
    mxc_sdc_fb fb.35: register mxc display driver ldb
    imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
    Console: switching to colour frame buffer device 128x48
    mxc_sdc_fb fb.36: register mxc display driver hdmi
    mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
    fbcvt: 1920x1080@60: CVT Name - 2.073M9
    mxc_sdc_fb fb.37: register mxc display driver lcd
    mxc_sdc_fb fb.37: ipu0-di0 already in use
    mxc_sdc_fb: probe of fb.37 failed with error -16
    mxc_sdc_fb fb.38: 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 1-0008: Full lay: 1, Metal lay: 1
    pfuze100-regulator 1-0008: FAB: 0, FIN: 1
    SW1AB: 300 <--> 1875 mV at 1375 mV 
    SW1C: 300 <--> 1875 mV at 1375 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 <--> 5150 mV at 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 2500 mV 
    VGEN4: 1800 <--> 3300 mV at 1800 mV 
    VGEN5: 1800 <--> 3300 mV at 2800 mV 
    VGEN6: 1800 <--> 3300 mV at 3300 mV 
    Serial: IMX driver
    2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    console [ttymxc0] enabled
    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 
    Wait for CR ACK error!
    sata phy RX_PLL is stable!
    ahci: SSS flag set, parallel bus scan disabled
    ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
    imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_KEY_COL1 already requested by 21f4000.serial; cannot claim for 2008000.ecspi
    imx6q-pinctrl 20e0000.iomuxc: pin-128 (2008000.ecspi) status -22
    imx6q-pinctrl 20e0000.iomuxc: could not request pin 128 on device 20e0000.iomuxc
    spi_imx 2008000.ecspi: Error applying setting, reverse things back
    m25p80 spi32766.0: found mr25h256, expected m25p32
    m25p80 spi32766.0: mr25h256 (32 Kbytes)
    spi_imx 2008000.ecspi: probed
    CAN device driver interface
    libphy: fec_enet_mii_bus: probed
    fec 2188000.ethernet eth0: registered PHC device 0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver usb-storage
    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
    mousedev: PS/2 mouse device common for all mice
    elan-touch 2-0010: elan - Read Hello Packet Failed
    elan-touch: probe of 2-0010 failed with error -22
    egalax_ts 1-0004: Failed to read firmware version
    egalax_ts: probe of 1-0004 failed with error -5
    input: eGalax Touch Screen as /devices/soc0/soc.1/2100000.aips-bus/21a8000.i2c/i2c-2/2-0004/input/input0
    input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input1
    ata1: SATA link down (SStatus 0 SControl 300)
    input: isl29023 light sensor as /devices/virtual/input/input2
    isl29023 2-0044: driver version 1.0 enabled
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
    i2c /dev entries driver
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video16
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video17
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video18
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video19
    mxc_v4l2_output v4l2_out.43: V4L2 device registered as video20
    mag3110 2-000e: check mag3110 chip ID
    input: mag3110 as /devices/virtual/input/input3
    mag3110 2-000e: mag3110 is probed
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    input: mma845x as /devices/virtual/input/input4
    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: HCILL protocol initialized
    usbcore: registered new interface driver btusb
    (stc):  chnl_id list empty :4 cpuidle: 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
    sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
    mmc0: no vqmmc regulator found
    
    (stk) : st_kim_startmmc0: 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.
    (stk) :ldisc_install = 1mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new high speed SDIO card at address 0001
    mmc1: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
    mmc2: no vqmmc regulator found
    mmc2: no vmmc regulator found
    mmc2: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
    mmc1: new high speed SD card at address fd57
    mmcblk0: mmc1:fd57 SD02G 1.83 GiB 
     mmcblk0: p1 p2
    Galcore version 4.6.9.9754
    mmc2: BKOPS_EN bit is not set
    mmc2: new high speed DDR MMC card at address 0001
    mmcblk1: mmc2:0001 SEM08G 7.39 GiB 
    mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB
    mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB
    mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB
    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
    leds-gpio leds.20: pins are not configured from the driver
     mmcblk1: p1 p2 p3 < p5 p6 p7 > p4
    mmcblk1: p4 size 13336576 extends beyond EOD, truncated
     mmcblk1boot1: unknown partition table
     mmcblk1boot0: unknown partition table
    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.45: 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
    wm8962 0-001a: customer id 0 revision D
    input: WM8962 Beep Generator as /devices/soc0/soc.1/2100000.aips-bus/21a0000.i2c/i2c-0/0-001a/input/input5
    imx-wm8962 sound.33:  wm8962 <-> 202c000.ssi mapping ok
    input: wm8962-audio AMIC as /devices/soc0/sound.33/sound/card0/input6
    input: wm8962-audio Headphone Jack as /devices/soc0/sound.33/sound/card0/input7
    imx-audio-hdmi sound-hdmi.34:  hdmi-hifi <-> hdmi_audio.16 mapping ok
    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
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    VGEN3: disabling
    VGEN2: disabling
    VGEN1: disabling
    input: gpio-keys.32 as /devices/soc0/gpio-keys.32/input/input8
    snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2014-08-27 12:46:23 UTC (1409143583)
    ALSA device list:
      #0: wm8962-audio
      #1: imx-hdmi-soc
    (stk) :ldisc installation timeout
    (stk) :ldisc_install = 0kjournald 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 (80be5000 - 80c2a000)
    INIT: version 2.88 booting
    
    (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1UIM SYSFS Node Found at /sys/./devices/soc0/kim.30/install
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/soc0/kim.30/install
    uim:dev_name = /sys/./devices/soc0/kim.30/dev_name
    uim:baud_rate = /sys/./devices/soc0/kim.30/baud_rate
    uim:flow_cntrl = /sys/./devices/soc0/kim.30/flow_cntrl
    uim:install set previously...
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttymxc4
    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
    Starting udev
    udevd[215]: starting version 182
    Starting Bootlog daemon: bootlogd.
    
    INIT: Entering runlevel: 5timeout(stk) :ldisc_install = 0
    Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq)
    IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.22.1) started
    Sending discover...
    (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 = 1Sending discover...
    
    (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 = 0Sending discover...
    
    (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
    Bluetooth: st_register failed -22
    No lease, failing
    Starting system message bus: dbus.
    Starting syslogd/klogd: done
    Stopping Bootlog daemon: bootlogd.
    
    Poky (Yocto Project Reference Distro) 1.6.1 imx6qsabresd /dev/ttymxc0
    
    imx6qsabresd login: root
    
    #################################################################################################################################
    
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103# ls
    active_low  device      power       subsystem   uevent      value
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103# cat value
    0
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103# echo 1 > value
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103# cat value
    0
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103#
    
    
    
    ####################################################################################################################################
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103# hciconfig
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
            DOWN 
            RX bytes:0 acl:0 sco:0 events:0 errors:0
            TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    
    
    root@imx6qsabresd:/sys/devices/soc0/soc.1/2000000.aips-bus/20a8000.gpio/gpio/gpio103# hciconfig hci0 up
    (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 = 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
    Bluetooth: st_register failed -22
    Can't init device hci0: Input/output error (5)
    
    
    
    

  • Hi Alks,

    Can you send me the Bluetooth Uart of WL1835 to IMXSololite processor connectivity?

    Because we already done the board for wifi bluetooth connection by using WL1835 with sololite processor. we are also facing the problem in bluetooth connectivity. How you connected with RTS and CTS between both ends?

    below i have mentioned our connections.

    processor pins   TO        WL1835 pins

    UART_TX  ------------>   UART_RX

    UART_RX <--------------  UART_TX

    UART_CTS<-------------> UART_CTS

    UART_RTS <-------------> UART_RTS

    is it correct or not?

    Thanks,

    Sivakumar

  • Hi,

    I think Iain Hunter has addressed this question on e2e.ti.com/.../404759
  • Hi Sundeep Mandava,

    Still we are facing the problem in Bluetooth communication. here i have attached the log files for the same.  if you have any idea please reply me.

    imx6_log.TXT

    Thanks,

    Sivakumar

  • Siva,

    There are two ways of starting the Bluetooth and you appear to be mixing them.

    1. The device tree file drives BT_EN high on boot and then you use KIM/UIM to initialise WL183x. In this case KIM starts first and then when UIM runs it triggers the firmware download.

    2. The device tree file drives BT_EN high on boot and then in user space you use hciattach to download the firmware.

    In either case you will see a download error if you have not enabled the use of rts/cts on the UART. This is done as follows

    &uart4 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart4_1>;
        status = "okay";
        fsl,uart-has-rtscts;      // enable rts/cts usage on uart4
    };

    Iain

  • Hi lain,

    We did what ever you said. But still we are facing the below problem.

    root@imx6slevk:~# /etc/init.d/uim-sysfs.sh start
    Starting uim-sysfs daemon.
    uim main
    uim:install = /sys/devices/platform/kim/install
    uimev_name = /sys/devices/platform/kim/dev_name
    uim:baud_rate = /sys/devices/platform/kim/baud_rate
    uim:flow_cntrl = /sys/devices/platform/kim/flow_cntrl
    uim:unable to open /sys/devices/platform/kim/install(No such file or directory)



    Thanks,
    Sivakumar
  • Siva,
    That looks like you have not merged the device tree support into the kim driver in the Freescale kernel.
    If you look at the link on this message you should find the patches to apply to Freescale kernel for this.
    e2e.ti.com/.../1431132
    Iain
  • Hi lain,

    we done all the patches in our code which u are mentioned in the previous reply. Below i have mentioned the error which we are getting after loading this files.

    ERROR: ExpansionError during parsing /home/user/vf/sources/poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx_r8.a9.14.bb: Failure expanding variable S: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev} which triggered exception FetchError: Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI



    Thanks,
    Sivakumar
  • Hi Team,

    I am also getting the same issue i.e. uim:Invalid response. So, do you guys has resolved it.

    uim:read 1 from install

    uim:@ st_uart_config
    uim: signal received, opening /dev/ttyS2
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Setting speed to 2184000
    uim:@ read_command_complete
    uim: Command complete started
    uim:@ read_hci_event
    uim: read_hci_event
    uim:Invalid response
    uim:begin polling...
    [ 396.940000] (stk) :ldisc installation timeout
    [ 396.940000] (stk) :ldisc_install = 0
    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...
    [ 397.950000] (stk) : timed out waiting for ldisc to be un-installed
    [ 397.950000] Bluetooth: st_register failed -22

  • uim:Setting speed to 2184000

    Are you getting issues trying to use 115200 instead?
    Have you verified that the UART flow control pins (RTS/CTS) are muxed correctly?

    BR,
    Eyal
  • Was the original question ever resolved? I'm seeing very similar behavior as Alks. I'm able to get bluetooth working by having a device tree regulator have the BT_EN line high always, and using hciattach. But when I attempt to use UIM/KIM by removing the regulator, I see various failures.

    I've tried a few different orderings to attempt to get UIM/KIM to work. Logs are attached with some explanation of each method below. I've verified from this post replies that we are using the most recent TIInit_11.8.32.bts file as well.

    1) Have KIM built into the kernel and start UIM on startup. This failure seems to be due to BT_EN not being high on boot (though I haven't probed BT_EN to verify) since hciattach also fails if attempted before a modprobe  of btwilink.

    The device tree entry below should handle setting BT_EN high on boot, correct?

    kim {                                                                                                                                                                                                
        pinctrl-0 = <&pinctrl_wl18xx>;
        compatible = "kim";
        nshutdown_gpio = <&gpio4 23 GPIO_ACTIVE_HIGH>;
        dev_name = "/dev/ttymxc5";
        flow_cntrl = <1>;
        baud_rate = <3000000>;
    };


    2)
    KIM built in again, but manually set BT_EN high before modprobe of btwilink. Verified BT_EN is high as hciattach succeeds if modprobe btwilink is not attempted.
    modprobe of btwilink and hciconfig hci0 up still fail after manually setting BT_EN high.

    Starting bluetooth daemon: uim:install = /sys/./devices/platform/kim/install
    uim:dev_name = /sys/./devices/platform/kim/dev_name
    uim:baud_rate = /sys/./devices/platform/kim/baud_rate
    uim:flow_cntrl = /sys/./devices/platform/kim/flow_cntrl
    uim:begin polling...
    OK
    Starting pulseaudio daemon: OK
    Starting dropbear sshd: OK
    Generating CWIZ links: OK
    Starting /opt/cicada/bin/loggerd...
    
    
    BusyBox v1.24.2 (2016-09-15 11:05:54 PDT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    # fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
    ifplug.action eth0 up
    random: nonblocking pool is initialized
    
    # modprobe btwilink
    # (stc):  chnl_id list empty :4
    (stk) : st_kim_start(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/ttymxc5
    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-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-installedBluetooth: st_register failed -22
    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...
    
    #

    BusyBox v1.24.2 (2016-09-15 11:05:54 PDT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    #
    #
    # fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
    ifplug.action eth0 up
    
    #
    # gpio random: nonblocking pool is initialized
    
    #
    #
    # echo 119 > /sys/class/gpio/export
    # echo out > /sys/class/gpio/gpio119/direction
    # echo 1 > /sys/class/gpio/gpio119/value
    # /usr/bin/uim -f /sys/./devices/platform/kim/ &
    # uim:@ main
    uim:install = /sys/./devices/platform/kim//install
    uim:dev_name = /sys/./devices/platform/kim//dev_name
    uim:baud_rate = /sys/./devices/platform/kim//baud_rate
    uim:flow_cntrl = /sys/./devices/platform/kim//flow_cntrl
    uim:begin polling...
    
    # modprobe btwilink
    # (stc):  chnl_id list empty :4
    (stk) : st_kim_start(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/ttymxc5
    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:Command complete done
    
    uim:Speed changing to 3000000, (stc): st_tty_open 1
    uim:@ set_custom_baud_rate
    (stk) :line discipline installeduim:Installed N_TI_WL Line displi
    ne
    uim:begin polling...
    (stk) :ti-connectivity/TIInit_11.8.32.bts(stk) :change remote baud rate command in firmware
    (stk) :skipping the wait event of change remote baud(stc): add_channel_to_table: id 4
    (stc): add_channel_to_table: id 2
    (stc): add_channel_to_table: id 3
    (stc): remove_channel_from_table: id 3
    (stc): remove_channel_from_table: id 2
    (stc): remove_channel_from_table: id 4
    (stc):  all chnl_ids unregistered
    (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 0 from in(stc): st_tty_close stall
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    
    # hciconfig
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 7C:EC:79:C9:43:69  ACL MTU: 1021:6  SCO MTU: 180:4
            DOWN
            RX bytes:588 acl:0 sco:0 events:31 errors:0
            TX bytes:402 acl:0 sco:0 commands:31 errors:0
    
    # hciconfig hci0 up
    
    (stc):  chnl_id list empty :4
    (stk) : st_kim_start(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/ttymxc5
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc5
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc5
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc5
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc5
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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/ttymxc5
    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
    uim:begin polling...
    
    (stk) :ldisc installation timeout(stk) :ldisc_install = 0uim: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-installedBluetooth: st_register failed -22
    Can't init device hci0: Input/output error (5)
    #

  • Lain,

    Any updates on this? See below for reply detailing similar problem to Alks with logs. I've verified BT_EN is high when the kernel loads, hciattach succeeds but I cannot get UIM/KIM to work correctly. The desire is to use UIM/KIM and btwilink to toggle BT_EN for power up/down of wl1837 bluetooth.

    Thanks,

    Brandon
  • Hi Brandon,

    I don't have any old builds  (kernel 3.x) available to look at now. So I can offer some general comments.

    The current recommendation would be to not use UIM/KIM and shared transport any more. It was there in the past as we supported multiple radios on the UART (Bluetooth and GPS) which needed multiplexed - hence the "shared" transport.

    Now it is only bluetooth so Bluez can directly access the UART. So my recommendation would be along the lines of.

    1. Keep KIM entry in device tree as it allows you to specify the port and GPIO. This is more robust long term solution

    2  Remove shared transport from kernel config and UIM from user space.

    3. Initially Bluetooth use a script like

    #!/bin/sh

    GPIO=119

    PORT="mxc5"

    if [ ! -e /sys/class/gpio/gpio${GPIO} ]

    then

     # export gpio as output to drive BT_EN

     echo ${GPIO} > /sys/class/gpio/export

     echo out > /sys/class/gpio/gpio${GPIO}/direction

    fi

    # now force a release from reset on BT_EN

    echo 0 > /sys/class/gpio/gpio${GPIO}/value

    sleep 1

    echo 1 > /sys/class/gpio/gpio${GPIO}/value

    # and now attach which downloads the firmware and creates hci interface

    # when hci interface comes up udev detects it and triggers hciconfig hci0 up

    hciattach tty${PORT} texas 3000000

    4. Once you have that working then change the script to parse the device tree entries to give you GPIO and PORT

    You'll need to check exactly where in /proc the kim entries are placed in your kernel build.

    Hopefully these give you some pointers that help you.

    Iain

  • EDIT: Sorry I didn't mention this before, we are using kernel 4.1.15

    Thanks for the input. I will go with your suggestion of avoiding UIM/KIM completely and stick with managing BT_EN ourselves with a script similar to what you suggested.

    A quick confirmation question. If we turn off BT module by pulling BT_EN low, we'd also need to kill hciattach and start it again, correct?

    The process to turn off BT then back on would be:
    1.) Kill hciattach
    2.) BT_EN low
    3.) sleep (if necessary?)
    4.) BT_EN high
    5.) hciattach (will have to reload firmware and do initialization again)
    6.) hciconfig hci0 up

    Brandon

  • Hi Brandon,

    You are correct. after each BT_EN cycle of low and then high the firmware needs to be reloaded by hciattach so previous instance of that needs to be killed.

    Iain

  • Hi

    Did you succeeded .

    I'm facing while bring up ti wilink bluetooth module.we are using linux kernel 4.4.12 version.

    1.Enabled bluetooth support and tiwilink bluetooth support.in menuconfig

    while installing the modules i'm getting kernel crassh;

    root@am335x-evm:~#  
    root@am335x-evm:~#
    root@am335x-evm:~# sh bt.sh
    [   19.209933] Bluetooth: Core ver 2.21
    [   19.219297] NET: Registered protocol family 31
    [   19.233028] Bluetooth: HCI device and connection manager initialized
    [   19.242197] Bluetooth: HCI socket layer initialized
    [   19.247194] Bluetooth: L2CAP socket layer initialized
    [   19.253020] Bluetooth: SCO socket layer initialized
    [   19.277108] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [   19.293600] pgd = cf528000
    [   19.296402] [00000000] *pgd=88a8f831, *pte=00000000, *ppte=00000000
    [   19.303360] Internal error: Oops: 17 [#1] PREEMPT ARM
    [   19.308435] Modules linked in: st_drv(+) bluetooth option qmi_wwan usb_wwan cdc_wdm usbnet mii usbserial cpufreq_dt musb_dsps musb_hdrc usbcore phy_am335x nls_base pl
    [   19.332891] CPU: 0 PID: 393 Comm: modprobe Not tainted 4.4.12-g3639bea54a #1
    [   19.339968] Hardware name: Generic AM33XX (Flattened Device Tree)
    [   19.346089] task: cf15e3c0 ti: c8afc000 task.ti: c8afc000
    [   19.351555] PC is at kim_probe+0x9c/0x21c [st_drv]
    [   19.356380] LR is at st_core_init+0x98/0x128 [st_drv]
    [   19.361454] pc : [<bf31f6d0>]    lr : [<bf31f240>]    psr: 600f0013
    [   19.361454] sp : c8afdcc0  ip : c8afdca0  fp : c8afdcec
    [   19.372981] r10: cf51a1a4  r9 : 00000001  r8 : 00000000
    [   19.378227] r7 : bf321384  r6 : cf0f3000  r5 : cf0f3010  r4 : cf23b780
    [   19.384781] r3 : cf23bcc0  r2 : 00000000  r1 : bf320a2f  r0 : 00000000
    [   19.391338] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   19.398504] Control: 10c5387d  Table: 8f528019  DAC: 00000051
    [   19.404273] Process modprobe (pid: 393, stack limit = 0xc8afc210)
    [   19.410392] Stack: (0xc8afdcc0 to 0xc8afe000)
    [   19.414774] dcc0: cf0f3018 cf0f3010 cf0f3010 bf31f634 cf0f3010 bf321134 0000001e bf321134
    [   19.422993] dce0: c8afdd0c c8afdcf0 c0220af8 bf31f640 cf0f3010 00000000 c04e83b0 0000001e
    [   19.431213] dd00: c8afdd34 c8afdd10 c021f2f8 c0220aac cf0f3010 cf0f3044 bf321134 c04ab5f8
    [   19.439431] dd20: c0498920 00000001 c8afdd54 c8afdd38 c021f4ec c021f1ec 00000000 bf321134
    [   19.447650] dd40: c021f47c c04ab5f8 c8afdd7c c8afdd58 c021d8e0 c021f488 cf02534c cf0f20b0
    [   19.455867] dd60: cf46d934 bf321134 00000000 cf46d900 c8afdd8c c8afdd80 c021ee58 c021d878
    [   19.464086] dd80: c8afddb4 c8afdd90 c021ea2c c021ee44 bf320a2f c8afdda0 bf321134 bf324000
    [   19.472304] dda0: 00000000 c0498920 c8afddcc c8afddb8 c021fbb0 c021e964 cf51a300 bf324000
    [   19.480522] ddc0: c8afdddc c8afddd0 c0220a10 c021fb18 c8afddec c8afdde0 bf324018 c02209e4
    [   19.488740] dde0: c8afde64 c8afddf0 c00096ec bf32400c cfdad000 00000000 c8afde44 c8afde08
    [   19.496959] de00: c008ffdc cffd59cc c8afc000 cf001e40 cf59b780 00007008 c00b800c cf51a1a4
    [   19.505177] de20: c8afde5c c8afde30 c00bcd5c c00bc318 00000001 c00b800c 00000007 cf59b780
    [   19.513396] de40: bf321200 00000001 cf51a240 bf321248 cf51a180 00000001 c8afde8c c8afde68
    [   19.521615] de60: c0088c10 c00095ec bf321200 bf321248 c8afde8c c8afdf44 00000001 bf321200
    [   19.529835] de80: c8afdf3c c8afde90 c007b7c0 c0088bbc bf32120c 00007fff bf321200 c0079118
    [   19.538053] dea0: 0002925c bf321360 d0f22bec c8afdeb8 c0349bf8 000000f6 c0078ee0 024000c0
    [   19.546272] dec0: 00020025 00000000 0b300002 b6e981a4 00000001 00000000 00000000 bf3202ec
    [   19.554489] dee0: 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   19.562706] df00: 00000000 00000000 00000000 00000000 c8afdf2c 00000000 0002925c 00000003
    [   19.570925] df20: 0000017b c000f304 c8afc000 00000000 c8afdfa4 c8afdf40 c007bde0 c007a1c4
    [   19.579144] df40: 00000000 d0f1c000 00006c3c d0f22764 d0f20227 d0f212ac 00003394 00003db4
    [   19.587361] df60: 00000000 00000000 00000000 000017bc 0000001d 0000001e 00000016 00000013
    [   19.595579] df80: 00000012 00000000 00000000 00000000 0003a730 00000000 00000000 c8afdfa8
    [   19.603797] dfa0: c000f140 c007bd84 00000000 0003a730 00000003 0002925c 00000000 00000000
    [   19.612016] dfc0: 00000000 0003a730 00000000 0000017b 0003b350 00000000 00000000 0003b258
    [   19.620234] dfe0: befc79f0 befc79e0 0001f5a4 b6f46df2 80080030 00000003 00007c80 00000502
    [   19.628442] Backtrace:
    [   19.630944] [<bf31f634>] (kim_probe [st_drv]) from [<c0220af8>] (platform_drv_probe+0x58/0xa8)
    [   19.639591]  r8:bf321134 r7:0000001e r6:bf321134 r5:cf0f3010 r4:bf31f634
    [   19.646363] [<c0220aa0>] (platform_drv_probe) from [<c021f2f8>] (driver_probe_device+0x118/0x29c)
    [   19.655271]  r7:0000001e r6:c04e83b0 r5:00000000 r4:cf0f3010
    [   19.660985] [<c021f1e0>] (driver_probe_device) from [<c021f4ec>] (__driver_attach+0x70/0x94)
    [   19.669457]  r9:00000001 r8:c0498920 r7:c04ab5f8 r6:bf321134 r5:cf0f3044 r4:cf0f3010
    [   19.677275] [<c021f47c>] (__driver_attach) from [<c021d8e0>] (bus_for_each_dev+0x74/0x98)
    [   19.685485]  r7:c04ab5f8 r6:c021f47c r5:bf321134 r4:00000000
    [   19.691198] [<c021d86c>] (bus_for_each_dev) from [<c021ee58>] (driver_attach+0x20/0x28)
    [   19.699233]  r6:cf46d900 r5:00000000 r4:bf321134
    [   19.703892] [<c021ee38>] (driver_attach) from [<c021ea2c>] (bus_add_driver+0xd4/0x1f0)
    [   19.711849] [<c021e958>] (bus_add_driver) from [<c021fbb0>] (driver_register+0xa4/0xe8)
    [   19.719883]  r7:c0498920 r6:00000000 r5:bf324000 r4:bf321134
    [   19.725599] [<c021fb0c>] (driver_register) from [<c0220a10>] (__platform_driver_register+0x38/0x4c)
    [   19.734680]  r5:bf324000 r4:cf51a300
    [   19.738301] [<c02209d8>] (__platform_driver_register) from [<bf324018>] (kim_platform_driver_init+0x18/0x24 [st_drv])
    [   19.748977] [<bf324000>] (kim_platform_driver_init [st_drv]) from [<c00096ec>] (do_one_initcall+0x10c/0x1c0)
    [   19.758855] [<c00095e0>] (do_one_initcall) from [<c0088c10>] (do_init_module+0x60/0x350)
    [   19.766977]  r9:00000001 r8:cf51a180 r7:bf321248 r6:cf51a240 r5:00000001 r4:bf321200
    [   19.774794] [<c0088bb0>] (do_init_module) from [<c007b7c0>] (load_module+0x1608/0x1a84)
    [   19.782828]  r6:bf321200 r5:00000001 r4:c8afdf44
    [   19.787488] [<c007a1b8>] (load_module) from [<c007bde0>] (SyS_finit_module+0x68/0x70)
    [   19.795349]  r10:00000000 r9:c8afc000 r8:c000f304 r7:0000017b r6:00000003 r5:0002925c
    [   19.803245]  r4:00000000
    [   19.805803] [<c007bd78>] (SyS_finit_module) from [<c000f140>] (ret_fast_syscall+0x0/0x3c)
    [   19.814012]  r6:00000000 r5:0003a730 r4:00000000
    [   19.818674] Code: ea00004a e5943054 e59f114c e583408c (e5980000)
    [   19.832688] ---[ end trace 41243ca3930f0217 ]---
    Segmentation fault
    [   19.863632] Bluetooth: HCI UART driver ver 2.3
    [   19.872718] Bluetooth: HCI UART protocol H4 registered

    Thanks

    veera