kernel

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
kernel [2012/04/09 14:05] – [brotscheibe dell latitude e6420 .config] brotkernel [2012/04/09 14:23] – [kernel and initrd build command] brot
Line 1: Line 1:
-===== kernel and initrd build command  =====+===== Kernelupdate/config und initrd erstellen ===== 
 + 
 +Hier wird primär beschrieben, wie ich die Kernel auf meiner "Haupt"-Installation update. Das 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 ==== 
 + 
 +  * make oldconfig / make menuconfig 
 +  * make -j8 && sudo make modules_install && sudo cp arch/x86/boot/bzImage /boot/kernel-3.4-rc1+ && sudo dracut /boot/initramfs-3.4-rc1+.img --omit plymouth --force --xz -H "3.4.0-rc1+" && sudo grub2-mkconfig -o /boot/efi/EFI/grub2/grub.cfg 
 + 
 +Achtung: /boot/efi ist in meinem Fall die EFI-Bootpartition. Bei "normalem" GRUB2 sollte die Config unter /boot/grub2/grub.cfg liegen 
 + 
 +===== Aktuelle Kernelconfigs ===== 
 + 
 +===brot - Dell Latitude E6420 ==== 
 + 
  
 ==== kernel bauen und initrd erstellen ==== ==== kernel bauen und initrd erstellen ====
  • kernel.txt
  • Last modified: 2014/12/06 16:34
  • by brot