6LoWPAN on Raspberry Pi using Openlabs 802.15.4 Radio

Here are the steps I used to get the latest version of Linux 6LoWPAN stack running on Raspberry Pi B and Raspberry Pi B+.  These are my notes from what I learned from the Openlabs blog post on this very subject.

To have a known starting point, I install Raspbian on the Pi, following these installation instructions.  The release date of Raspbian I used is 2015-Feb-16 and kernel image is 3.18.  I suggest installing Raspbian, booting it, and running “sudo raspi-config” to expand the file system to use all storage on your sdcard.  This also makes sure that things are working before you try a new kernel.

Now build the new 6LoWPAN kernel for Pi:

Next, we need to add the Openlabs radio to the device tree.  The file to use depends on if you have a Pi B or Pi B+.  I have both, so I edit both of them:

Each file has this added to the bottom:

Then make dtbs:

We need to copy files to the sdcard on the Pi.  For this I have the Raspbian image booted on the Pi itself, and the network is running so I can ssh/scp etc.  My Pi has IPv4 address 192.168.1.186, and I’ve enabled root login.

Save original files first.

You will only have one of the dtb files, which one depends on which version of the Pi you are using.

Now copy

Note: as before, you will only have to copy one to these dtb files above, depending on your are running a Pi B or Pi B+.

Now we need u-boot.bin and it’s configuration.  I simply download a pre-built binary for Raspberry Pi from Beyond Logic extract and put the pre-built u-boot.bin in /boot/u-boot.bin on the sdcard.

To enable u-boot, the existing /boot/config.txt needs to be changed to use u-boot.

Create uEnv.txt in /boot

Enter this configuration:

Now boot your new kernel.

This entry was posted in Raspberry Pi and tagged , , , . Bookmark the permalink.