* After running Bluetooth GUI application Bluetooth CLI fails due to incorrect
  initialization.
* Add patch that fixes this problem.

Signed-off-by: Franklin S. Cooper Jr <[email protected]>
---
 .../wl1271-demo/0001-Add-additional-hci0-up.patch  |   54 ++++++++++++++++++++
 .../wl12xx-demo/wl1271-demo_git.bb                 |    6 ++-
 2 files changed, 58 insertions(+), 2 deletions(-)
 create mode 100644 
meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo/0001-Add-additional-hci0-up.patch

diff --git 
a/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo/0001-Add-additional-hci0-up.patch
 
b/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo/0001-Add-additional-hci0-up.patch
new file mode 100644
index 0000000..67603dc
--- /dev/null
+++ 
b/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo/0001-Add-additional-hci0-up.patch
@@ -0,0 +1,54 @@
+From 3dd9df41002dd57af0c6ad8e4f6d36156b5bd2e0 Mon Sep 17 00:00:00 2001
+From: Franklin S. Cooper Jr <[email protected]>
+Date: Fri, 31 May 2013 14:05:29 -0500
+Subject: [PATCH] Add additional hci0 up
+
+* After running the Bluetooth GUI BT CLI wasn't initialized properly.
+* Adding hciconfig hci0 up statement fixes this problem.
+
+Signed-off-by: Franklin S. Cooper Jr <[email protected]>
+---
+ script/am1808/BT_Init.sh   |    1 +
+ script/am335x/BT_Init.sh   |    1 +
+ script/omap3evm/BT_Init.sh |    1 +
+ 3 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/script/am1808/BT_Init.sh b/script/am1808/BT_Init.sh
+index 1645cbf..5620dc5 100755
+--- a/script/am1808/BT_Init.sh
++++ b/script/am1808/BT_Init.sh
+@@ -22,6 +22,7 @@ modprobe gpio_en
+ sleep 2
+ hciattach /dev/ttyS1 texas 2000000 & 
+ sleep 10
++hciconfig hci0 up
+ hciconfig hci0 piscan &> /dev/null
+ agent --path /org/bluez/agent 0000 &> /dev/null &
+ sleep 2
+diff --git a/script/am335x/BT_Init.sh b/script/am335x/BT_Init.sh
+index 0e6f714..873cc30 100755
+--- a/script/am335x/BT_Init.sh
++++ b/script/am335x/BT_Init.sh
+@@ -25,6 +25,7 @@ modprobe gpio_en
+ sleep 2
+ hciattach /dev/ttyO1 texas 3000000 & 
+ sleep 5
++hciconfig hci0 up
+ hciconfig hci0 piscan &> /dev/null
+ agent --path /org/bluez/agent 0000 &> /dev/null &
+ sleep 2
+diff --git a/script/omap3evm/BT_Init.sh b/script/omap3evm/BT_Init.sh
+index 0e6f714..873cc30 100755
+--- a/script/omap3evm/BT_Init.sh
++++ b/script/omap3evm/BT_Init.sh
+@@ -25,6 +25,7 @@ modprobe gpio_en
+ sleep 2
+ hciattach /dev/ttyO1 texas 3000000 & 
+ sleep 5
++hciconfig hci0 up
+ hciconfig hci0 piscan &> /dev/null
+ agent --path /org/bluez/agent 0000 &> /dev/null &
+ sleep 2
+-- 
+1.7.0.4
+
diff --git 
a/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo_git.bb 
b/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo_git.bb
index 88965a3..bd728a4 100644
--- a/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo_git.bb
+++ b/meta-arago-extras/recipes-connectivity/wl12xx-demo/wl1271-demo_git.bb
@@ -9,14 +9,16 @@ RDEPENDS_${PN} += "bluez4 openobex ussp-push obexftp 
bluez-hcidump obex-client"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 PACKAGE_STRIP = "no"
 
-PR = "r4+gitr${SRCPV}"
+PR = "r5+gitr${SRCPV}"
 
 BRANCH = "wl12xx"
 SRCREV = "7736f86b8c157ffc3e2a0b9e55a97c093faae14e"
 
 COMPATIBLE_MACHINE = "am37x-evm|am180x-evm|da850-omapl138-evm|am335x-evm"
 
-SRC_URI = 
"git://github.com/TI-ECS/wl1271-bluetooth.git;protocol=git;branch=${BRANCH}"
+SRC_URI = 
"git://github.com/TI-ECS/wl1271-bluetooth.git;protocol=git;branch=${BRANCH} \
+           file://0001-Add-additional-hci0-up.patch \
+"
 
 S = "${WORKDIR}/git"
 
-- 
1.7.0.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to