kernel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
kernel [2010/02/24 22:12] – angelegt brotkernel [2014/12/06 16:34] (current) brot
Line 1: Line 1:
-===== Linux kernel .config und genkernel =====+===== Kernelupdate/config und initrd erstellen =====
  
-  genkernel --kernel-config=/usr/src/.config --install --splash=natural_gentoo --splash-res=1280x800 --lvm all && cp .config /usr/src+Hier wird primär beschrieben, wie ich die Kernel auf meiner "Haupt"-Installation updateDas dient nicht nur zur Information anderer, sondern hilft auch ganz gut gegen Vergessen ;)
  
 +=== Aktuelle Situation ===
 +
 +  * Kernel aus dem offiziellen git-Tree
 +  * Initrd wird von dracut erzeugt
 +  * Bootloader ist GRUB2
 +  * Das Laptop hat sowohl UEFI als auch eine GPT-Partitionstabelle
 +
 +==== Updaten des Kernels ====
 +
 +Alles als normaler User ausführen ;)
 +
 +  * erster clone: %%cd /usr/src; git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git; git rename origin linus%%
 +  * git pull linus
 +  * git checkout -f v3.4-rc1 ( version ) oder git checkout linus/master ( aktueller entwicklungszweig )
 +
 +==== Erstellen des Kernels und der initrd ====
 +<code>
 +make oldconfig
 +make menuconfig
 +make -j8 && sudo make modules_install && sudo cp arch/x86/boot/bzImage /boot/kernel-3.11.0-rc3 && sudo dracut /boot/initramfs-3.11.0-rc3.img --force --xz -H "3.11.0-rc3" --omit "i18n" --add-drivers i915 "--compress=xz --check=crc32 -9e" && sudo grub2-mkconfig -o /boot/grub2/grub.cfg
 +</code>
 +
 +<code>
 +brot@brotscheibe linux % KVER=`grep -o -E "[[:digit:]]+\.[[:digit:]]+\.[[:digit:]](\-\r\c[[:digit:]]*)?" .config` make -j14 && sudo make modules_install && sudo cp arch/x86/boot/bzImage /boot/$KVER && sudo dracut /boot/initramfs-$KVER --force --xz -H $KVER --omit "i18n" --add-drivers i915 --add-drivers ahci "--compress=xz --check=crc32 -9e" && sudo grub2-mkconfig -o /boot/grub2/grub.cfg </code>
 +
 +===== Aktuelle Kernelconfigs =====
 +
 +==== brot - Dell Latitude E6420 ====
 +[[https://owncloud.minad.de/public.php?service=files&t=2bab8797eee07f0c56abf2cfc381e09b|.config für 3.11.0-rc3 auf owncloud.minad.de]]
 +[[http://is.gd/6RfnLD|.config für 3.4-rc1 auf share]]
  
  • kernel.1267049522.txt.gz
  • Last modified: 2010/02/24 22:12
  • by brot