Disabling certain PCI devices
Rick Stevens
rstevens at vitalstream.com
Thu Mar 11 22:31:02 UTC 2004
Mark Knecht wrote:
> Rick Stevens wrote:
>
>>
>> As far as I know, it's created by the "make modules-install" portion of
>> a kernel build, but I won't swear to it. I can't speak to gentoo as I
>> don't have a system set up (gee, YAFO for labrat.ssssc.com). I'll do
>> some snooping later today and see what I can find.
>
>
> Rick,
> I got a response from the Gentoo list. The values are set (in my
> case) in one of the source code files for the 1394 stack. To change this
> behaviour under Gentoo I have to modify that file (in this case
> ohci1394.c) and rebuild the kernel. (Or at least the driver.) The
> modules.pcimap file is then created by a depmod command at boot time I'm
> told.
>
> It is interesting that on Redhat the modules.pcimap does appear to be
> static, so I guess I could possibly just edit the file on that machine.
> I suspect that maybe somewhere in the modules_install step there may be
> a similar depmod that builds this?
There's a program called "gen-devlist" that gets built during the kernel
build. It appears to create the file by reading a "pci.ids" file that's
in the /usr/src/linux/drivers/pci directory. It's run during the
PCI and zorro driver builds to create the devlist.h files. I suspect
those files are copied during the modules_install.
Most of the gory details about what happens when is spelled out in the
"/usr/src/linux/Documentation/kbuild/makefiles.txt" file. It may be
a good idea for you to have a read of that.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- 500: Internal Fortune Cookie Error -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list