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.

Bluetopia failng with am335x SDK7.0

Other Parts Discussed in Thread: WL1835

Hi,

I am using ti-sdk-am335x-evm-07.00.00.00 , with kernel 3.12.10.

I have a wl1835 module on the custom board based on beaglebone.

I installed bluetopia version : AM335xBluetopiaLinuxProduction-4.0.1.4.2U-linux on my filesysytem and tried to follow Bluetopia demo guide. I am getting an error as follows

OPPM>Initialize 1

BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 5.
OPPM>SetDevicePower 1

DEVM_PowerOnDevice() Failure: -14, Unknown Error.
Function Error.
OPPM>

can anyone point me what this error means..?

Am I missing some thing?

Also i have bluez 5.29 installed in my File system with that i am able to do all the bluetooth activities.

Regards,

Geo

  • Hi Geo,

    The error corresponds to "BTPS_ERROR_HCI_DRIVER_ERROR". It can be because of many reasons, but I think in your case it's because of BlueZ previously being active.

    Can you try the below steps and confirm if it helps?

    1. Kill "SS1BTPM"
    2. hciconfig hci0 down
    3. ./SS1BTPM &
    4. ./LinuxOPPM
    5. 1 1
    6. 9 1

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Thanks for the quick reply.
    Still i am getting the same error

    Regards,
    Geo
  • Hi Geo,

    Can you please share the tera term logs for all the commands above?
    Also, what permission "/dev/tty_hci" has?

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    tty_hci driver was not here in the Kernel. So i added it and tried the steps again

    The result is same. Please find the attached log

    Regards ,

    Geo

    U-Boot 2013.10-g1cc9e33-dirty (Oct 16 2015 - 11:32:41)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Error - No Valid Environment Area found
    *** Warning - bad CRC, using default environment
    
    Magiuc  : 3996341674 
    Name : A335BNLT 
    Net:   Net Initialization Skipped
    No ethernet found.
    Hit any key to stop autoboot:  0 
    mmc0 is current device
    Scanning mmc 0...
    4057600 bytes read in 242 ms (16 MiB/s)
    35215 bytes read in 32 ms (1 MiB/s)
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    4057600 bytes read in 242 ms (16 MiB/s)
    35215 bytes read in 32 ms (1 MiB/s)
    Kernel image @ 0x80200000 [ 0x000000 - 0x3dea00 ]
    ## Flattened Device Tree blob at 80f80000
       Booting using the fdt blob at 0x80f80000
       Loading Device Tree to 9f325000, end 9f33098e ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.10-gb14967e-dirty (mistral@maze) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-45
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
    [    0.000000] cma: CMA: reserved 24 MiB at 9d800000
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] PERCPU: Embedded 8 pages/cpu @c0c4f000 s9024 r8192 d15552 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129280
    [    0.000000] Kernel command line: console=ttyO3,115200n8 no_console_suspend=1 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 483516K/521216K available (5478K kernel code, 560K rwdata, 1748K rodata, 376K init, 228K bss, 37700K reserved, 0K )
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0716fe4   (7228 kB)
    [    0.000000]       .init : 0xc0717000 - 0xc0775340   ( 377 kB)
    [    0.000000]       .data : 0xc0776000 - 0xc0802300   ( 561 kB)
    [    0.000000]        .bss : 0xc0802308 - 0xc083b6ec   ( 229 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000316] Calibrating delay loop... 663.55 BogoMIPS (lpj=3317760)
    [    0.049747] pid_max: default: 32768 minimum: 301
    [    0.049865] Security Framework initialized
    [    0.049927] Mount-cache hash table entries: 512
    [    0.058174] CPU: Testing write buffer coherency: ok
    [    0.058597] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.058655] Setting up static identity map for 0xc055f588 - 0xc055f5f8
    [    0.059385] Brought up 1 CPUs
    [    0.059397] SMP: Total of 1 processors activated.
    [    0.059406] CPU: All CPU(s) started in SVC mode.
    [    0.060149] devtmpfs: initialized
    [    0.063846] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.113573] omap_hwmod: debugss: _wait_target_disable failed
    [    0.114348] pinctrl core: initialized pinctrl subsystem
    [    0.115287] regulator-dummy: no parameters
    [    0.117513] NET: Registered protocol family 16
    [    0.119937] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.122632] cpuidle: using governor ladder
    [    0.122650] cpuidle: using governor menu
    [    0.129284] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.130580] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.131932] OMAP GPIO hardware version 0.1
    [    0.142281] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.145305] DSS not supported on this SoC
    [    0.145316] No ATAGs?
    [    0.145325] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.173163] bio: create slab <bio-0> at 0
    [    0.189701] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.191334] vmmcsd_fixed: 3300 mV 
    [    0.191846] wlan-en-regulator: 1800 mV 
    [    0.194788] vgaarb: loaded
    [    0.196070] SCSI subsystem initialized
    [    0.197529] usbcore: registered new interface driver usbfs
    [    0.197725] usbcore: registered new interface driver hub
    [    0.197975] usbcore: registered new device driver usb
    [    0.199005] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.199035] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.199063] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
    [    0.199077] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
    [    0.202941] Switched to clocksource timer1
    [    0.225115] NET: Registered protocol family 2
    [    0.225779] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.225848] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.225909] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.225972] TCP: reno registered
    [    0.225987] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.226008] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.226216] NET: Registered protocol family 1
    [    0.226602] RPC: Registered named UNIX socket transport module.
    [    0.226613] RPC: Registered udp transport module.
    [    0.226620] RPC: Registered tcp transport module.
    [    0.226627] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.227559] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.228179] PM: Loading am335x-pm-firmware.bin
    [    0.337728] VFS: Disk quotas dquot_6.5.2
    [    0.337881] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.338570] NFS: Registering the id_resolver key type
    [    0.338647] Key type id_resolver registered
    [    0.338657] Key type id_legacy registered
    [    0.338695] jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
    [    0.338869] msgmni has been set to 992
    [    0.341213] NET: Registered protocol family 38
    [    0.341259] io scheduler noop registered
    [    0.341268] io scheduler deadline registered
    [    0.341296] io scheduler cfq registered (default)
    [    0.343736] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.347210] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.349699] pinctrl-single 44e10800.pinmux: pin 44e10968.0 already requested by 44e10800.pinmux; cannot claim for 44e09000.serial
    [    0.349723] pinctrl-single 44e10800.pinmux: pin-90 (44e09000.serial) status -22
    [    0.349735] pinctrl-single 44e10800.pinmux: could not request pin 90 (44e10968.0) from group pinmux_uart0_pins_default  on device pince
    [    0.349747] omap_uart 44e09000.serial: Error applying setting, reverse things back
    [    0.350105] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    0.350887] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    0.351588] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a OMAP UART3
    [    1.036294] console [ttyO3] enabled
    [    1.041392] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.061041] brd: module loaded
    [    1.070606] loop: module loaded
    [    1.074801] (stk) :sysfs entries created
    [    1.078955] (stk) : debugfs entries created 
    [    1.083837] (hci_tty): inside hci_tty_init
    [    1.088826] (hci_tty): allocated 251, 0
    [    1.096395] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.105783] PPP generic driver version 2.4.2
    [    1.110740] PPP BSD Compression module registered
    [    1.115774] PPP Deflate Compression module registered
    [    1.121270] PPP MPPE Compression module registered
    [    1.126358] NET: Registered protocol family 24
    [    1.131469] usbcore: registered new interface driver asix
    [    1.137467] usbcore: registered new interface driver ax88179_178a
    [    1.144096] usbcore: registered new interface driver cdc_ether
    [    1.150403] usbcore: registered new interface driver r815x
    [    1.156439] usbcore: registered new interface driver smsc95xx
    [    1.162645] usbcore: registered new interface driver net1080
    [    1.168868] usbcore: registered new interface driver cdc_subset
    [    1.175327] usbcore: registered new interface driver zaurus
    [    1.181439] usbcore: registered new interface driver cdc_ncm
    [    1.187960] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.194854] ehci-pci: EHCI PCI platform driver
    [    1.199742] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.206338] usbcore: registered new interface driver cdc_acm
    [    1.212275] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    1.220932] usbcore: registered new interface driver cdc_wdm
    [    1.227115] usbcore: registered new interface driver usb-storage
    [    1.233934] usbcore: registered new interface driver usbserial
    [    1.240221] usbcore: registered new interface driver usbserial_generic
    [    1.247321] usbserial: USB Serial support registered for generic
    [    1.253832] usbcore: registered new interface driver option
    [    1.259837] usbserial: USB Serial support registered for GSM modem (1-port)
    [    1.268399] mousedev: PS/2 mouse device common for all mice
    [    1.275591] ***************** GPIO BEEP************
    [    1.320822] ***************** GPIO BEEP EXIT ************
    [    1.327356] *****************GSM GPIO BEEP************
    [    1.332806] ***************** GSM BEEP EXIT ************
    [    1.338464] Mapped int 151
    [    1.343184] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    1.351501] i2c /dev entries driver
    [    1.355598] Driver for 1-wire Dallas network protocol.
    [    1.363557] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.372280] pinctrl-single 44e10800.pinmux: pin 44e108f0.0 already requested by 44e10800.pinmux; cannot claim for 48060000.mmc
    [    1.384326] pinctrl-single 44e10800.pinmux: pin-60 (48060000.mmc) status -22
    [    1.391716] pinctrl-single 44e10800.pinmux: could not request pin 60 (44e108f0.0) from group pinmux_mmc1_pins  on device pinctrl-single
    [    1.404498] omap_hsmmc 48060000.mmc: Error applying setting, reverse things back
    [    1.412753] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.420038] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.463120] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
    [    1.475110] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
    [    1.482500] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
    [    1.495277] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
    [    1.503333] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
    [    1.510445] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
    [    1.620301] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    1.629843] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.636359] mmc0: new high speed SDHC card at address 59b4
    [    1.643200] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.650381] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.656594] mmcblk0: mmc0:59b4 USD   7.51 GiB 
    [    1.663175]  mmcblk0: p1 p2
    [    1.667391] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.674027] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.681077] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.693503] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    1.702906] usbcore: registered new interface driver usbhid
    [    1.708806] usbhid: USB HID core driver
    [    1.715624] oprofile: no performance counters
    [    1.720696] oprofile: using timer interrupt.
    [    1.725667] TCP: cubic registered
    [    1.729158] Initializing XFRM netlink socket
    [    1.733833] NET: Registered protocol family 17
    [    1.738602] NET: Registered protocol family 15
    [    1.743431] 8021q: 802.1Q VLAN Support v1.8
    [    1.747949] Key type dns_resolver registered
    [    1.753204] cpu cpu0: cpu0 regulator not ready, retry
    [    1.758603] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    1.766997] ThumbEE CPU extension supported.
    [    1.776878] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.783534] DCDC1: at 1350 mV 
    [    1.787624] mmc1: new high speed SDIO card at address 0001
    [    1.795336] vdd_mpu: 925 <--> 1375 mV at 1325 mV 
    [    1.801741] vdd_core: 925 <--> 1150 mV at 1125 mV 
    [    1.807857] LDO1: at 1800 mV 
    [    1.811934] LDO2: at 3300 mV 
    [    1.816688] LDO3: 1800 mV 
    [    1.820496] LDO4: at 3300 mV 
    [    1.824805] tps65217 0-0024: TPS65217 ID 0x6 version 1.2
    [    1.831028] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 16 bytes/write
    [    1.838360] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.848528] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
    [    1.855554] cpufreq_cpu0: Bootloader freq 1000000000Hz no match to table, Using 600000000Hz
    [    1.868898] input: button_keys.3 as /devices/ocp.2/button_keys.3/input/input0
    [    1.877908] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    1.908308] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.917299] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.928206] devtmpfs: mounted
    [    1.932206] Freeing unused kernel memory: 376K (c0717000 - c0775000)
    INIT: version 2.88 booting
    Starting udev
    [    2.680399] udevd[792]: starting version 182
    [    3.211280] Bluetooth: Core ver 2.16
    [    3.422914] NET: Registered protocol family 31
    [    3.427793] Bluetooth: HCI device and connection manager initialized
    [    3.490995] Bluetooth: HCI socket layer initialized
    [    3.587379] Bluetooth: L2CAP socket layer initialized
    [    3.598991] PM: CM3 Firmware Version = 0x186
    [    3.667151] Bluetooth: SCO socket layer initialized
    [    3.844832] (stc):  chnl_id list empty :4 
    [    3.849056] (stk) : st_kim_start(stk) :ldisc_install = 1[    4.058249] Loading modules backported from Linux version R8.6-0-g3f5b34f
    [    4.065624] Backport generated by backports.git R8.6SP1-0-g4677dc3
    [    4.351178] wl1271_sdio: probe of mmc1:0001:2 failed with error -12
    
    [    5.023108] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [    6.023135] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [    7.203152] (stk) :ldisc installation timeout(stk) :ldisc_install = 0[    7.299339] musb-hdrc musb-hdrc.0.auto: Enabled SW babble contl
    [    7.319396] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    7.351926] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    7.410930] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    7.469823] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    7.477194] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    7.484929] usb usb1: Product: MUSB HDRC host driver
    [    7.490192] usb usb1: Manufacturer: Linux 3.12.10-gb14967e-dirty musb-hcd
    [    7.497428] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    7.539962] hub 1-0:1.0: USB hub found
    [    7.573229] hub 1-0:1.0: 1 port detected
    [    7.602538] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
    [    7.635878] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    7.663837] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    7.684385] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    7.691616] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    7.699374] usb usb2: Product: MUSB HDRC host driver
    [    7.704669] usb usb2: Manufacturer: Linux 3.12.10-gb14967e-dirty musb-hcd
    [    7.711854] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    7.739597] hub 2-0:1.0: USB hub found
    [    7.751851] hub 2-0:1.0: 1 port detected
    
    [    8.203089] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1UIM SYSFS Node Found at /sys/./devices/kim.9l
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/kim.9/install
    uim:dev_name = /sys/./devices/kim.9/dev_name
    uim:baud_rate = /sys/./devices/kim.9/baud_rate
    uim:flow_cntrl = /sys/./devices/kim.9/flow_cntrl
    uim:install set previously...
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttyO0
    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 changi
    [    8.894340] (stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    (stk) :line discipline installed
    [    8.908564] (stk) :TIInit_11.8.32.btsuim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) :change remote baud rate command in firmware
    [    8.932713] (stk) :skipping the wait event of change remote baudStarting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No suchy
    bootlogd.
    [    9.505477] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [    9.909490] (stc): add_channel_to_table: id 4
    [    9.914241] (stc): add_channel_to_table: id 2
    [    9.918855] (stc): add_channel_to_table: id 3
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1696: No soundcards found...
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    done.
    Sat Jan  1 00:49:00 UTC 2000
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    UIM SYSFS Node Found at /sys/./devices/kim.9/install
    Starting uim-sysfs daemon.
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon[   11.933165] (stc): remove_channel_from_table: id 3
    [   11.939669] (stc): remove_channel_from_table: id 2
    [   11.944856] (stc): remove_channel_from_table: id 4
    [   11.949930] (stc):  all chnl_ids unregistered 
    [   11.954663] (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)(stc): st_tty_close 
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    .
    /etc/rc5.d/S20autoscript: line 10: initlog: command not found
     eeprom wrie protect done
    /etc/rc5.d/S20autoscript: line 23: echo: write error: Device or resource busy
    /etc/rc5.d/S20autoscript: line 24: gpio86/direction: No such file or directory
    led enable done
    /etc/rc5.d/S20autoscript: line 30: echo: write error: Device or resource busy
    /etc/rc5.d/S20autoscript: line 31: gpio30/direction: No such file or directory
    /etc/rc5.d/S20autoscript: line 35: echo: write error: Device or resource busy
    /etc/rc5.d/S20autoscript: line 36: echo: write error: Device or resource busy
    /etc/rc5.d/S20autoscript: line 38: echo: write error: Device or resource busy
    /etc/rc5.d/S20autoscript: line 40: gpio22/direction: No such file or directory
    /etc/rc5.d/S20autoscript: line 41: gpio23/direction: No such file or directory
    /etc/rc5.d/S20autoscript: line 43: gpio27/direction: No such file or directory
    /etc/rc5.d/S20autoscript: line 47: gpio23/value: No such file or directory
    /etc/rc5.d/S20autoscript: line 48: gpio23/value: No such file or directory
    /etc/rc5.d/S20autoscript: line 49: gpio22/value: No such file or directory
    waiting...
    /etc/rc5.d/S20autoscript: line 53: gpio22/value: No such file or directory
    gsm modem init done
    **************************************************
    cpu freq: 
    600000
    **************************************************
    /etc/rc5.d/S20autoscript: line 76: success: command not found
    
    Starting syslogd/klogd: bBLECOnnected=false
    Can't change local name on hci0: Network is down (100)
    done
    Starting thttpd
    [   18.412584] (stc):  chnl_id list empty :4 (stk) : st_kim_start
    [   18.593481] (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/ttyO0
    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 changi(stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    
    [   18.683480] (stk) :line discipline installeduim:Installed N_TI_WL Line displine
    uim:begin polling...
    (stk) :TIInit_11.8.32.bts
    [   18.713470] (stk) :change remote baud rate command in firmware(stk) :skipping the wait event of change remote baudStarting Lighttpd We.
    2000-01-01 00:49:07: (log.c.166) server started 
    
    [   19.780443] (stc): add_channel_to_table: id 4
    [   19.785354] (stc): add_channel_to_table: id 2
    [   19.789970] (stc): add_channel_to_table: id 3
    Initializing Modem...
    [   21.156210] Number of LUNs=8
    [   21.159301] Mass Storage Function, version: 2009/09/11
    [   21.173079] LUN: removable file: (no medium)
    [   21.177660] Number of LUNs=1
    [   21.180938] LUN: file: /dev/mmcblk0p1
    [   21.184901] Number of LUNs=1
    [   21.203287] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [   21.210663] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [   21.218206] g_mass_storage gadget: g_mass_storage ready
    Stopping Bootlog daemon: bootlogd.
    umount: can't umount /mnt/.psplash: Invalid argument
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO3
    
    Arago 2013.12 am335x-evm ttyO3
    
    am335x-evm login: 
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO3
    
    Arago 2013.12 am335x-evm ttyO3
    
    am335x-evm login: 
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO3
    
    Arago 2013.12 am335x-evm ttyO3
    
    am335x-evm login: root
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# ./stop_firmware 
    root@am335x-evm:~# hciconfig 
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 5C:31:3E:3E:21:83  ACL MTU: 1021:6  SCO MTU: 180:4
            UP RUNNING 
            RX bytes:1094 acl:0 sco:0 events:54 errors:0
            TX bytes:822 acl:0 sco:0 commands:54 errors:0
    
    root@am335x-evm:~# hciconfig hci0 down
    [   43.759212] (stc): remove_channel_from_table: id 3
    [   43.764486] (stc): remove_channel_from_table: id 2
    [   43.769565] (stc): remove_channel_from_table: id 4
    [   43.774678] (stc):  all chnl_ids unregistered 
    [   43.779796] (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)(stc): st_tty_close 
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    root@am335x-evm:~# ls /dev/tty 
    tty    tty14  tty20  tty27  tty33  tty4   tty46  tty52  tty59  tty8   ttyS2
    tty0   tty15  tty21  tty28  tty34  tty40  tty47  tty53  tty6   tty9   ttyS3
    tty1   tty16  tty22  tty29  tty35  tty41  tty48  tty54  tty60  ttyO0  
    tty10  tty17  tty23  tty3   tty36  tty42  tty49  tty55  tty61  ttyO1  
    tty11  tty18  tty24  tty30  tty37  tty43  tty5   tty56  tty62  ttyO3  
    tty12  tty19  tty25  tty31  tty38  tty44  tty50  tty57  tty63  ttyS0  
    tty13  tty2   tty26  tty32  tty39  tty45  tty51  tty58  tty7   ttyS1  
    root@am335x-evm:~#             
    root@am335x-evm:~# 
    root@am335x-evm:~# hciconfig hci0 up  
    
    [  117.109576] (stc):  chnl_id list empty :4 (stk) : st_kim_start
    [  117.290495] (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/ttyO0
    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 changi(stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    
    [  117.352059] (stk) :line discipline installeduim:Installed N_TI_WL Line displine(stk) :TIInit_11.8.32.bts
    uim:begin polling...
    
    [  117.367044] (stk) :change remote baud rate command in firmware(stk) :skipping the wait event of change remote baud
    [  118.314832] (stc): add_channel_to_table: id 4
    [  118.319656] (stc): add_channel_to_table: id 2
    [  118.324313] (stc): add_channel_to_table: id 3
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# ls /dev/tty
    tty    tty14  tty20  tty27  tty33  tty4   tty46  tty52  tty59  tty8   ttyS2
    tty0   tty15  tty21  tty28  tty34  tty40  tty47  tty53  tty6   tty9   ttyS3
    tty1   tty16  tty22  tty29  tty35  tty41  tty48  tty54  tty60  ttyO0  
    tty10  tty17  tty23  tty3   tty36  tty42  tty49  tty55  tty61  ttyO1  
    tty11  tty18  tty24  tty30  tty37  tty43  tty5   tty56  tty62  ttyO3  
    tty12  tty19  tty25  tty31  tty38  tty44  tty50  tty57  tty63  ttyS0  
    tty13  tty2   tty26  tty32  tty39  tty45  tty51  tty58  tty7   ttyS1  
    root@am335x-evm:~# ls /dev/hci_tty 
    /dev/hci_tty
    root@am335x-evm:~# hciconfig hci0 down
    [  142.699521] (stc): remove_channel_from_table: id 3
    [  142.704788] (stc): remove_channel_from_table: id 2
    [  142.709868] (stc): remove_channel_from_table: id 4
    [  142.714977] (stc):  all chnl_ids unregistered 
    [  142.720101] (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)(stc): st_tty_close 
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    uim:begin polling...
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# ./ 
    .npm/           ModemReader     kri_script.sh   ss1/
    .ssh/           ModemWriterARM  misc/           stop_firmware
    DuetAppARM      Respawner.sh    picocom         wlconf/
    root@am335x-evm:~# cd ss1/
    BTPMCFG.btc      LinuxFTPM_CLT    LinuxHOGM        LinuxPXPM_MON
    BTPMDEV.btd      LinuxFTPM_SRV    LinuxHRPM        LinuxSPPLE_PM
    BTPMLECFG.btc    LinuxGATM_CLT    LinuxMAPM_MCE    LinuxSPPM
    LinuxAUDM        LinuxGATM_SRV    LinuxMAPM_MSE    SS1BTPM
    LinuxBASM        LinuxHDPM        LinuxOPPM        SS1Tool
    LinuxDEVM        LinuxHDPM_11073  LinuxPANM        mylog.cfa
    LinuxFMPM_TAR    LinuxHIDM        LinuxPBAM        
    root@am335x-evm:~# cd ss1/
    root@am335x-evm:~/ss1# ./SS1BTPM &
    [1] 1378
    root@am335x-evm:~/ss1# ./LinuxOPPM 
    
    ******************************************************************
    * Command Options: 1) Initialize                                 *
    *                  2) Cleanup                                    *
    *                  3) QueryDebugZoneMask                         *
    *                  4) SetDebugZoneMask                           *
    *                  5) ShutdownService                            *
    *                  6) RegisterEventCallback,                     *
    *                  7) UnRegisterEventCallback,                   *
    *                  8) QueryDevicePower                           *
    *                  9) SetDevicePower                             *
    *                  10)QueryLocalDeviceProperties                 *
    *                  11)SetLocalDeviceName                         *
    *                  12)SetLocalClassOfDevice                      *
    *                  13)SetDiscoverable                            *
    *                  14)SetConnectable                             *
    *                  15)SetPairable                                *
    *                  16)StartDeviceDiscovery                       *
    *                  17)StopDeviceDiscovery                        *
    *                  18)QueryRemoteDeviceList                      *
    *                  19)QueryRemoteDeviceProperties                *
    *                  20)AddRemoteDevice                            *
    *                  21)DeleteRemoteDevice                         *
    *                  22)DeleteRemoteDevices                        *
    *                  23)PairWithRemoteDevice                       *
    *                  24)CancelPairWithRemoteDevice                 *
    *                  25)UnPairRemoteDevice                         *
    *                  26)QueryRemoteDeviceServices                  *
    *                  27)RegisterAuthentication                     *
    *                  28)UnRegisterAuthentication                   *
    *                  29)PINCodeResponse                            *
    *                  30)PassKeyResponse                            *
    *                  31)UserConfirmationResponse                   *
    *                  32)ChangeSimplePairingParameters              *
    *                  33)RegisterServer                             *
    *                  34)UnRegisterServer                           *
    *                  35)ConnectionRequestResponse                  *
    *                  36)ParseRemoteObjectPushServices              *
    *                  37)ConnectRemoteDevice                        *
    *                  38)Disconnect                                 *
    *                  39)Abort                                      *
    *                  40)PushObject                                 *
    *                  41)PullBusinessCard                           *
    *                  Help, Quit.                                   *
    ******************************************************************
    OPPM> 1 1
    
    Invalid Command.
    OPPM>1 1
    
    BTPM_Initialize() Success: 0.
    DEVM_RegisterEventCallback() Success: 5.
    OPPM>9 1
    
    [  198.908323] (hci_tty): inside hci_tty_open (dd273380, dd114b40)
    
    [  198.915452] (stc):  chnl_id list empty :4 (stk) : st_kim_start
    [  199.096405] (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/ttyO0
    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 changi(stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    
    [  199.157995] (stk) :line discipline installeduim:Installed N_TI_WL Line displine(stk) :TIInit_11.8.32.bts
    uim:begin polling...
    
    [  199.172925] (stk) :change remote baud rate command in firmware(stk) :skipping the wait event of change remote baud
    [  200.121836] (stc): add_channel_to_table: id 4
    [  200.126730] (stc): add_channel_to_table: id 2
    [  200.131394] (stc): add_channel_to_table: id 3
    [  200.146329] (hci_tty): inside hci_tty_release (dd273380, dd114b40)
    [  200.153022] (stc): remove_channel_from_table: id 4
    [  200.158128] (stc): remove_channel_from_table: id 2
    [  200.163263] (stc): remove_channel_from_table: id 3
    [  200.168367] (stc):  all chnl_ids unregistered 
    [  200.173218] (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)(stc): st_tty_close 
    
    uim:read 0 from install 
    
    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    DEVM_PowerOnDevice() Failure: -4, Unknown Error.
    Function Error.
    OPPM>uim:begin polling...
    
    
    Invalid Command.
    OPPM>
    
    Invalid Command.
    OPPM>
    
    

  • Hi Geo,

    Can you download the firmware from: www.ti.com/.../wl18xx-bt-sp and copy it to "/lib/firmware/" and see if that helps?

    Regards,
    Gigi Joseph.
  • Hi Gigi,


    I was using the same firmware as you suggested (wl18xx_bt_sp_v3.8).

    Anyway i downloaded it again and tried , getting the same error.

    ******************************************************************
    OPPM>1 1

    BTPM_Initialize() Success: 0.
    DEVM_RegisterEventCallback() Success: 5.


     OPPM>9 1

    [  165.778789] (hci_tty): inside hci_tty_open (dd174380, dc063c80)

    [  165.785885] (stc):  chnl_id list empty :4 (stk) : st_kim_start
    [  165.966745] (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/ttyO0
    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 changi(stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate

    [  166.028028] (stk) :line discipline installeduim:Installed N_TI_WL Line displine(stk) :TIInit_11.8.32.bts
    uim:begin polling...

    [  166.042886] (stk) :change remote baud rate command in firmware(stk) :skipping the wait event of change remote baud
    [  166.986826] (stc): add_channel_to_table: id 4
    [  166.991652] (stc): add_channel_to_table: id 2
    [  166.996311] (stc): add_channel_to_table: id 3
    [  167.010809] (hci_tty): inside hci_tty_release (dd174380, dc063c80)
    [  167.017471] (stc): remove_channel_from_table: id 4
    [  167.022557] (stc): remove_channel_from_table: id 2
    [  167.027660] (stc): remove_channel_from_table: id 3
    [  167.032739] (stc):  all chnl_ids unregistered
    [  167.037871] (stk) :ldisc_install = 0uim:poll broke due to event 10(PRI:2/ERR:8)(stc): st_tty_close

    uim:read 0 from install

    uim:@ st_uart_config
    uim:Un-Installed N_TI_WL Line displine
    DEVM_PowerOnDevice() Failure: -4, Unknown Error.
    Function Error.
    OPPM>uim:begin polling...



    Regard

    GEO

  • Hi Geo,

    It's very weird that you see this. BT turns on successfully, and automatically turns off!
    I will check internally about more details on why this happens, but to rule out any BlueZ interference, can you rmmod bluetooth & btwilink and see if there is any difference?

    And can you also confirm that you are using the "4.0.1.4.2U" version and not "4.0.1.4.2" ?

    Regards,
    Gigi Joseph.
  • Hi Gigi,


    Thanks for the support.

    I tried rmmod bluetooth & btwilink and re inserted still the result is same.

    with the version "4.0.1.4.2U" also the result is same.

    Regards,

    Geo

  • Hi Gigi,


    Again to confirm i have some questions.

    1. Is there a dependency between Bluetopia version with TI LINUX SDK version or Kernel version? (like Bluetopia version X.Y.Z is compatible with SDK version X or Kernel version X.Y)


    2. Is there a initialization mechanism like init script is there for Bluetopia?

    3.Which are the dependent library files that should be present in the filesystem for proper working of Bluetopia?

    4.Is there a Document or Wiki page for Integrating Bluetopia in TI AMSDK 7.0 with Kernel version 3.12.0?

    Regards

    Geo

  • Hi Geo,

    Yes, the same TIInit_11.8.32.bts should be downloaded which is already happening in your case. I can see from your logs that BT is successfully on, and then for some reason it turns off by itself. The same scenario , ie 4.0.1.4.2U + SDK7.0 + bts file from www.ti.com/.../wl18xx-bt-sp works fine on my setup. So I think it's something specific with your setup.

    There are some kernel dependencies: CONFIG_ST_HCI & CONFIG_TI_ST should be set (which I think you've already set). VNET is specific for kernel version (but it is required only during PAN and doesn't interfere with BT Turn on). You can take a look at: processors.wiki.ti.com/.../WiLink8_Linux_Getting_Started_Guide

    You said: "I tried rmmod bluetooth & btwilink and re inserted still the result is same." Does it help without re-inserting (just remove the modules, and try to turn on using Bluetopia)?

    Regards,
    Gigi Joseph.
  • Hi Gigi ,

    The Problem is solved now.

    I prepared a fresh filesystem and installed bluetopia, it was not working.
    Then i found libgstss1bluetooth.so was missing , I copied it to /usr/lib/gstreamer-0.10/

    Now its working ,Thanks for your support

    Regards,
    Geo
  • Hi Geo,

    Great! It's very weird that the libgstss1bluetooth.so was the culprit. It's only required for A2DP, and does not interfere with BT turn on.
    Anyway, I will mark this as closed.

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Thanks for your response.
    We are able to bring up the bluetopia stack from the binaries provided.

    We did check out the sample apps/binaries and documentation provided on this link.
    However, we found no documentation for supporting Apple's External Accessory Protocol (EAP). 

    We plan to transmit audio using EAP.
    For this, we also require authentication mechanism with apple's MFI chip. 

    In one of the earlier query you have mentioned that "Bluetopia supports the IAP2 protocol over Bluetooth SPP, and a part of this include the authentication & External Accessory protocol over iAP2." 

    We request below clarifications from you to proceed further :

    1. Does the Bluetopia stack have any APIs for MFI authentication ?
    2. Do you have any examples where the stack is used with an apple device for audio ?
    3. Do you have any examples for EAP & iAP2 ?

    Looking forward to your response.

    Thanks,
    Suresha N S