In order to program the BBB cross-compilation is necessary. Because the system I will be using to program the board is x86 architecture and the BBB is using ARM architecutre. So I will be setting Eclipse to do this and will show the entire process that I used in order accomplish this task. I am running Ubuntu 12.04 LTS on my personal desktop to do this (not a virtual system).
Installing Eclipse (CDT)
|Figure 1: Installing Eclipse|
sudo apt-get install eclipse eclipse-cdt
sudo apt-get install g++ gcc
After doing that I had my best results by updating everything before I progressed any further.
Because we are compiling to a separate system I also needed to install these in Eclipse:
- Remote System Explorer End-User Runtime
- C/C++ Remote Launch
|Figure 2: Installing add-ons|
Making it ARM Ready
|Figure 3: Checking it installed properly|
|Figure 4: Hello World|
|Figure 5: Changing Build Settings|
Setting up Remote Application
|Figure 6: Making new connection|
The last part is to give it a file path. Figure 6 shows an example of how that can be done. The part marked by a blue box is what the name of the program will be inside your BBB. The red boxes are what I changed. Click run and it should send it to the BBB. It will automatically run it as soon as you send it. You can also call it from the BBB by typing ./ProgramName while ssh-ing to the BBB.
|Figure 11: File Path|
cross-compile-for-beaglebone-black by Michael H Leonard