Find the answer to your Linux question:
Results 1 to 3 of 3
Hi! I have got a set top box with linux kernel 2.6.9 installed (marusys, ibm powerpc stb04500). I grabbed the linux kernel from hxxp://stb.marusys.com and built a cross compiler using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2

    Guessing kernel options for modules


    Hi!

    I have got a set top box with linux kernel 2.6.9 installed (marusys, ibm powerpc stb04500).

    I grabbed the linux kernel from hxxp://stb.marusys.com and built a cross compiler using crosstool-ng.

    I need loop support so I built it as a module, but the module won't load on the set top box:

    insmod: cannot insert `loop.ko': Invalid module format (-1): Exec format error
    How do I find the right configure options to build a proper kernel module?

    I have to say that I am not using the gcc, glibc and binutils which were used to build the "box software"- could this be a problem?

    TIA,
    Heiko.

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by Der_Caveman View Post
    Hi!

    I have got a set top box with linux kernel 2.6.9 installed (marusys, ibm powerpc stb04500).

    I grabbed the linux kernel from hxxp://stb.marusys.com and built a cross compiler using crosstool-ng.

    I need loop support so I built it as a module, but the module won't load on the set top box:



    How do I find the right configure options to build a proper kernel module?

    I have to say that I am not using the gcc, glibc and binutils which were used to build the "box software"- could this be a problem?

    TIA,
    Heiko.
    Since you are trying to build compiler using crosstools, following packages are required
    gcc, glibc, binutils etc. or you can download readly available cross compiler.

    regards
    Soibam

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2
    Quote Originally Posted by soibam anando singh View Post
    Since you are trying to build compiler using crosstools, following packages are required
    gcc, glibc, binutils etc. or you can download readly available cross compiler.

    regards
    Soibam
    I compiled the kernel with the crosstools-ng cross compiler (host: linux x86; target: linux ppc) on my desktop system, but the compiled modules won't load on the set top box.

    Just now I found (on the same website ) a precompiled cross compiler for the box (host: linux x86; target: linux ppc). I built the kernel module and it loads!

    So the gcc, glibc, binutils "combo" has influence on kernel modules...

    Thanks,
    Heiko.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •