This tutorial shows how to build the Linux kernel, add a small modification to it and debug the new kernel using Visual Studio with VisualKernel.
We will use a Kubuntu machine to build the kernel source package provided by the distribution and then modify the kernel so that it shows how much time has elapsed since loading of each kernel module.
- Before we begin modifying the kernel we should create a Visual Studio project for it. Open Visual Studio and start the Custom Linux Kernel Wizard in the VisualKernel folder:
- On the first wizard page select the remote machine you want to target. Note that it's recommended to use the root account to avoid sudo prompts each time you install the kernel: