LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-09-2006, 11:54 PM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
inserting nvidia?


hi
when i try to run startx
it say fatar error inserting nvidia(/lib/modules/2.4.31/kernel/drivers/video/nvidia.o)
same thing happen when i do modprobe nvidia
can i modprobe nvidia so that it look at /lib/modules/2.6.15/kernel/drivers/video because i have my nvidia.o in this directory

Thank You
 
Old 01-10-2006, 12:24 AM   #2
JoOngle
LQ Newbie
 
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
No - you can not use 2.6.15 drivers in a 2.4.31 system. You need to
compile the nvidia drivers for YOUR system only, that would be 2.4.31 in
your case.
 
Old 01-10-2006, 12:44 AM   #3
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
it weird
because i did a fresh install of slack 10.2 with kernel test26 but /lib/modules/2.4.31 & everything say 2.4.31
i know that i got 2.6 because when i log in it says kernel 2.6.15

so i make a directory copy of 2.4.31, name 2.6.15 and try to load nvidia module from there
During installing nvidia package everything runs smoothly

Last edited by lilili; 01-10-2006 at 12:57 AM.
 
Old 01-10-2006, 01:44 AM   #4
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
so i make a directory copy of 2.4.31, name 2.6.15 and try to load nvidia module from there
is is there in the testing dir, u can remove 2.6 dir u created and isntall that package it will install modules for 2.6 kernel
go to dir #installpkg kernel-modules-2.6.13-i486-1.tgz

but for nvidia (i had posted it ones) u have to download the installer from nvidia if u r usinf 2.6 kernel u have to install its source first( in the 2nd cd kernel-source-2.6.13-noarch-1.tgz)
i am just pasting the earlier o post of mine
----1st---
this is the problem, nvidia driver yu have to install it first and if needed edit the xorg.conf file.

go to nvidias site, it is a good script it will even edit the /etc/X11/xorg.conf file (i have the thing but it is 11 mb, its name is NVIDIA-Linux-x86-1.0-8174-pkg1.run )and get the file it is an installer (*.run file) they r also giving a help file.
before runing u need the kernel source to installed in ur machine
(it wil b there in ur /usr/src/)

when u run the installer (#sh installer.run i think)from the root
it wil edit the conf file, so need to worry after that u can c ur X
----2nd--
i managed to get the link now http://download.nvidia.com/XFree86/L...-8174-pkg1.run

what u want to do is
#wget -c http://download.nvidia.com/XFree86/L...-8174-pkg1.run
(copy paste above link hi :^))
$cd /to/the/directory/where it is downloaded
# sh NVIDIA-Linux-x86-1.0-8174-pkg#.run

it will ask for editng the conf file press ok

this part is editing xorg.conf by hand if needed only from their site.(it will automatically edit xorg.conf file if not u do this.)
-------------------
If you have a working X config file for a different driver (such as the “nv” or “vesa” driver), then simply edit the file as follows.

Remove the line:

Driver "nv"
(or Driver "vesa")
(or Driver "fbdev")

and replace it with the line:

Driver "nvidia"

Remove the following lines:

Load "dri"
Load "GLCore"

In the Module section of the file, add the line (if it does not already exist):

Load "glx"
------------------

i think after this only u could even use alsaconf ok
best of luck and regards
__________________

Last edited by rkrishna; 01-10-2006 at 01:56 AM.
 
Old 01-10-2006, 01:53 AM   #5
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
i already install the nvidia package with no problem
but when i run startx it says fatal error inserting nvidia
i check xorg.conf, it's exactly like your description
 
Old 01-10-2006, 02:31 AM   #6
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
happy 2 c u now itself,
u have to go through the xorg config file and manually edit it
befor that plz check wether the module is loaded
if possible go through the complete manul i will give one link
http://download.nvidia.com/XFree86/L...l/part-01.html
 
Old 01-10-2006, 02:40 AM   #7
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
this is what i do so far
i install slack 10.2 with test26 but everything says linux 2.4.31 like in usr/src or lib/modules,(i know i have 2.6 because when i log in it says welcome to 2.6.15)
then i tried to install nvidia package from the site you gave me but it hang, stop
so i tried to run linux from bootdisk, it has 2.4.31 and now i can install nvidia package smoothly
but then when i boot my kernel 2.6, (not using my bootdisk) and run startx it says fatal error inserting nvidia lib/modules/2.4.31/kernel/drivers/video/nvidi.a
so i create a copy of 2.4.31 and name it 2.6.15 in lib/modules/2.6.15/
try to run startx again but same error
so i figure to modprobe nvidia, but i says the same error
the only time i can get to kde it thru my bootdisk 2.4.31,
i can not get to kde from kernel 2.6.15

when i lsmod kernel 2.6.15 nothing is listed
Does anyone have any luck on installing nvidia package in kernel 2.6.15?
 
Old 01-10-2006, 02:57 AM   #8
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I think I developed an ulcer trying to read what you people typed out here.

Anyway, to try and answer your last question (as far as I can understand it) you cannot load modules from 2.4.x to 2.6.x. You can't just copy a module into the 2.6.x directory and have it work. The kernel will detect that it is not a proper module.

You need to compile the drivers for your kernel. That means removing any packages that contain 2.4.x source, and having the Nvidia installer compile it's own module and not try to download one from the internet.

Last edited by MS3FGX; 01-10-2006 at 02:59 AM.
 
Old 01-10-2006, 03:11 AM   #9
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
it is weird because during slackware instalation, i choose test26
and when i log in it says welcome to 2.6.15 but when i check the directories it says
/lib/modules/2.4.31 not /lib/modules/2.6.15
/usr/src/linux-2.4.31 not /usr/src/linux-2.6.15

i try to install the nvidia package that i download for kernel 2.6 and it hang
nvidia package that i dowload is NVIDIA-Linux-x86-1.0-8174-pkg1.tar.gz

then i try to use boot disk which has 2.4.31 to do the nvidia instalation, strangely i can complete the instalation for kernel 2.6.15 perfectly using this bootdisk

so using this bootdisk i can run startx with no problem at all

but when i boot from hard drive which has 2.6.15 and run startx it says fatar error inserting nvidia (/lib/modules/2.4.31/kerne/drivers/video/nvidia.o)
 
Old 01-10-2006, 03:15 AM   #10
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You need to install the source and module packages for 2.6.15.

Last edited by MS3FGX; 01-10-2006 at 03:22 AM.
 
Old 01-10-2006, 03:18 AM   #11
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
alright then , how can i do that
oops sorry the package that i download before is NVIDIA-Linux-x86-1.0-8174-pkg1.run not .tar.gz
Thank You very much

Last edited by lilili; 01-10-2006 at 03:24 AM.
 
Old 01-10-2006, 04:56 AM   #12
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
you have 2 options lili
1. u can load modules for 2.6 kernel, as u mentioned in st post. for that u can install module pkg as i mentioned in the first post(it is in 2nd cd slack)
#installpkg kernel-modules-2.6.13-i486-1.tgz

2. u can let the installer to make the modules for ur kernel (for that u need kernel source, defaultly slack installs 2.4 source) u can intall it manually from 2nd cd
once u install, it will be there in /usr/src/
so u can create a simlink from /usr/src/
like ln -sf linux-2.6xx linux and leave the dir

i hope the best thing is to download the .run script file from nvidia.(i had given the link) do as i said it will install the module for ur kernel, if u have net u dont even need to install the source.
it will edit the xorg.conf filefor u.

i had done it in one of my system with test2.6 kernel without even installing the modules for 2.6 kernel, the nvidia script file automatically created a module dir( /lib/modules/2.6.15) and it worked fine,

if ur board is nvidia then after this only ur sound also work (i think so )


regards it worked for me
 
Old 01-10-2006, 02:58 PM   #13
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
If u used test26.s kernel during install the 2.4.31 modules and alsa and kernel source are still installed. Use cd2 to get 2.6.13 kernel source,alsadriver and modules. From cd2's /2.6.13 run upgradepkg *.tgz and u will have correct ones. As root at cli insert cd2> mnt /mnt/cdrom>cd /mnt/cdrom>cd /2.6.13 then upgradepkg *.tgz. Then cd / and umount /mnt/cdrom.
After this do the nvidia steps and all shd be good.
Hope this helps. Review how I do it all at top of forum. Happy Slacking.
 
Old 01-10-2006, 05:02 PM   #14
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
so towards the end of installation when you get to pick which kernel you want, even though you pick test26, you will still get 2.4.31 ? not the 2.6 one?
ok i will try to follow lestoil's instruction and hopefully i can install nvidia without crashing again
Thank You
 
Old 01-10-2006, 05:47 PM   #15
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Sw10.2

During install after u pick test26 u r asked wr to install kernel from. Tell it cd and insert cd1. The other steps are to get the 2.6.13 modules,source and alsa from cd2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble after inserting second nic robgravemaker Linux - Networking 8 12-29-2005 07:36 AM
After inserting some more RAM I got problems dinolinux Linux - Hardware 6 09-15-2005 08:38 AM
Inserting Text wildcat22 Linux - General 8 04-25-2004 07:51 AM
Inserting modules wgodois Linux - Hardware 0 08-03-2003 09:37 AM
Kword and inserting symbols Joe Soap Linux - Newbie 3 04-30-2002 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration