arm64: how to check endianness of Image file?

Kevin Hilman khilman at kernel.org
Fri Aug 28 15:23:20 PDT 2015


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.

Kevin



More information about the linux-arm-kernel mailing list