PDA

View Full Version : linuxfromscratch 4 and nvkernel


l4t3ncy
10-30-02, 04:31 PM
i cant get the install script to complete with the nvkernel on the source package.

the compile completes fine and creates the NVdriver file but this remains in the nvkernel source folder and NOT the lib/modules folder.

i believe the error is in the second stage running the makedevices.sh i get the following message:


make: which: Command not found
/bin/sh: -m: command not found

make: *** [package-install] Error 127


there are clearly commands required that lfs 4.0 doesnt install.

i have opened the makedevices.sh script and found one of the missing commands to be update-modules. I'm not sure whether this is absolutely required.

from what i can see the first part copys the NVdriver file to the /lib/modules folder

secondly it makes it's entry in /etc/modules.conf


alias char-major-195 NVdriver

then it creates the following devices

/dev/nvidia1
/dev/nvidia2
/dev/nvidia3
/dev/nvidia4
/dev/nvidia5
/dev/nvidia6
/dev/nvidia7
/dev/nvidiactl

and changes their modes to 0666

I have done all this manually.

But when i startx i get "cannot load NV kernel module" error even though i succesfully load it with insmod.

loading i get the standard tainting error but lsmod shows the modules loaded.

1. is there something crucial i missed?
2. is there a manual install guide i havent been able to find?
3. what are the commands i require to install the source distribution properly?

answers to any of the above three questions would be very welcome since the nv driver in xfree doesnt support my ti4200 :(

pinguinu
11-01-02, 03:39 AM
On my 3.4 LFS system, "which" is actually a script which I put in /usr/bin and reads like this:

#!/bin/sh
type -p $1

(there was an old hint somewhere on the LFS site...)

Anyway, I had no problem installing the nvidia driver, it all works fine.

But if you say you did all the installation steps manually and X still complains... I don't know, did you do a depmode -a apter installing the kernel module? Maybe that helps....

good luck!

bwkaz
11-01-02, 06:48 AM
Attached, you will find my version of makedevices.sh.

The error you were quoting is because first, which isn't installed, but second, neither is mktemp. Neither of these are needed, but the default makedevices.sh script assumes that $mktemp (which will be the touch command, on your system) takes a -s option, which it doesn't. It also assumes that touch prints out the name of the file it touched, which it doesn't.

Although if you can't load X after you've modprobe NVdriver'ed, then there are other problems... Does modprobe'ing agpgart help? If not, can you reboot, modprobe NVdriver, start X, and post your X log?