southpaw
June 27th, 2004, 11:25
Fbsd 4.10
self compiled kernel

Nvidia drivers working but manually loading nvidia module via kldload nvidia, do I need to recompile or can I edit a particular file to have the module loaded at boot time. I tried adding nvidia_load="YES" to /boot/loader.conf and that didnt work.

Thanks

bsdjunkie
June 27th, 2004, 14:39
Not sure, but maybe you need the following as well?

AGP_LOAD="YES" in loader.conf..

southpaw
June 29th, 2004, 05:37
I used the nvidia driver from ports.

/boot/loader.conf has
nvidia_load="YES"
agp_load="YES"

On boot up, nvidia module not being loaded as shown below,

bash-2.05b$ kldstat
Id Refs Address Size Name
1 5 0xc0100000 4a5fd4 kernel
2 1 0xc05a6000 b34c agp.ko
4 1 0xc16da000 7000 ipfw.ko
5 1 0xc1768000 15000 linux.ko

Manually load with kldload nvidia, and all works fine. Am I missing something or doing something wrong in order to automate the loading of the nvidia module? Is there another option?

After manually loading, kldstat shows
bash-2.05b$ kldstat
Id Refs Address Size Name
1 5 0xc0100000 4a5fd4 kernel
2 1 0xc05a6000 b34c agp.ko
4 1 0xc16da000 7000 ipfw.ko
5 1 0xc1768000 15000 linux.ko
6 1 0xc17d3000 1c4000 nvidia.ko

southpaw
June 29th, 2004, 14:14
I managed to get it to load by adding nvidia.sh to /usr/local/etc/rc.d containing only:

#!/bin/sh
kldload nvidia

chmod 755 nvidia.sh

rebooted and it worked.

Thanks.

Kernel_Killer
June 29th, 2004, 19:34
Did you try putting nvidia after the AGP in the loader? Just in case you want to continue using the loader instead.

southpaw
June 29th, 2004, 19:40
yes, i did...it fails either way to load on boot. When starting boot, it shows both nvidia.ko and agp.ko being loaded at top of screen. When login prompt is reached, startx fails unless i issue kldload nvidia. This seems to work, although I am not sure it is the "right" way to do things...steep learning curve here.

southpaw