Compiling nvidia-drivers

View: New views
7 Messages — Rating Filter:   Alert me  

Compiling nvidia-drivers

by Bruno Ricardo Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi all.

Im trying to compile the nvidia drivers 71.86.11 for a TNT2 64 nvidia card.

I'm trying to make this, because the nv driver can't get the full resolution i need (1280x1024) and it only gets 1024x768.
I found a pre-compiled driver for thinstation, but it doesnt work with this video card.

After configuring the build environment and picking some stuff around (most from the how to compile the intel e1000e drivers), i get stuck in here:

make module
NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /source/kernel-2.6.16.5/linux-2.6.16.5 SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
mkdir -p /source/nvidia-71.86.11/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/source/nvidia-71.86.11/usr/src/nv
  cc -Wp,-MD,/source/nvidia-71.86.11/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os     -fomit-frame-pointer  -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks     -Wno-sign-compare -fno-asynchronous-unwind-tables     -I/source/nvidia-71.86.11/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.11\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /source/nvidia-71.86.11/usr/src/nv/.tmp_nv.o /source/nvidia-71.86.11/usr/src/nv/nv.c
/source/nvidia-71.86.11/usr/src/nv/nv.c:1: error: code model `kernel' not supported in the 32 bit mode
/source/nvidia-71.86.11/usr/src/nv/nv.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[3]: *** [/source/nvidia-71.86.11/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/source/nvidia-71.86.11/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


The machine tha't i'm using is a 64bit one, running Gentoo Linux 10.0
Can it have something to do with the error ?


Cheers,

Bruno Santos

--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


 
Esta mensagem e ficheiros em anexo são confidenciais e destinados somente ao conhecimento e utilização da(s) pessoa(s) ou entidade(s) a quem foram endereçados. Cabe ao destinatŕrio verificar a existência de vírus ou erros, uma vez que a informação contida pode ser interceptada e/ou modificada. Se recebeu este e-mail por engano, ou a ele teve acesso não sendo o destinatário, por favor informe de imediato o seu administrador de sistemas e elimine-o sem o utilizar, divulgar ou reproduzir.
 
Proteja o ambiente. Antes de imprimir este e-mail, verifique se realmente necessita.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general

Re: Compiling nvidia-drivers

by Mike Eriksen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can't compile stuff for TS on a random host. You need the full TS source (available from SF) and compile within the chrooted environment.

Mike


On Mon, Nov 2, 2009 at 12:30 PM, Bruno Ricardo Santos <bvsantos@...> wrote:
Hi all.

Im trying to compile the nvidia drivers 71.86.11 for a TNT2 64 nvidia card.

I'm trying to make this, because the nv driver can't get the full resolution i need (1280x1024) and it only gets 1024x768.
I found a pre-compiled driver for thinstation, but it doesnt work with this video card.

After configuring the build environment and picking some stuff around (most from the how to compile the intel e1000e drivers), i get stuck in here:

make module
NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /source/kernel-2.6.16.5/linux-2.6.16.5 SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
mkdir -p /source/nvidia-71.86.11/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/source/nvidia-71.86.11/usr/src/nv
  cc -Wp,-MD,/source/nvidia-71.86.11/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os     -fomit-frame-pointer  -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks     -Wno-sign-compare -fno-asynchronous-unwind-tables     -I/source/nvidia-71.86.11/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.11\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /source/nvidia-71.86.11/usr/src/nv/.tmp_nv.o /source/nvidia-71.86.11/usr/src/nv/nv.c
/source/nvidia-71.86.11/usr/src/nv/nv.c:1: error: code model `kernel' not supported in the 32 bit mode
/source/nvidia-71.86.11/usr/src/nv/nv.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[3]: *** [/source/nvidia-71.86.11/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/source/nvidia-71.86.11/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


The machine tha't i'm using is a 64bit one, running Gentoo Linux 10.0
Can it have something to do with the error ?


Cheers,

Bruno Santos

--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


 
Esta mensagem e ficheiros em anexo são confidenciais e destinados somente ao conhecimento e utilização da(s) pessoa(s) ou entidade(s) a quem foram endereçados. Cabe ao destinatŕrio verificar a existência de vírus ou erros, uma vez que a informação contida pode ser interceptada e/ou modificada. Se recebeu este e-mail por engano, ou a ele teve acesso não sendo o destinatário, por favor informe de imediato o seu administrador de sistemas e elimine-o sem o utilizar, divulgar ou reproduzir.
 
Proteja o ambiente. Antes de imprimir este e-mail, verifique se realmente necessita.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general




--
Thinstation oldtimer
http://thinstation.org
- a light, full featured linux based thin client OS

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general

Re: Compiling nvidia-drivers

by TrevorB :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-11-02 at 11:30 +0000, Bruno Ricardo Santos wrote:
> Hi all.
>
> Im trying to compile the nvidia drivers 71.86.11 for a TNT2 64 nvidia
> card.
>
> I'm trying to make this, because the nv driver can't get the full
> resolution i need (1280x1024) and it only gets 1024x768.
> I found a pre-compiled driver for thinstation, but it doesnt work with
> this video card.

OK, this is a legacy card needing that driver.

You did download the x86 version (and not the x86_64 one)?

The process is to
- run the extract
sh NVIDIA-Linux-x86-71.86.11-pkg1.run -x
- copy over the kernel module source into the compile env.
cp sh NVIDIA-Linux-x86-71.86.11/usr/src/nv
<compile_env>/source/nv-71.86.11
- compile it
cd <compile_env>
./RUNME
cd source/nv-71.86.11
make module

Packaging is a little more complex as you need to add the driver and
various libraries used into a package. Look at one of the other ones to
see the rough layout and see what is in the NVIDIA package (in the
usr/X11R6 & usr/lib directories).

And for one I whipped up before....
http://batley.com.au/thinstation/nvidia-71.86.11_TS-2.2.tar.gz

Enjoy
Trevor B

>
> After configuring the build environment and picking some stuff around
> (most from the how to compile the intel e1000e drivers), i get stuck
> in here:
>
> make module
> NVIDIA: calling KBUILD...
> make CC=cc  KBUILD_VERBOSE=1 -C /source/kernel-2.6.16.5/linux-2.6.16.5
> SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
> mkdir -p /source/nvidia-71.86.11/usr/src/nv/.tmp_versions
> make -f scripts/Makefile.build obj=/source/nvidia-71.86.11/usr/src/nv
>   cc -Wp,-MD,/source/nvidia-71.86.11/usr/src/nv/.nv.o.d  -nostdinc
> -isystem /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/include
> -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall
> -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
> -fno-common -ffreestanding -Os     -fomit-frame-pointer  -m64
> -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks
>  -Wno-sign-compare -fno-asynchronous-unwind-tables
> -I/source/nvidia-71.86.11/usr/src/nv -Wall -Wimplicit -Wreturn-type
> -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith
> -Wno-multichar -Werror -MD   -Wsign-compare -Wno-cast-qual -Wno-error
> -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE
> -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=
> \"71.86.11\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG
> -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s"
> -D"KBUILD_BASENAME=KBUILD_STR(nv)"
> -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c
> -o /source/nvidia-71.86.11/usr/src/nv/.tmp_nv.o /source/nvidia-71.86.11/usr/src/nv/nv.c
> /source/nvidia-71.86.11/usr/src/nv/nv.c:1: error: code model `kernel'
> not supported in the 32 bit mode
> /source/nvidia-71.86.11/usr/src/nv/nv.c:1: sorry, unimplemented:
> 64-bit mode not compiled in
> make[3]: *** [/source/nvidia-71.86.11/usr/src/nv/nv.o] Error 1
> make[2]: *** [_module_/source/nvidia-71.86.11/usr/src/nv] Error 2
> NVIDIA: left KBUILD.
> nvidia.ko failed to build!
> make[1]: *** [module] Error 1
> make: *** [module] Error 2
>
>
> The machine tha't i'm using is a 64bit one, running Gentoo Linux 10.0
> Can it have something to do with the error ?
>
>
> Cheers,
>
> Bruno Santos
>
> --
>                        Use OpenSource Software
>                  Human knowledge belongs to the world
> Bruno Santos
> bvsantos@...
> Tel: +351 962 753 053
> Divisão de Informática
> informatica@...
> Tel: +351 272 000 155
> Fax: +351 272 000 257
> Hospital Amato Lusitano
> geral@...
> Tel: +351 272 000 272
> Fax: +351 272 000 257
>
> Linux registered user #349448
>
> LPIC-1 Certification  
>
>
>
>  
>
> Esta mensagem e ficheiros em anexo
> são confidenciais e destinados
> somente ao conhecimento e
> utilização da(s) pessoa(s) ou
> entidade(s) a quem foram
> endereçados. Cabe ao destinatŕrio
> verificar a existência de vírus ou
> erros, uma vez que a informação
> contida pode ser interceptada e/ou
> modificada. Se recebeu este e-mail
> por engano, ou a ele teve acesso
> não sendo o destinatário, por favor
> informe de imediato o seu
> administrador de sistemas e
> elimine-o sem o utilizar, divulgar
> ou reproduzir.
>  
>
> Proteja o ambiente. Antes de
> imprimir este e-mail, verifique se
> realmente necessita.
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________ Thinstation-general mailing list Thinstation-general@... https://lists.sourceforge.net/lists/listinfo/thinstation-general


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general

Parent Message unknown Re: Compiling nvidia-drivers

by Bruno Ricardo Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi. Thx for the reply.

I'm compiling the drivers in the chroot environment and with the full sources of the Thinstation-2.2.2 (with the patch applied).

The drivers are for the x86 (i've checked twice :) ) I'm going to try it now in another machine, a x86 and see. I'll post the results later.

The strange thing, even in the chroot environment, when i type uname -a (just to see it all) i get the Gentoo kernel i'm using and not the chroot environment...


Thx in advance


Bruno Santos


----- Original Message -----
From: "Mike Eriksen" <thinstation.mike@...>
To: "Bruno Ricardo Santos" <bvsantos@...>
Cc: thinstation-general@...
Sent: Monday, November 2, 2009 12:36:25 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Thinstation-general] Compiling nvidia-drivers

You can't compile stuff for TS on a random host. You need the full TS source (available from SF) and compile within the chrooted environment.

Mike


On Mon, Nov 2, 2009 at 12:30 PM, Bruno Ricardo Santos <bvsantos@...> wrote:
Hi all.

Im trying to compile the nvidia drivers 71.86.11 for a TNT2 64 nvidia card.

I'm trying to make this, because the nv driver can't get the full resolution i need (1280x1024) and it only gets 1024x768.
I found a pre-compiled driver for thinstation, but it doesnt work with this video card.

After configuring the build environment and picking some stuff around (most from the how to compile the intel e1000e drivers), i get stuck in here:

make module
NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /source/kernel-2.6.16.5/linux-2.6.16.5 SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
mkdir -p /source/nvidia-71.86.11/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/source/nvidia-71.86.11/usr/src/nv
  cc -Wp,-MD,/source/nvidia-71.86.11/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os     -fomit-frame-pointer  -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks     -Wno-sign-compare -fno-asynchronous-unwind-tables     -I/source/nvidia-71.86.11/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.11\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /source/nvidia-71.86.11/usr/src/nv/.tmp_nv.o /source/nvidia-71.86.11/usr/src/nv/nv.c
/source/nvidia-71.86.11/usr/src/nv/nv.c:1: error: code model `kernel' not supported in the 32 bit mode
/source/nvidia-71.86.11/usr/src/nv/nv.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[3]: *** [/source/nvidia-71.86.11/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/source/nvidia-71.86.11/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


The machine tha't i'm using is a 64bit one, running Gentoo Linux 10.0
Can it have something to do with the error ?


Cheers,

Bruno Santos

--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


 
Esta mensagem e ficheiros em anexo são confidenciais e destinados somente ao conhecimento e utilização da(s) pessoa(s) ou entidade(s) a quem foram endereçados. Cabe ao destinatŕrio verificar a existência de vírus ou erros, uma vez que a informação contida pode ser interceptada e/ou modificada. Se recebeu este e-mail por engano, ou a ele teve acesso não sendo o destinatário, por favor informe de imediato o seu administrador de sistemas e elimine-o sem o utilizar, divulgar ou reproduzir.
 
Proteja o ambiente. Antes de imprimir este e-mail, verifique se realmente necessita.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general




--
Thinstation oldtimer
http://thinstation.org
- a light, full featured linux based thin client OS


--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general

Re: Compiling nvidia-drivers

by Mike Eriksen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 2, 2009 at 3:02 PM, Bruno Ricardo Santos <bvsantos@...> wrote:

Hi. Thx for the reply.

I'm compiling the drivers in the chroot environment and with the full sources of the Thinstation-2.2.2 (with the patch applied).

The drivers are for the x86 (i've checked twice :) ) I'm going to try it now in another machine, a x86 and see. I'll post the results later.

The strange thing, even in the chroot environment, when i type uname -a (just to see it all) i get the Gentoo kernel i'm using and not the chroot environment...

This is normal and can cause trouble in some situations. Occasionally I make a fake uname (back-up the original):

#!/bin/sh
echo 2.6.16.5

Put it in the chrooted /bin

Mike

 

Thx in advance


Bruno Santos

--
Thinstation oldtimer
http://thinstation.org
- a light, full featured linux based thin client OS

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general

Re: Compiling nvidia-drivers

by Bruno Ricardo Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi.

I've done everything, and it seems to be working, but with some errors now, related to kernel:

sh-3.1# make module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.16.5/build KBUILD_VERBOSE=1 -C /lib/modules/2.6.16.5/source SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
make -C /lib/modules/2.6.16.5/build \
KBUILD_SRC=/source/kernel-2.6.16.5/linux-2.6.16.5 \
KBUILD_EXTMOD="/source/nvidia-71.86.11/usr/src/nv" -f /source/kernel-2.6.16.5/linux-2.6.16.5/Makefile modules
/source/kernel-2.6.16.5/linux-2.6.16.5/Makefile:476: .config: No such file or directory
/source/kernel-2.6.16.5/linux-2.6.16.5/Makefile:524: /source/kernel-2.6.16.5/linux-2.6.16.5/arch/2.6.16.5/Makefile: No such file or directory
make[3]: *** No rule to make target `/source/kernel-2.6.16.5/linux-2.6.16.5/arch/2.6.16.5/Makefile'.  Stop.
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


The makefile for the kernel....

Any idea ?

Cheers,

Bruno Santos

----- Original Message -----
From: "Mike Eriksen" <thinstation.mike@...>
To: "Bruno Ricardo Santos" <bvsantos@...>
Cc: trevorbatley@..., "thinstation-general" <thinstation-general@...>
Sent: Monday, November 2, 2009 2:12:26 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Thinstation-general] Compiling nvidia-drivers

On Mon, Nov 2, 2009 at 3:02 PM, Bruno Ricardo Santos <bvsantos@...> wrote:

Hi. Thx for the reply.

I'm compiling the drivers in the chroot environment and with the full sources of the Thinstation-2.2.2 (with the patch applied).

The drivers are for the x86 (i've checked twice :) ) I'm going to try it now in another machine, a x86 and see. I'll post the results later.

The strange thing, even in the chroot environment, when i type uname -a (just to see it all) i get the Gentoo kernel i'm using and not the chroot environment...

This is normal and can cause trouble in some situations. Occasionally I make a fake uname (back-up the original):

#!/bin/sh
echo 2.6.16.5

Put it in the chrooted /bin

Mike

 

Thx in advance


Bruno Santos

--
Thinstation oldtimer
http://thinstation.org
- a light, full featured linux based thin client OS


--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


 
Esta mensagem e ficheiros em anexo são confidenciais e destinados somente ao conhecimento e utilização da(s) pessoa(s) ou entidade(s) a quem foram endereçados. Cabe ao destinatŕrio verificar a existência de vírus ou erros, uma vez que a informação contida pode ser interceptada e/ou modificada. Se recebeu este e-mail por engano, ou a ele teve acesso não sendo o destinatário, por favor informe de imediato o seu administrador de sistemas e elimine-o sem o utilizar, divulgar ou reproduzir.
 
Proteja o ambiente. Antes de imprimir este e-mail, verifique se realmente necessita.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general

Re: Compiling nvidia-drivers

by Bruno Ricardo Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi again.

Ive managed those errors creating symlinks in the arch directory and in the i386 directory.
The problem is now, i get an error and i don't know the problem:



make module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.16.5/build KBUILD_VERBOSE=1 -C /lib/modules/2.6.16.5/source SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
make -C /lib/modules/2.6.16.5/build \
KBUILD_SRC=/source/kernel-2.6.16.5/linux-2.6.16.5 \
KBUILD_EXTMOD="/source/nvidia-71.86.11/usr/src/nv" -f /source/kernel-2.6.16.5/linux-2.6.16.5/Makefile modules
/source/kernel-2.6.16.5/linux-2.6.16.5/Makefile:476: .config: No such file or directory
mkdir -p /source/nvidia-71.86.11/usr/src/nv/.tmp_versions

  WARNING: Symbol version dump /lib/modules/2.6.16.5/build/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f /source/kernel-2.6.16.5/linux-2.6.16.5/scripts/Makefile.build obj=/source/nvidia-71.86.11/usr/src/nv
  cc -Wp,-MD,/source/nvidia-71.86.11/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/include -D__KERNEL__ -Iinclude -Iinclude2 -I/source/kernel-2.6.16.5/linux-2.6.16.5/include -include include/linux/autoconf.h  -I/source/nvidia-71.86.11/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -I/source/kernel-2.6.16.5/linux-2.6.16.5/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement  -I/source/nvidia-71.86.11/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.11\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /source/nvidia-71.86.11/usr/src/nv/.tmp_nv.o /source/nvidia-71.86.11/usr/src/nv/nv.c
cc1: include/linux/autoconf.h: No such file or directory
In file included from /source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/list.h:7,
                 from /source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/wait.h:23,
                 from /source/kernel-2.6.16.5/linux-2.6.16.5/include/asm/semaphore.h:41,
                 from /source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/sched.h:20,
                 from /source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/module.h:10,
                 from /source/nvidia-71.86.11/usr/src/nv/nv-linux.h:59,
                 from /source/nvidia-71.86.11/usr/src/nv/nv.c:14:
/source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/prefetch.h: In function `prefetch_range':
/source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
In file included from /source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/dmapool.h:14,
                 from /source/kernel-2.6.16.5/linux-2.6.16.5/include/linux/pci.h:522,
                 from /source/nvidia-71.86.11/usr/src/nv/nv-linux.h:83,
                 from /source/nvidia-71.86.11/usr/src/nv/nv.c:14:
/source/kernel-2.6.16.5/linux-2.6.16.5/include/asm/io.h: In function `check_signature':
/source/kernel-2.6.16.5/linux-2.6.16.5/include/asm/io.h:258: warning: wrong type argument to increment
make[4]: *** [/source/nvidia-71.86.11/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/source/nvidia-71.86.11/usr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


Any help ?

I really need this module.

Cheers,

Bruno Santos


----- Original Message -----
From: "Bruno Ricardo Santos" <bvsantos@...>
To: "Mike Eriksen" <thinstation.mike@...>
Cc: trevorbatley@..., "thinstation-general" <thinstation-general@...>
Sent: Monday, November 2, 2009 2:41:00 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Thinstation-general] Compiling nvidia-drivers

Hi.

I've done everything, and it seems to be working, but with some errors now, related to kernel:

sh-3.1# make module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.16.5/build KBUILD_VERBOSE=1 -C /lib/modules/2.6.16.5/source SUBDIRS=/source/nvidia-71.86.11/usr/src/nv modules
make -C /lib/modules/2.6.16.5/build \
KBUILD_SRC=/source/kernel-2.6.16.5/linux-2.6.16.5 \
KBUILD_EXTMOD="/source/nvidia-71.86.11/usr/src/nv" -f /source/kernel-2.6.16.5/linux-2.6.16.5/Makefile modules
/source/kernel-2.6.16.5/linux-2.6.16.5/Makefile:476: .config: No such file or directory
/source/kernel-2.6.16.5/linux-2.6.16.5/Makefile:524: /source/kernel-2.6.16.5/linux-2.6.16.5/arch/2.6.16.5/Makefile: No such file or directory
make[3]: *** No rule to make target `/source/kernel-2.6.16.5/linux-2.6.16.5/arch/2.6.16.5/Makefile'.  Stop.
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


The makefile for the kernel....

Any idea ?

Cheers,

Bruno Santos

----- Original Message -----
From: "Mike Eriksen" <thinstation.mike@...>
To: "Bruno Ricardo Santos" <bvsantos@...>
Cc: trevorbatley@..., "thinstation-general" <thinstation-general@...>
Sent: Monday, November 2, 2009 2:12:26 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Thinstation-general] Compiling nvidia-drivers

On Mon, Nov 2, 2009 at 3:02 PM, Bruno Ricardo Santos <bvsantos@...> wrote:

Hi. Thx for the reply.

I'm compiling the drivers in the chroot environment and with the full sources of the Thinstation-2.2.2 (with the patch applied).

The drivers are for the x86 (i've checked twice :) ) I'm going to try it now in another machine, a x86 and see. I'll post the results later.

The strange thing, even in the chroot environment, when i type uname -a (just to see it all) i get the Gentoo kernel i'm using and not the chroot environment...

This is normal and can cause trouble in some situations. Occasionally I make a fake uname (back-up the original):

#!/bin/sh
echo 2.6.16.5

Put it in the chrooted /bin

Mike

 

Thx in advance


Bruno Santos

--
Thinstation oldtimer
http://thinstation.org
- a light, full featured linux based thin client OS


--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


 
Esta mensagem e ficheiros em anexo são confidenciais e destinados somente ao conhecimento e utilização da(s) pessoa(s) ou entidade(s) a quem foram endereçados. Cabe ao destinatŕrio verificar a existência de vírus ou erros, uma vez que a informação contida pode ser interceptada e/ou modificada. Se recebeu este e-mail por engano, ou a ele teve acesso não sendo o destinatário, por favor informe de imediato o seu administrador de sistemas e elimine-o sem o utilizar, divulgar ou reproduzir.
 
Proteja o ambiente. Antes de imprimir este e-mail, verifique se realmente necessita.


------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ Thinstation-general mailing list Thinstation-general@... https://lists.sourceforge.net/lists/listinfo/thinstation-general

--
Use OpenSource Software
Human knowledge belongs to the world
Bruno Santos
bvsantos@...
Tel: +351 962 753 053
Divisão de Informática
informatica@...
Tel: +351 272 000 155
Fax: +351 272 000 257
Hospital Amato Lusitano
geral@...
Tel: +351 272 000 272
Fax: +351 272 000 257

Linux registered user #349448

LPIC-1 Certification  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Thinstation-general mailing list
Thinstation-general@...
https://lists.sourceforge.net/lists/listinfo/thinstation-general