master-algorithms-py/other_resources/eudyptula-challenge-solutions/bt3/task_02/instructions.md
Mia Steinkirch a8e71c50db reorganize dir
Signed-off-by: Mia Steinkirch <mia.steinkirch@gmail.com>
2019-10-11 04:29:17 -07:00

922 B
Executable file
Raw Blame History

  1. Clone Linus repo and read Installing the kernel source:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  1. Generate .config and add CONFIG_LOCALVERSION_AUTO=y
$ make localmodconfig
  1. 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
  1. Make! (It takes ~ 30 min)
$ make
  1. Make module, install, add to grub
$ make modules
$ sudo make modules_install 
$ sudo make install 
$ update-grub
  1. 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