[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic loading of kernel modules



On Mon, Oct 06, 2008 at 07:06:21PM +0200, Philipp H?bner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 
> I've got a question concerning automatic loading of kernel modules.
> 
> This is my scenario:
> I'm using kernel 2.6.18 for xen, which ships the module bnx2 for the
> broadcom network card.
> Unfortunately this driver has a bug and doesn't work in bridging mode.
> 
> I have compiled the new driver from broadcom, now here's my question:
> 
> How do I make sure this new module gets loaded instead of the old one?
> So far I've overwritten the kernel module with my own one, but that is
> not a nice solution.
> 
> The kernel's bnx2 module is under
> /lib/modules/2.6.18-6-xen-amd64/kernel/drivers/net.
> 
> If I place the new module (same name: bnx2) e.g. under
> /lib/modules/2.6.18-6-xen-amd64/kernel/drivers/misc,
> how do I tell the kernel to load this module instead of the old one?

I believe you can place override modules under:
  /lib/modules/$(uname -r)/updates
and they will be preferred. You can also create custom search paths -
see depmod.conf(5) for details.

-- 
dann frazier


Reply to: