How to compile in the Ubuntu-8.04: Of course, the need to download the source package how to dynamically generate the kernel driver module: such as ATI graphics card module fglrx. ko as an example when the linux-restricted-modules-2.6.24-16-genericdeb package is installed, there will be a fglrx folder in the/lib/linux-restricted-modules/2.6.24-16-generic/directory, put a generated fg
How to compile in the Ubuntu-8.04:
Of course, you need to download the source code package.
How to dynamically generate the kernel driver module:
Take the ATI graphics card module fglrx. ko as an example.
After the linux-restricted-modules-2.6.24-16-generic deb package is installed, there will be a fglrx folder in the/lib/linux-restricted-modules/2.6.24-16-generic/directory where fglrx is generated. REQUIRED for the ko module *. o file
Run the script/etc/init. d/linux-restricted-modules-common during system startup.
It will call/sbin/lrm-manager -- quick
The script lrm-manager reads the configuration file/etc/default/linux-restricted-modules-common.
If the fglrx module is not disabled in the configuration, lrm-manager generates the kernel module fglrx. ko Based on the *. o file in the fglrx/directory.
Therefore, if you compile the driver module based on the atigraphics card driver source code, instead of using the linux-restricted-modules-2.6.24-16-generic deb package to install the fglrx driver, you should disable fglrx in this configuration file
Similarly *. o file, used to dynamically generate the corresponding *. ko module. If not, disable it in the configuration file.