All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: JAY KOTHARI <jaikothari10@gmail.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] /asm/ipipe.h not found
Date: Wed, 10 Dec 2014 14:09:05 +0100	[thread overview]
Message-ID: <20141210130905.GE1524@hermes.click-hack.org> (raw)
In-Reply-To: <CALe7ZU1WZv1gx383gvUW2PUy8NnY8i4-ikDU2oaVcqwT4oJ8Xg@mail.gmail.com>

On Wed, Dec 10, 2014 at 06:16:15PM +0530, JAY KOTHARI wrote:
> On 12/10/14, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> > On Wed, Dec 10, 2014 at 04:24:53PM +0530, JAY KOTHARI wrote:
> >> On 12/10/14, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> >> wrote:
> >> > On Wed, Dec 10, 2014 at 03:57:44PM +0530, JAY KOTHARI wrote:
> >> >> Hello,
> >> >>     I am porting linux-3.2.21(xenomai-2.6.2 patched to it) on
> >> >> BeagleBoard-XM.
> >> >
> >> > You do not need to port it, it is already supported.
> >> >
> >> > Also, why using such old versions ? The latest version of Xenomai is
> >> > 2.6.4 and will work with the I-pipe patch for Linux 3.2.21.
> .
> 
> >> >
> >> >
> >> >> zImage is successfully made. But when I am building
> >> >> the modules with following command
> >> >>
> >> >>  $make -j 8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi modules
> >> >>
> >> >>  It shows error:
> >> >>   make CONFIG_DEBUG_SECTION_MISMATCH=y
> >> >
> >> > Yes, this has been reported, and fixed in later patches. That is
> >> > what you get by using old patches. Simply turn that off.
> >> >
> >> I turn it off by this command
> >> $make CONFIG_DEBUG_SECTION_MISMATCH=n
> >>
> >> >>
> >> >> After this I ran
> >> >>  $make CONFIG_DEBUG_SECTION_MISMATCH=y
> >> >>
> >> >> This lets to another error
> >> >> include/linux/ipipe.h :33:23: fatal error:asm/ipipe.h: No such file or
> >> >> directory.
> >> >> compilation terminated.
> >> >>
> >> >>       Actually ipipe.h is there in /asm/ipipe.h:I tried to set CFLAG
> >> >> and export it but it is not working.Help would be appreciated.
> >> >
> >> > You do not provide enough information for us to answer that
> >> > question. Sorry.
> >> >
> >> > --
> >> > 					
> >> >
> >> After doing that I got following error
> >> make[1]: Nothing to be done for `relocs'.
> >>   CHK     include/linux/version.h
> >>   CHK     include/generated/utsrelease.h
> >>   CC      arch/x86/kernel/asm-offsets.s
> >> In file included from include/linux/sched.h:65:0,
> >>                  from arch/x86/kernel/asm-offsets.c:9:
> >> include/linux/ipipe.h:33:23: fatal error: asm/ipipe.h: No such file or
> >> directory
> >> compilation terminated.
> >> make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
> >> make: *** [prepare0] Error 2
> >
> > Interesting information, but maybe not sufficient to solve your
> > issue, you want to compile for beaglebone, but you are compiling a
> > kernel for the x86 architecture ? I am afraid it will not work.
> >
> > --
> > 					    Gilles.
> 
> 
> 
> Information:
> main processor architecture:x86 32bit
> target system: BeagleBoardXM
>  Linux kernel release number:3.2.21 for target hardware
> dynamic boot parameter: root=/dev/sda7 resume=/dev/sda6 splash=silent quiet
> Xenomai release number you experience an issue: Xenomai-2.6.2
> Havnt got it from GIT  repositories
> 
> Problem:
> I built zImage successfully. When I build modules its showing error
> $make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi modules
> 
> it showed error
>   make CONFIG_DEBUG_SECTION_MISMATCH=y
> 
> As you suggested I disabled it and ran
>  make CONFIG_DEBUG_SECTION_MISMATCH=n
> 
> Now it shows following error:
> 
> make[1]: Nothing to be done for `relocs'.
>    CHK     include/linux/version.h
>    CHK     include/generated/utsrelease.h
>    CC      arch/x86/kernel/asm-offsets.s
>  In file included from include/linux/sched.h:65:0,
>                   from arch/x86/kernel/asm-offsets.c:9:
>  include/linux/ipipe.h:33:23: fatal error: asm/ipipe.h: No such file or
>  directory
>  compilation terminated.
>  make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
>  make: *** [prepare0] Error 2
> 
> If you need more information please let me know which information. 

Please read my answer again. So far, the problem you have does not
prove there is anything wrong with Xenomai: you are compiling a
kernel patched for beaglebone, for the x86 architecture. This is not
supposed to work.

For details on how to install Xenomai see:
https://xenomai.org/installing-xenomai-2-x/

> Is
> there any other version of xenomai which has patch for linux-3.2.21?
> Please correct me.

A version of Xenomai 2.x supports all the I-pipe patches for kernel
versions which have been published before. So, if for instance
Xenomai 2.6.2 was the first xenomai version to support Linux 3.2.21:
- Xenomai 2.6.2 supports all I-pipe patches for Linux 3.2.21 which
were published later
- all later Xenomai versions support all the I-pipe patches for
Linux 3.2.21.

-- 
					    Gilles.


      reply	other threads:[~2014-12-10 13:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10 10:27 [Xenomai] /asm/ipipe.h not found JAY KOTHARI
2014-12-10 10:38 ` Gilles Chanteperdrix
2014-12-10 10:54   ` JAY KOTHARI
2014-12-10 10:58     ` Gilles Chanteperdrix
2014-12-10 11:03     ` Gilles Chanteperdrix
2014-12-10 12:46       ` JAY KOTHARI
2014-12-10 13:09         ` Gilles Chanteperdrix [this message]

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=20141210130905.GE1524@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jaikothari10@gmail.com \
    --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.