View Single Post
Old 10-05-2007, 01:05 PM   #1
mind
Member
mind began at the beginning.
 
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
First HelloWorld tutorial, a n00b primer First Hello World Tutorial, a n00b primer

(cross posted from iRex forum)
NOTE: this is just and intro. For more please refere to Adam's posts or other threads.

You need a linux distro, a usb key, the shell account actived and the dropbear or a shell on iliad.
Download the last toolchain: http://developer.irexnet.com/pub/Toolchain/ .
Uncompress it and move to the directory /oe-sdk-20070607085328/usr/local/arm/oe/bin . Then open a Terminal and type:
Code:
core2duo bin # echo '#include <stdio.h>
int main(){ printf("Hello World\n"); }
' | ./arm-linux-gcc -x c -o hello -
Note this is just a printf, compiled with a pipe. You can as well make a .c file with the code and compile from that file. (./arm-linux-gcc -o hello hello.c)
The copy hello to your usb key, start your iLiad with usb key inserted, login with ssh, cd to /mnt/usb and run ./hello. This should be print "Hello World"
And that's all folks.
Regards, Gil
mind is offline   Reply With Quote