From: Henning Schild <henning.schild@siemens.com>
To: Frederik Bayart <frederik_bayart@yahoo.co.uk>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] multiarch on ipipe kernel
Date: Tue, 13 Sep 2016 15:11:07 +0200 [thread overview]
Message-ID: <20160913151107.0b15e1e8@md1em3qc> (raw)
In-Reply-To: <1271995210.507800.1473769593022@mail.yahoo.com>
Do you have CONFIG_IA32_EMULATION set in your ipipe kernel?
Henning
Am Tue, 13 Sep 2016 12:26:33 +0000
schrieb Frederik Bayart <frederik_bayart@yahoo.co.uk>:
> Should it be possible to run an 32 bit non-rt binary on a 64 bit
> ipipe kernel ? I'm using debian jessie amd64 and xenomai 2.6.4 on
> kernel 3.18.20
>
> I have added i386 as foreing architecture and installed the i386
> toolchain $ dpkg --print-architectureamd64s$ dpkg
> --print-foreign-architecturesi386 I have a small hello world binary
>
> #include <stdio.h>
> int main(int argc, char* argv[]){ printf("hello world\n"); return
> 0;} I compile with
> gcc -m32 -o hello hello.c
> This binary runs on the normal (non-ipipe) kernel
> linux-image-3.16.0-4-amd64.But if I'm booting the ipipe kernel on the
> same system, I get the error : -bash: ./hello: cannot execute binary
> file: Exec format error So the problem seems to be related to the
> kernel. But I didn't find whether a kernel option could be the cause.
> The kernel was prepared with I only found that you can't run 32 bit
> xenomai libraries on a 64 bit kernel, but this binary is not using
> these libraries. Kind regards, Frederik
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai
next prev parent reply other threads:[~2016-09-13 13:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1271995210.507800.1473769593022.ref@mail.yahoo.com>
2016-09-13 12:26 ` [Xenomai] multiarch on ipipe kernel Frederik Bayart
2016-09-13 12:40 ` Leopold Palomo-Avellaneda
2016-09-13 13:11 ` Henning Schild [this message]
2016-09-13 13:39 ` Frederik Bayart
2016-09-20 12:12 ` Frederik Bayart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160913151107.0b15e1e8@md1em3qc \
--to=henning.schild@siemens.com \
--cc=frederik_bayart@yahoo.co.uk \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.