Editing Compiling the kernel
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
- | This document describes how a 3rd party developer can compile, modify | + | This document describes how a 3rd party developer can compile, modify and deploy the linux kernel if (s)he really wants to. First thing to consider is whether your own kernel is really needed. Most additional functionality can be provided with modules dynamically loaded into original kernel provided by Nokia. This may be easier for you and also easier for other users to install on their devices. Only if your change conflicts with original Nokia configuration or new feature cannot be compiled as a module, new kernel is needed. |
First see: http://maemo.org/maemo_release_documentation/maemo4.1.x/node12.html | First see: http://maemo.org/maemo_release_documentation/maemo4.1.x/node12.html | ||
- | If you choose to compile only additional modules | + | If you choose to compile only additional modules then use the original nokia configuration as a base and enable new functionality as modules. Make sure you use compatible compiler with the one used for original kernel (currently gcc 3.4) otherwise your modules may produce errors when inserting into the kernel. The best may be to use exactly the same one - see /proc/version on device or use the one suggested in Section 2. |
- | If you choose to make a new kernel | + | If you choose to make a new kernel Section 2 describes the compilation procedure, Section 3 the modification procedure, and Section 4 the deployment procedure. The document finishes off by a section listing issues that should be taken into account when working with the kernel and Maemo. |
=Modifying Default Kernel Configuration= | =Modifying Default Kernel Configuration= | ||
- | In order to modify the default kernel configuration, a few things | + | In order to modify the default kernel configuration, a few things needs to be done. Assuming that the kernel has been built at least once, perform the following procedure to build a modified kernel for Maemo: |
'''1.''' Edit ~/maemo-kernel/kernel-source-diablo-2.6.21/debian/rules so that modifications may be done. | '''1.''' Edit ~/maemo-kernel/kernel-source-diablo-2.6.21/debian/rules so that modifications may be done. |
Learn more about Contributing to the wiki.