1 |
On Sun, Dec 05, 2004 at 05:31:49PM +0000, Daniel Drake wrote: |
2 |
> Hi, |
3 |
> |
4 |
> As suggested by cyfred, I've written some code to allow /etc/modules.d |
5 |
> files to be created automatically. |
6 |
> |
7 |
> I have attached an updated version of the nvidia-kernel ebuild that uses |
8 |
> this, also the nvidia source had to be patched to export parameter |
9 |
> descriptions (but any well written module will not require this). |
10 |
> |
11 |
> Here is the /etc/modules.d/nvidia file which gets produced (it has |
12 |
> linewrapped in this mail, but hopefully you get the picture) |
13 |
> |
14 |
> ---------- |
15 |
> |
16 |
> # Configuration file for nvidia module |
17 |
> |
18 |
> # Internal aliases, do not edit |
19 |
> alias char-major-195 nvidia |
20 |
> alias /dev/nvidiactl char-major-195 |
21 |
|
22 |
Why do you need these? Aren't they automatically generated by depmod if |
23 |
you put the correct code in the kernel module source code (see the |
24 |
MODULE_ALIAS() stuff.) |
25 |
|
26 |
> # Configurable module parameters |
27 |
> # For more details, see /usr/share/doc/nvidia-kernel-1.0.6629/README.gz |
28 |
> # |
29 |
> # silence_nvidia_output - Silence output: 0 (default, verbose) or 1 |
30 |
> (silent) |
31 |
> # NVreg_EnableVia4x - Enable AGP4x on VIA chipsets (default disabled) |
32 |
> # NVreg_EnableALiAGP - Enable AGP on ALi1541/1647 chipsets (default |
33 |
> disabled) |
34 |
> # NVreg_NvAGP - Select which AGPGART is used if unspecified by X - 0 |
35 |
> (disable), 1 (use nvidia), 2 (use kernel), 3 (try 2 then 1, default) |
36 |
> # NVreg_EnableAGPSBA - Enable AGP Side Band Addressing |
37 |
> # NVreg_EnableAGPFW - Enable AGP Fast Writes (default disabled) |
38 |
> # NVreg_SoftEDIDs - Enable dynamic generation of EDID info (default |
39 |
> enabled) |
40 |
> # NVreg_Mobile - Select Mobile registry key when SoftEDIDs is disabled - 0 |
41 |
> (auto, default), 1 (Dell), 2 (Toshiba), 3 (other), 4 (Compal/Toshiba), 5 |
42 |
> (Gateway) |
43 |
|
44 |
modinfo also generates this automaticallly, with full strings, right? |
45 |
Hm, your patch has that. |
46 |
|
47 |
I guess I don't see the need for why we have these modules.d files. |
48 |
Anyone want to hit me with the cluestick for being not awake yet today? |
49 |
|
50 |
thanks, |
51 |
|
52 |
greg k-h |
53 |
|
54 |
-- |
55 |
gentoo-kernel@g.o mailing list |