I want to step by step debug the linux kernel execution. The first to learn is how to build the kernel. The second is to setup the debug environment. Build the Kernel Install pre-requisites yum groupinstall -y "Development Tools" && yum install -y ncurses-devel hmaccalc zlib-devel binutils-devel elfutils-libelf-devel git bc Clone linux kernel source (this may take a long time). About how to build