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.

Linux/WL1835MOD: Can't init device hci0: Operation not possible due to RF-kill

Part Number: WL1835MOD
Other Parts Discussed in Thread: WL1835

Tool/software: Linux

Hi, 

I got a error when startup bluetooth wl1835 chip. I am working on debian image

root@arm:~# echo 23 > /sys/class/gpio/export
root@arm:~# echo out > /sys/class/gpio/gpio23/direction
root@arm:~# echo 0 > /sys/class/gpio/gpio23/value
root@arm:~# echo 1 > /sys/class/gpio/gpio23/value
root@arm:~# hciattach -t 30 -s 115200 /dev/ttyS1 texas 3000000 flow hciconfig
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts
Loaded BTS script version 1
texas: changing baud rate to 3000000, flow control to 1
[ 2655.030563] Bluetooth: HCI UART driver ver 2.3
[ 2655.041294] Bluetooth: HCI UART protocol H4 registered
[ 2655.046583] Bluetooth: HCI UART protocol LL registered
[ 2655.065751] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 2655.506000] Bluetooth: RFCOMM socket layer initialized
[ 2655.531846] Bluetooth: RFCOMM ver 1.11
Can't init device hci0: Operation not possible due to RF-kill (132)Can't initialize device: Operation not possible due to RF-kill

Here is rfkill list 

