<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><br></div><div><span style="font-size: 12pt;">OK, I added a bluetooth write up, linked in your original kernel build page, let me know if that's ok. </span></div><div><br></div><a href="http://elinux.org/Minnowboard:Adding_Bluetooth_Support_To_Your_Kernel" target="_blank">http://elinux.org/Minnowboard:Adding_Bluetooth_Support_To_Your_Kernel</a><div><br></div><div><br><br><div><hr id="stopSpelling">Date: Mon, 25 Aug 2014 09:54:44 -0500<br>From: dvhart@linux.intel.com<br>To: elinux-minnowboard@lists.elinux.org<br>Subject: Re: [MinnowBoard] Adding Bluetooth modules to Angstrom kernel<br><br><div><div>Nice job.</div><div><br></div><div>What jumps out at me is the IMAGE_INSTALL* lines. I think what you want is an image feature like "tools-sdk" and "dev-pkgs" added to IMAGE_FEATURES instead of adding these individually.</div><div><br></div><div>IMAGE_FEATURES += "tools-sdk dev-pkgs"</div><div><br></div><div>Of course, that's assuming you actually want to build on the Minnowboard rather than on the host - and I try to avoid building on my targets as much as possible :-)</div><div><br></div><div>Thanks for following up and sharing your experience. I'd like to see these instructions added to the elinux wiki for the Minnowboard.</div><div><br></div><div>I'd also appreciate a patch adding the bluetooth fragment to meta-minnow.</div><div><br></div><div>Thanks,</div><div><br></div><div><div>-- </div><div>Darren Hart<span class="ecxApple-tab-span" style="white-space:pre;"> </span>Open Source Technology Center</div><div>darren.hart@intel.com<span class="ecxApple-tab-span" style="white-space:pre;"> </span> Intel Corporation</div></div></div><div><br></div><span id="ecxOLK_SRC_BODY_SECTION"><div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt;"><span style="font-weight:bold;">From: </span> Robert <<a href="mailto:robertdegruijl@hotmail.com">robertdegruijl@hotmail.com</a>><br><span style="font-weight:bold;">Reply-To: </span> MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold;">Date: </span> Monday, August 25, 2014 at 11:39<br><span style="font-weight:bold;">To: </span> MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold;">Subject: </span> Re: [MinnowBoard] Adding Bluetooth modules to Angstrom kernel<br></div><div><br></div><blockquote id="ecxMAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5;"><div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><div class="ecxhmmessage"><div dir="ltr">Hey Darren,<br><br>Thanks for this little goldmine of info! I managed to pair my phone with my Minnowboard through bluetooth. Not without trial and error, so let me recount my steps for anyone who's interested:<br><br>Per your suggestion I added a reference to a new file bluetooth.cfg to the SRC_URT in my linux-yocto_3.10.bbappend file. I added the following config options to get it to work, likely a few of these are not required:<br><br>CONFIG_BT=m<br>CONFIG_BT_RFCOMM=m<br>CONFIG_BT_RFCOMM_TTY=y<br>CONFIG_BT_BNEP=m<br>CONFIG_BT_BNEP_MC_FILTER=y<br>CONFIG_BT_BNEP_PROTO_FILTER=y<br>CONFIG_BT_CMTP=m<br>CONFIG_BT_HIDP=m<br>CONFIG_BT_L2CAP=m<br>CONFIG_BT_SCO=m<br>CONFIG_BT_HCIUSB=m<br>CONFIG_BT_HCIUSB_SCO=m<br>CONFIG_BT_HCIBTUSB=m<br>CONFIG_BT_HCIBTSDIO=m<br>CONFIG_BT_HCIUART=m<br>CONFIG_BT_HCIUART_H4=y<br>CONFIG_BT_HCIUART_BCSP=y<br>CONFIG_BT_HCIUART_ATH3K=y<br>CONFIG_BT_HCIUART_LL=y<br>CONFIG_BT_HCIUART_3WIRE=y<br>CONFIG_BT_HCIBCM203X=m<br>CONFIG_BT_HCIBPA10X=m<br>CONFIG_BT_HCIBFUSB=m<br>CONFIG_BT_HCIDTL1=m<br>CONFIG_BT_HCIBT3C=m<br>CONFIG_BT_HCIBLUECARD=m<br>CONFIG_BT_HCIBTUART=m<br>CONFIG_BT_HCIVHCI=m<br>CONFIG_BT_MRVL=m<br>CONFIG_BT_MRVL_SDIO=m<br>CONFIG_BT_ATH3K=m<br>CONFIG_BT_WILINK=m<br><br>Initially I thought adding all my desired packages to setup-scripts/conf/local.conf was a great idea, but it's not trivial. For example, even adding all this:<br><br>IMAGE_INSTALL_append=" make"<br>IMAGE_INSTALL_append=" gcc"<br>IMAGE_INSTALL_append=" libgcc"<br>IMAGE_INSTALL_append=" binutils"<br><br>does not give me a healthy gcc environment, I have to go in and do a<br><br>opkg install gcc-dev<br><br>on the minnowboard after building and downloading the image in order to get the full set of gcc header files in /usr/include. I did not find this gcc-dev as part of the list shown by 'bitbake-layers show-recipes'. Let me know if I missed a 'super' package taking care of all these dependencies.<br><br>Similarly, other packages I tried to install were incomplete. Most notably, the 'bluez-simple-agent' script, useful for bluetooth pairing, did not appear in the image after installing the bluez4 package, so I had to snatch that from my Ubuntu system. So next time, I'd probably build a clean systemd-image and install everyting using opkg.<br><br>Once the image was built, written to SD (I tried a 64GB microsd card, but that uses an exfat file system which ran into trouble, so I reverted to an 8GB microsd) and booted on my Minnowboard, I could pair using the following commands on the minnowboard:<br><br>-----------------------------<br>systemctl enable bluetooth.service # only had to do this once,<br>rfkill unblock all && rfkill list # apparently this releases bluetooth device<br>hciconfig hci0 up piscan<br>hciconfig hci0 name minnow<br>hciconfig hci0 sspmode 1 # Simple pairing mode, no passwords<br>hciconfig hci0<br>sdptool add SP # Serial protocol between phone and minnow<br>hcitool scan #lists available devices, my phone was found<br><br>bluez-simple-agent hci0 <my phone mac address> # Note I had to copy this script from another system, it was not on my image<br><br># Minnow and phone will ask a few questions, after which they are paired<br># Now set up serial connection through phone<br><br>rfcomm listen hci0 &<br><br># Now I start a 'Bluetooth Terminal' app on my android phone, and connect to my paired minnow. Once connection is set up, I now have a /dev/rfcomm0 in my minnowBoard. Test out serial communication:<br><br>minicom -D /dev/rfcomm0<br><br># now I can type text between phone and minnowboard.<br><br>--------------------------------------<br><br>Let me know if there are better methods you guys have found, and thanks again Darren for your help.<br><br>Robert<br><br><br><br><br><br><br><br><br><br><div><hr id="ecxstopSpelling">Date: Wed, 20 Aug 2014 11:54:23 -0500<br>From: <a href="mailto:dvhart@linux.intel.com">dvhart@linux.intel.com</a><br>To: <a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a><br>Subject: Re: [MinnowBoard] Adding Bluetooth modules to Angstrom kernel<br><br><div><div><div><span style="font-family:Calibri;font-size:11pt;font-weight:bold;">From: </span><span style="font-family:Calibri;font-size:11pt;"> Robert <</span><a href="mailto:robertdegruijl@hotmail.com" style="font-family:Calibri;font-size:11pt;">robertdegruijl@hotmail.com</a><span style="font-family:Calibri;font-size:11pt;">></span></div></div></div><span id="ecxOLK_SRC_BODY_SECTION"><div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt;"><span style="font-weight:bold;">Reply-To: </span> MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold;">Date: </span> Tuesday, August 19, 2014 at 22:59<br><span style="font-weight:bold;">To: </span> "." <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold;">Subject: </span> [MinnowBoard] Adding Bluetooth modules to Angstrom kernel<br></div><div><br></div><blockquote id="ecxMAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5;"><div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><div class="ecxhmmessage"><div dir="ltr">Hi,<div><br></div><div>I'm trying to use a usb bluetooth adapter to work with a Minnowboard (LM506, which has a Broadcom Chipset). I installed Bluez, but I can't get it up and running (e.g. hci_config fails), which is, from what I can tell, due to the fact that my linux Angstrom kernel is missing bluetooth modules (at least btusb, but maybe more). lsusb shows the broadcom chipset, lsmod shows no sign of btusb, and n sign of any btusb.* on my micro-SD card that came with the Minnowboard).</div><div><br></div><div>I tried re-configuring the Angstrom kernel with bluetooth modules, but apparently the image that got distributed wiht my Minnowboard does not even have the sourcecode of these bluetooth kernel modules (no btusb.c anywhere).</div><div><br></div><div>Does anyone know:</div><div><br></div><div>- Is there anyway I can manually add the bluetooth modules to my Angstrom kernel? Do I cross-compile a new Angstrom kernel from scratch and copy the modules over to my Minnowboard? Is there an easier way? </div></div></div></div></blockquote></span><div><br></div><div>Angstrom is using the linux-yocto kernel, the recipe is in the meta-minnow layer. You'll find a configuration fragment in the meta-minnow linux-yocto recipe files dir which you can simply add the drivers you want to.</div><div><br></div><div>The file you want to modify is this one:</div><div><a href="http://git.yoctoproject.org/cgit/cgit.cgi/meta-minnow/tree/recipes-kernel/linux/linux-yocto_3.10.bbappend" target="_blank">http://git.yoctoproject.org/cgit/cgit.cgi/meta-minnow/tree/recipes-kernel/linux/linux-yocto_3.10.bbappend</a></div><div><br></div><div>Add a <a target="_blank">file://bluetooth.cfg</a> to the SRCURI. Then create a directory "linux-yocto" and add a configuration fragment called bluetooth.cfg. It should just be a subset of the Linux .config with the specific CONFIGs you need. E.g.:</div><div><br></div><div>CONFIG_BLUETOOTH=m</div><div><br></div><div>Please use modules over built-in whenever possible.</div><div><br></div><div>Then send me a patch :)</div><div><br></div><span id="ecxOLK_SRC_BODY_SECTION"><blockquote id="ecxMAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5;"><div><div class="ecxhmmessage"><div dir="ltr"><div>- Can I re-compile my current angstrom kernel with bluetooth modules? <span style="font-size:12pt;">Where can I find the full source of the Angstrom distribution as it was compiled for the Minnowboard, including these bluetooth modules? </span><span style="font-size:12pt;">Just starting from scratch from the source from </span><a href="http://www.angstrom-distribution.org/" target="_blank" style="font-size:12pt;">angstrom-distribution.org</a><span style="font-size:12pt;"> seems insufficient, because there seem to be multiple Minnowboard-specific modules I would be missing then).</span></div></div></div></div></blockquote></span><div><br></div><div>There are instructions for building Angstrom for Minnow, and that includes all the Yocto Project meta-data you need to do that, and that downloads all the sources.</div><div><br></div><div><a href="http://elinux.org/Minnowboard:Building_Angstrom_Linux_for_the_MinnowBoard" target="_blank">http://elinux.org/Minnowboard:Building_Angstrom_Linux_for_the_MinnowBoard</a></div><div><br></div><div>--</div><div>Darren</div><div><br></div><span id="ecxOLK_SRC_BODY_SECTION"><blockquote id="ecxMAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5;"><div><div class="ecxhmmessage"><div dir="ltr"><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Thanks!</span></div><div><span style="font-size:12pt;"><br></span></div><div><br></div><div><span style="font-size:12pt;"> </span></div> </div></div></div>_______________________________________________
elinux-MinnowBoard mailing list
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a><a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" target="_blank">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a></blockquote></span><br>_______________________________________________
elinux-MinnowBoard mailing list
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" target="_blank">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a></div> </div></div></div>_______________________________________________
elinux-MinnowBoard mailing list
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" target="_blank">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a>
</blockquote></span>
<br>_______________________________________________
elinux-MinnowBoard mailing list
elinux-MinnowBoard@lists.elinux.org
http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</div></div> </div></body>
</html>