Skip to content

waelkarman/kernel-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Kernel Drivers [in development]

Kernel modules realized for learning purpose.
These modules are integrated and could be tested in bunch-linux project.

Covered arguments:

  • Buffer in kernel space

image

Build and Run

To test kernel modules quickly, build the basic image

kas build ./kas/bunch-linux-basic.yml --update --force-checkout

Install QEMU :

sudo apt install qemu-system-x86

and run the compiled image within qemu :

qemu-system-x86_64 -drive file=build/tmp/deploy/images/qemux86-64/bunch-linux-basic-qemux86-64.rootfs.wic,format=raw -enable-kvm -cpu host -m 4096

The installed module will be located at:

/lib/modules/kernel-version/updates/

then use insmod to load the desired module.
Modules could be tested running the kernel-drivers-test.

About

Test and practice kernel drivers

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •