Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] EABI broken on arm926t?
@ 2008-10-19  0:37 Hai Zaar
       [not found] ` <22738895.post@talk.nabble.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Hai Zaar @ 2008-10-19  0:37 UTC (permalink / raw)
  To: buildroot

Good day!
I'm building two weeks old buildroot snapshot for AT91SAM9260 board.

All I do it:
make at91sam9260dfc_defconfig
make menuconfig (select arm926t, EABI and remove games, etc...)
make

Results:
All kernels from 2.6.25 and later finish boot like this:
   VFS: Mounted root (ext2 filesystem).
   Freeing init memory: 128K
   Kernel panic - not syncing: Attempted to kill init!

The only kernel that worked is 2.6.24. After checking the kernel
config, I've found out that CONFIG_AEABI was not set (in spite of EABI
being selected in buildroot's config). Disabling EABI on later
kernels, (or enabling CONFIG_OABI_COMPAT) made them (almost)work.

Currently the situation is as follows:

EABI kernel + EABI rootfs = kernel panic (busibox's linuxrc dies)
EABI kernel + OABI rootfs = kernel panic (busibox's linuxrc dies)
OABI kernel + EABI rootfs = works, but some things like ping and nfs
return 'Illegal instruction'
EABI+OABI_COMPAT kernel + EABI rootfs = works, but some things like
ping and nfs return 'Illegal instruction'
EABI+OABI_COMPAT kernel + OABI rootfs = work correctly
OABI kernel + OABI rootfs = works correctly

1. Is EABI support broken for this platform in buildroot?
2. How can further investigate this issue?

-- 
Zaar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] EABI broken on arm926t?
       [not found] ` <22738895.post@talk.nabble.com>
@ 2009-03-28  6:59   ` kelvincheung
  2009-03-30  8:42     ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: kelvincheung @ 2009-03-28  6:59 UTC (permalink / raw)
  To: buildroot


I fond the sulotion:
http://lists.uclibc.org/pipermail/buildroot/2007-June/003189.html

To us EABI for ARM920T in the buildroot, two options are needed to the main
buildroot config:
BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="--with-arch=armv4t"
BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-arch=armv4t"
or
BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="--with-cpu=arm920t"
BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-cpu=arm920t"


kelvincheung wrote:
> 
> I have the same problem.
> My buildroot version is: buildroot-2009.02
> Any one know the solution?
> 
> Thanks!
> 
> 
> Hai Zaar-2 wrote:
>> 
>> Good day!
>> I'm building two weeks old buildroot snapshot for AT91SAM9260 board.
>> 
>> All I do it:
>> make at91sam9260dfc_defconfig
>> make menuconfig (select arm926t, EABI and remove games, etc...)
>> make
>> 
>> Results:
>> All kernels from 2.6.25 and later finish boot like this:
>>    VFS: Mounted root (ext2 filesystem).
>>    Freeing init memory: 128K
>>    Kernel panic - not syncing: Attempted to kill init!
>> 
>> The only kernel that worked is 2.6.24. After checking the kernel
>> config, I've found out that CONFIG_AEABI was not set (in spite of EABI
>> being selected in buildroot's config). Disabling EABI on later
>> kernels, (or enabling CONFIG_OABI_COMPAT) made them (almost)work.
>> 
>> Currently the situation is as follows:
>> 
>> EABI kernel + EABI rootfs = kernel panic (busibox's linuxrc dies)
>> EABI kernel + OABI rootfs = kernel panic (busibox's linuxrc dies)
>> OABI kernel + EABI rootfs = works, but some things like ping and nfs
>> return 'Illegal instruction'
>> EABI+OABI_COMPAT kernel + EABI rootfs = works, but some things like
>> ping and nfs return 'Illegal instruction'
>> EABI+OABI_COMPAT kernel + OABI rootfs = work correctly
>> OABI kernel + OABI rootfs = works correctly
>> 
>> 1. Is EABI support broken for this platform in buildroot?
>> 2. How can further investigate this issue?
>> 
>> -- 
>> Zaar
>> _______________________________________________
>> buildroot mailing list
>> buildroot at uclibc.org
>> http://busybox.net/mailman/listinfo/buildroot
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/EABI-broken-on-arm926t--tp20052144p22754259.html
Sent from the BuildRoot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] EABI broken on arm926t?
  2009-03-28  6:59   ` kelvincheung
@ 2009-03-30  8:42     ` Peter Korsgaard
  2009-03-30 10:01       ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2009-03-30  8:42 UTC (permalink / raw)
  To: buildroot

>>>>> "kelvincheung" == kelvincheung  <keguang.zhang@gmail.com> writes:

Hi,

 kelvincheung> I fond the sulotion:
 kelvincheung> http://lists.uclibc.org/pipermail/buildroot/2007-June/003189.html

 kelvincheung> To us EABI for ARM920T in the buildroot, two options are needed to the main
 kelvincheung> buildroot config:
 kelvincheung> BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="--with-arch=armv4t"

Really? Binutils afaik doesn't support an --with-arch configure
option.

 kelvincheung> BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-arch=armv4t"
 kelvincheung> or
 kelvincheung> BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="--with-cpu=arm920t"
 kelvincheung> BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-cpu=arm920t"

I've fixed the GCC_TARGET_ARCH table for ARM in r25889 - Could you
give it a try to verify?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] EABI broken on arm926t?
  2009-03-30  8:42     ` Peter Korsgaard
@ 2009-03-30 10:01       ` Peter Korsgaard
  2009-05-11  7:33         ` Kelvin Cheung
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2009-03-30 10:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <jacmet@uclibc.org> writes:

Hi,

 Peter> I've fixed the GCC_TARGET_ARCH table for ARM in r25889 - Could you
 Peter> give it a try to verify?

Sorry, make that r25890.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] EABI broken on arm926t?
  2009-03-30 10:01       ` Peter Korsgaard
@ 2009-05-11  7:33         ` Kelvin Cheung
  0 siblings, 0 replies; 5+ messages in thread
From: Kelvin Cheung @ 2009-05-11  7:33 UTC (permalink / raw)
  To: buildroot

2009/3/30 Peter Korsgaard <jacmet@uclibc.org>

> >>>>> "Peter" == Peter Korsgaard <jacmet@uclibc.org> writes:
>
> Hi,
>
>  Peter> I've fixed the GCC_TARGET_ARCH table for ARM in r25889 - Could you
>  Peter> give it a try to verify?
>
> Sorry, make that r25890.
>
> --
> Bye, Peter Korsgaard
>

It works for me now.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090511/ae5c6b2a/attachment.htm>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-11  7:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-19  0:37 [Buildroot] EABI broken on arm926t? Hai Zaar
     [not found] ` <22738895.post@talk.nabble.com>
2009-03-28  6:59   ` kelvincheung
2009-03-30  8:42     ` Peter Korsgaard
2009-03-30 10:01       ` Peter Korsgaard
2009-05-11  7:33         ` Kelvin Cheung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox