Professional Documents
Culture Documents
How BBB Can Be Setup
How BBB Can Be Setup
http://www.valvers.com/embedded-linux/beaglebone/getting-started/
You then have a linux terminal to use. If youre not familiar with Linux, itd be
best to go away now and learn about Linux on a desktop PC and then start
getting to grips with embedded linux. As youre learning Linux, get yourself
familiar with character file drivers.
Coding
Lets do some coding straight away. The Angstrom Linux install that comes pre-loaded on the SD card
with the BeagleBone includes GCC, so we can start coding in c straight away.
Write a simple hello world app in c using nano. Type:
[code]nano ./hello_world.c[/code]
Type in the simple program:
[code]
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
[/code]
Press Ctrl+X to quit, and press Y to save the file. Check that the file is correct by typing
[code]cat ./hello_world.c[/code]
then compile:
[code]gcc -Wall hello_world.c -o hello_world[/code]
Then run the output:
[code]./hello_world[/code]
and hey presto