On Mon, Jul 22, 2013 at 7:42 PM, Mark Lazarewicz <
laza...@yahoo.com> wrote:
> Use the Force Frank wield the starterware
:-) No disrespect to starterware intended. I just couldn't pass up an
opportunity to suggest another way to run bare metal, since
starterware is the default response on this list.
This is probably going to be my last post on this topic, since this
isn't the way I do my development, but it's pretty easy (I think) and
it *almost* comes out of the box on the Beaglebone.
Here's what you do:
1. Download the u-boot sources and build them. RCN has docs on this.
2. There's a hello world example in <u-bootdir>/examples/standalone.
When you build u-boot, it gets compiled too. The binary is
hello_world.bin.
3. Copy hello_world.bin to the FAT partition on the MicroSD card
4. Make sure that you're connected to the bbb via a serial cable
5. Boot the BeagleBone and hit a key to break into u-boot
6. At the u-boot prompt type the following:
U-Boot# load mmc 0 0x80300000 hello_world.bin
reading hello_world.bin
594 bytes read in 5 ms (115.2 KiB/s)
U-Boot# go 0x80300000 a b c d
## Starting application at 0x80300000 ...
Example expects ABI version 6
Actual U-Boot ABI version 6
Hello World
argc = 5
argv[0] = "0x80300000"
argv[1] = "a"
argv[2] = "b"
argv[3] = "c"
argv[4] = "d"
argv[5] = "<NULL>"
Hit any key to exit ...
## Application terminated, rc = 0x0
U-Boot#
Here's a link to the hello_world.c source code:
http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob_plain;f=examples/standalone/hello_world.c;hb=HEAD
The thing missing from the u-boot API is the code to handle the
peripherals, but getting the basic Arduino API functions up and
running wouldn't be too hard.
There, done with u-boot post. Starterware is cool too. But now I'm
going back to my Linux happy place.
Frank
> email to
beagleboard...@googlegroups.com.
> --
> For more options, visit
http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
beagleboard...@googlegroups.com.