![]() Kernel hacking -> Compile-time checks and compiler options -> Provide GDB scripts for kernel debugging -> yes Kernel hacking -> Compile-time checks and compiler options -> Compile the kernel with debug info -> yes When the results appear, press the number shown on the left side of the option to navigate to it. To search, press / and type your search pattern. To easily navigate, press the first letter of the option. In this case I'm going to use the defconfig option to have a fully working kernel and add some custom settings afterwards. Once the archive is extracted, to make a minimal config use the allnoconfig make rule. ![]() ![]() To download the kernel source go to and look up for the version you want, in this post I'm going to use 4.20 ( link). Simply follow the command line corresponding to your distribution here. The following variables should be set in order to follow this guide: $ export BUILD_PATH="/your/path/build/environment" To emulate the entire system I decided to use QEMU ( ). To create a minimalistic and customized environment I decided to build the kernel from source ( ) and compile my own initramfs using buildroot ( ) with busybox support ( ). This post serves as a self-note reference on the process taken. The idea of this post is to set up an environment to play with the Linux kernel.
0 Comments
Leave a Reply. |