From: khilman@kernel.org (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: arm64: how to check endianness of Image file?
Date: Tue, 1 Sep 2015 07:57:45 -0700 [thread overview]
Message-ID: <CAMAWPa_q-AHXkGUN0S+0Ozd3DAjag71v8_sujY=2+9gq30GzGw@mail.gmail.com> (raw)
In-Reply-To: <20150901141746.GA19729@leverpostej>
On Tue, Sep 1, 2015 at 7:17 AM, Mark Rutland <mark.rutland@arm.com> wrote:
> Hi Kevin,
>
> On Fri, Aug 28, 2015 at 11:23:20PM +0100, Kevin Hilman wrote:
>> Will, Catalin,
>>
>> Any suggestions on a quick way to check if an arm64 kernel Image file
>> is big-endian?
>>
>> We're adding more boot support for arm64 defconfig +
>> CONFIG_CPU_BIG_ENDIAN=y to kernelci.org, and are looking for a
>> reliable way to check the endianness of the kernel Image file, we
>> don't have the vmlinux around to check the ELF headers.
>>
>> On arm32, the zImage has some magic fields set from
>> arch/arm/boot/compressed/head.S, but arm64 doesn't have the
>> equivalent.
>
> We have an endianness flag in the arm64 Image header, added per your
> request in v3.17 [1,2].
Doh, I completely forgot about that. :/ Thanks for the reminder!
Kevin
prev parent reply other threads:[~2015-09-01 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 22:23 arm64: how to check endianness of Image file? Kevin Hilman
2015-09-01 14:17 ` Mark Rutland
2015-09-01 14:57 ` Kevin Hilman [this message]
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='CAMAWPa_q-AHXkGUN0S+0Ozd3DAjag71v8_sujY=2+9gq30GzGw@mail.gmail.com' \
--to=khilman@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).