7

I have an application that I'm writing on a little endian x86 system, but I would like to test it on a big endian processor to ensure compatibility. I understand that the ARM processor can go big endian or little endian, but by default the Raspberry Pi is little endian. Is there a big endian distribution/operating system available? If not, what am I looking at to construct one? Is it possible with the Raspberry Pi?

Thanks!

asked May 3, 2013 at 23:04
2
  • Not all "big endian"s are created equal, ARM as a company supports two different big endian modes (mutually exclusive as far as I know, cores either support one or the other) BE32 and BE8, either 32 bit invariant (the older arms) and 8 bit invariant. the raspberry pi will support one or the other, as far as getting a working distro, good luck... Commented Jun 4, 2013 at 19:17
  • If all you want is to test big-endianness, you could try some distribution on qemu (not necessarily raspberry pi). OpenWRT runs on qemu's big endian ARM emulator. Commented Jun 3, 2020 at 11:34

2 Answers 2

1

There's an Endianness option in Target Options, you may select and change when building a new kernel for your device. I haven't tried it myself, but it just might work.

Unfortunately, I don't know of any precompiled big-endian distributions for ARM. However, there's an article "Building a Big Endian ARM Cross Compiler Toolchain", a bit outdated, but still useful.

answered May 7, 2013 at 10:35
1
  • I am facing the same thing, but I can't find the Target Options within the menuconfig of the arm itself. If I am building the cross compiler itself I can select it, but it seems to make no difference. Commented Jul 23, 2013 at 21:46
0

I have built a big endian tool chain, a big endian kernel using buildroot to no avail. Something tells me that the bootloader must set the processor in big endian mode before it jumps to the kernel, but the bootloaders are closed. Maybe its not a bad idea to consider uboot...

answered Oct 16, 2013 at 10:35

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.