mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-08 01:35:50 -04:00
922 B
Executable file
922 B
Executable file
- Clone Linus’ repo and read Installing the kernel source:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
- Generate .config and add CONFIG_LOCALVERSION_AUTO=y
$ make localmodconfig
- Get an openssl header error, install lots of dev libraries
$ sudo apt-get install python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev
- Make! (It takes ~ 30 min)
$ make
- Make module, install, add to grub
$ make modules
$ sudo make modules_install
$ sudo make install
$ update-grub
- Reboot machine. For ubuntu: press shift to get grub menu
Profit!
Some tips:
- List of kernel addresses sorted in ascending order, from which it is simple to find the function that contains the offending address:
$ nm vmlinux | sort | less
Send
make && make modules && make modules_install && make install