Building Drivers - Novell ZENWORKS LINUX MANAGEMENT 7.2 IR2 - ADMINISTRATION GUIDE 09-25-2008 Administration Manual

Table of Contents

Advertisement

If a manufacturer has a binary driver compiled specifically for the kernel version used by
ZENworks, you can obtain the driver and use one of the update methods to add the driver.
ZENworks 7 is based on SLES 9 SP2, kernel version 2.6.5-7.191. If the driver is not for this specific
version, you must obtain the source and compile it for this version. For more information, see
Section F.5.2, "Building Drivers," on page
F.5.2 Building Drivers
Nearly all Linux drivers are distributed in source code form and need to be compiled before they can
be used. Follow the manufacturer's instructions included with the new driver to build the driver
module. Many drivers can be built in such a way that they are built into the kernel itself; however,
we recommend that LAN drivers be built as external kernel modules.
When building your LAN drivers, make sure that your build machine uses the same kernel as the
imaging environment. If you have a LAN driver that doesn't load in your imaging environment, it
usually means that you have a mismatch between your build environment and the imaging
environment.
You can find the current kernel version of your Linux environment using the following command:
uname -r
However, you might need to modify the results from the uname command to get your kernel
versions to match. For more information, see
To build your drivers:
"Obtaining the Linux Source Code Tree" on page 643
"Compiling the Module" on page 644
Obtaining the Linux Source Code Tree
To compile a module, you need the Linux source code tree that contains the configuration matching
the ZENworks kernel. To obtain the necessary source code, download the
zenimgk2657244.tgz Linux source code tree file (http://support.novell.com/servlet/
filedownload/pub/zenimgk2657244.tgz).
To use the Linux source code tree:
1 Unzip the file and install the source code tree in the /usr/src directory.
For example, the tar file creates the following directories:
/usr/src/linux-2.6.5-7.244
/usr/src/linux-2.6.5-7.244-obj
2 Obtain the proper configuration file from one of the following locations:
A running ZENworks imaging distribution file (/proc/config.gz).
zenimgk2657244.tgz (http://support.novell.com/servlet/filedownload/pub/
zenimgk2657244.tgz)
3 Copy this configuration file to the directory created in
643.
Section F.6, "Using Uname," on page
Step
1.
Updating ZENworks Imaging Resource Files 643
644.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.2ir2

Table of Contents