Re: emdebian toolchain hello world problem
I found the solution with Wan ZongShun's help on arm-linux mailing list:
I forgot to turn on the CONFIG_AEABI in my new kernel!
Many thanks for the helps!
Zachár Balázs wrote:
> Now I changed to gnueabi... Recompile the kernel and the hello world...
> Kernel boot up (with old system), but the Hello world (I changed it a little) isn't work:
> devel:/opt/rootfs# cat /opt/rootfs/test_init.c
> #include <stdio.h>
> int main()
> printf("Hello world!\n");
> return 0;
> Compile it with arm-linux-gnueabi with -static and use on the board (new kernel, old system):
> # /tmp/test_init_eabi
> Segmentation fault
> Any Idea?
> Zachár Balázs wrote:
>> Zachár Balázs wrote:
>>> Neil Williams wrote:
>>>> On Tue, 17 Mar 2009 09:30:28 +0100
>>>> Zachár Balázs <email@example.com> wrote:
>>>>> I have a pxa270 based board...
>>>>> I already compile a new kernel to my board with emdebian's cross toolchain and it works properly!
>>>> arm or armel?
>>>>> # /tmp/test_init
>>>>> Illegal instruction
>>>> Sounds like the kernel architecture doesn't match the system|glibc
>>> You are right, but thats why I compiled it to static...
>> I compiled a new kernel with arm-linux-gnu-gcc...
>> Now I am using the new kernel with an old system (original) (I want to change to a new system but the Busybox's init crash so I tried a simple init like "Hello world";sleep(999999), but it fails too)...
>> So I would like to try the "Hello world!" on the old system... So I compiled it with the emdebian's toolchain (which I use when I compiled the new kernel) to statical linked binary but it didn't work
>> (see above)...
>> So, where is the problem?
>> Balázs Zachár