3.2. Creating the driver modules

Documentation on how to build kernel modules for SuSE Linux / UnitedLinux is available at http://www.suse.de/~agruen/kernel-doc/

Lets assume you have updated the module e100 for the default kernel of SuSE Linux 9.0. Then you need the following structure in the update.tar.gz ( See Section 3.1.1 ) file.


		lib/modules/2.4.21-override-default/kernel/drivers/net/e100/e100.o
                

You can create the update.tar.gz file using the following commands:


		cd /tmp
		mkdir -p lib/modules/2.4.21-override-default/kernel/drivers/net/e100/
		cp /path/to/your/updated/e100.o lib/modules/2.4.21-override-default/kernel/drivers/net/e100/
		tar cvzf update.tar.gz lib/
		

This will create a compressed tar archive update.tar.gz in the /tmp directory, which can now be copied to the install directory ( See Section 3.1 ) on the Driver Update medium.

Note

The directory names in the tar archive must not include the leading slash! Make sure all files belong to user "root" and have the correct permissions (modules should have -rw-r--r--, directories should have -rwxr-xr-x).