<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><description>Building kernel for RPi2 with bluetooth_6lowpan
In this guide, you will have two choices:


Cross-compilation build


Native build


Choose the one that fits your needs. Cross-compilation is the fastest choice.
Dependencies:
In addition t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Mon, 01 Apr 2019 07:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>saarthaak</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;hi zou,&lt;/p&gt;
&lt;p&gt;i did the exact same steps that u performed but while making the debian packages i get an error&lt;/p&gt;
&lt;p&gt;the error is install: cannot stat &amp;#39;REPORTING_BUGS&amp;#39; no such file or directory&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Thu, 19 May 2016 13:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>RK</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;m just working through this for a PI 3, even though the bluetooth seems to be installed already, I want to go through the process and see how it all hangs together.&lt;/p&gt;
&lt;p&gt;Where do you select what is built into the kernel? There&amp;#39;s no selection in the steps above that I can see, however obviously it&amp;#39;s possible to build without things like 6lowpan, because that used to be the default.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to guess at the commands I need for the PI 3, assume I just change the chip name to the newer broadcom and continue.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Tue, 14 Jul 2015 10:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>Jun Qing ZOU</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;It seems that Bluetooth 6lowpan is now natively supported on Raspbian 2015-05-05.&lt;/p&gt;
&lt;pre&gt;pi@raspberrypi ~ $ uname -a 
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
 
pi@raspberrypi ~ $ ls /lib/modules/3.18.11-v7+/kernel/net/bluetooth/
bluetooth_6lowpan.ko  bluetooth.ko bnep  hidp  rfcomm
&lt;/pre&gt;
&lt;p&gt;Just load &amp;quot;bluetooth_6lowpan&amp;quot; in /etc/modules.&lt;/p&gt;
&lt;p&gt;BR, zou&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Sat, 20 Jun 2015 21:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>horiebin</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;When I tried the native-build on my raspberry-pi-2 with 16G sd card I meeted a problem :&lt;/p&gt;
&lt;p&gt;WARNING: missing /lib/modules/3.18.16-rpi2-6lowpan-v7+
Device driver support needs thus be built-in linux image!&lt;/p&gt;
&lt;p&gt;ERROR: could not open directory /lib/modules/3.18.16-rpi2-6lowpan-v7+: No such file or directory
FATAL: could not search modules: No such file or directory&lt;/p&gt;
&lt;p&gt;ERROR: ld.so: object &amp;#39;libfakeroot-sysv.so&amp;#39; from LD_PRELOAD cannot be preloaded:                   ignored.&lt;/p&gt;
&lt;p&gt;WARNING: could not open /var/tmp/mkinitramfs_kQya3Z/lib/modules/3.18.16-rpi2-6lo                  wpan-v7+/modules.order: No such file or directory&lt;/p&gt;
&lt;p&gt;WARNING: could not open /var/tmp/mkinitramfs_kQya3Z/lib/modules/3.18.16-rpi2-6lo                  wpan-v7+/modules.builtin: No such file or directory
/usr/sbin/update-initramfs: 204: /usr/sbin/update-initramfs: cannot create /var/                  lib/initramfs-tools/3.18.16-rpi2-6lowpan-v7+: Permission denied&lt;/p&gt;
&lt;p&gt;run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
arch/arm/boot/Makefile:99: recipe for target &amp;#39;install&amp;#39; failed
make[3]: *** [install]&lt;/p&gt;
&lt;p&gt;Error 1
arch/arm/Makefile:311: recipe for target &amp;#39;install&amp;#39; failed
make[2]: *** [install]
Error 2
make[2]: Leaving directory &amp;#39;/home/pi/raspbian/kernel/linux&amp;#39;
debian/ruleset/targets/image.mk:34: recipe for target &amp;#39;debian/stamp/install/linu                  x-image-3.18.16-rpi2-6lowpan-v7+&amp;#39; failed
make[1]: *** [debian/stamp/install/linux-image-3.18.16-rpi2-6lowpan-v7+]&lt;/p&gt;
&lt;p&gt;Error 2
make[1]: Leaving directory &amp;#39;/home/pi/raspbian/kernel/linux&amp;#39;
debian/ruleset/local.mk:105: recipe for target &amp;#39;kernel_image&amp;#39; failed
make: *** [kernel_image] Error 2&lt;/p&gt;
&lt;p&gt;and I don&amp;#39;t know how to fix the problem&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Thu, 18 Jun 2015 19:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>horiebin</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello Hakon&lt;/p&gt;
&lt;p&gt;I tried the cross-compiling the kernel for my raspberry pi 2 on my Ubuntu 14.04.
I followed your guide and found a problem when doing &amp;quot;Generate .deb packages&amp;quot;. It appeared a problem which was caused by a bug of My version of ubuntu.And fixed it by downloading &lt;a href="https://launchpad.net/ubuntu/+source/kernel-package/13.003/+build/5980712/+files/kernel-package_13.003_all.deb"&gt;this package .&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the debian files I have created had the same problem with Zou. So now I need to take hours to do the native build.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Thu, 21 May 2015 21:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>Rasit Eskicioglu</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Zou and Håkon,&lt;/p&gt;
&lt;p&gt;I followed Zou&amp;#39;s instructions to build a new kernel on my Raspberry Pi 2.&lt;/p&gt;
&lt;p&gt;First, I did not need the &lt;em&gt;build-essential&lt;/em&gt; and &lt;em&gt;git&lt;/em&gt; packages. They were already installed on &lt;em&gt;2015-05-05-raspbian-wheezy.img&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Second, &lt;em&gt;make –j 5 &amp;amp;&amp;amp; make –j 5 modules&lt;/em&gt; gave an error, saying make does not know how to make target -j5 (this was bizarre, because man page says -j is an option. Further, I tried --jobs=5 and it did go thru, but only 1 job at a time. So, it is still building (2+ hours, now)&lt;/p&gt;
&lt;p&gt;Any comments?&lt;/p&gt;
&lt;p&gt;--Rasit&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Wed, 06 May 2015 19:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Zou,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that the guide was useful!
Regarding the dependency to libc6 when cross-compiling; This is something I also saw when running Ubuntu 15.04-AMD64, but I did a force install to verify that the kernel booted properly on the RPi2. The problem seems to be that Ubuntu 15.04 seems to set a dependency to the systems libc instead of the crosscompiled targets libc when it&amp;#39;s creating the debian packet using make-kpkg.&lt;/p&gt;
&lt;p&gt;I also did a successful deb-generation on Ubuntu 14.10, and figured it was a 15.04-issue (at the time of writing the blog, 15.04 was still in beta), but it might also be that the &amp;quot;make-kpkg&amp;quot; is called incorrectly from my side.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s an annoying issue, but it&amp;#39;s not due to cross-compiling, but rather the generation of the .deb files.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t been able to get around this in 15.04 (yet).&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building kernel for RPi2 with bluetooth_6lowpan for Raspbian</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/building-kernel-for-rpi2-with-bluetooth_5f00_6lowpan-fo</link><pubDate>Fri, 01 May 2015 01:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b231-902e-4d15-81a9-c512d2a12da4</guid><dc:creator>Jun Qing ZOU</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Thanks for the great guide. I managed to get a RPi2 then tried the steps. My setup is Raspbian 2015-02-16 on R.Pi 2 Model B, with a 16G microSD.&lt;/p&gt;
&lt;p&gt;For the cross-compilation, I build the Raspbian kernel on my Ubuntu 15.4 laptop. But the kernel has a dependency on libc6 (&amp;gt;= 2.14), while the Raspbian host has 2.13-38+rpi2+deb7u8, so cannot install the debian package.&lt;/p&gt;
&lt;p&gt;For the native build, it works. Major steps that I did&lt;/p&gt;
&lt;p&gt;Get git, bc and kernel-package&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sudo apt-get install git bc
kernel-package -y&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Clone the kernel (3.18.12 at the time that I fetched)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;git clone
&lt;a rel="nofollow" target="_blank" href="https://github.com/raspberrypi/linux.git"&gt;github.com/.../linux.git&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Get build essential&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sudo apt-get install build-essential
–y&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Set default configuration&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;make bcm2709_defconfig&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Compile&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;make –j 5 &amp;amp;&amp;amp; make –j 5 modules&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Dedian package&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;CONCURRENCY_LEVEL=5
DEB_HOST_ARCH=armhf fakeroot make-kpkg
--revision date +%Y%m%d --initrd kernel_image kernel_headers&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I successfuly created two debian files of&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;linux-headers-3.18.12-v7+_20150501_armhf.deb and
linux-image-3.18.12-v7+_20150501_armhf.deb&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This image has dependency on libc6 (&amp;gt;= 2.13-28), which is all fine. After install it, bluetooth_6lowpan is present.&lt;/p&gt;
&lt;p&gt;BR, zou&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=799&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>