All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc Marí" <5.markmb.5@gmail.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Raspberry Pi + Xenomai doesn't compile
Date: Fri, 22 May 2015 00:37:19 +0200	[thread overview]
Message-ID: <20150522003719.6e865e50@crunchbang> (raw)
In-Reply-To: <20150521212432.GQ10686@hermes.click-hack.org>

El Thu, 21 May 2015 23:24:32 +0200
Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> escribió:
> On Thu, May 21, 2015 at 10:18:11PM +0200, Marc Marí wrote:
> > Hello
> > 
> > I'm trying to put Xenomai 2.6.4 on top of a Raspberry Pi model B
> > with kernel version 3.8.13. In theory, it should be
> > straightforward, but I don't get it to compile, and I don't know if
> > I'm missing something vital or something is broken.
> > 
> > This is what I executed:
> > 
> > $ git clone git@github.com:raspberrypi/linux.git
> > $ mv linux rpi-xenomai
> > $ git checkout rpi-3.8.y
> > $ patch -p1 -i \
> > ../xenomai-2.6.4/ksrc/arch/arm/patches/raspberry/ipipe-core-3.8.13-raspberry-pre-2.patch
> > $ ../xenomai-2.6.4/scripts/prepare-kernel.sh --arch=arm --linux=./ \
> > --adeos=../xenomai-2.6.4/ksrc/arch/arm/patches/ipipe-core-3.8.13-arm-4.patch
> > $ patch -p1 -i \
> > ../xenomai-2.6.4/ksrc/arch/arm/patches/raspberry/ipipe-core-3.8.13-raspberry-post-2.patch
> > $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig
> > $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
> > 
> > I get this output:
> > 
> > kernel/ipipe/core.c: In function ‘ipipe_probe_kernel_read’:
> > kernel/ipipe/core.c:1748:2: error: implicit declaration of function
> > ‘get_fs’ [-Werror=implicit-function-declaration]
> >   mm_segment_t old_fs = get_fs();
> >   ^
> > kernel/ipipe/core.c:1750:2: error: implicit declaration of function
> > ‘set_fs’ [-Werror=implicit-function-declaration]
> >   set_fs(KERNEL_DS);
> >   ^
> > kernel/ipipe/core.c:1750:9: error: ‘KERNEL_DS’ undeclared (first
> > use in this function)
> >   set_fs(KERNEL_DS);
> >          ^
> > kernel/ipipe/core.c:1750:9: note: each undeclared identifier is
> > reported only once for each function it appears in
> > kernel/ipipe/core.c:1753:2: error: implicit declaration of function
> > ‘__copy_from_user_inatomic’ [-Werror=implicit-function-declaration]
> >   ret = __copy_from_user_inatomic(dst,
> >   ^
> > kernel/ipipe/core.c: In function ‘ipipe_probe_kernel_write’:
> > kernel/ipipe/core.c:1767:9: error: ‘KERNEL_DS’ undeclared (first
> > use in this function)
> >   set_fs(KERNEL_DS);
> >          ^
> > kernel/ipipe/core.c:1770:2: error: implicit declaration of function
> > ‘__copy_to_user_inatomic’ [-Werror=implicit-function-declaration]
> >   ret = __copy_to_user_inatomic((__force void __user *)dst, src,
> > size);
> 
> This part of the code is compiled conditionally if CONFIG_KGDB is
> enabled. Have you tried turning KGDB off? Chances are, nobody ever
> tried running Xenomai with KGDB on ARM, so, I doubt it has any
> chance to work anyway.
> 

It stopped compiling asking to disable CC_STACKPROTECTOR. It now
compiles, but it doesn't boot, and also doesn't give much information.
Let's see if I can figure out this one.

Thanks!
Marc


  reply	other threads:[~2015-05-21 22:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 20:18 [Xenomai] Raspberry Pi + Xenomai doesn't compile Marc Marí
2015-05-21 20:48 ` Lennart Sorensen
2015-05-21 20:53   ` Marc Marí
2015-05-21 21:01     ` Lennart Sorensen
2015-05-21 21:27   ` Gilles Chanteperdrix
2015-05-22 16:59     ` Marc Marí
2015-05-21 21:24 ` Gilles Chanteperdrix
2015-05-21 22:37   ` Marc Marí [this message]
2015-05-22 15:37     ` Giovanni Balestrieri
2015-05-22 16:34       ` Gilles Chanteperdrix

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=20150522003719.6e865e50@crunchbang \
    --to=5.markmb.5@gmail.com \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.