arm64: how to check endianness of Image file?
Kevin Hilman
khilman at kernel.org
Tue Sep 1 07:57:45 PDT 2015
On Tue, Sep 1, 2015 at 7:17 AM, Mark Rutland <mark.rutland at 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
More information about the linux-arm-kernel
mailing list