Difference between revisions of "Kernel compiling"

From odroid US
Jump to: navigation, search
(Building the initial ram filesystem)
(Copying the kernel and initramfs to the boot partition)
Line 10: Line 10:
  
 
hwFGXX  <a href="http://vktsrqogbjhm.com/">vktsrqogbjhm</a>, [url=http://rjatnkpeicze.com/]rjatnkpeicze[/url], [link=http://zrwgescusalr.com/]zrwgescusalr[/link], http://sssolqowvrpw.com/
 
hwFGXX  <a href="http://vktsrqogbjhm.com/">vktsrqogbjhm</a>, [url=http://rjatnkpeicze.com/]rjatnkpeicze[/url], [link=http://zrwgescusalr.com/]zrwgescusalr[/link], http://sssolqowvrpw.com/
 
=== Copying the kernel and initramfs to the boot partition ===
 
<pre>
 
kernelversion=`cat ./include/config/kernel.release`
 
cp /boot/zImage /boot/zImage.prev
 
cp /boot/uInitrd /boot/uInitrd.prev
 
cp arch/arm/boot/zImage /boot
 
cp .config /boot/config-$kernelversion
 
</pre>
 
 
optionally:
 
<pre>
 
cp System.map /boot/System.map-$kernelversion
 
</pre>
 
 
halt:
 
<pre>
 
shutdown -h 0
 
</pre>
 
power cycle after that.
 
 
The new kernel will show something like this:
 
<pre>
 
uname -a
 
</pre>
 
Linux odroidu2-1 3.0.57 #1 SMP Sun Jan 13 21:53:37 UTC 2013 armv7l GNU/Linux
 
 
The #1 came from the file: /usr/src/linux/.version.  Each time you build, this number will be incremented.
 
  
 
=== warnings ===  
 
=== warnings ===  

Revision as of 07:38, 26 January 2013

WATCH THE SIZE OF YOUR BOOT PARTITION, MAYBE YOU HAVE TO DELETE SOME OF THE BACKUP FILES!

DO THIS ON YOUR ODROID, NOT ON YOUR PC!

These procedures assume you have an Debian-based distribution loaded on your odroid. The kernel building is not different between the distros, but getting ready to build is.

Debian/Ubuntu/Mint and others use "Debian packages", .deb files. They use tools like dpkg, apt, synaptic and so on to manage a package database.

RedHat, Centos, Fedora and Gentoo would not know about apt-get and friends -- so these instructions will not be of much use.

hwFGXX <a href="http://vktsrqogbjhm.com/">vktsrqogbjhm</a>, [url=http://rjatnkpeicze.com/]rjatnkpeicze[/url], [link=http://zrwgescusalr.com/]zrwgescusalr[/link], http://sssolqowvrpw.com/

warnings

Your new kernel built kernel modules that may not be compatible with other builds.

Please don't post a private kernel without giving a warning. If could break another system. If you make small changes, like select an additional module, the result will probably not segfault other systems. On the other hand, if you select some networking options (especially) you may find that structs don't quite line up and eventually someone will segfault.