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.

Wl18xx with Beaglebone black in kernel 3.13.7

Hi,

i am a newbie and i want to porting wl18xx module on Beaglebone black with kernel 3.13.7.

i have read this guide: http://processors.wiki.ti.com/index.php/WL18xx_AMxxx_platform_integration_guide and used "WL8 Device tree support for BeagleBone" for kernel 3.12 to integrate with my kernel 3.13.7.

And i got some errors like that:

[    0.920945] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already requested by 44e10800.pinmux; cannot claim for 481a8000.serial
[    0.933251] pinctrl-single 44e10800.pinmux: pin-52 (481a8000.serial) status -22
[    0.940942] pinctrl-single 44e10800.pinmux: could not request pin 52 (44e108d0.0) from group pinmux_uart4_pins_default  on device pinctrl-single
[    0.954551] omap_uart 481a8000.serial: Error applying setting, reverse things back

[    1.314748] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
[    1.326750] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
[    1.334149] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
[    1.346937] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back

[    1.376364] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
[    1.388338] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
[    1.395749] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
[    1.408533] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back

and wl18xx_driver failed to load driver.

[    1.615198] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/3.13.7/ti-connectivity/wl1271-nvs.bin
[    1.625421] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/ti-connectivity/wl1271-nvs.bin
[    1.634946] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/3.13.7/ti-connectivity/wl1271-nvs.bin
[    1.644355] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/ti-connectivity/wl1271-nvs.bin
[    1.653142] wl18xx_driver wl18xx.2.auto: Direct firmware load failed with error -2
[    1.661097] wl18xx_driver wl18xx.2.auto: Falling back to user helper

so, systems will wait 60s to load driver again.

[   61.765533] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/3.13.7/ti-connectivity/wl18xx-conf.bin
[   61.777322] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/ti-connectivity/wl18xx-conf.bin
[   61.787001] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/3.13.7/ti-connectivity/wl18xx-conf.bin
[   61.796545] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/ti-connectivity/wl18xx-conf.bin
[   61.807715] wl18xx_driver wl18xx.2.auto:  rc = 0
[   62.045525] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[   62.070998] wlcore: loaded

in the first time, wl18xx_driver tried to read wl1271-nvs.bin but failed. i have checked it, it existed.

root@OpenWrt:/# ls lib/firmware/ti-connectivity/ | grep wl1271-nvs.bin
wl1271-nvs.bin

all file in folder /lib/firmware/ti-connectivity/, i downloaded in https://git.ti.com/wilink8-wlan

What's wrong in here, and how to fix error "already requested by ..."

log and dtb files:

/*
 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/ {
	model = "TI AM335x BeagleBone";
	compatible = "ti,am335x-bone", "ti,am33xx";

	cpus {
		cpu@0 {
			cpu0-supply = <&dcdc2_reg>;
		};
	};

	memory {
		device_type = "memory";
		reg = <0x80000000 0x10000000>; /* 256 MB */
	};

	leds {
		pinctrl-names = "default";
		pinctrl-0 = <&user_leds_s0>;

		compatible = "gpio-leds";

		led@2 {
			label = "beaglebone:green:heartbeat";
			gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "heartbeat";
			default-state = "off";
		};

		led@3 {
			label = "beaglebone:green:mmc0";
			gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "mmc0";
			default-state = "off";
		};

		led@4 {
			label = "beaglebone:green:usr2";
			gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "cpu0";
			default-state = "off";
		};

		led@5 {
			label = "beaglebone:green:usr3";
			gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "mmc1";
			default-state = "off";
		};
	};

	vmmcsd_fixed: fixedregulator@0 {
		compatible = "regulator-fixed";
		regulator-name = "vmmcsd_fixed";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};

	wlan_en_reg: fixedregulator@1 {
		compatible = "regulator-fixed";
		regulator-name = "wlan-en-regulator";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;

		/* WLAN_EN GPIO for this board - Bank0, pin26 */
		gpio = <&gpio0 26 0>;

		/* WLAN card specific delay */
		startup-delay-us = <70000>;
		enable-active-high;
	};

	wlcore {
		compatible = "wlcore";
		gpio = <27>; /* Bank0, pin27 */
		platform-quirks = <1>;

		/* if a 12xx card is there, configure the clock to
		   WL12XX_REFCLOCK_38_XTAL */
		board-ref-clock = <4>;
	};

	kim {
		compatible = "kim";
		nshutdown_gpio = <44>; /* Bank1, pin12 */
		dev_name = "/dev/ttyO4";
		flow_cntrl = <1>;
		baud_rate = <3000000>;
	};

	btwilink {
		compatible = "btwilink";
	};
};

&am33xx_pinmux {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&clkout2_pin &mmc2_pins &wlan_pins &uart4_pins_default>;
	pinctrl-1 = <&clkout2_pin &mmc2_pins_sleep &wlan_pins_sleep &uart4_pins_sleep>;

	user_leds_s0: user_leds_s0 {
		pinctrl-single,pins = <
			0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_a5.gpio1_21 */
			0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7)	/* gpmc_a6.gpio1_22 */
			0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_a7.gpio1_23 */
			0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7)	/* gpmc_a8.gpio1_24 */
		>;
	};

	uart4_pins_default: pinmux_uart4_pins_default {
		pinctrl-single,pins = <
			0xD0 (PIN_INPUT | MUX_MODE6)		/* lcd_data12.uart4_cts */
			0xD4 (PIN_OUTPUT_PULLDOWN | MUX_MODE6)	/* lcd_data13.uart4_rts */
			0x70 (PIN_INPUT_PULLUP | MUX_MODE6)	/* gpmc_wait0.uart4_rxd */
			0x74 (PIN_OUTPUT_PULLDOWN | MUX_MODE6)	/* gpmc_wpn.uart4_txd */
		>;
	};

	uart4_pins_sleep: pinmux_uart4_pins_sleep {
		pinctrl-single,pins = <
			0xD0 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_data12.uart4_cts */
			0xD4 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_data13.uart4_rts */
			0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_wait0.uart4_rxd */
			0x74 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_wpn.uart4_txd */
		>;
	};

	i2c0_pins: pinmux_i2c0_pins {
		pinctrl-single,pins = <
			0x188 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_sda.i2c0_sda */
			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_scl.i2c0_scl */
		>;
	};

	uart0_pins: pinmux_uart0_pins {
		pinctrl-single,pins = <
			0x170 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
			0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
		>;
	};

	uart1_pins: pinmux_uart1_pins {
		pinctrl-single,pins = <
			0x180 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart1_rxd.uart1_rxd */
			0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* uart1_txd.uart1_txd */
		>;
	};

	clkout2_pin: pinmux_clkout2_pin {
		pinctrl-single,pins = <
			0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3)	/* xdma_event_intr1.clkout2 */
		>;
	};

	cpsw_default: cpsw_default {
		pinctrl-single,pins = <
			/* Slave 1 */
			0x110 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxerr.mii1_rxerr */
			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* mii1_txen.mii1_txen */
			0x118 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxdv.mii1_rxdv */
			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* mii1_txd3.mii1_txd3 */
			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* mii1_txd2.mii1_txd2 */
			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* mii1_txd1.mii1_txd1 */
			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* mii1_txd0.mii1_txd0 */
			0x12c (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_txclk.mii1_txclk */
			0x130 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxclk.mii1_rxclk */
			0x134 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxd3.mii1_rxd3 */
			0x138 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxd2.mii1_rxd2 */
			0x13c (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxd1.mii1_rxd1 */
			0x140 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mii1_rxd0.mii1_rxd0 */
		>;
	};

	cpsw_sleep: cpsw_sleep {
		pinctrl-single,pins = <
			/* Slave 1 reset value */
			0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
		>;
	};

	davinci_mdio_default: davinci_mdio_default {
		pinctrl-single,pins = <
			/* MDIO */
			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
		>;
	};

	davinci_mdio_sleep: davinci_mdio_sleep {
		pinctrl-single,pins = <
			/* MDIO reset value */
			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
		>;
	};

	mmc1_pins: pinmux_mmc1_pins {
		pinctrl-single,pins = <
			0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
		>;
	};

	mmc2_pins: pinmux_mmc2_pins {
		pinctrl-single,pins = <
			0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
			0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
			0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
			0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
			0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
			0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
		>;
	};

	mmc2_pins_sleep: pinmux_mmc2_pins_sleep {
		pinctrl-single,pins = <
			0x80 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn1.mmc1_clk */
			0x84 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn2.mmc1_cmd */
			0x00 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad0.mmc1_dat0 */
			0x04 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad1.mmc1_dat1 */
			0x08 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad2.mmc1_dat2 */
			0x0c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad3.mmc1_dat3 */
		>;
	};

	/* wl12xx/wl18xx card enable/irq GPIOs. */
	wlan_pins: pinmux_wlan_pins {
		pinctrl-single,pins = <
			0x28 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad10.gpio0_26 WL_EN*/
			0x2C (PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_ad11.gpio0_27 WL_IRQ*/
			0x30 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad12.gpio1_12 BT_EN*/
			0x7C (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* gpmc_csn0.gpio1_29 BF_EN*/
		>;
	};

	/* wl12xx/wl18xx card enable/irq GPIOs. */
	wlan_pins_sleep: pinmux_wlan_pins_sleep {
		pinctrl-single,pins = <
			0x28 (PIN_OUTPUT_PULLUP | MUX_MODE7)	/* gpmc_ad10.gpio0_26 WL_EN*/
			0x2C (PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_ad11.gpio0_27 WL_IRQ*/
			0x30 (PIN_OUTPUT_PULLUP | MUX_MODE7)	/* gpmc_ad12.gpio1_12 BT_EN*/
			0x7C (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* gpmc_csn0.gpio1_29 BF_EN*/
		>;
	};
};

&uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_pins>;

	status = "okay";
};

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pins>;

	status = "okay";
};

&uart4 {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&uart4_pins_default>;
	pinctrl-1 = <&uart4_pins_sleep>;

	status = "okay";
};

&usb {
	status = "okay";

	control@44e10000 {
		status = "okay";
	};

	usb-phy@47401300 {
		status = "okay";
	};

	usb-phy@47401b00 {
		status = "okay";
	};

	usb@47401000 {
		status = "okay";
	};

	usb@47401800 {
		status = "okay";
		dr_mode = "host";
	};

	dma-controller@07402000  {
		status = "okay";
	};
};

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pins>;

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

	tps: tps@24 {
		reg = <0x24>;
	};
};

/include/ "tps65217.dtsi"

&tps {
	regulators {
		dcdc1_reg: regulator@0 {
			regulator-always-on;
		};

		dcdc2_reg: regulator@1 {
			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
			regulator-name = "vdd_mpu";
			regulator-min-microvolt = <925000>;
			regulator-max-microvolt = <1325000>;
			regulator-boot-on;
			regulator-always-on;
		};

		dcdc3_reg: regulator@2 {
			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
			regulator-name = "vdd_core";
			regulator-min-microvolt = <925000>;
			regulator-max-microvolt = <1150000>;
			regulator-boot-on;
			regulator-always-on;
		};

		ldo1_reg: regulator@3 {
			regulator-always-on;
		};

		ldo2_reg: regulator@4 {
			regulator-always-on;
		};

		ldo3_reg: regulator@5 {
			regulator-always-on;
		};

		ldo4_reg: regulator@6 {
			regulator-always-on;
		};
	};
};

&cpsw_emac0 {
	phy_id = <&davinci_mdio>, <0>;
	phy-mode = "mii";
};

&cpsw_emac1 {
	phy_id = <&davinci_mdio>, <1>;
	phy-mode = "mii";
};

&mac {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&cpsw_default>;
	pinctrl-1 = <&cpsw_sleep>;

};

&davinci_mdio {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&davinci_mdio_default>;
	pinctrl-1 = <&davinci_mdio_sleep>;
};

&mmc1 {
	status = "okay";
	bus-width = <0x4>;
	pinctrl-names = "default";
	pinctrl-0 = <&mmc1_pins>;
	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
	cd-inverted;
};

&mmc2 {
	status = "okay";
	vmmc-supply = <&wlan_en_reg>;
	bus-width = <4>;
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&mmc2_pins>;
	pinctrl-1 = <&mmc2_pins_sleep>;
	ti,non-removable;
	ti,needs-special-hs-handling;
	cap-power-off-card;
	keep-power-in-suspend;
};

U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)

I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot:  1  0 
gpio: pin 53 (gpio 53) value is 1
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 0
reading uEnv.txt
519 bytes read in 5 ms (100.6 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
reading zImage
2279784 bytes read in 140 ms (15.5 MiB/s)
reading am335x-boneblack.dtb
19299 bytes read in 8 ms (2.3 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x22c968 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Using Device Tree in place at 88000000, end 88007b62

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.13.7 (tuannh@tuannh-Latitude-3440) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #6 SMP Wed Nov 12 17:12:51 ICT 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x BeagleBone
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 130816
[    0.000000] free_area_init_node: node 0, pgdat c0637b00, node_mem_map c06c3000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130816 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] PERCPU: Embedded 7 pages/cpu @c0acf000 s8000 r8192 d12480 u32768
[    0.000000] pcpu-alloc: s8000 r8192 d12480 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait debug init=/etc/preinit
[    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: 511744K/523264K available (4691K kernel code, 343K rwdata, 1360K rodata, 255K init, 234K bss, 11520K reserved, 0K highmem)
[    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 - 0xc05f0f1c   (6052 kB)
[    0.000000]       .init : 0xc05f1000 - 0xc0630f40   ( 256 kB)
[    0.000000]       .data : 0xc0632000 - 0xc0687d50   ( 344 kB)
[    0.000000]        .bss : 0xc0687d50 - 0xc06c26e0   ( 235 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] RCU restricting CPUs from NR_CPUS=4 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 178956969942ns
[    0.000000] OMAP clocksource: timer1 at 24000000 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000256] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089773] pid_max: default: 32768 minimum: 301
[    0.089909] Mount-cache hash table entries: 512
[    0.094227] CPU: Testing write buffer coherency: ok
[    0.094588] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.094648] Setting up static identity map for 0x80013190 - 0x800131e8
[    0.095437] Brought up 1 CPUs
[    0.095451] SMP: Total of 1 processors activated.
[    0.095460] CPU: All CPU(s) started in SVC mode.
[    0.099092] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.103931] omap_hwmod: tptc0 using broken dt data from edma
[    0.103968] omap_hwmod: tptc1 using broken dt data from edma
[    0.103993] omap_hwmod: tptc2 using broken dt data from edma
[    0.107880] omap_hwmod: debugss: _wait_target_disable failed
[    0.162733] pinctrl core: initialized pinctrl subsystem
[    0.163501] regulator-dummy: no parameters
[    0.164083] NET: Registered protocol family 16
[    0.164562] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.166227] cpuidle: using governor ladder
[    0.166242] cpuidle: using governor menu
[    0.172383] platform 49000000.edma: alias fck already exists
[    0.172409] platform 49000000.edma: alias fck already exists
[    0.172422] platform 49000000.edma: alias fck already exists
[    0.173333] OMAP GPIO hardware version 0.1
[    0.184297] omap_init_mbox: hwmod doesn't have valid attrs
[    0.199298] bio: create slab <bio-0> at 0
[    0.213985] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.214803] vmmcsd_fixed: 3300 mV 
[    0.215254] wlan-en-regulator: 1800 mV 
[    0.218307] usbcore: registered new interface driver usbfs
[    0.218475] usbcore: registered new interface driver hub
[    0.218703] usbcore: registered new device driver usb
[    0.219642] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[    0.219669] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.220710] pps_core: LinuxPPS API ver. 1 registered
[    0.220727] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.220871] PTP clock support registered
[    0.221932] Advanced Linux Sound Architecture Driver Initialized.
[    0.222957] Bluetooth: Core ver 2.17
[    0.223147] NET: Registered protocol family 31
[    0.223159] Bluetooth: HCI device and connection manager initialized
[    0.223180] Bluetooth: HCI socket layer initialized
[    0.223193] Bluetooth: L2CAP socket layer initialized
[    0.223218] Bluetooth: SCO socket layer initialized
[    0.223780] cfg80211: Calling CRDA to update world regulatory domain
[    0.224555] Switched to clocksource timer1
[    0.239592] NET: Registered protocol family 2
[    0.240182] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.240231] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.240291] TCP: Hash tables configured (established 4096 bind 4096)
[    0.240366] TCP: reno registered
[    0.240381] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.240402] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.240632] NET: Registered protocol family 1
[    0.244402] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.244428] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.244893] msgmni has been set to 999
[    0.245862] io scheduler noop registered
[    0.245877] io scheduler deadline registered (default)
[    0.246999] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.249571] /ocp/lcdc@4830e000: could not find display-timings node
[    0.249587] /ocp/lcdc@4830e000: no timings specified
[    0.249601] da8xx_lcdc 4830e000.lcdc: timings not available in DT
[    0.250266] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.251852] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.252115] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[    0.899959] console [ttyO0] enabled
[    0.904279] omap_uart 48022000.serial: no wakeirq for uart0
[    0.910434] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[    0.920945] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already requested by 44e10800.pinmux; cannot claim for 481a8000.serial
[    0.933251] pinctrl-single 44e10800.pinmux: pin-52 (481a8000.serial) status -22
[    0.940942] pinctrl-single 44e10800.pinmux: could not request pin 52 (44e108d0.0) from group pinmux_uart4_pins_default  on device pinctrl-single
[    0.954551] omap_uart 481a8000.serial: Error applying setting, reverse things back
[    0.962557] omap_uart 481a8000.serial: no wakeirq for uart0
[    0.968633] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a OMAP UART4
[    0.979482] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    0.987027] (hci_tty): inside hci_tty_init
[    0.991648] (hci_tty): allocated 249, 0
[    0.999482] usbcore: registered new interface driver rt2500usb
[    1.005921] usbcore: registered new interface driver rt73usb
[    1.012025] usbcore: registered new interface driver rt2800usb
[    1.021124] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.029552] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[    1.040698] musb-hdrc: MHDRC RTL version 2.0 
[    1.045307] musb-hdrc: setup fifo_mode 4
[    1.049431] musb-hdrc: 28/31 max ep, 16384/16384 memory
[    1.055024] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[    1.061077] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[    1.069616] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.076769] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.084346] usb usb1: Product: MUSB HDRC host driver
[    1.089567] usb usb1: Manufacturer: Linux 3.13.7 musb-hcd
[    1.095245] usb usb1: SerialNumber: musb-hdrc.0.auto
[    1.101268] hub 1-0:1.0: USB hub found
[    1.105353] hub 1-0:1.0: 1 port detected
[    1.110777] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.119066] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[    1.130200] musb-hdrc: MHDRC RTL version 2.0 
[    1.134794] musb-hdrc: setup fifo_mode 4
[    1.138914] musb-hdrc: 28/31 max ep, 16384/16384 memory
[    1.144474] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.150544] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[    1.158998] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.166160] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.173737] usb usb2: Product: MUSB HDRC host driver
[    1.178960] usb usb2: Manufacturer: Linux 3.13.7 musb-hcd
[    1.184636] usb usb2: SerialNumber: musb-hdrc.1.auto
[    1.190628] hub 2-0:1.0: USB hub found
[    1.194696] hub 2-0:1.0: 1 port detected
[    1.213128] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.220680] 44e3e000.rtc: already running
[    1.225680] i2c /dev entries driver
[    1.230674] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.239188] Bluetooth: HCI UART driver ver 2.2
[    1.243863] Bluetooth: HCI H4 protocol initialized
[    1.252327] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[    1.259575] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[    1.266850] 48060000.mmc supply vmmc_aux not found, using dummy regulator
[    1.314748] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
[    1.326750] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
[    1.334149] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
[    1.346937] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
[    1.354900] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
[    1.361944] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
[    1.369115] 481d8000.mmc supply vmmc_aux not found, using dummy regulator
[    1.376364] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
[    1.388338] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
[    1.395749] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
[    1.408533] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
[    1.416317] omap_hsmmc 481d8000.mmc: pins are not configured from the driver
[    1.451648] mmc0: host does not support reading read-only switch. assuming write-enable.
[    1.462080] mmc0: new high speed SDHC card at address b368
[    1.468391] isa bounce pool size: 16 pages
[    1.472805] mmcblk0: mmc0:b368 SMI   3.75 GiB 
[    1.479255]  mmcblk0: p1 p2 p3
[    1.539960] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
[    1.553775] TCP: cubic registered
[    1.557360] NET: Registered protocol family 17
[    1.562128] 8021q: 802.1Q VLAN Support v1.8
[    1.567436] Registering SWP/SWPB emulation handler
[    1.576439] DCDC1: at 1500 mV 
[    1.580640] vdd_mpu: 925 <--> 1325 mV at 1325 mV 
[    1.587121] vdd_core: 925 <--> 1150 mV at 1125 mV 
[    1.593259] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[    1.599193] LDO1: at 1800 mV 
[    1.603428] LDO2: at 3300 mV 
[    1.607293] mmc1: new high speed SDIO card at address 0001
[    1.615198] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/3.13.7/ti-connectivity/wl1271-nvs.bin
[    1.625421] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/ti-connectivity/wl1271-nvs.bin
[    1.634946] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/3.13.7/ti-connectivity/wl1271-nvs.bin
[    1.644355] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/ti-connectivity/wl1271-nvs.bin
[    1.653142] wl18xx_driver wl18xx.2.auto: Direct firmware load failed with error -2
[    1.661097] wl18xx_driver wl18xx.2.auto: Falling back to user helper
[    1.667929] LDO3: 1800 mV 
[    1.671833] LDO4: at 3300 mV 
[    1.675757] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.681821] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.744574] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    1.750983] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    1.758147] libphy: 4a101000.mdio: probed
[    1.762362] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
[    1.771441] Detected MACID = 78:a5:04:dd:0b:e8
[    1.777961] omap_rtc 44e3e000.rtc: setting system clock to 2014-11-12 10:28:49 UTC (1415788129)
[    1.787313] ALSA device list:
[    1.790426]   No soundcards found.
[    1.797798] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.805570] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.824329] EXT4-fs (mmcblk0p2): recovery complete
[    1.897568] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.906145] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.913617] Freeing unused kernel memory: 252K (c05f1000 - c0630000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
[    2.150544] random: mktemp urandom read with 32 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
mounting /dev/root
[    5.284003] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[    7.596954] NET: Registered protocol family 10
[    7.606706] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.626316] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.638172] nf_conntrack version 0.5.0 (7999 buckets, 31996 max)
[    7.664918] xt_time: kernel timezone is -0000
[    7.676057] PPP generic driver version 2.4.2
[    7.682466] NET: Registered protocol family 24
[    9.891631] net eth0: initializing cpsw version 1.12 (0)
[    9.899114] net eth0: phy found : id is : 0x7c0f1
[    9.904132] libphy: PHY 4a101000.mdio:01 not found
[    9.909228] net eth0: phy 4a101000.mdio:01 not found on slave 1
[    9.925951] 8021q: adding VLAN 0 to HW filter on device eth0
[    9.931996] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
procd: - init complete -
[   11.133022] random: nonblocking pool is initialized
[   11.895220] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[   11.901299] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready



