Article 5F8G6 Build latest stable kernel 5.12.0-rc2+

Build latest stable kernel 5.12.0-rc2+

by
kainaat
from LinuxQuestions.org on (#5F8G6)
Hello,

I am trying to build the latest stable kernel which is 5.12.0.rc2+ from
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

I have followed the following steps:
  1. Downloaded source to /usr/src/
  2. sudo make defconfig
  3. added a few configurations
  4. sudo make olddefconfig
  5. sudo make -j64
  6. sudo make modules_install
  7. sudo make install


On "make install" I get the following error and I am unable to boot using this new image as it freezes on "loading initial ramdisk":

sh ./arch/x86/boot/install.sh 5.12.0-rc2+ arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.12.0-rc2+ /boot/vmlinuz-5.12.0-rc2+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.12.0-rc2+ /boot/vmlinuz-5.12.0-rc2+
update-initramfs: Generating /boot/initrd.img-5.12.0-rc2+
find: /var/tmp/mkinitramfs_EPi6Et/lib/modules/5.12.0-rc2+/kernel': No such file or directory
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.12.0-rc2+ /boot/vmlinuz-5.12.0-rc2+
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.12.0-rc2+ /boot/vmlinuz-5.12.0-rc2+
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.12.0-rc2+ /boot/vmlinuz-5.12.0-rc2+
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.12.0-rc2+
Found initrd image: /boot/initrd.img-5.12.0-rc2+
Found linux image: /boot/vmlinuz-5.11.0-051100rc7-generic
Found initrd image: /boot/initrd.img-5.11.0-051100rc7-generic
Found linux image: /boot/vmlinuz-5.11.0-051100-generic
Found initrd image: /boot/initrd.img-5.11.0-051100-generic
Found linux image: /boot/vmlinuz-5.8.12-kAFL+
Found initrd image: /boot/initrd.img-5.8.12-kAFL+
/dev/sdb: open failed: No medium found
/dev/sdb: open failed: No medium found
Adding boot menu entry for UEFI Firmware Settings
done

Output for "modules_install":
sudo make modules_install
INSTALL drivers/thermal/intel/x86_pkg_temp_thermal.ko
INSTALL fs/efivarfs/efivarfs.ko
INSTALL net/ipv4/netfilter/iptable_nat.ko
INSTALL net/ipv4/netfilter/nf_log_arp.ko
INSTALL net/ipv4/netfilter/nf_log_ipv4.ko
INSTALL net/ipv6/netfilter/nf_log_ipv6.ko
INSTALL net/netfilter/nf_log_common.ko
INSTALL net/netfilter/xt_LOG.ko
INSTALL net/netfilter/xt_MASQUERADE.ko
INSTALL net/netfilter/xt_addrtype.ko
INSTALL net/netfilter/xt_mark.ko
INSTALL net/netfilter/xt_nat.ko
DEPMOD 5.12.0-rc2+

Any help would be appreciated!!latest?d=yIl2AUoC8zA latest?i=VHnDotsVqGQ:IV0YDETQgK8:F7zBnMy latest?i=VHnDotsVqGQ:IV0YDETQgK8:V_sGLiP latest?d=qj6IDK7rITs latest?i=VHnDotsVqGQ:IV0YDETQgK8:gIN9vFwVHnDotsVqGQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments