Following on from my previous post about wanting to experiment with 6LoWPAN and Contiki, I suppose I’d better do something. First things first. I needed to download Contiki and get it building. I’ve got a few options.
A Linux VM
The official guide pointed me towards using a pre-configured “Instant Contiki” Ubuntu VM and that certainly works. I needed to install and setup VMWare but that wasn’t too bad. It’s probably time I played around with Linux a bit more, so I also installed Linux Mint (easier for newbies) in a VM too.
There was also a guide on Sun May Sky about using Cygwin on Windows. I’m sure this works as described and I was about to give it a try, but then I though “Cygwin? Isn’t that a little outdated for Windows 10?”
Bash on Ubuntu on Windows
When I first wrote this guide, the version of Windows was the 1607 “Anniversary Update” and the Bash shell was available but as a slightly hidden developer-only feature. I’ve updated it for the latest (at time of update) Windows 1709 “Creator’s Update”. To get things working in 1709 just install Ubuntu from the Windows store and type “ubuntu” to run.
The only thing worth mentioning is that your C drive will appear as /mnt/c rather than Cygwin’s /cygdrive/c.
YaKai Chen’s Cygwin guide mentioned installing the ARM GNU Compiler toolchain and adding the installation folder to the path. The default Windows installation path with spaces and (x86) is awkward to use in Linux and it turns out it isn’t even necessary.
I went to build a Contiki component with a make command and was told that it wasn’t installed. “sudo apt-get install make” solved that.
You’ll notice the make failed with arm-none-eabi-gcc not found, so I tried just entering arm-none-eabi-gcc. A very helpful prompt told me that apt-get install gcc-arm-none-eabi might solve my woes. And it did.
Time to try that make again… OK, this time srec_cat was the missing culprit, but just typing srec_cat told me what needed to be installed. Simply apt-get install srecord and I was ready for attempt #3… and success.
That seemed easy! Don’t tell anyone, but I might get to like this new Bash shell. Now to get something meaningful working…
Pingback: 6LowPAN (part 1) – discovering sub 1GHz mesh networking | 0xFRED