Changes

Jump to: navigation, search
Configuring the Kernel with make menuconfig
== Preparing for the Custom Kernel Build ==
While logged in as yourself (do not perform these tasks as root) it is necessary to perform th3e the following steps in preparation for installing the sources:
<pre>
</pre>
Be sure to exit from the su session to revert to your original user account.
Next, we can install the kernel sources from the rpm file downloaded previously:
</pre>
Once the packages are installed , the sources need to unpacked using the ''rpmbuild'' command:
<pre>
== Customizing the Kernel for NFS Root Support ==
Now that we have the kernel sources installed we are ready to being begin the process of customizing the kernel to support the an NFS based root filesystem. The first step is to copy the configuration file from the running operating system to the appropriate directory of the kernel build tree:
<pre>
</pre>
We are now ready to begin the customization process. For the purposes of this tutorial we will be using the ''make menuconfig'' mechanism which requires that the ''ncurses-devel'' packagebe installed. If this is not installed, install it now as follows:
<pre>
</pre>
Be Once again, be sure to exit from the su session before proceeding beyond this point.
== Configuring the Kernel with make menuconfig ==
</pre>
The After some initialization, the following screen should appear: 
[[Image:make_menuconfig_main.jpg|The main menuconfig screen]]
 In order to configure root NFS support it is first necessary to enable ''IP Autoconfiguration''. This setting is accessed by selecting ''Network'' and then ''Networking Options'' in the menu system. On the Network options screen select ''IP: kernel level autoconfiguration'' and ''IP: DHCP support'' options so that an asterisk (*) appears within the square brackets. Also select the ''IP: BOOTP support'' and ''IP: RARP support'' options if required: 
[[Image:menu_config_network_options.jpg| Configuring Kernel Networking Options]]
 Press the '''Esc''' key twice to return to the main menu and then select ''File Systems->Network File Systems''. On the Network File Systems page scroll down to the ''Root filesystem on NFS'' option and select it: 
[[Image:menu_config_root_nfs.jpg| Configuring Kernel Root filesystem on NFS support]]
 Press the '''Esc''' key three times to exit from menuconfig and select the option to save the new configuration.
Edit the .config file and add a line immediately at the top of the file reflecting your architecuture:
1,798
edits

Navigation menu