From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai-3 booting problems (2)
Date: Fri, 23 Jan 2015 14:55:07 +0100 [thread overview]
Message-ID: <20150123135507.GA9521@hermes.click-hack.org> (raw)
In-Reply-To: <8468176.WAFPJMNP3d@soho>
On Fri, Jan 23, 2015 at 12:30:02PM +0100, Leopold Palomo-Avellaneda wrote:
> El Divendres, 23 de gener de 2015, a les 11:18:59, Gilles Chanteperdrix va
> escriure:
> > On Fri, Jan 23, 2015 at 10:44:24AM +0100, Leopold Palomo-Avellaneda wrote:
> > > El Divendres, 23 de gener de 2015, a les 08:44:03, Gilles Chanteperdrix va
> > >
> > > escriure:
> > > > On Fri, Jan 23, 2015 at 08:36:14AM +0100, Leopold Palomo-Avellaneda
> wrote:
> > > > > El Dijous, 22 de gener de 2015, a les 16:09:19, Leopold
> > > > > Palomo-Avellaneda
> > > > > va>
> > > > >
> > > > > escriure:
> > > > > > Hi again,
> > > > > >
> > > > > > after made the modifications proposed by Jan Kiszka, now it doesn't
> > > > > > built
> > > > > > and the message is:
> > > > > >
> > > > > > nvidiafb: unable to setup MTRR
> > > > >
> > > > > Hi,
> > > > >
> > > > > removed nvidiafb.ko module (and all the nvidia graphics stuff) and the
> > > > > box
> > > > > booted. It seems that nvidiafb (the non-free nvidia driver) doesn't
> > > > > like
> > > > > xenomai-3 or vice-versa.
> > > > >
> > > > > Are you aware of this?
> > > >
> > > > Were you trying to use the nvidia module compiled for the vanilla
> > > > kernel, or did you recompile the nvidia module for the Xenomai
> > > > kernel? The former will not work.
> > >
> > > the second one. Using debian packages, when you install a new one, it
> > > recompiles the modules needed (if they are packaged dkms) So, when I
> > > installed the debian package, all the modules (that had sources) were
> > > recompiled.>
> > > > Other than that, the nvidia module has been reported to work with
> > > > Xenomai, if the I-pipe patch you use contains this patch:
> > > > https://git.xenomai.org/ipipe.git/commit/?h=ipipe-3.16&id=bc5bea6f134de2
> > > > e55b b6014566c62fa083ed9c7b
> > >
> > > The module that failed was the nvidiafb. Not the others. For instance, now
> > > I'm running 3.16 with xenomai 3.0.0 in my graphical desktop with nvidia
> > > driver. It's the nvidia framebuffer that fails.
> >
> > AFAIK, nvidiafb is part of the Linux kernel, not of the nvidia
> > driver. According to this page:
> > http://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
>
> Not exactly. The nvidia driver has two parts: one for the kernel and another
> for the X server.
> The kernel part has public source (no open source?), and
> it's recompiled as module. The other is closed, binary.
No the kernel part contains some glue with a big pre-compiled
proprietary binary.
>
> AFAIK, the frame buffer is to have console in booting time, or console in
> general. It's used when you switch from graphic mode to console mode. But
You are mistaken. The nvidiafb driver is part of the Linux kernel,
see:
http://git.xenomai.org/ipipe.git/tree/drivers/video/fbdev/nvidia/Makefile
In this file, you can see the copyright:
http://git.xenomai.org/ipipe.git/tree/drivers/video/fbdev/nvidia/nvidia.c
Not by Nvidia. Yes nvidiafb is a framebuffer driver, I knew that,
only by the name. But no, it is not part of the (binary) drivers
made by nvidia, so it is a third thing in addition to the nvidia.ko
kernel-space support provided by Nvidia, and the user-space
distribution (which contains a module for the X server, but also an
opengl implementation).
And the gentoo page seems to indicate that the framebuffer driver
may conflict with the nvidia stuff (whether kernel-space or
user-space does not really matter).
>
> > - the MTRR error is due to the fact that you disabled MTRR in the
> > kernel configuration, probably because you disabled IOMMU
>
> No, I have it activated.
>
> $ grep CONFIG_MTRR /boot/config-3.16.0-xenomai-3.0.0
> CONFIG_MTRR=y
> CONFIG_MTRR_SANITIZER=y
> CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0
> CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
You have not read the page I sent you. It clearly indicates that on
the amd64 architecture, you have to enable IOMMU to get MTRR working
with the nvidiafb module. I do not know whether this is true, but
this is what the page says.
>
>
> > - using the nvidiafb module with the nvidia proprietary module is
> > not recommended, as they are known to conflict at times.
>
> It could have conflicts, it's true. Because the two modules try to claim the
> same device. I should have the test installing only one and see what happens.
>
Obviously.
--
Gilles.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150123/c323b4f7/attachment.sig>
next prev parent reply other threads:[~2015-01-23 13:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-22 15:09 [Xenomai] Xenomai-3 booting problems (2) Leopold Palomo-Avellaneda
2015-01-23 7:36 ` Leopold Palomo-Avellaneda
2015-01-23 7:44 ` Gilles Chanteperdrix
2015-01-23 9:44 ` Leopold Palomo-Avellaneda
2015-01-23 10:18 ` Gilles Chanteperdrix
2015-01-23 11:30 ` Leopold Palomo-Avellaneda
2015-01-23 13:55 ` Gilles Chanteperdrix [this message]
2015-01-23 10:24 ` Gilles Chanteperdrix
2015-01-23 11:43 ` Leopold Palomo-Avellaneda
2015-01-23 14:08 ` Gilles Chanteperdrix
2015-01-23 14:16 ` Daniele Nicolodi
2015-01-23 14:24 ` 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=20150123135507.GA9521@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=leo@alaxarxa.net \
--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.