Re: Basic query on application development
- From: Tim Southerwood <ts@xxxxxxxxxx>
- Date: Thu, 28 Jun 2007 14:18:45 +0100
Jan Panteltje wrote:
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
I would add that http://buildroot.uclibc.org/ gives a pretty civilised cross
compiler toolchain based on uClibc - can also generate a full linux system
with kernel, busybox, python, X and microperl if you wish. It's optional
how much you use. I believe it targets ARM9.
Cheers
Tim
.
- References:
- Basic query on application development
- From: kracks
- Re: Basic query on application development
- From: Jan Panteltje
- Basic query on application development
- Prev by Date: Re: Basic query on application development
- Next by Date: Re: Basic query on application development
- Previous by thread: Re: Basic query on application development
- Next by thread: Re: Basic query on application development
- Index(es):
Relevant Pages
|