R1Soft allows to build a Kernel module, without using a pre-built binary module.
Follow the instructions below to build a Kernel module.
1. Run the {color:#fd4703}*\#r1soft-setup{*}{color} command with the {color:#fd4703}*\--no-binary{*}{color} option:
{code}# r1soft-setup --no-binary{code}
!47.png!
2. Wait till the information gathered, found headers compressed and the module installed. You can see the following information in the shell:
{code}Gathering kernel information
Gathering kernel information complete.
Creating kernel headers package
Checking '/lib/modules/2.6.18-238.9.1.el5/source/' for kernel headers
Found headers in '/lib/modules/2.6.18-238.9.1.el5/source/'
Compressing...
uploading kernel package 99% 4758KB 4.7MB/s 00:00 ETA
Starting module build...
Complete.
Saving kernel module to '/lib/modules/r1soft/hcpdriver-cki-2.6.18-238.9.1.el5.ko'
Kernel module is now installed.{code}
!48.png!
{info:title=Note}The default destination for Kernel module is {color:#fd4703}/lib/modules/r1soft/{color}.{info}
3. Restart the agent after module is installed. Run the following command:
{code}/etc/init.d/cdp-agent restart{code}
See also [Linux Agent CLI - Restarting The Agent].
For more information about the {color:#fd4703}*\#r1soft-setup{*}{color} tool and its option see [r1soft-setup].
{excerpt:hidden=true}Instructions on how to build a Kernel module using Linux Agent CLI.{excerpt}
Follow the instructions below to build a Kernel module.
1. Run the {color:#fd4703}*\#r1soft-setup{*}{color} command with the {color:#fd4703}*\--no-binary{*}{color} option:
{code}# r1soft-setup --no-binary{code}
!47.png!
2. Wait till the information gathered, found headers compressed and the module installed. You can see the following information in the shell:
{code}Gathering kernel information
Gathering kernel information complete.
Creating kernel headers package
Checking '/lib/modules/2.6.18-238.9.1.el5/source/' for kernel headers
Found headers in '/lib/modules/2.6.18-238.9.1.el5/source/'
Compressing...
uploading kernel package 99% 4758KB 4.7MB/s 00:00 ETA
Starting module build...
Complete.
Saving kernel module to '/lib/modules/r1soft/hcpdriver-cki-2.6.18-238.9.1.el5.ko'
Kernel module is now installed.{code}
!48.png!
{info:title=Note}The default destination for Kernel module is {color:#fd4703}/lib/modules/r1soft/{color}.{info}
3. Restart the agent after module is installed. Run the following command:
{code}/etc/init.d/cdp-agent restart{code}
See also [Linux Agent CLI - Restarting The Agent].
For more information about the {color:#fd4703}*\#r1soft-setup{*}{color} tool and its option see [r1soft-setup].
{excerpt:hidden=true}Instructions on how to build a Kernel module using Linux Agent CLI.{excerpt}