http://andryongkinata.wordpress.com/2008/01/21/ecos-hello-world/
First, get the toolchain and code using ecos-install.tcl.
Then, using the tool ecosconfig and configtool to adjust the config file, especially the "Startup Type" and "Output to PC Screen".
Then do the system build.
$ecosconfig tree; make
Then just use the hello.c from "ecos/ecos-3.0b1/examples", and compile using following command:
$i386-elf-gcc -g -I../install/include hello.c -L../install/lib -Ttarget.ld -nostdlib
Then come out a.out. Using the grub to boot the a.out, like:
root (hd2,0)
kernel /a.out
Then it shows the "Hello, eCos world!"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment