Novell Home

Adding an Imaging Driver to ZEN 3.x

Novell Cool Solutions: Feature

Digg This - Slashdot This

Posted: 8 Aug 2002
 

Note: For another approach that many people prefer to this method, see this article: Adding Additional Drivers to a Bootable CD


By popular demand, here are instructions on how to add on a driver to the linux Kernel 2.2.14.

For more info, see TID 10070123

First check to see if your card is a supported NIC. Supported Cards for ZfD 3.x imaging are found at: http://www.novell.com/documentation/lg/zdfs/index.html?zdfsadmn/data/a6n3rch.html

Then, find the website for the vendor of that particular card and download the UNIX drivers. For example, the latest Hewlett Packard drivers are on this page.

This file will unpack and include the driver name and instructions for how to compile it on linux.

Example

Here is an example of the process for the the Intel Pro100 VE.

Step 1. Run ZMBOOT.EXE from sys:\Public\Zenworks\imaging directory.

Step 2. Under "Workstation Linux Drivers" check the box next to "Load additional Linux Drivers ...".

Step 3. Click the "Add Linux Drivers" button.

a. Click Network Drivers.
b. Click the Add button.
c. Navigate to the e100.o file, select it and click OK.

Step 4. Create Disk 1.

Step 5. Create Disk 2.

Step 6. With Disk 2 still in the drive, clicke "Add Linux Drivers". a. Click "Copy Drivers" then OK.

Step 7. Mount Floppy 2 in a Red Hat Linux 6.2 box. Using VI Edit the /drivers/driver.conf by adding the following line to the "#Loading Network Drivers" section:

insmod -f $MODPATH/net/e100.o > /dev/null 2>&1.

Notes

Notes on Step 7.

a: All drivers/cards have different instructions, so the above instructions should only be considered an example.

b: By default this file only has headers in it. Only include here driver modules to be loaded prior to any pre-compiled drivers in the Kernel. The syntax of this file is

"insmod -f <modulename> <commandline parameters>.

c: Each driver has its own set of Command lines you can use. For example, to load driver 3c90x you use:

insmod -f 3c90x.o > /dev/null 2>&1 

This same driver has command line parameters like half and full duplex modes, 10M, 100M etc... For this driver the -f option designates fullduplex. The above syntax will load a 3c90x.o with full duplex and pipe all errors to the null device.

d: Here is the location of the driver and the drivers.conf file on the second disk.

/drivers
/drivers/drivers.conf
/drivers/net
/drivers/net/newdriver.o

e: If linux finds it is not the one you have a cable plugged into, then you will fail to obtain an IP address. For example, the PCMCIA drivers are always tried first. If you have the cable plugged into the docking station (where the NIC is on the PCI bus), and a PCMCIA NIC is in the laptop, the PCMCIA NIC will load first.

f: To see which driver is loaded, at the bash# prompt, type lsmod.

Adding Drivers

To add drivers to the CDROM boot disk, follow these steps:

1. Create the CD with the BOOTCD.ISO found in public\zenworks\imaging, but leave the session open (do not finalize the CD).

2. Next, copy your settings.txt and the following directory structure and file to the root of the CD, and then finalize the CD.

drivers\net\<whateveryourdriveris... for example 3c90x.o>

Whatever drivers are in this directory will be tried first by default.

With ZENworks 3.0 and above you have an option to have a Linux "ZEN" partition, if you have a ZEN Partition on your C Drive.

1) The driver needs to be copied to /lib/modules/2.2.14/net

2) driver.conf needs to be modified as per the driver's instructions and copied to the /bin directory.

To add drivers to the Linux.2 file used for PXE booting, follow these instructions using a Linux distribution (ie: RedHat, etc):

mv linux.2 linux.gz
gzip -d linux.gz
mount -o loop linux /mnt/


umount /mnt/
gzip -9c linux > linux.gz
mv linux.gz linux.2 
 


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell