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

Creating a kernel package with external drivers?



Hello all,

I'm trying to build a kernel package for my production servers, and I'm
running into trouble with the make-kpkg command.

I'm trying to get a package with the 2.6.11.7 kernel as well as the
3ware 3w-9xxx driver (from the 3ware site, not the built in one from
the kernel sources).  I need to boot of the drives connected to the
raid array, so I need to use an initrd.

I need a kernel package that contains the 3w-9xxx driver as well as a
properly created initrd.img.

I'm using the following command line:

make-kpkg --append-to-version -20050428 --revision 1 --initrd \
--added-modules /usr/src/3w-9xxx2.6-9.2/3w-9xxx.ko binary

although I've also tried: (among others)
#make-kpkg --append-to-version -20050428 --revision 1 --initrd \
  --added-modules /usr/src/3w-9xxx2.6-9.2/3w-9xxx.ko binary modules
#make-kpkg --append-to-version -20050428 --revision 1 --initrd \
  --added-modules /usr/src/3w-9xxx2.6-9.2/ binary
#make-kpkg --append-to-version -20050428 --revision 1 --initrd \
  --added-modules 3w-9xxx binary
^^(with a directory 3w-9xxx in /usr/src/modules)

So, I'm at a loss as to how to do this.  I know I can manually make it
work by copying over the module and fixing the initrd after I install
the package on the server, or I could unroll the package and fix the
files inside it, but that seems like a hack.  What's the right way to
do this?

Thanks so very much in advance,

Jonah Horowitz



Reply to: