From Fedora Project Wiki
Installing git:
# yum install git -y
Goto home directory:
$ cd ~
Clone upstream kernel:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Goto directory with kernel:
$ cd linux
Start bisection:
$ git bisect start $ git bisect bad v3.11-rc1 $ git bisect good v3.9
Download latest config:
$ curl http://pkgs.fedoraproject.org/cgit/kernel.git/plain/config-generic > .config $ curl http://pkgs.fedoraproject.org/cgit/kernel.git/plain/config-`arch`-generic >> .config
Make new config from downloaded Fedora configs:
$ make oldconfig
Export flags for smp processor:
export MAKEOPTS="`rpm --eval %{?_smp_mflags}`"
Compiling kernel:
$ make bzImage && make modules
Install new kernel:
# make modules_install && make install
Update grub:
- BIOS:
# grub2-mkconfig -o /boot/grub2/grub.cfg
- UEFI:
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Reboot:
# systemctl reboot
Testing problem..
Goto directory with linux kernel:
$ cd ~/linux
Problem still present:
$ git bisect bad
Problem isn't present:
$ git bisect good
Kernel doesn't boot or other:
$ git bisect skip