– I never got this working fully but maybe there are some bits here you can use –
I got a BBB and started with Derek Malloy’s awesome tutorial so I could finally put my awesome blinkery to work as an enormous wall-mounted, internet-synchronized clock.
Adafruit decided after customer feedback that it would ship the BBB with Debian installed. This is all fine and good (I actually have no idea) but the version of Debian that it runs requires that projects be compiled with hardware FPU (Floating Point Unit) support. When I compiled my program and executed it on the BBB I got an error:
If you download a popular ARM-linux toolchain like Carlson-Minot’s arm-none-gnueabi, your program will build beautifully but not run at all on a BBB running Debian. It’s not Carlson-Minot’s fault, it’s that the BBB build of Debian requires a hardware FPU enabled toolchain.
If you use a Linux or Windows environment to create your BBB programs using the arm-none-gnueabihf toolchain, then everything’s hunky-dory. If you use OSX however, things are not so easy.
I found an arm-none-gnueabihf toolchain built for use on OSX here:
When I dragged the toolchain over to my local disk, the copy routine decided to quit when it ran into a file that had a matching version expressed in CAPITAL LETTERS because I have a case-insensitive filesystem on my Macbook. To get around this (ignoring errors during the copy) I used Ditto from the terminal:
NOTE: With the above I think it skipped “xt_connmark.h”. It looks to have content to it so I copied that over manually. The version of the same file expressed in capital letters did not seem to have any useful content.
If Eclipse shows nasty icons where C++ library calls are present, even though the project builds/runs successfully:
If Eclipse cant’ find GDB, you’re probably using the GDB built for the host system (x86). You need to point Eclipse to the GDB that comes with the target toolchain. In my case:
You also must select the shared library for the target under “Shared Libraries” in Eclipse debugging settings. In my case:
Otherwise you’ll get some crap:
Other maybe useful info
Building an arm-none-gnueabihf toolchain for OSX:
A more detailed account of building an OSX toolchain:
Will™’s cross-tool ng configuration:
Linaro, a company that hosts lots of toolchain builds for different OSes. I asked them to provide an OSX build, we’ll see how they respond!:
Lots of BBB Debian info: