From 5fd7ebaac1e94b84b282509cbcf9c69fbd57bb90 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Sat, 25 Nov 2023 12:02:55 +0000 Subject: Add procfs and kernel topic page --- md/writeup/kernel_hello_world.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'md/writeup') diff --git a/md/writeup/kernel_hello_world.md b/md/writeup/kernel_hello_world.md index 5f1e7e6..eb4fdc8 100644 --- a/md/writeup/kernel_hello_world.md +++ b/md/writeup/kernel_hello_world.md @@ -53,3 +53,30 @@ Now if you havent done so ... install kernel headers of kernel that your system ```sh make ``` + +## Load module + +```sh +sudo insmod hello_world.ko +``` + +check that module is running + +```sh +lsmod | grep hello +``` + +## Unload module + +```sh +rmmod hello_world +``` + + +### Install kernel headers raspbian + +RaspberryPi4 ARMv8 + +```bash +sudo apt-get install raspberrypi-kernel-headers +``` -- cgit v1.2.3