[oe-users] How to build and run application on logicpd-pxa270-2.6.17-rc5?
register at mobitrum.com
register at mobitrum.com
Thu May 17 15:55:19 UTC 2007
Quoting Cliff Brake <cliff.brake at gmail.com>:
> On 5/16/07, register at mobitrum.com <register at mobitrum.com> wrote:
>> Hi, we are now building project using logicpd PXA270 board. However,
>> our application is built on linux system. The software structure is
>> like APPLICATION (build on) SHARED LIB (build on) LINUX.
>> For the moment, we have been able to download and boot the
>> logicpd-pxa270-2.6.17-rc5 linux kernel image onto the board. The linux
>> environment runs correctly. However, we don't know how to build and
>> excute libraries and applications on this kernel.
>> The procedure we used to test how to run application is:
>> a. we made a simple helloWorld.cpp on a host linux 2.6.19 machine.
>> #include <stdio.h>
>> int main() {
>> printf("Hello World!\n");
>> }
>> b. Then we compile the program using cross compiler arm-linux-gcc:
>> arm-linux-gcc -c helloWorld.c
>> arm-linux-gcc -o hello helloWorld.o
>> c. We copied the generated executable to a compact flash and installed
>> the compact flash card on the PXA270 board.
>> d. After mounted the compact flash card, we tried to execute the
>> program in the linux environment. However, the system prompt "Illegal
>> instruction". Which means the program was not compiled correctly.
>
>
> What Linux distribution are you running on the LPD board? Where did
> you get it how did you build it? Are you sure the same toolchain used
> to build the distribution is the toolchain used to build your test
> app?
Thank you very much for the reply. We downloaded the linux
distrubution from
http://www.openembedded.org/repo/org.openembedded.dev/packages/linux/logicpd-pxa270_2.6.17-rc5.bb. The distribution is build following the instruction provided on
http://www.openembedded.org/wiki/GettingStarted.
However, we built the helloWorld application with arm-linux-gcc with
the simplest compile options.
We have no idea how to build application that can run over the linux
distrition. There are several questions we have:
1. Should the application and the linux kernel been built together or
they can be built seperately?
2. If the application can be built seperately, how to do that?
3. How to download the application on to the board after the linux
kernel has been booted.
4. If they need to be built together, where should we put our
application code, and what compiling options are needed.
Thanks a lot.
Hai
>
>> So could you please tell us how to build and execute an application on
>> the logicpd-pxa270-2.6.17-rc5 kernel? Or the feature we are looking
>> for is not currently supported?
>
> Openembedded supports building distributions and applications for the
> PXA270 LPD board.
>
> Thanks,
> Cliff
>
> --
> =======================
> Cliff Brake
> http://bec-systems.com
More information about the Openembedded-users
mailing list