BusyBox v1.22.1 (2014-11-12 13:01:30 ICT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|@5R}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}5R}}J*b*2**"zjHj(SSQ(Bleeding Edge, unknown)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:/# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
/bin/ash: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: not found
root@OpenWrt:/# [   61.765533] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/3.13.7/ti-connectivity/wl18xx-conf.bin
[   61.777322] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/ti-connectivity/wl18xx-conf.bin
[   61.787001] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/3.13.7/ti-connectivity/wl18xx-conf.bin
[   61.796545] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/ti-connectivity/wl18xx-conf.bin
[   61.807715] wl18xx_driver wl18xx.2.auto:  rc = 0
[   62.045525] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[   62.070998] wlcore: loaded

root@OpenWrt:/# 
root@OpenWrt:/# 
root@OpenWrt:/# ls lib
root@OpenWrt:/# ls lib/fi
root@OpenWrt:/# ls lib/firmware/ti-con
root@OpenWrt:/# ls lib/firmware/ti-connectivity/ | grep wl1271-nvs.bin
wl1271-nvs.bin
root@OpenWrt:/# 

Thank you for your time and help.

Regards,

Tuan Nguyen

  • Hi,

    Have you had a chance to check if the prebuilt images work fine on your BBB - the prebuilt images are available in the same wiki that you mentioned.

    About the errors:

    1. "already requested by..." --> Possibly you picked a pin that's already in use
    2. "wl1271-nvs.bin" -> I am not familiar with this, but its probably related to udev (either it is not starting or it has set another folder as the "firmware" directory and not "/lib/firmware/")

    Regards,
    Gigi Joseph.

  • Hi,

    I have not try it, but i found this page: http://e2e.ti.com/support/wireless_connectivity/f/307/p/369363/1300763.aspx

    i saw that log, its same with my log, like this:

    [    0.457008] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already requested by 44e10800.pinmux; cannot claim for 481a8000.serial
    [    0.469379] pinctrl-single 44e10800.pinmux: pin-52 (481a8000.serial) status -22
    [    0.477123] pinctrl-single 44e10800.pinmux: could not request pin 52 (44e108d0.0) from group pinmux_uart4_pins_default  on device pinctrl-single
    [    0.490825] omap_uart 481a8000.serial: Error applying setting, reverse things back 

    that page said i need to put the file "wl1271-nvs.bin" and "wl18xx-conf.bin" in /lib/firmware to remove countdown, but it did not work with me.

    About the error:

    1) "already requested by "

    my code referred on WL8 Device tree support for BeagleBone

    &am33xx_pinmux {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&clkout2_pin &mmc2_pins &wlan_pins &uart4_pins_default>;
    	pinctrl-1 = <&clkout2_pin &mmc2_pins_sleep &wlan_pins_sleep &uart4_pins_sleep>;
            }
    
    &uart4 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart4_pins_default>;
    	pinctrl-1 = <&uart4_pins_sleep>;
    	status = "okay";
           };
    
    &mmc2 {
    	status = "okay";
    	vmmc-supply = <&wlan_en_reg>;
    	bus-width = <4>;
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&mmc2_pins>;
    	pinctrl-1 = <&mmc2_pins_sleep>;
    	ti,non-removable;
    	ti,needs-special-hs-handling;
    	cap-power-off-card;
    	keep-power-in-suspend;
          };
    

    i found out that "am33xx_pinmux" used "&mmc2_pins &wlan_pins &uart4_pins_default" and the "uart4 mmc2" still used that pin. i tried to remove the pin in "am33xx_pinmux" like this "pinctrl-0 = <&clkout2_pin>", all error disappeared, but wl18xx did not work.

    2) wl1271-nvs.bin

    i modified to show more log in file /drivers/base/firmware_class.c

    for (i = 0; i < ARRAY_SIZE(fw_path); i++) {
    		struct file *file;
    
    		/* skip the unset customized path */
    		if (!fw_path[i][0])
    			continue;
    
    		snprintf(path, PATH_MAX, "%s/%s", fw_path[i], buf->fw_id);
    		dev_warn(device, " path %s\n",path); /////// add log
    		file = filp_open(path, O_RDONLY, 0);
    		if (IS_ERR(file))
    			continue;
    		rc = fw_read_file_contents(file, buf);
    		dev_warn(device, " rc = %d\n",rc);   //////// add log
    		fput(file);
    		if (rc)
    			dev_warn(device, "firmware, attempted to load %s, but failed with error %d\n",
    				path, rc);
    		else
    			break;
    	}

    then i has the log:

    [    1.615198] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/3.13.7/ti-connectivity/wl1271-nvs.bin
    [    1.625421] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/updates/ti-connectivity/wl1271-nvs.bin
    [    1.634946] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/3.13.7/ti-connectivity/wl1271-nvs.bin
    [    1.644355] wl18xx_driver wl18xx.2.auto:  path /lib/firmware/ti-connectivity/wl1271-nvs.bin
    [    1.653142] wl18xx_driver wl18xx.2.auto: Direct firmware load failed with error -2
    [    1.661097] wl18xx_driver wl18xx.2.auto: Falling back to user helper

    it means system tried to read file in "/lib/firmware/ti-connectivity/wl1271-nvs.bin" and check "is_err(file)" and continues.

    i dont know why? that file wl1271-nvs.bin got any problem ?

  • Hi,

    Error: -2 , I think means "No such file or directory".
    This means the file doesn't exist in the location. Could it be that the "/lib/firmware/ti-connectivity/wl1271-nvs.bin" in your location is a symbolic link, and it does not point to a valid file?

    Regards,
    Gigi Joseph.

  • Hi,

    i have solution for "Error:2", because module wl18xx build-in with kernel and be loaded to fast before root file system then coundn't find driver.

    Now i got problem with wpa_supplicant, it said "wlan0: unsupported driver nl80211", could you know what exactly kernel config for this bug?

    Thanks for your time and help.

  • Hi,

    CONFIG_DRIVER_NL80211 in hostapd/wpa_supplicant 's defconfig file. If you are using the TI build script as is, then it should be enabled by default.

    Regards,
    Gigi Joseph.

  • Hi Gigi Joseph, 

    Thanks for your help, i found that config "DRIVER_11N_SUPPORT", now it work well.

    could you have any solution for error 1 conflict pin.

    i am trying to test bluetooth follow that link:  http://processors.wiki.ti.com/index.php/WiLink8_Bluetooth_Demo:_Linux-Stonestreet_One but it haven't built for openwrt.

    i tried this http://processors.wiki.ti.com/index.php/Bluetooth:_Stonestreet_One_Build_Process
     but it still couldn't build for openwrt. How could i test bluetooth in openwrt.

    thanks.

  • Hi,

    From the software point below are the steps you need to follow for bringing up Bluetooth on Am335x+WL18xx:

    Please see http://processors.wiki.ti.com/index.php?title=WL18xx_AMxxx_platform_integration_guide 

    Get the am335x-evm-sdk-src-07.00.00.00.tar.gz and am335x-evm-sdk-bin-07.00.00.00.tar.gz fromhttp://software-dl.ti.com/sitara_linux/esd/AM335xSDK/latest/index_FDS.html, link to this is provided in the previous link.

    extract the src and applied the patches and built with the Cross compiler (arm-linux-gnueabihf-), you can get the cross compiler from the above link or even if you install the "install.bin", you will have it at location "ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/"

    and once the kernel is built you can copy the .dtb and ZImage to the boot partition. after extracting the bin folder,You will see the file system directly which you can copy to ROOTFS (file-system) partition. UIM is already part of this file-system.

    Install the Bluetopia SDK on your PC, and just copy the executables from "BluetopiaPM/bin" of your PC to "/home/root/ss1" of the file-system.

  • Hi

    Thank you for your help,

    I tried that guide and now wlan0 works well, so I want to test Bluetooth module, I need application run on openwrt to test Bluetooth, can I run "BluetopiaPM/bin" on openwrt, can I rebuild Bluetopia?

    Can I use "bluez" tool to control bluetooth module? Could you send me a dmesg log when bluetooth was enable success? I didn't see any things about bluetooth device information when board start up.

    Thanks

    Tuan Nguyen

  • Hi,

    You can not build the Bluetopia Core library's. as the Core stack is provide as library's (without the source). So I am not sure if the default library's will works with opemwrt. I have not tried it myself.

    See the demo page on how to run the Bluetopia executable on Linux  http://processors.wiki.ti.com/index.php/WL18xx_Bluetopia_Platform_Manager_Demo_Guide

    See how the turn on looks like 

    am335x-evm login: root
    root@am335x-evm:~# cd ss1/
    root@am335x-evm:~/ss1# ./SS1BTPM &
    [1] 1580
    root@am335x-evm:~/ss1# ./LinuxAUDM
    
    ************************************************************************
    * 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)AUDRegisterAudioEndPoint                         *
    *                  34)AUDUnRegisterAudioEndPoint                       *
    *                  35)AUDRegisterRemoteControl                         *
    *                  36)AUDUnRegisterRemoteControl                       *
    *                  37)AUDConnectAudio                                  *
    *                  38)AUDDisconnectAudio                               *
    *                  39)AUDConnectionRequestResponse                     *
    *                  40)AUDChangeIncomingFlags                           *
    *                  41)AUDPlayWAV                                       *
    *                  42)AUDGetStreamStatus                               *
    *                  43)AUDQueryStreamConnected                          *
    *                  44)AUDQueryStreamState                              *
    *                  45)AUDSetStreamState                                *
    *                  46)AUDQueryStreamFormat                             *
    *                  47)AUDSetStreamFormat                               *
    *                  48)AUDQueryStreamConfiguration                      *
    *                  49)AUDSendRemoteControlPassThroughCommand           *
    *                  50)AUDConnectRemoteControl                          *
    *                  51)AUDDisconnectRemoteControl                       *
    *                  52)AUDQueryConnectedRemoteControls                  *
    *                  53)AUDSendRemoteControlGetCapabilitiesCommand       *
    *                  54)AUDSendRemoteControlSetAbsoluteVolumeCommand     *
    *                  55)AUDSendRemoteControlRegisterNotificationCommand  *
    *                  56)AUDSendRemoteControlRegisterNotificationResponse *
    *                  57)AUDSendRemoteControlGetTrackInformationCommand   *
    *                  58)AUDSendRemoteControlGetPlayStatusCommand         *
    *                  Help, Quit.                                         *
    ************************************************************************
    AUDM>1 1
    
    BTPM_Initialize() Success: 0.
    DEVM_RegisterEventCallback() Success: 5.
    AUDM>AUDRegisterAudioEndPoint
    
    Usage: AUDRegisterAudioEndPoint [Local Stream Type (0 = Source, 1 = Sink)].
    Function Error.
    AUDM>AUDRegisterAudioEndPoint 0
    
    AUDM_Register_Data_Event_Callback() Success: 1.
    Audio Source Callback Registered.
    AUDM>9 1
    
    [  190.608441] (hci_tty): inside hci_tty_open (dd2814b0, dd3ad8c0)
    [  190.614735] (stc):  chnl_id list empty :4
    [  190.618951] (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from install
    
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttyO1
    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
    [  190.782011] (stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    (stk) :line discipline installeduim:Installed N_TI_WL Line displine
    [  190.796243] (stk) :TIInit_11.8.32.bts
    uim:begin polling...
    (stk) :change remote baud rate command in firmware
    [  190.816228] (stk) :skipping the wait event of change remote baud(stk) :sleep command in scr
    [  191.510834] (stk) :sleep command in scr[  192.457033] (stc): add_channel_to_table: id 4
    [  192.461691] (stc): add_channel_to_table: id 2
    [  192.466293] (stc): add_channel_to_table: id 3
    DEVM_PowerOnDevice() Success: 0.
    AUDM>
    Device Powered On.
    

    You can use "hciconfig  hci0 up" to turn on Bluetooth. You need to build BlueZ to use it. you can get the scripts from the below link and build it using "wl18xx_build_bt.sh all build"  http://processors.wiki.ti.com/index.php/Open_Source_Wireless_Connectivity_WiLink8_Build_scripts#Connectivity_build_script

    Note : Before staring the build disable the uim and bt-modules from the "function all()" in the "wl18xx_build_bt.sh" script, not required for SDK7

  • Hi,

    i got that bug:

    [   30.267028] hdev df2f3000
    [   30.270684] HCI device registered (hdev df2f3000)
    [   30.279066] hci0 df2f3000
    [   30.281841] (stc):  chnl_id list empty :4 
    [   30.285953] (stk) : st_kim_start(stk) :ldisc_install = 1root@OpenWrt:/# 
    [   31.386996] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   32.386852] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   33.496864] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   34.496843] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   35.606861] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   36.606863] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   37.716992] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   38.716857] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   39.826843] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   40.826848] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   41.937331] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   42.937352] (stk) : timed out waiting for ldisc to be un-installed[   42.945854] Bluetooth: st_register failed -22
    [   42.950513] hci0 df2f3000
    [   42.953265] (stc):  chnl_id list empty :4 
    [   42.957399] (stk) : st_kim_start(stk) :ldisc_install = 1
    [   44.066859] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   45.066920] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   46.176858] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   47.176991] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   48.286863] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   49.286920] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   50.396851] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   51.396895] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   52.506857] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   53.506862] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   54.616971] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   55.616848] (stk) : timed out waiting for ldisc to be un-installed[   55.625342] Bluetooth: st_register failed -22

    could you give me a solution.

    Here is my dmesg.

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.11.20 15:22:56 =~=~=~=~=~=~=~=~=~=~=~=
    
    U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - readenv() failed, using default environment
    
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  1  0 
    gpio: pin 53 (gpio 53) value is 1
    mmc0 is current device
    gpio: pin 54 (gpio 54) value is 1
    SD/MMC found on device 0
    reading uEnv.txt
    519 bytes read in 5 ms (100.6 KiB/s)
    gpio: pin 55 (gpio 55) value is 1
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Checking if uenvcmd is set ...
    gpio: pin 56 (gpio 56) value is 1
    Running uenvcmd ...
    reading zImage
    1913632 bytes read in 118 ms (15.5 MiB/s)
    reading am335x-boneblack.dtb
    19299 bytes read in 9 ms (2 MiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x1d3320 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Using Device Tree in place at 88000000, end 88007b62
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.13.7 (tuannh@tuannh-Latitude-3440) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Thu Nov 20 14:46:49 ICT 2014
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: TI AM335x BeagleBone
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] On node 0 totalpages: 130816
    [    0.000000] free_area_init_node: node 0, pgdat c0531ac0, node_mem_map c05b8000
    [    0.000000]   Normal zone: 1024 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 130816 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon )
    [    0.000000] PERCPU: Embedded 7 pages/cpu @c09c4000 s8000 r8192 d12480 u32768
    [    0.000000] pcpu-alloc: s8000 r8192 d12480 u32768 alloc=8*4096
    [    0.000000] pcpu-alloc: [0] 0 
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait debug init=/etc/preinit
    [    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: 512812K/523264K available (3847K kernel code, 324K rwdata, 1160K rodata, 251K init, 231K bss, 10452K reserved, 0K highmem)
    [    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 - 0xc04ebf1c   (5008 kB)
    [    0.000000]       .init : 0xc04ec000 - 0xc052af40   ( 252 kB)
    [    0.000000]       .data : 0xc052c000 - 0xc057d2e8   ( 325 kB)
    [    0.000000]        .bss : 0xc057d2e8 - 0xc05b71f8   ( 232 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] RCU restricting CPUs from NR_CPUS=4 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 178956969942ns
    [    0.000000] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000253] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089782] pid_max: default: 32768 minimum: 301
    [    0.089914] Mount-cache hash table entries: 512
    [    0.094224] CPU: Testing write buffer coherency: ok
    [    0.094595] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.094653] Setting up static identity map for 0x80013120 - 0x80013178
    [    0.095445] Brought up 1 CPUs
    [    0.095457] SMP: Total of 1 processors activated.
    [    0.095466] CPU: All CPU(s) started in SVC mode.
    [    0.099038] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.103921] omap_hwmod: tptc0 using broken dt data from edma
    [    0.103957] omap_hwmod: tptc1 using broken dt data from edma
    [    0.103982] omap_hwmod: tptc2 using broken dt data from edma
    [    0.107875] omap_hwmod: debugss: _wait_target_disable failed
    [    0.162760] pinctrl core: initialized pinctrl subsystem
    [    0.163542] regulator-dummy: no parameters
    [    0.164139] NET: Registered protocol family 16
    [    0.164588] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.166256] cpuidle: using governor ladder
    [    0.166273] cpuidle: using governor menu
    [    0.172391] platform 49000000.edma: alias fck already exists
    [    0.172415] platform 49000000.edma: alias fck already exists
    [    0.172428] platform 49000000.edma: alias fck already exists
    [    0.173326] OMAP GPIO hardware version 0.1
    [    0.184277] omap_init_mbox: hwmod doesn't have valid attrs
    [    0.195022] bio: create slab <bio-0> at 0
    [    0.209011] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.210464] vmmcsd_fixed: 3300 mV 
    [    0.211054] wlan-en-regulator: 1800 mV 
    [    0.214097] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.214130] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.214486] pps_core: LinuxPPS API ver. 1 registered
    [    0.214497] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.214623] PTP clock support registered
    [    0.215685] Advanced Linux Sound Architecture Driver Initialized.
    [    0.216836] Switched to clocksource timer1
    [    0.231982] NET: Registered protocol family 2
    [    0.232567] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.232617] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.232677] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.232756] TCP: reno registered
    [    0.232770] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.232790] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.233016] NET: Registered protocol family 1
    [    0.236761] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.236784] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.237247] msgmni has been set to 1001
    [    0.238269] io scheduler noop registered
    [    0.238284] io scheduler deadline registered (default)
    [    0.239392] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.241983] /ocp/lcdc@4830e000: could not find display-timings node
    [    0.241995] /ocp/lcdc@4830e000: no timings specified
    [    0.242009] da8xx_lcdc 4830e000.lcdc: timings not available in DT
    [    0.242679] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
    [    0.244235] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.244498] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    0.838597] console [ttyO0] enabled
    [    0.842903] omap_uart 48022000.serial: no wakeirq for uart0
    [    0.849356] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    0.859581] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already requested by 44e10800.pinmux; cannot claim for 481a8000.serial
    [    0.871882] pinctrl-single 44e10800.pinmux: pin-52 (481a8000.serial) status -22
    [    0.879577] pinctrl-single 44e10800.pinmux: could not request pin 52 (44e108d0.0) from group pinmux_uart4_pins_default  on device pinctrl-single
    [    0.893189] omap_uart 481a8000.serial: Error applying setting, reverse things back
    [    0.901207] omap_uart 481a8000.serial: no wakeirq for uart0
    [    0.907281] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a OMAP UART4
    [    0.918084] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    0.925583] (stk) :sysfs entries created
    [    0.929814] (stk) : debugfs entries created 
    [    0.934311] (hci_tty): inside hci_tty_init
    [    0.939199] (hci_tty): allocated 249, 0
    [    0.948437] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    0.955884] 44e3e000.rtc: already running
    [    0.961113] i2c /dev entries driver
    [    0.966094] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    0.974736] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    0.981988] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    0.989275] 48060000.mmc supply vmmc_aux not found, using dummy regulator
    [    1.036997] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
    [    1.048999] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
    [    1.056395] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
    [    1.069184] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
    [    1.077132] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
    [    1.084173] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
    [    1.091343] 481d8000.mmc supply vmmc_aux not found, using dummy regulator
    [    1.098595] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
    [    1.110571] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
    [    1.117983] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
    [    1.130767] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
    [    1.138551] omap_hsmmc 481d8000.mmc: pins are not configured from the driver
    [    1.173923] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    1.184354] mmc0: new high speed SDHC card at address b368
    [    1.190660] isa bounce pool size: 16 pages
    [    1.195081] mmcblk0: mmc0:b368 SMI   3.75 GiB 
    [    1.201358]  mmcblk0: p1 p2 p3
    [    1.262120] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [    1.275763] TCP: cubic registered
    [    1.279361] NET: Registered protocol family 17
    [    1.284124] 8021q: 802.1Q VLAN Support v1.8
    [    1.288569] lib80211: common routines for IEEE802.11 drivers
    [    1.294506] lib80211_crypt: registered algorithm 'NULL'
    [    1.300020] lib80211_crypt: registered algorithm 'WEP'
    [    1.305409] lib80211_crypt: registered algorithm 'CCMP'
    [    1.310903] lib80211_crypt: registered algorithm 'TKIP'
    [    1.317332] Registering SWP/SWPB emulation handler
    [    1.325827] DCDC1: at 1500 mV 
    [    1.330504] vdd_mpu: 925 <--> 1325 mV at 1325 mV 
    [    1.336388] vdd_core: 925 <--> 1150 mV at 1125 mV 
    [    1.342591] LDO1: at 1800 mV 
    [    1.346664] LDO2: at 3300 mV 
    [    1.351367] LDO3: 1800 mV 
    [    1.354965] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.361073] LDO4: at 3300 mV 
    [    1.365036] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.371291] mmc1: new high speed SDIO card at address 0001
    [    1.377415] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.446850] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.453258] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.460413] libphy: 4a101000.mdio: probed
    [    1.464629] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
    [    1.473703] Detected MACID = 78:a5:04:dd:0b:e8
    [    1.480221] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 01:20:42 UTC (946689642)
    [    1.489474] ALSA device list:
    [    1.492585]   No soundcards found.
    [    1.499977] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    1.507748] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    1.544194] EXT4-fs (mmcblk0p2): recovery complete
    [    1.566961] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.575517] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.582951] Freeing unused kernel memory: 248K (c04ec000 - c052a000)
    procd: Console is alive
    procd: - watchdog -
    [    1.891434] usbcore: registered new interface driver usbfs
    [    1.897527] usbcore: registered new interface driver hub
    [    1.903325] usbcore: registered new device driver usb
    procd: - preinit -
    [    1.956405] random: mktemp urandom read with 29 bits of entropy available
    Press the [f] key and hit [enter] to enter failsafe mode
    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
    mounting /dev/root
    [    5.025772] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    procd: - early -
    procd: - watchdog -
    procd: - ubus -
    procd: - init -
    Please press Enter to activate this console.
    [    7.373414] NET: Registered protocol family 10
    [    7.383468] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [    7.399852] hidraw: raw HID events driver (C) Jiri Kosina
    [    7.425299] Bluetooth: Core ver 2.17
    [    7.429616] NET: Registered protocol family 31
    [    7.434284] Bluetooth: HCI device and connection manager initialized
    [    7.441049] Bluetooth: HCI socket layer initialized
    [    7.446172] Bluetooth: L2CAP socket layer initialized
    [    7.451547] Bluetooth: SCO socket layer initialized
    [    7.458126] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    7.463713] Bluetooth: BNEP filters: protocol multicast
    [    7.469312] Bluetooth: BNEP socket layer initialized
    [    7.476307] usbcore: registered new interface driver btusb
    [    7.497319] cfg80211: Calling CRDA to update world regulatory domain
    [    7.515925] Bluetooth: HCI UART driver ver 2.2
    [    7.520737] Bluetooth: HCI H4 protocol initialized
    [    7.525763] Bluetooth: HCI BCSP protocol initialized
    [    7.532599] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    7.538957] Bluetooth: HIDP socket layer initialized
    [    7.545622] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    7.573325] nf_conntrack version 0.5.0 (8016 buckets, 32064 max)
    [    7.591059] Bluetooth: RFCOMM TTY layer initialized
    [    7.596240] Bluetooth: RFCOMM socket layer initialized
    [    7.601768] Bluetooth: RFCOMM ver 1.11
    [    7.641418] xt_time: kernel timezone is -0000
    [    7.652842] PPP generic driver version 2.4.2
    [    7.659466] NET: Registered protocol family 24
    [    7.917546] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [    7.942176] wlcore: loaded
    [    9.884598] net eth0: initializing cpsw version 1.12 (0)
    [    9.892071] net eth0: phy found : id is : 0x7c0f1
    [    9.897139] libphy: PHY 4a101000.mdio:01 not found
    [    9.902168] net eth0: phy 4a101000.mdio:01 not found on slave 1
    [    9.921609] 8021q: adding VLAN 0 to HW filter on device eth0
    [    9.927691] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    procd: - init complete -
    
    
    
    BusyBox v1.22.1 (2014-11-19 15:47:55 ICT) built-[   19.536371] random: nonblocking pool is initialized
    in shell (ash)
    Enter 'help' for a list of built-in commands.
    
      _______                     ________        __
     |       |.-----.-----.-----.|  |  |  |.----.|  |_
     |   -   ||  _  |  -__|     ||  |  |  ||   _}}}}}}}5R}}J*b*2**"zjHj(SSQ(Bleeding Edge, unknown)
     -----------------------------------------------------
      * 1 1/2 oz Gin            Shake with a glassful
      * 1/4 oz Triple Sec       of broken ice and pour
      * 3/4 oz Lime Juice       unstrained into a goblet.
      * 1 1/2 oz Orange Juice
      * 1 tsp. Grenadine Syrup
     -----------------------------------------------------
    root@OpenWrt:/# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
    /bin/ash: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: not found
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# modprobe wbewitwilkinlink
    [   30.267028] hdev df2f3000
    [   30.270684] HCI device registered (hdev df2f3000)
    [   30.279066] hci0 df2f3000
    [   30.281841] (stc):  chnl_id list empty :4 
    [   30.285953] (stk) : st_kim_start(stk) :ldisc_install = 1root@OpenWrt:/# 
    [   31.386996] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   32.386852] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   33.496864] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   34.496843] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   35.606861] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   36.606863] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   37.716992] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   38.716857] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   39.826843] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   40.826848] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   41.937331] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   42.937352] (stk) : timed out waiting for ldisc to be un-installed[   42.945854] Bluetooth: st_register failed -22
    [   42.950513] hci0 df2f3000
    [   42.953265] (stc):  chnl_id list empty :4 
    [   42.957399] (stk) : st_kim_start(stk) :ldisc_install = 1
    [   44.066859] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   45.066920] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   46.176858] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   47.176991] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   48.286863] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   49.286920] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   50.396851] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   51.396895] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   52.506857] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   53.506862] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   54.616971] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   55.616848] (stk) : timed out waiting for ldisc to be un-installed[   55.625342] Bluetooth: st_register failed -22
    
    root@OpenWrt:/# ls li
    root@OpenWrt:/# ls lib/fi
    root@OpenWrt:/# ls lib/firmware/
    TIInit_10.6.15.bts              TIInit_12.8.32.bts
    TIInit_11.8.32.bts              TIInit_7.2.31.bts
    TIInit_12.10.28.bts             TIInit_7.6.15.bts
    TIInit_12.8.32-amsdk-slave.bts  ti-connectivity
    root@OpenWrt:/# 

    Thanks

  • Hi,

    Have you applied the below patches.

    as from the logs it looks like the TTY is unavailing.  

  • Hi,

    Yes, I have applied

    now i can see hci0 but it show "Bluetooth: st_register failed -22", i got new log in my last port.


    Thanks

  • Hi,

    I hope the UIM is running?

    looks like your GPIO is not toggled correctly.

    Also probe the UART lines(Rx, Tx, RTS and CTS ) to make sure that the UART configuration is correct.  

    Also check if you have done the software configuration correctly in the DTS file with respect to the UART you are using.

    Could you provide the kernel and user space logs.

  • Hi,

    Do we need to run UIM with bluetooth module?

    this is my DTS config ( you can see more detail in #1).

    	kim {
    		compatible = "kim";
    		nshutdown_gpio = <44>; /* Bank1, pin12 */
    		dev_name = "/dev/ttyO4";
    		flow_cntrl = <1>;
    		baud_rate = <3000000>;
    	};
    
    	btwilink {
    		compatible = "btwilink";
    	};
    
    	uart4_pins_default: pinmux_uart4_pins_default {
    		pinctrl-single,pins = <
    			0xD0 (PIN_INPUT | MUX_MODE6)		/* lcd_data12.uart4_cts */
    			0xD4 (PIN_OUTPUT_PULLDOWN | MUX_MODE6)	/* lcd_data13.uart4_rts */
    			0x70 (PIN_INPUT_PULLUP | MUX_MODE6)	/* gpmc_wait0.uart4_rxd */
    			0x74 (PIN_OUTPUT_PULLDOWN | MUX_MODE6)	/* gpmc_wpn.uart4_txd */
    		>;
    	};
    
    	uart4_pins_sleep: pinmux_uart4_pins_sleep {
    		pinctrl-single,pins = <
    			0xD0 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_data12.uart4_cts */
    			0xD4 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_data13.uart4_rts */
    			0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_wait0.uart4_rxd */
    			0x74 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_wpn.uart4_txd */
    		>;
    	};
    	/* wl12xx/wl18xx card enable/irq GPIOs. */
    	wlan_pins: pinmux_wlan_pins {
    		pinctrl-single,pins = <
    			0x28 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad10.gpio0_26 WL_EN*/
    			0x2C (PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_ad11.gpio0_27 WL_IRQ*/
    			0x30 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad12.gpio1_12 BT_EN*/
    			0x7C (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* gpmc_csn0.gpio1_29 BF_EN*/
    		>;
    	};
    
    	/* wl12xx/wl18xx card enable/irq GPIOs. */
    	wlan_pins_sleep: pinmux_wlan_pins_sleep {
    		pinctrl-single,pins = <
    			0x28 (PIN_OUTPUT_PULLUP | MUX_MODE7)	/* gpmc_ad10.gpio0_26 WL_EN*/
    			0x2C (PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_ad11.gpio0_27 WL_IRQ*/
    			0x30 (PIN_OUTPUT_PULLUP | MUX_MODE7)	/* gpmc_ad12.gpio1_12 BT_EN*/
    			0x7C (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* gpmc_csn0.gpio1_29 BF_EN*/
    		>;
    	};

    and this is log file:

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.11.20 17:05:15 =~=~=~=~=~=~=~=~=~=~=~=
    
    
    U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - readenv() failed, using default environment
    
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  1  0 
    gpio: pin 53 (gpio 53) value is 1
    mmc0 is current device
    gpio: pin 54 (gpio 54) value is 1
    SD/MMC found on device 0
    reading uEnv.txt
    519 bytes read in 6 ms (84 KiB/s)
    gpio: pin 55 (gpio 55) value is 1
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Checking if uenvcmd is set ...
    gpio: pin 56 (gpio 56) value is 1
    Running uenvcmd ...
    reading zImage
    1913680 bytes read in 118 ms (15.5 MiB/s)
    reading am335x-boneblack.dtb
    19299 bytes read in 8 ms (2.3 MiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x1d3350 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Using Device Tree in place at 88000000, end 88007b62
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.13.7 (tuannh@tuannh-Latitude-3440) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Thu Nov 20 16:58:16 ICT 2014
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: TI AM335x BeagleBone
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] On node 0 totalpages: 130816
    [    0.000000] free_area_init_node: node 0, pgdat c0531ac0, node_mem_map c05b8000
    [    0.000000]   Normal zone: 1024 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 130816 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon )
    [    0.000000] PERCPU: Embedded 7 pages/cpu @c09c4000 s8000 r8192 d12480 u32768
    [    0.000000] pcpu-alloc: s8000 r8192 d12480 u32768 alloc=8*4096
    [    0.000000] pcpu-alloc: [0] 0 
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait debug init=/etc/preinit
    [    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: 512812K/523264K available (3847K kernel code, 324K rwdata, 1160K rodata, 251K init, 231K bss, 10452K reserved, 0K highmem)
    [    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 - 0xc04ebf1c   (5008 kB)
    [    0.000000]       .init : 0xc04ec000 - 0xc052af40   ( 252 kB)
    [    0.000000]       .data : 0xc052c000 - 0xc057d2e8   ( 325 kB)
    [    0.000000]        .bss : 0xc057d2e8 - 0xc05b71f8   ( 232 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] RCU restricting CPUs from NR_CPUS=4 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 178956969942ns
    [    0.000000] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000250] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089776] pid_max: default: 32768 minimum: 301
    [    0.089910] Mount-cache hash table entries: 512
    [    0.094217] CPU: Testing write buffer coherency: ok
    [    0.094586] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.094645] Setting up static identity map for 0x80013120 - 0x80013178
    [    0.095423] Brought up 1 CPUs
    [    0.095435] SMP: Total of 1 processors activated.
    [    0.095443] CPU: All CPU(s) started in SVC mode.
    [    0.098989] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.103872] omap_hwmod: tptc0 using broken dt data from edma
    [    0.103909] omap_hwmod: tptc1 using broken dt data from edma
    [    0.103935] omap_hwmod: tptc2 using broken dt data from edma
    [    0.107831] omap_hwmod: debugss: _wait_target_disable failed
    [    0.162686] pinctrl core: initialized pinctrl subsystem
    [    0.163471] regulator-dummy: no parameters
    [    0.164057] NET: Registered protocol family 16
    [    0.164511] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.166187] cpuidle: using governor ladder
    [    0.166203] cpuidle: using governor menu
    [    0.172345] platform 49000000.edma: alias fck already exists
    [    0.172368] platform 49000000.edma: alias fck already exists
    [    0.172381] platform 49000000.edma: alias fck already exists
    [    0.173283] OMAP GPIO hardware version 0.1
    [    0.184208] omap_init_mbox: hwmod doesn't have valid attrs
    [    0.194896] bio: create slab <bio-0> at 0
    [    0.208869] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.209679] vmmcsd_fixed: 3300 mV 
    [    0.210878] wlan-en-regulator: 1800 mV 
    [    0.213927] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.213958] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.214317] pps_core: LinuxPPS API ver. 1 registered
    [    0.214328] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.214453] PTP clock support registered
    [    0.215506] Advanced Linux Sound Architecture Driver Initialized.
    [    0.216653] Switched to clocksource timer1
    [    0.231828] NET: Registered protocol family 2
    [    0.232413] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.232461] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.232522] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.232599] TCP: reno registered
    [    0.232613] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.232633] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.232860] NET: Registered protocol family 1
    [    0.236626] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.236895] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.237115] msgmni has been set to 1001
    [    0.238121] io scheduler noop registered
    [    0.238136] io scheduler deadline registered (default)
    [    0.239241] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.241874] /ocp/lcdc@4830e000: could not find display-timings node
    [    0.241890] /ocp/lcdc@4830e000: no timings specified
    [    0.241905] da8xx_lcdc 4830e000.lcdc: timings not available in DT
    [    0.242583] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
    [    0.244173] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.244438] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    0.838531] console [ttyO0] enabled
    [    0.842836] omap_uart 48022000.serial: no wakeirq for uart0
    [    0.849297] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    0.859528] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already requested by 44e10800.pinmux; cannot claim for 481a8000.serial
    [    0.871826] pinctrl-single 44e10800.pinmux: pin-52 (481a8000.serial) status -22
    [    0.879520] pinctrl-single 44e10800.pinmux: could not request pin 52 (44e108d0.0) from group pinmux_uart4_pins_default  on device pinctrl-single
    [    0.893130] omap_uart 481a8000.serial: Error applying setting, reverse things back
    [    0.901150] omap_uart 481a8000.serial: no wakeirq for uart0
    [    0.907219] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a OMAP UART4
    [    0.918004] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    0.925504] (stk) :sysfs entries created
    [    0.929740] (stk) : debugfs entries created 
    [    0.934233] (hci_tty): inside hci_tty_init
    [    0.939131] (hci_tty): allocated 249, 0
    [    0.948440] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    0.955883] 44e3e000.rtc: already running
    [    0.961128] i2c /dev entries driver
    [    0.966071] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    0.974748] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    0.982003] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    0.989295] 48060000.mmc supply vmmc_aux not found, using dummy regulator
    [    1.036824] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
    [    1.048827] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
    [    1.056226] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
    [    1.069015] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
    [    1.076962] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
    [    1.084003] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
    [    1.091168] 481d8000.mmc supply vmmc_aux not found, using dummy regulator
    [    1.098425] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 44e10800.pinmux; cannot claim for 481d8000.mmc
    [    1.110404] pinctrl-single 44e10800.pinmux: pin-32 (481d8000.mmc) status -22
    [    1.117816] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_mmc2_pins  on device pinctrl-single
    [    1.130599] omap_hsmmc 481d8000.mmc: Error applying setting, reverse things back
    [    1.138382] omap_hsmmc 481d8000.mmc: pins are not configured from the driver
    [    1.173738] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    1.184169] mmc0: new high speed SDHC card at address b368
    [    1.190477] isa bounce pool size: 16 pages
    [    1.194894] mmcblk0: mmc0:b368 SMI   3.75 GiB 
    [    1.201160]  mmcblk0: p1 p2 p3
    [    1.261950] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [    1.275632] TCP: cubic registered
    [    1.279231] NET: Registered protocol family 17
    [    1.283998] 8021q: 802.1Q VLAN Support v1.8
    [    1.288448] lib80211: common routines for IEEE802.11 drivers
    [    1.294385] lib80211_crypt: registered algorithm 'NULL'
    [    1.299899] lib80211_crypt: registered algorithm 'WEP'
    [    1.305286] lib80211_crypt: registered algorithm 'CCMP'
    [    1.310780] lib80211_crypt: registered algorithm 'TKIP'
    [    1.317206] Registering SWP/SWPB emulation handler
    [    1.325702] DCDC1: at 1500 mV 
    [    1.330345] vdd_mpu: 925 <--> 1325 mV at 1325 mV 
    [    1.336231] vdd_core: 925 <--> 1150 mV at 1125 mV 
    [    1.342264] LDO1: at 1800 mV 
    [    1.346336] LDO2: at 3300 mV 
    [    1.351009] LDO3: 1800 mV 
    [    1.354544] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.360900] LDO4: at 3300 mV 
    [    1.364878] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.371076] mmc1: new high speed SDIO card at address 0001
    [    1.377446] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.446670] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.453076] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.460253] libphy: 4a101000.mdio: probed
    [    1.464470] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
    [    1.473540] Detected MACID = 78:a5:04:dd:0b:e8
    [    1.480056] omap_rtc 44e3e000.rtc: setting system clock to 2014-04-23 20:21:59 UTC (1398284519)
    [    1.489400] ALSA device list:
    [    1.492513]   No soundcards found.
    [    1.499818] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    1.507596] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    1.670372] EXT4-fs (mmcblk0p2): recovery complete
    [    1.809436] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.818021] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.825420] Freeing unused kernel memory: 248K (c04ec000 - c052a000)
    procd: Console is alive
    procd: - watchdog -
    [    2.130994] usbcore: registered new interface driver usbfs
    [    2.137083] usbcore: registered new interface driver hub
    [    2.142884] usbcore: registered new device driver usb
    procd: - preinit -
    [    2.195289] random: mktemp urandom read with 32 bits of entropy available
    Press the [f] key and hit [enter] to enter failsafe mode
    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
    mounting /dev/root
    [    5.328945] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    procd: - early -
    procd: - watchdog -
    procd: - ubus -
    procd: - init -
    Please press Enter to activate this console.
    [    7.642949] NET: Registered protocol family 10
    [    7.652965] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [    7.669107] hidraw: raw HID events driver (C) Jiri Kosina
    [    7.693372] Bluetooth: Core ver 2.17
    [    7.697639] NET: Registered protocol family 31
    [    7.702308] Bluetooth: HCI device and connection manager initialized
    [    7.709066] Bluetooth: HCI socket layer initialized
    [    7.714188] Bluetooth: L2CAP socket layer initialized
    [    7.719549] Bluetooth: SCO socket layer initialized
    [    7.726080] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    7.731761] Bluetooth: BNEP filters: protocol multicast
    [    7.737294] Bluetooth: BNEP socket layer initialized
    [    7.744296] usbcore: registered new interface driver btusb
    [    7.765179] cfg80211: Calling CRDA to update world regulatory domain
    [    7.784149] Bluetooth: HCI UART driver ver 2.2
    [    7.788970] Bluetooth: HCI H4 protocol initialized
    [    7.793998] Bluetooth: HCI BCSP protocol initialized
    [    7.800848] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    7.807206] Bluetooth: HIDP socket layer initialized
    [    7.813887] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    7.841728] nf_conntrack version 0.5.0 (8016 buckets, 32064 max)
    [    7.859464] Bluetooth: RFCOMM TTY layer initialized
    [    7.864646] Bluetooth: RFCOMM socket layer initialized
    [    7.870164] Bluetooth: RFCOMM ver 1.11
    [    7.909156] xt_time: kernel timezone is -0000
    [    7.920637] PPP generic driver version 2.4.2
    [    7.927289] NET: Registered protocol family 24
    [    8.187365] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [    8.211890] wlcore: loaded
    [   10.156950] net eth0: initializing cpsw version 1.12 (0)
    [   10.164326] net eth0: phy found : id is : 0x7c0f1
    [   10.169426] libphy: PHY 4a101000.mdio:01 not found
    [   10.174456] net eth0: phy 4a101000.mdio:01 not found on slave 1
    [   10.191176] 8021q: adding VLAN 0 to HW filter on device eth0
    [   10.197251] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   10.693043] random: nonblocking pool is initialized
    procd: - init complete -
    
    
    
    BusyBox v1.22.1 (2014-11-19 15:47:55 ICT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
      _______                     ________        __
     |       |.-----.-----.-----.|  |  |  |.----.|  |5R}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}5R}}J*b*2**"zjHj(SSQ(Bleeding Edge, unknown)
     -----------------------------------------------------
      * 1 1/2 oz Gin            Shake with a glassful
      * 1/4 oz Triple Sec       of broken ice and pour
      * 3/4 oz Lime Juice       unstrained into a goblet.
      * 1 1/2 oz Orange Juice
      * 1 tsp. Grenadine Syrup
     -----------------------------------------------------
    root@OpenWrt:/# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
    /bin/ash: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: not found
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# l
    root@OpenWrt:/# 
    root@OpenWrt:/# ui
    root@OpenWrt:/# u
    ubiattach     ubimkvol      ubirsvol      udevtrigger   upgraded
    ubiblock      ubinfo        ubiupdatevol  udhcpc        uptime
    ubicrc32      ubinize       ubus          umount
    ubidetach     ubirename     ubusd         uname
    ubiformat     ubirmvol      uci           uniq
    
    root@OpenWrt:/# u
    ubiattach     ubimkvol      ubirsvol      udevtrigger   upgraded
    ubiblock      ubinfo        ubiupdatevol  udhcpc        uptime
    ubicrc32      ubinize       ubus          umount
    ubidetach     ubirename     ubusd         uname
    ubiformat     ubirmvol      uci           uniq
    
    root@OpenWrt:/# umomodpr
    root@OpenWrt:/# modprobe btwilink
    [   34.280623] hdev df2fa000
    [   34.284211] HCI device registered (hdev df2fa000)
    root@OpenWrt:/# [   34.293689] hci0 df2fa000
    [   34.297766] (stc):  chnl_id list empty :4 
    [   34.301882] (stk) : st_kim_start(stk) :ldisc_install = 1
    [   35.406681] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   36.406664] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   37.516671] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   38.516658] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   39.626664] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   40.626661] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   41.736678] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   42.736664] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   43.846671] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   44.846658] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   45.956661] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   46.956659] (stk) : timed out waiting for ldisc to be un-installed[   46.965160] Bluetooth: st_register failed -22
    [   46.969799] hci0 df2fa000
    [   46.972550] (stc):  chnl_id list empty :4 
    [   46.976684] (stk) : st_kim_start(stk) :ldisc_install = 1
    [   48.086702] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   49.086795] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   50.197173] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   51.197201] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   52.306663] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   53.306676] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   54.416672] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   55.416662] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   56.526664] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   57.526658] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   58.636662] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   59.636677] (stk) : timed out waiting for ldisc to be un-installed[   59.645193] Bluetooth: st_register failed -22
    
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# iwconfighciciconcinfig
    hci0:Type: UART
    BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
    DOWN 
    RX bytes:0 acl:0 sco:0 events:0 errors:0
    TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    root@OpenWrt:/# 
    root@OpenWrt:/# hciconfig wlanhci0 up
    [   79.351377] hci0 df2fa000
    [   79.354156] (stc):  chnl_id list empty :4 
    [   79.358392] (stk) : st_kim_start(stk) :ldisc_install = 1
    [   80.466672] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   81.466664] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   82.576664] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   83.576686] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   84.686676] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   85.686662] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   86.796668] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   87.796661] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   88.906666] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   89.906680] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   91.016674] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   92.016661] (stk) : timed out waiting for ldisc to be un-installed[   92.025170] Bluetooth: st_register failed -22
    Can't init device hci0: Input/output error (5)
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# [ 1481.197227] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
    [ 1481.203323] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 1483.197204] libphy: 4a101000.mdio:00 - Link is Down
    
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# iwconfifocnfigfocnfconfig wlan0 up
    [ 1495.812840] wlcore: PHY firmware version: Rev 8.2.0.0.163
    [ 1495.909756] wlcore: firmware booted (Rev 8.5.0.0.55)
    [ 1495.924619] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# itouch wpa.conf
    root@OpenWrt:/# vim wp
    root@OpenWrt:/# vim wpa.conf 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- wpa.conf 0/0 100% I wpa.conf [Modified] 1/1 100%ctrl_interface=/var/run/wpa_suppliI wpa.conf [Modified] 2/2 100%cant I wpa.conf [Modified] 3/3 100%network={ I wpa.conf [Modified] 4/4 100%ssid="the_router_ssiI wpa.conf [Modified] 5/5 100%d" scan_ssid=1I wpa.conf [Modified] 6/6 100%  key_mgmt=WPA-I wpa.conf [Modified] 7/7 100%PSK psk="the_wpa_keyI wpa.conf [Modified] 8/8 100%"}I wpa.conf [Modified] 7/8 87%I wpa.conf [Modified] 6/8 75%I wpa.conf [Modified] 5/8 62%I wpa.conf [Modified] 4/8 50%" " " " " " " " " " " " " " " W"P"A"" " " V"E"r"i"K"I wpa.conf [Modified] 5/8 62%I wpa.conf [Modified] 6/8 75%I wpa.conf [Modified] 7/8 87%" " " " " " " " " " " V"e"" E"r"i"K"s"y"s"t"e"s"m"" m"" " m"s"1"0"- wpa.conf [Modified] 7/8 87%:wq'wpa.conf' 8L, 124Croot@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# vat wp
    root@OpenWrt:/# vat wpa.conf cat w
    root@OpenWrt:/# cat wappa
    root@OpenWrt:/# cat wpa.conf 
    ctrl_interface=/var/run/wpa_supplicant
     
    network={
      ssid="VEriK"
      scan_ssid=1
      key_mgmt=WPA-PSK
      psk="VEriKsystems10"
    }
    root@OpenWrt:/# w
    root@OpenWrt:/# 
    root@OpenWrt:/# wpa
    root@OpenWrt:/# wpa_supplicant -Dnl80211 -dciwlan0 -c wpa
    root@OpenWrt:/# wpa_supplicant -Dnl80211 -iwlan0 -c wpa.conf 
    Successfully initialized wpa_supplicant
    wlan0: CTRL-EVENT-SCAN-STARTED 
    ^Cwlan0: CTRL-EVENT-TERMINATING 
    root@OpenWrt:/# 
    root@OpenWrt:/# wpa_supplicant -Dnl80211 -iwlan0 -c wpa.conf -B
    Successfully initialized wpa_supplicant
    root@OpenWrt:/# [ 1765.875469] wlan0: authenticate with b4:75:0e:55:d6:eb
    [ 1765.884118] wlan0: send auth to b4:75:0e:55:d6:eb (try 1/3)
    [ 1765.961659] wlan0: authenticated
    [ 1765.966819] wlan0: associate with b4:75:0e:55:d6:eb (try 1/3)
    [ 1766.002000] wlan0: RX AssocResp from b4:75:0e:55:d6:eb (capab=0x411 status=0 aid=12)
    [ 1766.016516] wlan0: associated
    [ 1766.020380] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [ 1766.068412] wlcore: Association completed.
    
    root@OpenWrt:/# ud
    root@OpenWrt:/# udh
    root@OpenWrt:/# udhcpc i-i wlan0
    udhcpc (v1.22.1) started
    Sending discover...
    Sending select for 10.0.0.200...
    Lease of 10.0.0.200 obtained, lease time 86400
    udhcpc: ifconfig wlan0 10.0.0.200 netmask 255.255.255.0 broadcast 10.0.0.255
    udhcpc: setting default routers: 10.0.0.1
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# iifconfigping 19.2,1.168.1.169
    PING 192.168.1.169 (192.168.1.169): 56 data bytes
    64 bytes from 192.168.1.169: seq=0 ttl=63 time=3.498 ms
    64 bytes from 192.168.1.169: seq=1 ttl=63 time=2.439 ms
    ^C
    --- 192.168.1.169 ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 2.439/2.968/3.498 ms
    root@OpenWrt:/# wgett ftp://1092.168.1.169/uim
    Connecting to 192.168.1.169 (192.168.1.169:21[ 1877.173539] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
    )
    
    uim                  100% |*******************************| 23940   0:00:00 ETA
    root@OpenWrt:/# ./u
    root@OpenWrt:/# ./uim
    root@OpenWrt:/# ./uim 
    /bin/ash: ./uim: Permission denied
    root@OpenWrt:/# sudochchomidmod -+x uim
    root@OpenWrt:/# ./uim
    uim:@ main
    uim:unable to open /sys/devices/platform/kim/install(No such file or directory)
    root@OpenWrt:/# ls us
    root@OpenWrt:/# ls usr/susyuscd /
    root@OpenWrt:/# find -. -name "kim"
    ./proc/device-tree/kim
    ./sys/bus/platform/drivers/kim
    root@OpenWrt:/# ./uim --help
    uim:@ main
    Segmentation fault
    root@OpenWrt:/# 
    root@OpenWrt:/# ./uim --helpll s /sys
    root@OpenWrt:/# ls /sys/b
    root@OpenWrt:/# ls /sys/bu
    root@OpenWrt:/# ls /sys/bus/pl
    root@OpenWrt:/# ls /sys/bus/platform/dr
    root@OpenWrt:/# ls /sys/bus/platform/driversi/k
    root@OpenWrt:/# ls /sys/bus/platform/drivers/kim/uii
    bind    kim.8   uevent  unbind
    root@OpenWrt:/# 
    root@OpenWrt:/# ls /sys/bus/platform/drivers/kim/
    root@OpenWrt:/# ls p
    root@OpenWrt:/# ls proc/dwe
    root@OpenWrt:/# ls proc/device-
    root@OpenWrt:/# ls proc/device-tree/ki
    root@OpenWrt:/# ls proc/device-tree/kim/
    baud_rate       dev_name        name
    compatible      flow_cntrl      nshutdown_gpio
    
    root@OpenWrt:/# ls proc/device-tree/kim/
    baud_rate       dev_name        name
    compatible      flow_cntrl      nshutdown_gpio
    
    root@OpenWrt:/# ls proc/device-tree/kim/s proc/device-tree/kim/ proc/device-tree/kim/c proc/device-tree/kim/a proc/device-tree/kim/t proc/device-tree/kim/ proc/device-tree/kim/name
    kimroot@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# cat proc/device-tree/kim/name/de
    root@OpenWrt:/# cat proc/device-tree/kim/dev_name 
    /dev/ttyO4root@OpenWrt:/# 
    root@OpenWrt:/# cat proc/device-tree/kim/dev_name bau
    root@OpenWrt:/# cat proc/device-tree/kim/baud_rate 
    -root@OpenWrt:/# 
    root@OpenWrt:/# cat proc/device-tree/kim/baud_rate compa
    root@OpenWrt:/# cat proc/device-tree/kim/compatible 
    kimroot@OpenWrt:/# 
    root@OpenWrt:/# cat proc/device-tree/kim/compatible flo
    root@OpenWrt:/# cat proc/device-tree/kim/flow_cntrl 
    root@OpenWrt:/# 
    root@OpenWrt:/# cat proc/device-tree/kim/flow_cntrl n
    root@OpenWrt:/# cat proc/device-tree/kim/nshu
    root@OpenWrt:/# cat proc/device-tree/kim/nshutdown_gpio 
    ,root@OpenWrt:/# 

  • Hi,

    why hciconfig wlanhci0 up? in sted of hciconfig hci0 up?

    You need to run the UIM, UIM is already part of this default file system file-system.

    If you want to build it, you can get the UIM from https://gitorious.org/uim and apply the below patch.

    http://arago-project.org/git/projects/meta-arago-glsdk.git?p=projects/meta-arago-glsdk.git;a=blob;f=meta-arago-extras/recipes-connectivity/uim/files/0001-uim-Add-command-line-args-for-passing-sysfs-node-pat.patch;h=ad6f95fcaaae9248612ba397a898ff25516745f9;hb=HEAD

    Then you need to cross compile(ARM) UIM to make it work.

    You can copy the UIM to usr\bin.

    Please see http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/307/0474.4276.am335x_2D00_evm.dts for your reference 

  • Hi,

    update newlog:

    root@OpenWrt:/# hicciconfig wlan0 uhci0 up
    [ 4159.958923] hci0 df2fa000
    [ 4159.961704] (stc):  chnl_id list empty :4 
    [ 4159.965951] (stk) : st_kim_start(stk) :ldisc_install = 1
    [ 4161.073456] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [ 4162.073495] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [ 4163.183549] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [ 4164.183678] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [ 4165.293689] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [ 4166.293875] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [ 4167.403796] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [ 4168.404242] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [ 4169.514157] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [ 4170.514248] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [ 4171.624663] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [ 4172.624624] (stk) : timed out waiting for ldisc to be un-installed[ 4172.633133] Bluetooth: st_register failed -22
    Can't init device hci0: Input/output error (5)
    
    root@OpenWrt:/# ./uim
    uim:@ main
    uim:install = /sys/devices/platform/kim/install
    uim:dev_name = /sys/devices/platform/kim/dev_name
    uim:baud_rate = /sys/devices/platform/kim/baud_rate
    uim:flow_cntrl = /sys/devices/platform/kim/flow_cntrl
    uim:unable to open /sys/devices/platform/kim/install(No such file or directory)
    
    root@OpenWrt:/# find -. -name "kim"
    ./proc/device-tree/kim
    ./sys/bus/platform/drivers/kim
    
    root@OpenWrt:/# ls /sys/bus/platform/drivers/kim/uii
    bind    kim.8   uevent  unbind
    
    root@OpenWrt:/# ls proc/device-tree/kim/
    baud_rate       dev_name        name
    compatible      flow_cntrl      nshutdown_gpio

    i couldn't find "kim/install"

    my DTS file refered in https://git.ti.com/wilink8-wlan/wilink8-wlan-ti-linux-kernel/commit/c70bf7a930c7989c9e446eb546cd04ee9c6090fa?format=patch

    Thanks for your time and help

    Tuan Nguyen

  • Hi,

    Please check the below

    “ls –al /sys/device/kim.x/”

    “ls –al /dev/hci_tty”

    “ps | grep uim”

  • Hi,

    I compared my kernel (3.13.7) and TI_release (wilink8-wlan-wilink8-wlan-ti-linux-kernel 3.12) with module:
    + driver/misc/ti-st
    + driver/bluetooth
    I found both of it wasn't init, so when I run "modprobe btwilink", nothing happened.And i tried to init it by add function like this:

    static const struct of_device_id kim_of_match[] = {
    {
    	.compatible = "kim",
    	},
    	{}
    };
    static const struct of_device_id btwilink_of_match[] = {
    {
    	.compatible = "btwilink",
    	},
    	{}
    };
    MODULE_DEVICE_TABLE(of, btwilink_of_match);

    with module "driver/misc/ti-st" I created a patch to patch it back to TI_release

    with module "driver/bluetooth", It seem has many dependency with this, then I just patched to init it

    --- a/drivers/bluetooth/btwilink.c	2014-03-24 11:45:42.000000000 +0700
    +++ a/drivers/bluetooth/btwilink.c	2014-06-16 19:30:32.000000000 +0700
    @@ -30,6 +30,7 @@
     
     #include <linux/ti_wilink_st.h>
     #include <linux/module.h>
    +#include <linux/of.h>
     
     /* Bluetooth Driver Version */
     #define VERSION               "1.0"
    @@ -286,6 +292,14 @@
     	return 0;
     }
     
    +static const struct of_device_id btwilink_of_match[] = {
    +{
    +	.compatible = "btwilink",
    +	},
    +	{}
    +};
    +MODULE_DEVICE_TABLE(of, btwilink_of_match);
    +
     static int bt_ti_probe(struct platform_device *pdev)
     {
     	static struct ti_st *hst;
    @@ -350,6 +364,7 @@
     	.driver = {
     		.name = "btwilink",
     		.owner = THIS_MODULE,
    +		.of_match_table = of_match_ptr(btwilink_of_match),
     	},
     };

    I got log :

    root@OpenWrt:/# ./uim -f sys/devices/kim.8 -B&
    root@OpenWrt:/# uim:@ main
    uim:install = sys/devices/kim.8/install
    uim:dev_name = sys/devices/kim.8/dev_name
    uim:baud_rate = sys/devices/kim.8/baud_rate
    uim:flow_cntrl = sys/devices/kim.8/flow_cntrl
    uim:begin polling...
    
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# modprobe tbtwilink
    [  174.093124] hdev df5cf000
    [  174.097190] HCI device registered (hdev df5cf000)
    [  174.105396] hci0 df5cf000
    [  174.108167] (stc):  chnl_id list empty :4 
    [  174.112279] (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from install 
    
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttyO4
    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
    root@OpenWrt:/# uim:Command complete done
    uim:Speed changi
    [  174.274128] (stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    (stk) :line discipline installeduim:Installed N_TI_WL Line displine
    uim:begin poll
    [  174.288388] (stk) :TIInit_11.8.32.btsing...
    (stk) :change remote baud rate command in firmware
    [  174.309401] (stk) :skipping the wait event of change remote baud(stk) :sleep command in scr
    [  175.001890] (stk) :sleep command in scr[  175.945376] (stc): add_channel_to_table: id 4
    [  175.949989] (stc): add_channel_to_table: id 2
    [  175.954557] (stc): add_channel_to_table: id 3
    [  175.959346] hci0: type 1 len 4
    [  175.962907] hci0: type 1 len 4
    [  175.966389] hci0: type 1 len 4
    [  175.969829] hci0: type 1 len 4
    [  175.973366] hci0: type 1 len 4
    [  175.976839] hci0: type 1 len 4
    [  175.980242] hci0: type 1 len 4
    [  175.984478] hci0: type 1 len 4
    [  175.987901] hci0: type 1 len 4
    [  175.991298] hci0: type 1 len 4
    [  175.994703] hci0: type 1 len 5
    [  175.998519] hci0: type 1 len 6
    [  176.001930] hci0: type 1 len 4
    [  176.005356] hci0: type 1 len 4
    [  176.008795] hci0: type 1 len 4
    [  176.012213] hci0: type 1 len 4
    [  176.015679] hci0: type 1 len 4
    [  176.019094] hci0: type 1 len 4
    [  176.022504] hci0: type 1 len 4
    [  176.025971] hci0: type 1 len 12
    [  176.029471] hci0: type 1 len 12
    [  176.032988] hci0: type 1 len 4
    [  176.036633] hci0: type 1 len 245
    [  176.041157] hci0: type 1 len 5
    [  176.044566] hci0: type 1 len 4
    [  176.048006] hci0: type 1 len 5
    [  176.051468] hci0: type 1 len 11
    [  176.054969] hci0: type 1 len 6
    [  176.061150] hci0: type 1 len 11
    [  176.064859] hci0: type 1 len 4
    [  176.068531] hci0: type 1 len 4
    [  176.072054] hci0: type 1 len 4
    [  176.075609] hci0: type 1 len 4
    [  176.079957] hci0: type 1 len 4
    [  176.083728] hci0: type 1 len 245
    [  176.088376] hci0: type 1 len 6
    [  176.091843] hci0: type 1 len 5
    [  176.095264] hci0: type 1 len 252
    [  176.100249] hci0: type 1 len 5
    [  176.104892] hci0: type 1 len 4
    [  176.109563] hci0: type 1 len 7
    [  176.114362] hci0: type 1 len 4
    [  176.118282] hci0: type 1 len 4
    [  176.221610] Unable to handle kernel NULL pointer dereference at virtual address 0000003c
    [  176.230110] pgd = c0004000
    [  176.232945] [0000003c] *pgd=00000000
    [  176.236703] Internal error: Oops: 17 [#1] SMP ARM
    [  176.241634] Modules linked in: btwilink pppoe ppp_async iptable_nat wl18xx pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT wlcore_sdio wlcore slhc rfcomm nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp nf_conntrack mac80211 iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables hidp hci_uart crc_itu_t crc_ccitt cfg80211 btusb bnep bluetooth hid evdev ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 usbcore usb_common
    [  176.303951] CPU: 0 PID: 41 Comm: kworker/0:1 Not tainted 3.13.7 #1
    [  176.310450] Workqueue: events flush_to_ldisc
    [  176.314930] task: df0b9cc0 ti: df0f0000 task.ti: df0f0000
    [  176.320600] PC is at st_ll_sleep_state+0x78/0x164
    [  176.325539] LR is at uart_start+0x38/0x3c
    [  176.329741] pc : [<c0268350>]    lr : [<c023fc60>]    psr: 20000093
    [  176.329741] sp : df0f1e40  ip : df0f1dd8  fp : df0f1e5c
    [  176.341781] r10: df17088c  r9 : df29a3c4  r8 : a0000013
    [  176.347259] r7 : 00000030  r6 : df5664f7  r5 : 00000000  r4 : df170800
    [  176.354104] r3 : 00000000  r2 : 00000001  r1 : 60000093  r0 : 00000001
    [  176.360950] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    [  176.368706] Control: 10c5387d  Table: 9f5bc019  DAC: 00000015
    [  176.374729] Process kworker/0:1 (pid: 41, stack limit = 0xdf0f0240)
    [  176.381300] Stack: (0xdf0f1e40 to 0xdf0f2000)
    [  176.385872] 1e40: 00000001 0031b000 df170800 00000001 df0f1e94 df0f1e60 c0266ebc c02682e4
    [  176.394451] 1e60: 00000000 df197710 fffffffe df566400 df29a3b4 df2b4400 df29a3b0 00000001
    [  176.403030] 1e80: df29a3c4 c02663a4 df0f1ea4 df0f1e98 c02663c8 c0266cf4 df0f1edc df0f1ea8
    [  176.411609] 1ea0: c022e8fc c02663b0 c0574444 df5fb500 df0f1f0c df0a3700 df29a3b4 c09c5480
    [  176.420187] 1ec0: c09c8300 00000000 df0f0020 00000000 df0f1f1c df0f1ee0 c00555c8 c022e7fc
    [  176.428765] 1ee0: c052a880 df0a3700 c09c5480 c09c5494 df0a3718 df0a3700 c09c5480 c09c5494
    [  176.437344] 1f00: df0a3718 df0f0000 00000009 df0f0020 df0f1f5c df0f1f20 c0056334 c00553a0
    [  176.445922] 1f20: c0070610 c0532473 df0f0000 c09c5480 c00560b8 df0b8fc0 00000000 df0a3700
    [  176.454500] 1f40: c00560b8 00000000 00000000 00000000 df0f1fac df0f1f60 c005bbac c00560c4
    [  176.463079] 1f60: 1f8fbd66 00000000 fd4ff37f df0a3700 00000000 00000000 df0f1f78 df0f1f78
    [  176.471658] 1f80: 00000000 00000000 df0f1f88 df0f1f88 df0b8fc0 c005babc 00000000 00000000
    [  176.480237] 1fa0: 00000000 df0f1fb0 c0008dd8 c005bac8 00000000 00000000 00000000 00000000
    [  176.488816] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [  176.497395] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 5dbf7d59 a57fcf5f
    [  176.505967] Backtrace: 
    [  176.508543] [<c02682d8>] (st_ll_sleep_state+0x0/0x164) from [<c0266ebc>] (st_int_recv+0x1d4/0x36c)
    [  176.517938]  r5:00000001 r4:df170800
    [  176.521701] [<c0266ce8>] (st_int_recv+0x0/0x36c) from [<c02663c8>] (st_tty_receive+0x24/0x28)
    [  176.530647] [<c02663a4>] (st_tty_receive+0x0/0x28) from [<c022e8fc>] (flush_to_ldisc+0x10c/0x134)
    [  176.539958] [<c022e7f0>] (flush_to_ldisc+0x0/0x134) from [<c00555c8>] (process_one_work+0x234/0x37c)
    [  176.549540] [<c0055394>] (process_one_work+0x0/0x37c) from [<c0056334>] (worker_thread+0x27c/0x41c)
    [  176.559036] [<c00560b8>] (worker_thread+0x0/0x41c) from [<c005bbac>] (kthread+0xf0/0xf4)
    [  176.567529] [<c005babc>] (kthread+0x0/0xf4) from [<c0008dd8>] (ret_from_fork+0x14/0x3c)
    [  176.575921]  r7:00000000 r6:00000000 r5:c005babc r4:df0b8fc0
    [  176.581879] Code: e5943098 e5845094 e5933004 e5933064 (e593303c) 
    [  176.588274] ---[ end trace 96ffeab0ecaa2ae0 ]---
    [  176.594652] Unable to handle kernel paging request at virtual address ffffffec
    [  176.602234] pgd = c0004000
    [  176.605069] [ffffffec] *pgd=9fefd821, *pte=00000000, *ppte=00000000
    [  176.611656] Internal error: Oops: 17 [#2] SMP ARM
    [  176.616587] Modules linked in: btwilink pppoe ppp_async iptable_nat wl18xx pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT wlcore_sdio wlcore slhc rfcomm nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp nf_conntrack mac80211 iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables hidp hci_uart crc_itu_t crc_ccitt cfg80211 btusb bnep bluetooth hid evdev ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 usbcore usb_common
    [  176.678863] CPU: 0 PID: 41 Comm: kworker/0:1 Tainted: G      D      3.13.7 #1
    [  176.686355] task: df0b9cc0 ti: df0f0000 task.ti: df0f0000
    [  176.692020] PC is at kthread_data+0x10/0x18
    [  176.696406] LR is at wq_worker_sleeping+0x14/0xc8
    [  176.701337] pc : [<c005c144>]    lr : [<c00567f0>]    psr: 00000093
    [  176.701337] sp : df0f1b98  ip : df0f1ba8  fp : df0f1ba4
    [  176.713376] r10: df0f0000  r9 : c052a880  r8 : df0b9e70
    [  176.718854] r7 : 0049b000  r6 : 00000000  r5 : df0b9cc0  r4 : 00000000
    [  176.725697] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : df0b9cc0
    [  176.732542] Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [  176.740116] Control: 10c5387d  Table: 9f5bc019  DAC: 00000015
    [  176.746140] Process kworker/0:1 (pid: 41, stack limit = 0xdf0f0240)
    [  176.752710] Stack: (0xdf0f1b98 to 0xdf0f2000)
    [  176.757277] 1b80:                                                       df0f1bbc df0f1ba8
    [  176.765857] 1ba0: c00567f0 c005c140 0420806c c09c5880 df0f1c0c df0f1bc0 c000f7b0 c00567e8
    [  176.774436] 1bc0: c019ddcc c00c7974 00000001 c052a880 c052a880 c05324a7 c0459eac c052f2b8
    [  176.783014] 1be0: c019deb0 df0b9cc0 df0f0000 c052e040 00000001 df045c40 df0b9df4 df0b9cb8
    [  176.791592] 1c00: df0f1c1c df0f1c10 c000fc1c c000f6c4 df0f1c54 df0f1c20 c0041b50 c000fbac
    [  176.800171] 1c20: df0f0020 00000001 df0b9df4 df0f1c38 c0268354 df0b9e3c df0f1c38 df0f1c38
    [  176.808749] 1c40: c004024c 00000001 df0f1ce4 df0f1c58 c001c454 c00412e0 df0f0240 0000000b
    [  176.817328] 1c60: 00000000 00000008 00000000 00000000 c046fe44 60000193 c046fe4c c0268352
    [  176.825907] 1c80: 6500003c 33343935 20383930 34383565 34393035 39356520 30303333 35652034
    [  176.834485] 1ca0: 30333339 28203436 33393565 63333033 c0002029 c0076c5c c04af23c 0000003c
    [  176.843064] 1cc0: 00000017 df0f1df8 00000000 df0b9cc0 0000003c df17088c df0f1cfc df0f1ce8
    [  176.851643] 1ce0: c001fcd4 c001c07c df0f1df8 00000017 df0f1d44 df0f1d00 c001ff58 c001fc74
    [  176.860222] 1d00: df0ee080 c09c5880 df0f1d4c df0f1d18 c0065d20 c0012a08 df0f1d64 00000017
    [  176.868800] 1d20: c001fce4 c054958c 0000003c df0f1df8 df29a3c4 df17088c df0f1df4 df0f1d48
    [  176.877380] 1d40: c00083e0 c001fcf0 c0065d6c c0065a74 df5f0400 df5cf6c0 df0f1d74 df0bb010
    [  176.885958] 1d60: df0bb070 00000004 60000093 00000001 df2b4400 df2a3210 df0f1da4 df0f1d88
    [  176.894537] 1d80: c025b148 c0012a08 df2a3210 0000000f 00000004 df0f1e47 df0f1dc4 df0f1da8
    [  176.903115] 1da0: c0248334 c025b66c c02481ec df2a3210 df2b4400 60000093 df0f1dd4 df0f1dc8
    [  176.911694] 1dc0: c023efa8 c02481f8 df0f1df4 df0f1dd8 c023fc60 c0268350 20000093 ffffffff
    [  176.920273] 1de0: df0f1e2c a0000013 df0f1e5c df0f1df8 c00095d8 c00083ac 00000001 60000093
    [  176.928852] 1e00: 00000001 00000000 df170800 00000000 df5664f7 00000030 a0000013 df29a3c4
    [  176.937431] 1e20: df17088c df0f1e5c df0f1dd8 df0f1e40 c023fc60 c0268350 20000093 ffffffff
    [  176.946010] 1e40: 00000001 0031b000 df170800 00000001 df0f1e94 df0f1e60 c0266ebc c02682e4
    [  176.954589] 1e60: 00000000 df197710 fffffffe df566400 df29a3b4 df2b4400 df29a3b0 00000001
    [  176.963168] 1e80: df29a3c4 c02663a4 df0f1ea4 df0f1e98 c02663c8 c0266cf4 df0f1edc df0f1ea8
    [  176.971745] 1ea0: c022e8fc c02663b0 c0574444 df5fb500 df0f1f0c df0a3700 df29a3b4 c09c5480
    [  176.980325] 1ec0: c09c8300 00000000 df0f0020 00000000 df0f1f1c df0f1ee0 c00555c8 c022e7fc
    [  176.988903] 1ee0: c052a880 df0a3700 c09c5480 c09c5494 df0a3718 df0a3700 c09c5480 c09c5494
    [  176.997482] 1f00: df0a3718 df0f0000 00000009 df0f0020 df0f1f5c df0f1f20 c0056334 c00553a0
    [  177.006061] 1f20: c0070610 c0532473 df0f0000 c09c5480 c00560b8 df0b8fc0 00000000 df0a3700
    [  177.014640] 1f40: c00560b8 00000000 00000000 00000000 df0f1fac df0f1f60 c005bbac c00560c4
    [  177.023218] 1f60: 1f8fbd66 00000000 fd4ff37f df0a3700 00000000 00000000 df0f1f78 df0f1f78
    [  177.031797] 1f80: 00000001 00010001 df0f1f88 df0f1f88 df0b8fc0 c005babc 00000000 00000000
    [  177.040375] 1fa0: 00000000 df0f1fb0 c0008dd8 c005bac8 00000000 00000000 00000000 00000000
    [  177.048954] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [  177.057532] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 5dbf7d59 a57fcf5f
    [  177.066105] Backtrace: 
    [  177.068676] [<c005c134>] (kthread_data+0x0/0x18) from [<c00567f0>] (wq_worker_sleeping+0x14/0xc8)
    [  177.077992] [<c00567dc>] (wq_worker_sleeping+0x0/0xc8) from [<c000f7b0>] (__schedule+0xf8/0x4e8)
    [  177.087203]  r4:c09c5880 r3:0420806c
    [  177.090965] [<c000f6b8>] (__schedule+0x0/0x4e8) from [<c000fc1c>] (schedule+0x7c/0x80)
    [  177.099276] [<c000fba0>] (schedule+0x0/0x80) from [<c0041b50>] (do_exit+0x87c/0x894)
    [  177.107409] [<c00412d4>] (do_exit+0x0/0x894) from [<c001c454>] (die+0x3e4/0x424)
    [  177.115163]  r7:00000001
    [  177.117826] [<c001c070>] (die+0x0/0x424) from [<c001fcd4>] (__do_kernel_fault.part.11+0x6c/0x7c)
    [  177.127045] [<c001fc68>] (__do_kernel_fault.part.11+0x0/0x7c) from [<c001ff58>] (do_page_fault+0x274/0x28c)
    [  177.137259]  r7:00000017 r3:df0f1df8
    [  177.141017] [<c001fce4>] (do_page_fault+0x0/0x28c) from [<c00083e0>] (do_DataAbort+0x40/0x9c)
    [  177.149962] [<c00083a0>] (do_DataAbort+0x0/0x9c) from [<c00095d8>] (__dabt_svc+0x38/0x60)
    [  177.158537] Exception stack(0xdf0f1df8 to 0xdf0f1e40)
    [  177.163833] 1de0:                                                       00000001 60000093
    [  177.172412] 1e00: 00000001 00000000 df170800 00000000 df5664f7 00000030 a0000013 df29a3c4
    [  177.180991] 1e20: df17088c df0f1e5c df0f1dd8 df0f1e40 c023fc60 c0268350 20000093 ffffffff
    [  177.189565]  r8:a0000013 r7:df0f1e2c r6:ffffffff r5:20000093 r4:c0268350
    [  177.196622] [<c02682d8>] (st_ll_sleep_state+0x0/0x164) from [<c0266ebc>] (st_int_recv+0x1d4/0x36c)
    [  177.206016]  r5:00000001 r4:df170800
    [  177.209776] [<c0266ce8>] (st_int_recv+0x0/0x36c) from [<c02663c8>] (st_tty_receive+0x24/0x28)
    [  177.218724] [<c02663a4>] (st_tty_receive+0x0/0x28) from [<c022e8fc>] (flush_to_ldisc+0x10c/0x134)
    [  177.228033] [<c022e7f0>] (flush_to_ldisc+0x0/0x134) from [<c00555c8>] (process_one_work+0x234/0x37c)
    [  177.237615] [<c0055394>] (process_one_work+0x0/0x37c) from [<c0056334>] (worker_thread+0x27c/0x41c)
    [  177.247106] [<c00560b8>] (worker_thread+0x0/0x41c) from [<c005bbac>] (kthread+0xf0/0xf4)
    [  177.255596] [<c005babc>] (kthread+0x0/0xf4) from [<c0008dd8>] (ret_from_fork+0x14/0x3c)
    [  177.263988]  r7:00000000 r6:00000000 r5:c005babc r4:df0b8fc0
    [  177.269943] Code: e1a0c00d e92dd800 e24cb004 e5903184 (e5130014) 
    [  177.276336] ---[ end trace 96ffeab0ecaa2ae1 ]---
    [  177.281175] Fixing recursive fault but reboot is needed!

    Thanks

    Tuan Nguyen

  • Hi,

    It looks to me that BT is turning on and then you have a crash.

    I think there is somthing wrong with the ti-ST version you are using, make sure you have the below TI-ST patches

    ti-st:

    https://git.ti.com/ti-linux-kernel/ti-linux-kernel/commit/8b4d9dacd18d8d37ef6b68a7ab715eea0210c4a0

    https://git.ti.com/ti-linux-kernel/ti-linux-kernel/commit/18317448efd8b22d95a870ed824039d8e455ce01

    btwilink: I think you already added this.

    https://git.ti.com/ti-linux-kernel/ti-linux-kernel/commit/f7d5495555bd244f2507013cfc2b296cea2369f0

  • Hi,

    Thank you, now bluetooth can work, but if i dont run "uim -f sys/devices/kim.8" first, it will be failed

    LOG:

    [    7.481290] HCI device registered (hdev df20f000)
    [    7.492262] hci0 df20f000
    [    7.495037] (stc):  chnl_id list empty :4 
    [    7.499255] (stk) : st_kim_start(stk) :ldisc_install = 1[    7.617240] cfg80211: Calling CRDA to update world regulatory domain
    [    7.630228] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    7.666065] nf_conntrack version 0.5.0 (8016 buckets, 32064 max)
    [    7.716291] xt_time: kernel timezone is -0000
    [    7.728064] PPP generic driver version 2.4.2
    [    7.734465] NET: Registered protocol family 24
    [    8.007423] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [    8.031934] wlcore: loaded
    
    [    8.606728] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [    9.606852] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1[   10.098556] net eth0: initializing cpsw version 1.12 (0)
    [   10.105985] net eth0: phy found : id is : 0x7c0f1
    [   10.111098] libphy: PHY 4a101000.mdio:01 not found
    [   10.116133] net eth0: phy 4a101000.mdio:01 not found on slave 1
    [   10.134704] 8021q: adding VLAN 0 to HW filter on device eth0
    [   10.140803] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   10.489735] random: nonblocking pool is initialized
    
    [   10.716861] (stk) :ldisc installation timeout(stk) :ldisc_install = 0procd: - init complete -
    
    [   11.716728] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   12.826714] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   13.826724] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   14.936714] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   15.936715] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   17.046911] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   18.046726] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   19.156854] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   20.156714] (stk) : timed out waiting for ldisc to be un-installed[   20.165216] Bluetooth: st_register failed -22
    [   20.169940] hci0 df20f000
    [   20.172692] (stc):  chnl_id list empty :4 
    [   20.176834] (stk) : st_kim_start(stk) :ldisc_install = 1
    [   21.287283] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   22.286730] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   23.397394] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   24.397214] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   25.506713] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   26.506711] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   27.616709] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   28.616713] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   29.726733] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   30.726713] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   31.836717] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   32.836715] (stk) : timed out waiting for ldisc to be un-installed[   32.845225] Bluetooth: st_register failed -22
    
    
    
    BusyBox v1.22.1 (2014-11-19 15:47:55 ICT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
      _______                     ________        __
     |       |.-----.-----.-----.|  |  |  |.----.|  |5R}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}5R}}J*b*2**"zjHj(SSQ(Bleeding Edge, unknown)
     -----------------------------------------------------
      * 1 1/2 oz Gin            Shake with a glassful
      * 1/4 oz Triple Sec       of broken ice and pour
      * 3/4 oz Lime Juice       unstrained into a goblet.
      * 1 1/2 oz Orange Juice
      * 1 tsp. Grenadine Syrup
     -----------------------------------------------------
    root@OpenWrt:/# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
    /bin/ash: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: not found
    root@OpenWrt:/# 
    root@OpenWrt:/# 
    root@OpenWrt:/# hciconfig 
    hci0:Type: UART
    BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
    DOWN 
    RX bytes:0 acl:0 sco:0 events:0 errors:0
    TX bytes:0 acl:0 sco:0 commands:0 errors:0
    
    root@OpenWrt:/# ls lib
    root@OpenWrt:/# ls lib/fi
    root@OpenWrt:/# ls lib/firmware/
    TIInit_10.6.15.bts              TIInit_12.8.32.bts
    TIInit_11.8.32.bts              TIInit_7.2.31.bts
    TIInit_12.10.28.bts             TIInit_7.6.15.bts
    TIInit_12.8.32-amsdk-slave.bts  ti-connectivity
    
    root@OpenWrt:/# hciconfig hci0 up
    [  106.714957] hci0 df20f000
    [  106.717736] (stc):  chnl_id list empty :4 
    [  106.721848] (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
    
    uim:read 1 from install 
    
    uim:@ st_uart_config
    uim: signal received, opening /dev/ttyO4
    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
    [  106.883763] (stc): st_tty_open ng to 3000000, 1
    uim:@ set_custom_baud_rate
    (stk) :line discipline installeduim:Installed N_TI_WL Line displine
    uim:begin poll
    [  106.898016] (stk) :TIInit_11.8.32.btsing...
    (stk) :change remote baud rate command in firmware
    [  106.918821] (stk) :skipping the wait event of change remote baud(stk) :sleep command in scr
    [  107.611377] (stk) :sleep command in scr[  108.554999] (stc): add_channel_to_table: id 4
    [  108.559581] (stc): add_channel_to_table: id 2
    [  108.564178] (stc): add_channel_to_table: id 3
    [  108.568801] hci0: type 1 len 4
    [  108.572388] hci0: type 1 len 4
    [  108.575819] hci0: type 1 len 4
    [  108.579254] hci0: type 1 len 4
    [  108.582813] hci0: type 1 len 4
    [  108.586250] hci0: type 1 len 4
    [  108.589655] hci0: type 1 len 4
    [  108.593934] hci0: type 1 len 4
    [  108.597334] hci0: type 1 len 4
    [  108.601107] hci0: type 1 len 4
    [  108.604523] hci0: type 1 len 5
    [  108.607925] hci0: type 1 len 6
    [  108.611361] hci0: type 1 len 4
    [  108.614766] hci0: type 1 len 4
    [  108.618166] hci0: type 1 len 4
    [  108.621613] hci0: type 1 len 4
    [  108.625050] hci0: type 1 len 4
    [  108.628459] hci0: type 1 len 4
    [  108.631898] hci0: type 1 len 4
    [  108.635337] hci0: type 1 len 12
    [  108.638842] hci0: type 1 len 12
    [  108.642389] hci0: type 1 len 4
    [  108.646012] hci0: type 1 len 245
    [  108.650535] hci0: type 1 len 5
    [  108.653943] hci0: type 1 len 4
    [  108.657350] hci0: type 1 len 5
    [  108.660844] hci0: type 1 len 11
    [  108.664347] hci0: type 1 len 6
    [  108.670114] hci0: type 1 len 11
    root@OpenWrt:/# [  108.674274] hci0: type 1 len 4
    [  108.678872] hci0: type 1 len 4
    [  108.682460] hci0: type 1 len 4
    [  108.685936] hci0: type 1 len 4
    [  108.690294] hci0: type 1 len 4
    [  108.693971] hci0: type 1 len 245
    [  108.698548] hci0: type 1 len 6
    [  108.702089] hci0: type 1 len 5
    [  108.706095] hci0: type 1 len 5
    [  108.710972] hci0: type 1 len 4
    [  108.714794] hci0: type 1 len 252
    [  108.719294] hci0: type 1 len 7
    [  108.723615] hci0: type 1 len 4
    [  108.728631] hci0: type 1 len 4
    
    root@OpenWrt:/# 
    root@OpenWrt:/# hciconfig
    hci0:Type: UART
    BD Address: 84:DD:20:66:9F:3C ACL MTU: 1021:6 SCO MTU: 180:4
    UP RUNNING PSCAN ISCAN 
    RX bytes:1172 acl:0 sco:0 events:43 errors:0
    TX bytes:946 acl:0 sco:0 commands:43 errors:0
    
    root@OpenWrt:/# hcitool scan
    Scanning ...
    [  328.594590] hci0: type 1 len 9
    54:35:30:C5:49:04dell-desktop-0
    54:35:30:BD:26:5Edell-desktop-0
    60:6C:66:35:70:F4KIENPHAN-PC
    54:35:30:BD:23:46ubuntu-0
    B0:35:8D:A2:DD:E7Nokia 311
    root@OpenWrt:/# 

    i tried to test multirole flow that http://processors.wiki.ti.com/index.php/WiLink8_WLAN_Demo:_Linux#AP_.28create_AP_with_no_security.29

    but when has more than one connected, it got that

    [  128.622127] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps
    [  128.631915] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps

    Thanks

    Tuan Nguyen

  • Hi,

    UIM is required for the Bluetooth to work. Please ensure that  you have uim-sysfs (attached) file in /etc/init.d/. http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/307/3247.uim_2D00_sysfs

  • Hi,

    Thank you for your answer,

    how about this error:

    wlan1: STA 78:7e:61:42:00:7d IEEE 802.11: associated (aid 1)
    wlan1: AP-STA-CONNECTED 78:7e:61:42:00:7d
    wlan1: STA 78:7e:61:42:00:7d RADIUS: starting accounting session 5472D654-00000000
    wlan1: STA 14:10:9f:e9:fb:12 IEEE 802.11: authenticated
    HT: Forty MHz Intolerant is set by STA 14:10:9f:e9:fb:12 in Association Request
    wlan1: STA 14:10:9f:e9:fb:12 IEEE 802.11: associated (aid 2)
    wlan1: AP-STA-CONNECTED 14:10:9f:e9:fb:12
    wlan1: STA 14:10:9f:e9:fb:12 RADIUS: starting accounting session 5472D654-00000001
    [  629.466232] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps
    [  629.474889] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps
    [  629.482965] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps
    [  629.537795] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps
    [  632.143822] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps

    Thank

    Tuan Nguyen

  • Hi,

    Under what scenario are you getting this?

    Regards,
    Gigi Joseph.

  • Hi,

    I tried to test "MultiRole" from http://processors.wiki.ti.com/index.php/WiLink8_WLAN_Demo:_Linux#AP_.28create_AP_with_no_security.29

    after i run "hostapd ./hostapd.conf &" and having more than one connect to access point "ssid=Multirole_Demo"

    i got that error

    root@OpenWrt:/# hostapd hostapd.conf &
    root@OpenWrt:/# Configuration file: hostapd.conf
    Line 12: DEPRECATED: 'dump_file' configuration variable is not used anymore
    [ 1132.445744] wlcore: down
    wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
    Using interface wlan1 with hwaddr de:ad:be:ef:00:01 and ssid "Multirole_Demo"
    wlan1: interface state COUNTRY_UPDATE->ENABLED
    wlan1: AP-ENABLED 
    wlan1: STA 78:7e:61:42:00:7d IEEE 802.11: authenticated
    wlan1: STA 78:7e:61:42:00:7d IEEE 802.11: associated (aid 1)
    wlan1: AP-STA-CONNECTED 78:7e:61:42:00:7d
    wlan1: STA 78:7e:61:42:00:7d RADIUS: starting accounting session 5472D212-00000000
    wlan1: STA 14:10:9f:e9:fb:12 IEEE 802.11: authenticated
    HT: Forty MHz Intolerant is set by STA 14:10:9f:e9:fb:12 in Association Request
    wlan1: STA 14:10:9f:e9:fb:12 IEEE 802.11: associated (aid 2)
    wlan1: AP-STA-CONNECTED 14:10:9f:e9:fb:12
    wlan1: STA 14:10:9f:e9:fb:12 RADIUS: starting accounting session 5472D212-00000001
    [ 1167.178079] wlcore: ERROR could not find sta 00:00:00:00:00:00 for starting ps

    Thanks

    Tuan Nguyen

  • Hi Tuan,

    As discussed in another thread, can you please retest this scenario after upgrading to the latest release?

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    I will move it to http://e2e.ti.com/support/wireless_connectivity/f/307/t/385367.aspx

    Thanks

    Tuan Nguyen