Building a kernel for big endian environment

T

Tamir Michael

Guest
Hello all,

I am working on a test system that we want to configure as big endian test platform, and a Raspberry Pi was selected to host all the applications to be tested. Trouble is, I don't manage to find the exact setting to compile the kernel (3.6.11) to that end (so that it configures the CPU of the Raspberry Pi to operate in big endian mode); I did launch the kernel configuration program by "make menuconfig" but I have not found anything that can help me. I know that gcc will produce big endian images by the -mbig-endian option.
How do I proceed?

Thanks in advance!
 


Use a Big-Endian compiler. There is no setting to be changed besides the compiler. Or, depending on your compiler and CPU, you could add a single parameter.

I assume you are going to cross-compile, so make sure you have a compiler that can cross-compile to ARM and manage big-endian.

These may help

http://www.linux.org/threads/the-linux-kernel-compiling-and-installing.5208/
http://gcc.gnu.org/ml/gcc/2007-12/msg00331.html
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/ARM-Options.html

@ryanvade You should have called the Kernel-King :D
 

Members online


Top