[oe-users] How to build and run application on logicpd-pxa270-2.6.17-rc5?

register at mobitrum.com register at mobitrum.com
Wed May 16 19:55:34 UTC 2007


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.

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?
Thanks.

Hai





More information about the Openembedded-users mailing list