From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] Unable to boot Arm926t with big endian support
Date: Tue, 18 Nov 2014 15:54:45 +0100 [thread overview]
Message-ID: <87tx1wpnii.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <B28B6A721CC23347BBD5566C377D30416461F269@se-got-mb01.semcon.se> (Peder Alm's message of "Tue, 18 Nov 2014 14:48:07 +0000")
>>>>> "Peder" == Peder Alm <peder.alm@semcon.com> writes:
>>> Dear Peter
>>>> -8 is ENOEXEC, E.G. most likely invalid ELF variant.
>>>>
>>>> Your kernel is running in big endian mode, right?
>>> How do I know if my kernel is running in BE mode? I have just changed
>>> the settings in Buildroot configuration. I found no settings for BE
>>> mode in the Linux kernel configuration when I added support for NFS.
>> For ARM the config option is CPU_BIG_ENDIAN:
>> git grep -A2 BIG_ENDIAN arch/arm/mm/Kconfig | head -n 3
>> arch/arm/mm/Kconfig:config CPU_BIG_ENDIAN
>> arch/arm/mm/Kconfig- bool "Build big-endian kernel"
>> arch/arm/mm/Kconfig: depends on ARCH_SUPPORTS_BIG_ENDIAN
> Running make linux-menuconfig and searching for CPU_BIG_ENDIAN I find
> that it is set to 'n' and I have no possibility to change this.
So that means that your ARM variant doesn't have any big endian support.
git grep ARCH_SUPPORTS_BIG_ENDIAN ~/source/linux-2.6/arch/arm
Kconfig: select ARCH_SUPPORTS_BIG_ENDIAN
mach-highbank/Kconfig: select ARCH_SUPPORTS_BIG_ENDIAN
mach-keystone/Kconfig: select ARCH_SUPPORTS_BIG_ENDIAN
mach-mvebu/Kconfig: select ARCH_SUPPORTS_BIG_ENDIAN
mach-vexpress/Kconfig: select ARCH_SUPPORTS_BIG_ENDIAN
mach-zynq/Kconfig: select ARCH_SUPPORTS_BIG_ENDIAN
So big endian is only supported for ixp4xx, highbank, keystone, mvebu,
vexpress and zynq.
> It looks like Buildroot never enables big endian for the kernel
> despite of the ARM (big endian) selection in Buildroot configuration.
No, we indeed don't do that. We could (patches are welcome), but it
wouldn't have helped you as your ARM variant doesn't support it.
Why do you want to run in big endian mode?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2014-11-18 14:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 11:22 [Buildroot] Unable to boot Arm926t with big endian support Peder Alm
2014-11-18 12:36 ` Thomas Petazzoni
2014-11-18 13:20 ` Peder Alm
2014-11-18 22:00 ` Grant Edwards
2014-11-18 13:14 ` Peter Korsgaard
2014-11-18 13:43 ` Peder Alm
2014-11-18 13:51 ` Peter Korsgaard
2014-11-18 14:48 ` Peder Alm
2014-11-18 14:54 ` Peter Korsgaard [this message]
2014-11-18 15:45 ` Peder Alm
2014-11-18 15:51 ` Peter Korsgaard
2014-11-18 22:02 ` Grant Edwards
2014-11-18 13:57 ` Laurent GONZALEZ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tx1wpnii.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox