Third party drivers

From OpenSSI

Jump to: navigation, search

These are the instructions for compiling 3rd party kernel modules on Fedora Core 2, where there's a source RPM for the drivers available.

Files

  • openssi-fc2-<openssi_version>.i686.tar (OpenSSI installation files)
  • kernel-ssi-source-<kernel_version>.i686.rpm (RPM of the kernel source)
  • <driver_name>-<driver_version>.src.rpm (source RPM for the driver at hand)

Procedure


After installing and booting with the OpenSSI kernel, install the ssi kernel source:

rpm -i kernel-ssi-source-<kernel_version>.i686.rpm

At this time the command,

uname -r

should show <kernel_version>, so the driver should be built against the source tree below /usr/src/linux-<kernel_version>/.


Then, place the source rpm for the drivers at hand and build the binary rpm:

cp DRIVER-<driver_version>.src.rpm /usr/src/redhat/SRPMS/
cd /usr/src/redhat/SRPMS/
rpmbuild --rebuild DRIVER-<driver_version>.src.rpm


The file DRIVER-<driver_version>.rpm should have been created in /usr/src/redhat/RPMS/i386/. Install the binary rpm then:

cd /usr/src/redhat/RPMS/i386
rpm -i DRIVER-<driver_version>.rpm 

To make sure, look for the driver object module in /lib/modules/<kernel_version>/kernel/drivers/<driver_type_dir>/. The file /etc/modules.conf should also have a "alias" line for the driver added to it.


Finally, build a new RAMDISK image:

mkinitrd -f --cfs /boot/initrd-<kernel_version>.img <kernel_version>

Reboot and, if all is well, just check the loaded module with the following command:

lsmod

At this point installation may proceed by adding nodes to the cluster as described in the installation guide.

Personal tools