diff options
author | Arturs Artamonovs <dos21h@gmail.com> | 2023-11-25 12:02:55 +0000 |
---|---|---|
committer | Arturs Artamonovs <dos21h@gmail.com> | 2023-11-25 12:02:55 +0000 |
commit | 5fd7ebaac1e94b84b282509cbcf9c69fbd57bb90 (patch) | |
tree | a6c2862b1ea0f06c06be2a68886b73cbea82359c /md/writeup/kernel_hello_world.md | |
parent | c13284051093f0876e038fe65b99aba16d2578fd (diff) | |
download | md-content-5fd7ebaac1e94b84b282509cbcf9c69fbd57bb90.tar.gz md-content-5fd7ebaac1e94b84b282509cbcf9c69fbd57bb90.zip |
Add procfs and kernel topic page
Diffstat (limited to 'md/writeup/kernel_hello_world.md')
-rw-r--r-- | md/writeup/kernel_hello_world.md | 27 |
1 files changed, 27 insertions, 0 deletions
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 +``` |