We definitely urge you to try out our simple Hello, world kernel module exercise (if you haven't already done so)! To do so, we assume you have cloned this book's GitHub repository (https://github.com/PacktPublishing/Linux-Kernel-Programming) already. If not, please do so now (refer to the Technical requirements section for details).
Here, we show step by step how exactly you can build and then insert our first kernel module into kernel memory. Again, a quick reminder: we have performed these steps on an x86-64 Linux guest VM (under Oracle VirtualBox 6.1) running the Ubuntu 18.04.3 LTS distribution:
- Change to this books' source code chapter directory and sub-directory. Our very first kernel module lives in its own folder (as it should!) called helloworld_lkm:
cd <book-code-dir>/ch4/helloworld_lkm
<book-code-dir> is, of course, the folder into which you cloned this book's GitHub repository; here (see the screenshot...