HP Insight Control server provisioning Adding Drivers to OS Build Plans

7
a. Execute rpm2cpio RPM_file | cpio idm in a temporary directory to pull out all of the
files in the RPM where RPM_file is the RPM file name.
b. In the temporary directory, execute find . name \*.ko print to locate all of the driver
modules .
4. Copy the driver .ko files to linux/suse/x86_64-sles11/modules.
5. Replace the copy of the driver package on the Media Server with the contents of the modified directory.
Modifying the RHEL 5.x x64 Driver Package
The instructions in this section require that createrepo, mkisofs, and genisoimage and all of their dependencies be on
the server where the packages are being modified.
These instructions work for all RHEL 5 minor versions. To modify other RHEL 5.x x64 driver packages, use the same
instructions as for RHEL 5.9 x64, except use the specific RHEL 5.x x64 versioned server that matches the driver package
version.
To modify the RHEL 5.9 x64 driver package:
1. On a RHEL 5.9 x64 server, copy the contents of the driver package directory created on the Media Server in the
Obtaining a Copy of the Driver Package section to the RHEL 5.9 x64 system.
2. Mount dd.img using -o loop option.
3. Create a temporary directory and copy the mounted dd.img contents.
4. Extract all of the driver .ko files from the new RPMs.
5. Add the new driver .ko files to modules.cgz using the following instructions:
a. Create a temporary directory in which to extract the .ko files.
b. Change directory to the temporary directory.
c. Run zcat < ../modules.cgz | cpio idv to extract the old kernel modules.
d. Copy the new driver module .ko files to the temporary directory.
e. From the temporary directory run
find . -print | cpio o H crc | gzip 9 > ../modules.cgz.
f. Remove the temporary directory and its contents.
6. If the new driver files include modinfo, modules.dep, and pcitable files then continue to the next step.
If they are not included, create and run the createmodinfo script to generate them. The createmodinfo
script should contain the following:
#!/usr/bin/perl
use Data::Dumper;
use File::Basename;
useGetopt::Long;
my $program_name = "createModinfo";
my $help_info = ";
usage: $program_name OPTIONS kernelModule
Options:
--output s
Directory in which to place generated files.
--help
Prints this message.
";
my $outputDir = `pwd`;
chomp($outputDir);
GetOptions( "output=s" => \$outputDir,
"help" => \my $help)
or die($help_info);
if ($help) {