Advertisement
zombah

openSUSE 13.2 custom kernel guide

Aug 14th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. Here is the way of mine which results in a working kernel (and i suggest
  2. to take 3.17.6 or 3.17.7). I use only the sources from kernel.org and
  3. the BFQ scheduler patches.
  4.  
  5. # make mrproper
  6. # patch WhatYoutWantToHave.patch(es)
  7. # make distclean
  8. # zcat /proc/config.gz > .config
  9.  
  10. Comment: For the first step to a new kernel release i even download the
  11. kernel source from the suse kernel repo to take a look at the
  12. kernel-desktop config file during the first "make oldconfig". You can
  13. use this newer kernel config as ".config" too.
  14.  
  15. Attention: In the first step to another kernel than the one from suse i
  16. deactivate a lot of CONFIG_DEBUG* to get a "normal" size for the
  17. kernel and the modules. I think this is because suse split the
  18. debug-files in another package.
  19.  
  20. # make oldconfig 2>&1 | tee ../make_oldconfig-$(date --iso-8601).log
  21. # make menuconfig => Change CONFIG_LOCALVERSION (example -1-new)
  22. # make modules_prepare
  23. # make -j4 2>&1 | tee ../make_kernel-$(date --iso-8601).log
  24. # make kernelrelease (CHECK Kernel Release Name)
  25.  
  26. Comment: From here on i run the rest as root.
  27.  
  28. # make INSTALL_FW_PATH=/lib/firmware/3.17.7-1-new modules_install
  29. # cp arch/x86/boot/bzImage /boot/vmlinuz-3.17.7-1-new
  30. # cp System.map /boot/System.map-3.17.7-1-new
  31. # cp .config /boot/config-3.17.7-1-new
  32. # cd /boot
  33. # mkinitrd -k vmlinuz-3.17.7-1-new -i initrd-3.17.7-1-new
  34. # grub2-mkconfig --output=/boot/grub2/grub.cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement