Building a kernel for big endian environment

Discussion in 'General Linux' started by Tamir Michael, Oct 10, 2013.

  1. Tamir Michael

    Tamir Michael New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    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!
    DevynCJohnson likes this.
  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,274
    Likes Received:
    431
    Trophy Points:
    83
  3. Tamir Michael

    Tamir Michael New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Thanks for your reply. I will look into it.
  4. derd

    derd New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi , did you manage to install the endian on Raspberry Pi ?
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,336
    Likes Received:
    1,074
    Trophy Points:
    113
    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
    Haider92 likes this.

Share This Page