Hi,
First, please forgive me but I am yet to find a tutorial for developing and transferring a helloworld c program onto an AT91SAMxxxx board and running that c program under an embedded linux OS.
I am a complete beginner to ALL embedded systems. I am computer science student with some C/C++ experience on linux and windows. I have been given an AT91SAM9260-EK board, a PC running windows, a USB cable and an RS232 cable.
So far I have managed to build simple binaries (such as Atmel's Getting Started LED application) using YAGARTO toolchain and have written those binaries to various on-board memories using the SAM-BA utility via USB. I have also managed to write the linux_demo binary to DataFlash memory and have played with it a little through a HyperTerminal via an RS232 DBGU connection.
My aim is to write a program which reads data from the PIOC connector, does some processing and sends/recieves data packets over an ethernet connection using the TCP/IP stack provided by an embedded linux OS.
My problem is that I don't understand how I should be developing and deploying c programs to run under the embedded linux OS on the board. How should I write/transfer the c program onto the memory and point linux OS to it such that it runs that program on startup?
Question:
How do I install an embedded linux distribution THEN write, build, transfer and run a hello world c program on that linux OS on the board?
Next question:
How do I extend this so that I am implementing TCP/IP stack through linux (i.e. will #include "socket.h" work now?) ?
How do I read from PIOC? (i.e. Memory map? )
Sorry for the long question(s).
Thanks a lot in advance!
Tom
