Re: Basic query on application development
- From: Jan Panteltje <pNaonStpealmtje@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 12:55:10 GMT
On a sunny day (Thu, 28 Jun 2007 11:33:37 -0000) it happened kracks
<kirthikaiitm@xxxxxxxxx> wrote in
<1183030417.717442.56150@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi,
I am pretty new to Linux.
I am working with ARM9 (s3c2440 )CPU
I ported Linux to target device.
Now i want to develop a small Application in Linux.
I am not sure how to start with.
First i think i hv to make a simple C (file) application (Eg ."hello
world")
I do it usually this way, as you probably have a cross compiler for arm,
I write it in normal C, create a makefile with a define that defines the compiler,
Then I compile it first for the PC (x86) (for all parts that are not hardware specific),
and run it, in your case that would just run it and print 'hello world' on the PC.
Then I change the define for the cross compiler, compile it again with
all hardware specific stuff enabled, and upload it to the embedded system,
then connect to the embedded system via -whatever, for example serial link-
and try to run it. Most of that can be scripted.
At least this guarantees your basic code is OK before you try to run it on the target.
Just develop small pieces at the time, works for modules too.
There may be issues like your embedded system runs kernel 2.4 and your PC 2.6, just
find a way around that.
El Pante
.
- Follow-Ups:
- Re: Basic query on application development
- From: Tim Southerwood
- Re: Basic query on application development
- References:
- Basic query on application development
- From: kracks
- Basic query on application development
- Prev by Date: Basic query on application development
- Next by Date: Re: Basic query on application development
- Previous by thread: Basic query on application development
- Next by thread: Re: Basic query on application development
- Index(es):
Relevant Pages
|