root@arm:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

  • Hi,

    Does the following hciattach format work?

    echo 23 > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio23/direction
    echo 0 > /sys/class/gpio/gpio23/value
    echo 1 > /sys/class/gpio/gpio23/value
    hciattach /dev/ttyS1 texas 3000000

    Best regards,
    Vihang
  • Hi Vihang

    it still get same error

    root@arm:~# echo 23 > /sys/class/gpio/export
    root@arm:~# echo out > /sys/class/gpio/gpio23/direction
    root@arm:~# echo 0 > /sys/class/gpio/gpio23/value
    root@arm:~# echo 1 > /sys/class/gpio/gpio23/value
    root@arm:~# hciattach /dev/ttyS1 texas 3000000
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts
    Loaded BTS script version 1
    texas: changing baud rate to 3000000, flow control to 1
    [ 664.721791] Bluetooth: HCI UART driver ver 2.3
    [ 664.726361] Bluetooth: HCI UART protocol H4 registered
    [ 664.746486] Bluetooth: HCI UART protocol LL registered
    [ 664.758100] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [ 665.220612] Bluetooth: RFCOMM socket layer initialized
    [ 665.236610] Bluetooth: RFCOMM ver 1.11
    Can't init device hci0: Operation not possible due to RF-kill (132)Can't initialize device: Operation not possible due to RF-kill

    Here is my dmesg log

    root@arm:~# dmesg
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.69-g9ce43c71ae (rynantech@rynantech) (gcc versi                                                                                                                                                                             on 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #2 PREEMPT Thu Aug 9 02:21:35 EDT 2                                                                                                                                                                             018
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio                                                                                                                                                                             n cache
    [    0.000000] OF: fdt:Machine model: GATEWAY 01
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] On node 0 totalpages: 131072
    [    0.000000] free_area_init_node: node 0, pgdat c0d46cac, node_mem_map dcb6100                                                                                                                                                                             0
    [    0.000000]   Normal zone: 1152 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 131072 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [    0.000000] pcpu-alloc: [0] 0
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                                                                                                             es: 129920
    [    0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 root=/de                                                                                                                                                                             v/mmcblk0p1 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: 456932K/524288K available (8192K kernel code, 293K rwdata                                                                                                                                                                             , 2432K rodata, 1024K init, 287K bss, 18204K reserved, 49152K cma-reserved, 0K h                                                                                                                                                                             ighmem)
    [    0.000000] Virtual kernel memory layout:
                       vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                       fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                       vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                       lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                       pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                       modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                         .text : 0xc0008000 - 0xc0900000   (9184 kB)
                         .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                         .data : 0xc0d00000 - 0xc0d49528   ( 294 kB)
                          .bss : 0xc0d49528 - 0xc0d9145c   ( 288 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrup                                                                                                                                                                             ts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478                                                                                                                                                                             484971ns
    [    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max                                                                                                                                                                             _idle_ns: 79635851949 ns
    [    0.000042] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000178] clocksource_probe: no matching clocksources found
    [    0.000335] Console: colour dummy device 80x30
    [    0.000980] console [tty0] enabled
    [    0.001016] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.001041] This ensures that you still see kernel messages. Please
    [    0.001065] update your kernel commandline.
    [    0.001101] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089266] pid_max: default: 32768 minimum: 301
    [    0.089378] Security Framework initialized
    [    0.089430] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089460] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090206] CPU: Testing write buffer coherency: ok
    [    0.090581] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.091356] EFI services will not be available.
    [    0.092555] devtmpfs: initialized
    [    0.102479] VFP support v0.3: implementor 41 architecture 3 part 30 variant c                                                                                                                                                                              rev 3
    [    0.102880] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                                                                             x_idle_ns: 19112604462750000 ns
    [    0.102942] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.106244] pinctrl core: initialized pinctrl subsystem
    [    0.107440] NET: Registered protocol family 16
    [    0.109129] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.122043] omap_hwmod: debugss: _wait_target_disable failed
    [    0.189242] cpuidle: using governor ladder
    [    0.219231] cpuidle: using governor menu
    [    0.223030] gpio gpiochip0: (gpio): added GPIO chardev (254:0)
    [    0.223380] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0                                                                                                                                                                              (gpio)
    [    0.224665] OMAP GPIO hardware version 0.1
    [    0.225482] GPIO line 61 (LS_BUF_EN) hogged as output/high
    [    0.225537] gpio gpiochip1: (gpio): added GPIO chardev (254:1)
    [    0.225834] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip                                                                                                                                                                             1 (gpio)
    [    0.227599] gpio gpiochip2: (gpio): added GPIO chardev (254:2)
    [    0.227964] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip                                                                                                                                                                             2 (gpio)
    [    0.229821] gpio gpiochip3: (gpio): added GPIO chardev (254:3)
    [    0.230107] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochi                                                                                                                                                                             p3 (gpio)
    [    0.238745] No ATAGs?
    [    0.238784] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.276529] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.276881] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/f                                                                                                                                                                             ixedregulator0[0]'
    [    0.277221] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedr                                                                                                                                                                             egulator@2[0]' - status (0)
    [    0.279924] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wk                                                                                                                                                                             up@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.280114] media: Linux media interface: v0.10
    [    0.280184] Linux video capture interface: v2.00
    [    0.280246] pps_core: LinuxPPS API ver. 1 registered
    [    0.280271] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                                                                                                                                                                             tti <giometti@linux.it>
    [    0.280325] PTP clock support registered
    [    0.280376] EDAC MC: Ver: 3.0.0
    [    0.281399] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.281743] Advanced Linux Sound Architecture Driver Initialized.
    [    0.282926] clocksource: Switched to clocksource timer1
    [    0.292136] NET: Registered protocol family 2
    [    0.292861] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.292991] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.293051] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.293136] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.293172] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.293319] NET: Registered protocol family 1
    [    0.293729] RPC: Registered named UNIX socket transport module.
    [    0.293765] RPC: Registered udp transport module.
    [    0.293788] RPC: Registered tcp transport module.
    [    0.293811] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.293843] PCI: CLS 0 bytes, default 64
    [    0.294674] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counter                                                                                                                                                                             s available
    [    0.296838] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.303835] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.304735] NFS: Registering the id_resolver key type
    [    0.304801] Key type id_resolver registered
    [    0.304824] Key type id_legacy registered
    [    0.304883] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.309289] NET: Registered protocol family 38
    [    0.309570] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                                                                                                                                             46)
    [    0.309617] io scheduler noop registered
    [    0.309641] io scheduler deadline registered
    [    0.309799] io scheduler cfq registered (default)
    [    0.311029] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.366323] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.369749] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud =                                                                                                                                                                              3000000) is a 8250
    [    0.968073] console [ttyS0] enabled
    [    0.972638] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud =                                                                                                                                                                              3000000) is a 8250
    [    0.982470] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 160, base_baud =                                                                                                                                                                              3000000) is a 8250
    [    0.993062] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    0.999864] [drm] Initialized
    [    1.015225] brd: module loaded
    [    1.024203] loop: module loaded
    [    1.029359] libphy: Fixed MDIO Bus: probed
    [    1.103010] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.109185] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.116336] libphy: 4a101000.mdio: probed
    [    1.120402] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driv                                                                                                                                                                             er SMSC LAN8710/LAN8720
    [    1.130369] cpsw 4a100000.ethernet: Detected MACID = c4:f3:12:80:d2:15
    [    1.137175] cpsw 4a100000.ethernet: device node lookup for pps timer failed
    [    1.144305] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.153214] mousedev: PS/2 mouse device common for all mice
    [    1.159305] i2c /dev entries driver
    [    1.164498] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.171998] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    1.172006] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.172030] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/oc                                                                                                                                                                             p/mmc@48060000[0]' - status (0)
    [    1.172049] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.176851] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    1.176857] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.176865] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node                                                                                                                                                                              '/ocp/mmc@48060000[0]'
    [    1.176871] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node                                                                                                                                                                              '/ocp/mmc@48060000[0]'
    [    1.176876] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.176883] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    1.233518] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    1.233530] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.233538] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node                                                                                                                                                                              '/ocp/mmc@481d8000[0]'
    [    1.233544] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node                                                                                                                                                                              '/ocp/mmc@481d8000[0]'
    [    1.233550] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.233633] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    1.233641] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    1.233645] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.233651] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node                                                                                                                                                                              '/ocp/mmc@481d8000[0]'
    [    1.233656] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node                                                                                                                                                                              '/ocp/mmc@481d8000[0]'
    [    1.233661] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.233666] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    1.293270] omap_hsmmc 47810000.mmc: GPIO lookup for consumer cd
    [    1.293280] omap_hsmmc 47810000.mmc: using device tree for GPIO lookup
    [    1.293289] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node                                                                                                                                                                              '/ocp/mmc@47810000[0]'
    [    1.293295] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node                                                                                                                                                                              '/ocp/mmc@47810000[0]'
    [    1.293300] omap_hsmmc 47810000.mmc: using lookup tables for GPIO lookup
    [    1.293306] omap_hsmmc 47810000.mmc: lookup for GPIO cd failed
    [    1.293313] omap_hsmmc 47810000.mmc: GPIO lookup for consumer wp
    [    1.293318] omap_hsmmc 47810000.mmc: using device tree for GPIO lookup
    [    1.293323] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node                                                                                                                                                                              '/ocp/mmc@47810000[0]'
    [    1.293328] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node                                                                                                                                                                              '/ocp/mmc@47810000[0]'
    [    1.293332] omap_hsmmc 47810000.mmc: using lookup tables for GPIO lookup
    [    1.293336] omap_hsmmc 47810000.mmc: lookup for GPIO wp failed
    [    1.342345] mmc0: host does not support reading read-only switch, assuming wr                                                                                                                                                                             ite-enable
    [    1.353722] mmc1: new high speed MMC card at address 0001
    [    1.359233] mmc0: new high speed SDHC card at address aaaa
    [    1.365415] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
    [    1.370779]  mmcblk0: p1
    [    1.374803] mmcblk1: mmc1:0001 Q2J54A 3.64 GiB
    [    1.379618] mmcblk1boot0: mmc1:0001 Q2J54A partition 1 2.00 MiB
    [    1.385929] mmcblk1boot1: mmc1:0001 Q2J54A partition 2 2.00 MiB
    [    1.443520] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/                                                                                                                                                                             led2[0]' - status (0)
    [    1.443713] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/                                                                                                                                                                             led3[0]' - status (0)
    [    1.443834] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/                                                                                                                                                                             led4[0]' - status (0)
    [    1.443939] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/                                                                                                                                                                             led5[0]' - status (0)
    [    1.444333] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.456078] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
    [    1.462694] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.468171] omap_hsmmc 47810000.mmc: card claims to support voltages below de                                                                                                                                                                             fined range
    [    1.477008] NET: Registered protocol family 10
    [    1.482778] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.489656] NET: Registered protocol family 17
    [    1.494295] Bridge firewalling registered
    [    1.498620] Key type dns_resolver registered
    [    1.503290] omap_voltage_late_init: Voltage driver support not added
    [    1.515726] random: fast init done
    [    1.521118] mmc2: new high speed SDIO card at address 0001
    [    1.560760] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.566729] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [    1.573732] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.581301] hctosys: unable to open rtc device (rtc0)
    [    1.587009] wlan-en-regulator: disabling
    [    1.590991] ALSA device list:
    [    1.594071]   No soundcards found.
    [    1.600562] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesyst                                                                                                                                                                             em
    [    1.608096] EXT4-fs (mmcblk0p1): write access will be enabled during recovery
    [    1.705691] EXT4-fs (mmcblk0p1): recovery complete
    [    1.719828] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. O                                                                                                                                                                             pts: (null)
    [    1.728106] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
    [    1.736072] devtmpfs: mounted
    [    1.740290] Freeing unused kernel memory: 1024K
    [    2.101769] systemd[1]: System time before build time, advancing clock.
    [    2.151592] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SEL                                                                                                                                                                             INUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +                                                                                                                                                                             XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
    [    2.170819] systemd[1]: Detected architecture arm.
    [    2.214613] systemd[1]: Set hostname to <arm>.
    [    2.818630] systemd[1]: Listening on udev Control Socket.
    [    2.854566] systemd[1]: Created slice System Slice.
    [    2.887463] systemd[1]: Mounting Debug File System...
    [    2.987993] systemd[1]: Listening on Syslog Socket.
    [    3.024359] systemd[1]: Created slice User and Session Slice.
    [    3.053289] systemd[1]: Reached target Slices.
    [    3.083565] systemd[1]: Listening on Journal Socket.
    [    4.044091] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
    [    4.476129] systemd-journald[112]: Received request to flush runtime journal                                                                                                                                                                              from PID 1
    [    6.425089] net eth0: initializing cpsw version 1.12 (0)
    [    6.430497] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    6.473316] cpsw 4a100000.ethernet: ALE Table size 1024
    [    6.573733] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC                                                                                                                                                                              LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
    [    6.654731] cpts ptp bc clkid 0
    [    6.662000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    6.776640] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    6.866468] rtc rtc0: 44e3e000.rtc: dev (253:0)
    [    6.866506] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    8.244211] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    8.310740] remoteproc remoteproc0: wkup_m3 is available
    [    8.335623] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    8.364387] PM: Cannot get wkup_m3_ipc handle
    [    8.398519] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    8.398745] PM: Cannot get wkup_m3_ipc handle
    [    8.398964] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    8.413249] omap-aes 53500000.aes: will run requests pump with realtime prior                                                                                                                                                                             ity
    [    8.474560] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    8.474796] PM: Cannot get wkup_m3_ipc handle
    [    8.896327] PM: Cannot get wkup_m3_ipc handle
    [    8.900847] remoteproc remoteproc0: powering up wkup_m3
    [    8.964180] remoteproc remoteproc0: Direct firmware load for am335x-pm-firmwa                                                                                                                                                                             re.elf failed with error -2
    [    9.079038] remoteproc remoteproc0: request_firmware failed: -2
    [    9.197410] wkup_m3_ipc 44e11324.wkup_m3_ipc: rproc_boot failed
    [    9.975166] Bluetooth: Core ver 2.22
    [    9.978902] NET: Registered protocol family 31
    [   10.069412] Bluetooth: HCI device and connection manager initialized
    [   10.121273] Bluetooth: HCI socket layer initialized
    [   10.165350] Bluetooth: L2CAP socket layer initialized
    [   10.212128] Bluetooth: SCO socket layer initialized
    [   12.491931] PM: Cannot get wkup_m3_ipc handle
    [   12.540269] usbcore: registered new interface driver usbfs
    [   12.546675] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer rese                                                                                                                                                                             t
    [   12.546681] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lo                                                                                                                                                                             okup
    [   12.546692] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of n                                                                                                                                                                             ode '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   12.546698] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of no                                                                                                                                                                             de '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   12.546703] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO                                                                                                                                                                              lookup
    [   12.546709] am335x-phy-driver 47401300.usb-phy: lookup for GPIO reset failed
    [   12.546716] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus                                                                                                                                                                             -detect
    [   12.546720] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lo                                                                                                                                                                             okup
    [   12.546725] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' propert                                                                                                                                                                             y of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   12.546730] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property                                                                                                                                                                              of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   12.546734] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO                                                                                                                                                                              lookup
    [   12.546738] am335x-phy-driver 47401300.usb-phy: lookup for GPIO vbus-detect f                                                                                                                                                                             ailed
    [   12.546812] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   12.547260] PM: Cannot get wkup_m3_ipc handle
    [   12.547751] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer rese                                                                                                                                                                             t
    [   12.547757] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lo                                                                                                                                                                             okup
    [   12.547764] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of n                                                                                                                                                                             ode '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   12.547770] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of no                                                                                                                                                                             de '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   12.547774] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO                                                                                                                                                                              lookup
    [   12.547780] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO reset failed
    [   12.547786] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer vbus                                                                                                                                                                             -detect
    [   12.547790] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lo                                                                                                                                                                             okup
    [   12.547795] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' propert                                                                                                                                                                             y of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   12.547799] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property                                                                                                                                                                              of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   12.547803] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO                                                                                                                                                                              lookup
    [   12.547808] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO vbus-detect f                                                                                                                                                                             ailed
    [   12.547857] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   12.548195] PM: Cannot get wkup_m3_ipc handle
    [   12.863385] ti-pruss 4a300000.pruss: creating PRU cores and other child platf                                                                                                                                                                             orm devices
    [   12.864897] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a                                                                                                                                                                             300000/intc@4a320000 !
    [   12.865414] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a                                                                                                                                                                             300000/intc@4a320000 !
    [   12.865909] PM: Cannot get wkup_m3_ipc handle
    [   13.002801] PM: Cannot get wkup_m3_ipc handle
    [   13.042094] remoteproc remoteproc1: 4a334000.pru0 is available
    [   13.042175] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a3260                                                                                                                                                                             00/pruss@4a300000/pru@4a334000 probed successfully
    [   13.042436] PM: Cannot get wkup_m3_ipc handle
    [   13.044691] remoteproc remoteproc2: 4a338000.pru1 is available
    [   13.044774] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a3260                                                                                                                                                                             00/pruss@4a300000/pru@4a338000 probed successfully
    [   13.045025] PM: Cannot get wkup_m3_ipc handle
    [   13.274401] usbcore: registered new interface driver hub
    [   13.300157] usbcore: registered new device driver usb
    [   13.335607] PM: Cannot get wkup_m3_ipc handle
    [   13.348796] wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connecti                                                                                                                                                                             vity/wl1271-nvs.bin failed with error -2
    [   13.453631] PM: Cannot get wkup_m3_ipc handle
    [   13.473393] PM: Cannot get wkup_m3_ipc handle
    [   13.486744] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   13.492169] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus numbe                                                                                                                                                                             r 1
    [   13.546678] hub 1-0:1.0: USB hub found
    [   13.556910] hub 1-0:1.0: 1 port detected
    [   13.583920] PM: Cannot get wkup_m3_ipc handle
    [   13.603710] PM: Cannot get wkup_m3_ipc handle
    [   13.784131] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [   13.843792] wlcore: loaded
    [   15.455259] wlcore: PHY firmware version: Rev 8.2.0.0.240
    [   15.516645] wlcore: firmware booted (Rev 8.9.0.0.76)
    [   15.534512] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [   81.603821] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow con                                                                                                                                                                             trol rx/tx
    [   81.612458] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   81.684056] 8021q: 802.1Q VLAN Support v1.8
    [   81.693165] 8021q: adding VLAN 0 to HW filter on device eth0
    [   88.913435] cpsw 4a100000.ethernet eth0: Link is Down
    [   89.018235] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  161.162295] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
    [  304.593075] random: crng init done
    [ 2241.241043] wlan0: authenticate with 00:6c:bc:ef:2b:3c
    [ 2241.260297] wlan0: send auth to 00:6c:bc:ef:2b:3c (try 1/3)
    [ 2241.325554] wlcore: ERROR SW watchdog interrupt received! starting recovery.
    [ 2241.332739] ------------[ cut here ]------------
    [ 2241.337891] WARNING: CPU: 0 PID: 391 at ../drivers/net/wireless/ti/wlcore/main.c:796 wl12xx_queue_recovery_work.part.10+0x6c/0x70 [wlcore]
    [ 2241.350536] Modules linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 8021q musb_dsps musb_hdrc udc_core wl18xx wlcore pru_rproc mac80211 pruss_intc cfg80211 pruss usbcore phy_am335x phy_am335x_control phy_generic usb_common iptable_nat nf_nat_ipv4 nf_nat bluetooth pm33xx wkup_m3_ipc wkup_m3_rproc remoteproc omap_aes_driver ti_emif_sram omap_sham crypto_engine pruss_soc_bus wlcore_sdio musb_am335x rtc_omap omap_wdt
    [ 2241.388251] CPU: 0 PID: 391 Comm: irq/54-wl18xx Not tainted 4.9.69-g9ce43c71ae #2
    [ 2241.395857] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 2241.402020] Backtrace:
    [ 2241.404609] [<c010b790>] (dump_backtrace) from [<c010ba4c>] (show_stack+0x18/0x1c)
    [ 2241.412276]  r7:00000009 r6:00000000 r5:bf2852f4 r4:00000000
    [ 2241.418084] [<c010ba34>] (show_stack) from [<c03d3d54>] (dump_stack+0x24/0x28)
    [ 2241.425518] [<c03d3d30>] (dump_stack) from [<c012b674>] (__warn+0xe8/0x100)
    [ 2241.432614] [<c012b58c>] (__warn) from [<c012b744>] (warn_slowpath_null+0x28/0x30)
    [ 2241.440399]  r9:c0d48370 r8:c016a450 r7:dc624ea8 r6:00000001 r5:dc624d18 r4:dc624ce0
    [ 2241.448563] [<c012b71c>] (warn_slowpath_null) from [<bf26d9f8>] (wl12xx_queue_recovery_work.part.10+0x6c/0x70 [wlcore])
    [ 2241.459928] [<bf26d98c>] (wl12xx_queue_recovery_work.part.10 [wlcore]) from [<bf26dd5c>] (wlcore_irq+0x238/0x23c [wlcore])
    [ 2241.471210]  r5:dc624d18 r4:dc624ce0
    [ 2241.475090] [<bf26db24>] (wlcore_irq [wlcore]) from [<c016a474>] (irq_thread_fn+0x24/0x5c)
    [ 2241.483567]  r7:dc105500 r6:00000001 r5:dc105500 r4:db2d8b00
    [ 2241.489341] [<c016a450>] (irq_thread_fn) from [<c016a6ec>] (irq_thread+0x11c/0x1cc)
    [ 2241.497195]  r7:dc105500 r6:00000001 r5:db158000 r4:db2d8b00
    [ 2241.503018] [<c016a5d0>] (irq_thread) from [<c01485e0>] (kthread+0xf8/0x110)
    [ 2241.510196]  r9:00000000 r8:c016a5d0 r7:db2d8b00 r6:db158000 r5:db2d8ac0 r4:00000000
    [ 2241.518147] [<c01484e8>] (kthread) from [<c0107d50>] (ret_from_fork+0x14/0x24)
    [ 2241.525570]  r8:00000000 r7:00000000 r6:00000000 r5:c01484e8 r4:db2d8ac0
    [ 2241.532382] ---[ end trace 33c44499a653cc68 ]---
    [ 2241.537421] wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.76
    [ 2241.559482] wlcore: pc: 0x115ce, hint_sts: 0x00000000 count: 1
    [ 2241.566892] wlcore: down
    [ 2241.569492] wlcore: down
    [ 2241.572055] wlcore: down
    [ 2241.577821] ieee80211 phy0: Hardware restart was requested
    [ 2241.585626] wlan0: send auth to 00:6c:bc:ef:2b:3c (try 2/3)
    [ 2242.079222] wlcore: PHY firmware version: Rev 8.2.0.0.240
    [ 2242.146595] wlcore: firmware booted (Rev 8.9.0.0.76)
    [ 2242.227530] wlan0: authenticated
    [ 2242.243102] wlan0: associate with 00:6c:bc:ef:2b:3c (try 1/3)
    [ 2242.254714] wlan0: RX AssocResp from 00:6c:bc:ef:2b:3c (capab=0x1411 status=0 aid=13)
    [ 2242.270886] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [ 2242.279353] wlan0: associated
    [ 2242.369218] wlcore: Association completed.
    [ 2285.483112] wlcore: ERROR SW watchdog interrupt received! starting recovery.
    [ 2285.490353] ------------[ cut here ]------------
    [ 2285.495545] WARNING: CPU: 0 PID: 391 at ../drivers/net/wireless/ti/wlcore/main.c:796 wl12xx_queue_recovery_work.part.10+0x6c/0x70 [wlcore]
    [ 2285.508262] Modules linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 8021q musb_dsps musb_hdrc udc_core wl18xx wlcore pru_rproc mac80211 pruss_intc cfg80211 pruss usbcore phy_am335x phy_am335x_control phy_generic usb_common iptable_nat nf_nat_ipv4 nf_nat bluetooth pm33xx wkup_m3_ipc wkup_m3_rproc remoteproc omap_aes_driver ti_emif_sram omap_sham crypto_engine pruss_soc_bus wlcore_sdio musb_am335x rtc_omap omap_wdt
    [ 2285.546185] CPU: 0 PID: 391 Comm: irq/54-wl18xx Tainted: G        W       4.9.69-g9ce43c71ae #2
    [ 2285.555089] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 2285.561286] Backtrace:
    [ 2285.563904] [<c010b790>] (dump_backtrace) from [<c010ba4c>] (show_stack+0x18/0x1c)
    [ 2285.571636]  r7:00000009 r6:00000000 r5:bf2852f4 r4:00000000
    [ 2285.577479] [<c010ba34>] (show_stack) from [<c03d3d54>] (dump_stack+0x24/0x28)
    [ 2285.584920] [<c03d3d30>] (dump_stack) from [<c012b674>] (__warn+0xe8/0x100)
    [ 2285.592014] [<c012b58c>] (__warn) from [<c012b744>] (warn_slowpath_null+0x28/0x30)
    [ 2285.599797]  r9:c0d48370 r8:c016a450 r7:dc624ea8 r6:00000001 r5:dc624d18 r4:dc624ce0
    [ 2285.607953] [<c012b71c>] (warn_slowpath_null) from [<bf26d9f8>] (wl12xx_queue_recovery_work.part.10+0x6c/0x70 [wlcore])
    [ 2285.619321] [<bf26d98c>] (wl12xx_queue_recovery_work.part.10 [wlcore]) from [<bf26dd5c>] (wlcore_irq+0x238/0x23c [wlcore])
    [ 2285.630610]  r5:dc624d18 r4:dc624ce0
    [ 2285.634492] [<bf26db24>] (wlcore_irq [wlcore]) from [<c016a474>] (irq_thread_fn+0x24/0x5c)
    [ 2285.642968]  r7:dc105500 r6:00000001 r5:dc105500 r4:db2d8b00
    [ 2285.648742] [<c016a450>] (irq_thread_fn) from [<c016a6ec>] (irq_thread+0x11c/0x1cc)
    [ 2285.656598]  r7:dc105500 r6:00000001 r5:db158000 r4:db2d8b00
    [ 2285.662420] [<c016a5d0>] (irq_thread) from [<c01485e0>] (kthread+0xf8/0x110)
    [ 2285.669599]  r9:00000000 r8:c016a5d0 r7:db2d8b00 r6:db158000 r5:db2d8ac0 r4:00000000
    [ 2285.677554] [<c01484e8>] (kthread) from [<c0107d50>] (ret_from_fork+0x14/0x24)
    [ 2285.684992]  r8:00000000 r7:00000000 r6:00000000 r5:c01484e8 r4:db2d8ac0
    [ 2285.691804] ---[ end trace 33c44499a653cc69 ]---
    [ 2285.702716] wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.76
    [ 2285.723266] wlcore: pc: 0x116424, hint_sts: 0x00000000 count: 2
    [ 2285.739886] wlcore: down
    [ 2285.742727] wlcore: down
    [ 2285.745302] wlcore: down
    [ 2285.749176] ieee80211 phy0: Hardware restart was requested
    [ 2286.248243] wlcore: PHY firmware version: Rev 8.2.0.0.240
    [ 2286.297652] wlcore: firmware booted (Rev 8.9.0.0.76)
    [ 2286.350178] wlcore: Association completed.
    [ 2327.240925] wlan0: deauthenticating from 00:6c:bc:ef:2b:3c by local choice (Reason: 3=DEAUTH_LEAVING)
    [ 2327.387168] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [ 2327.569114] wlan0: authenticate with 00:6c:bc:ef:2b:3c
    [ 2327.584184] wlan0: send auth to 00:6c:bc:ef:2b:3c (try 1/3)
    [ 2327.696487] wlan0: authenticated
    [ 2327.711357] wlan0: associate with 00:6c:bc:ef:2b:3c (try 1/3)
    [ 2327.723222] wlan0: RX AssocResp from 00:6c:bc:ef:2b:3c (capab=0x1411 status=0 aid=13)
    [ 2327.738575] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [ 2327.745111] wlan0: associated
    [ 2327.781640] wlcore: Association completed.
    [ 2328.526072] wlan0: deauthenticating from 00:6c:bc:ef:2b:3c by local choice (Reason: 2=PREV_AUTH_NOT_VALID)
    [ 2328.592397] wlan0: authenticate with 00:6c:bc:ef:2b:3c
    [ 2328.621989] wlan0: send auth to 00:6c:bc:ef:2b:3c (try 1/3)
    [ 2328.662566] wlan0: authenticated
    [ 2328.671947] wlan0: associate with 00:6c:bc:ef:2b:3c (try 1/3)
    [ 2328.689759] wlan0: RX AssocResp from 00:6c:bc:ef:2b:3c (capab=0x1411 status=0 aid=13)
    [ 2328.722247] wlan0: associated
    [ 2328.757199] wlcore: Association completed.
    [ 2655.030563] Bluetooth: HCI UART driver ver 2.3
    [ 2655.041294] Bluetooth: HCI UART protocol H4 registered
    [ 2655.046583] Bluetooth: HCI UART protocol LL registered
    [ 2655.065751] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [ 2655.506000] Bluetooth: RFCOMM socket layer initialized
    [ 2655.531846] Bluetooth: RFCOMM ver 1.11
    [ 3209.578225] systemd[1]: apt-daily.timer: Adding 2h 32min 12.193585s random time.
    [ 3233.178495] systemd[1]: apt-daily.timer: Adding 9h 39min 52.074340s random time.
    [ 3234.842315] systemd[1]: apt-daily.timer: Adding 9h 5min 5.510043s random time.
    [ 3239.505255] systemd[1]: apt-daily.timer: Adding 6h 48min 4.668427s random time.
    [ 3241.409645] systemd[1]: apt-daily.timer: Adding 7h 15min 23.139516s random time.
    [ 3327.245273] gpio-23 (sysfs): gpiod_request: status -16
    [ 3327.245302] export_store: status -16
    [ 3655.400173] gpio-23 (sysfs): gpiod_request: status -16
    [ 3655.400204] export_store: status -16
    [ 4171.196960] gpio-23 (sysfs): gpiod_request: status -16
    [ 4171.196989] export_store: status -16
    

  • Humm.. Can, you try with TI processor SDK release 4.01 or 4.02? I think, the RF kill issue is some user space configuration issue..

    Thanks
  • Hi,

    I created 2 case below:

    Case 1: I using tisdk-rootf-image => This case can working correctly. Bluetooth function working file.

    Case 2: using same u-boot and kernel with case 1. just change to debian file system => In this case, I get error when using Bluetooth function as above
  • hi all.

    today, I using bluetooth task for TI . This example can turn on bluetooth, I can drive bluetooth to connect to my phone. But I still cannot using hciattach and hcitool.
    (processors.wiki.ti.com/.../TI_Bluetooth_Stack_for_WL18xx_-_Getting_Started_Guide


    I donot know why this error come
    "Can't init device hci0: Operation not possible due to RF-kill (132)Can't initialize device: Operation not possible due to RF-kill"

    Pls help
  • Hi all,

    now I can fix this problem.

    change value from 1 to 0 in this file /var/lib/systemd/rfkill/platform-48022000.serial:bluetooth

    The result after change:

    root@arm:~# echo 23 > /sys/class/gpio/export

    root@arm:~# echo out > /sys/class/gpio/gpio23/direction

    root@arm:~# echo 0 > /sys/class/gpio/gpio23/value

    root@arm:~# echo 1 > /sys/class/gpio/gpio23/value

    root@arm:~# hciattach /dev/ttyS1 texas 3000000

    Found a Texas Instruments' chip!

    Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts

    Loaded BTS script version 1

    texas: changing baud rate to 3000000, flow control to 1

    [ 664.721791] Bluetooth: HCI UART driver ver 2.3

    [ 664.726361] Bluetooth: HCI UART protocol H4 registered

    [ 664.746486] Bluetooth: HCI UART protocol LL registered

    [ 664.758100] Bluetooth: HCI UART protocol Three-wire (H5) registered

    [ 665.220612] Bluetooth: RFCOMM socket layer initialized

    [ 665.236610] Bluetooth: RFCOMM ver 1.11                  

    Device setup complete  

    /home/debian# rfkill list                                    

    0: phy0: Wireless LAN                                                          

           Soft blocked: no                                                        

           Hard blocked: no                                                        

    2: hci0: Bluetooth                                                              

           Soft blocked: no                                                        

           Hard blocked: no

    /home/debian# hcitool scan                                  

    Scanning ...                                                                    

    [  424.551225] omap_intc_handle_irq: spurious irq!                              

           A0:28:ED:89:A8:27       ThangTa