Skip to content

Instantly share code, notes, and snippets.

@neomatrixcode
Created June 27, 2021 14:55
Show Gist options
  • Save neomatrixcode/4906bc0dcce284a1a475d9518aa2273a to your computer and use it in GitHub Desktop.
Save neomatrixcode/4906bc0dcce284a1a475d9518aa2273a to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install build-essential vim git cscope libncurses-dev libssl-dev bison flex git-email -y
cd /
sudo mkdir /linux_work
cd /linux_work
sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux_mainline
sudo git clone https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git linux_kselftest
sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux_stable
cd linux_stable
git checkout linux-5.12.y
sudo cp /boot/config-5.11.0-18-generic .config
#zcat /proc/config.gz > .config
in virtual machine commenting line CONFIG_SYSTEM_TRUSTED_KEYS in .config
----------------------------------
sudo make oldconfig
----------------------------------
lsmod > /tmp/my-lsmod
sudo make LSMOD=/tmp/my-lsmod localmodconfig
----------------------------------
sudo apt-get install libelf-dev dwarves -y
sudo make -j6 all
sudo dmesg -t > dmesg_current
sudo dmesg -t -k > dmesg_kernel
sudo dmesg -t -l emerg > dmesg_current_emerg
sudo dmesg -t -l alert > dmesg_current_alert
sudo dmesg -t -l crit > dmesg_current_crit
sudo dmesg -t -l err > dmesg_current_err
sudo dmesg -t -l warn > dmesg_current_warn
sudo dmesg -t -l info > dmesg_current_info
sudo make modules_install install
sudo nano /etc/default/grub
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX="earlyprintk=vga"
sudo update-grub
--->reinicia<---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment