As LAN card manufacturers develop and release new LAN adapters, they usually release new or updated drivers as well. Sometimes the new LAN card functions properly with an earlier driver, and sometimes the earlier driver does not recognize the new LAN card and refuses to load. Occasionally, the older driver does load, but the LAN card exhibits serious performance problems. To obtain the full performance capabilities of a new LAN card, you should use the new driver.
The following sections explain how to obtain or compile drivers:
If you need to load your drivers with specific parameters, see Section F.5.3, Loading Drivers with Parameters.
New LAN drivers should be obtained from the manufacturer. Most LAN card manufacturers have drivers available for free downloading from their Web site. Some drivers are available from www.scyld.com/network, and the source to the Broadcom BCM5700 driver can be downloaded from http://www.broadcom.com/drivers/downloaddrivers.php.
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.
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:
However, you might need to modify the results from the uname command to get your kernel versions to match. For more information, see Section F.6, Using Uname.
To build your drivers:
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.
To use the Linux source code tree:
Unzip the file and install the source code tree in the /usr/src directory.
For example, the tar file creates the following directories:
Obtain the proper configuration file from one of the following locations:
A running ZENworks imaging distribution file (/proc/config.gz).
Copy this configuration file to the directory created in Step 1.
For example, /usr/src/linux-2.6.5-7.244.
To create a link to the source tree:
To change to the /usr/src directory, enter:
If there is a Linux soft link in the directory, delete it.
Create the Linux soft link, such as:
ln -s linux-2.6.5-7.244 linux
You now have the Linux kernel source tree and soft link ready for compiling the module. Continue with Compiling the Module.
To manually compile the module:
Install the source.
Follow the manufacturer’s instructions to install the source.
Normally, the module source is in a directory under /usr/src. Module source files usually come in the form of a gzipped tar file (.tar.gz or .tgz). The file might also be a bzipped file (.bz2).
To compile the source:
Change directories to the source.
If you modified uname to change to the proper kernel version, issue a make command.
When you have your module compiled for ZENworks, take the generated .ko module file (make sure you select the proper module name and not a work .ko file) and install it by using the driver update method or placing it in the initrd file system.
If there is a module that you want to load during the linuxrc processing time, and if linuxrc does not recognize that it needs to be loaded or you want to specify the load parameters, you can enter a line in the linuxrc.config or /info file. This file then needs to be updated in the initrd file system.
You might need to load a LAN driver module with specific parameters. You can do this with a line like:
This type of line is most commonly used to load a LAN driver with specific parameters, such as full duplex or specific speed.