C H A P T E R 6 |
Manually Installing the B100x and B200x Linux Kernel Drivers |
This chapter provides information on how to rebuild and reinstall the Linux drivers for a B100x or B200x kernel upgrade. It includes the following sections:
Note - This chapter does not describe how to perform a kernel upgrade. For information on how to upgrade your kernel, refer to the documentation for the version of Linux you have installed. |
The Linux kernel provides the underlying services to the rest of a Linux distribution. If you replace the Linux kernel, you must reinstall the blade kernel drivers in the new kernel environment. Failure to reinstall the kernel drivers may result in loss of network connectivity and will result in the loss of other facilities such as network failover and BSC services.
Before you upgrade the Linux kernel you must copy the driver source files on to the blade. This is necessary in case the kernel upgrade results in the loss of network connectivity.
When selecting the drivers to be built in the new environment, the latest version of the drivers for the system you are upgrading should be used. Use the following table to determine the driver directory you require:
Copy the driver files from a server that has the Sun drivers installed:
where <DriverDir> is the required driver directory listed in the table above.
1. Ensure that the system compiler is installed:
If gcc is not installed, it must be installed using the rpm -i command.
2. Ensure that the kernel sources are installed:
If the kernel sources are not installed, they must be installed using the rpm -i command.
3. Remove any kernel build files that are not required:
cd /usr/src/linux-<kernel version> find . -name .depend | xargs rm -f find include/linux/modules ( -name \*.ver -o -name \*.stamp ) | xargs rm -f rm -f include/linux/autoconf.h |
where <kernel version> is the version of the kernel you have upgraded to.
4. Modify the kernel Makefile to match your kernel:
Note - If you are running on a uniprocessor kernel, change the sed argument to s/custom// |
5. Finish removing build files that are not required, install the configuration and prepare the environment:
where <kernel version> is the version of the kernel you have upgraded to.
Note - If you are running on a uniprocessor kernel, change the configuration file name to kernel-<kernel version>-athlon.config |
6. Change the directory to the location of the driver files, and build the drivers:
where <kernel version> is the version of the kernel you have upgraded to.
where <kernel version> is the version of the kernel you have upgraded to.
Note - If you are running on a uniprocessor kernel, remove the smp part of the path name. |
where <kernel version> is the version of the kernel you have upgraded to.
Note - If you are running on a uniprocessor kernel, remove the smp part of the path name. |
The lilo command is required only if you are using the LILO bootloader. If you are using the GRUB bootloader, only the mkinitrd command is required.
9. Restart your system and select the new kernel from the boot menu.
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.