srsly4 / ramdrv

Linux virtual RAM disk kernel module
2 stars 3 forks source link

Failing to load ramdrive.ko #1

Open lunyamwi opened 3 years ago

lunyamwi commented 3 years ago

Hello thanks for writing this wonderful module though am troubled with the following error

could not load module ramdrv.ko: No such file or directory

Your help will be greatly appreciated

srsly4 commented 3 years ago

Hello!

Make sure the compilation process went well without any errors (any errors will cause ramdrv.ko not to appear in the directory so the insmod could not locate it).

Originally, I've been developing this module on Debian 9 Stable and it used to compile nicely on it. I've actually checked how it works on the recent 5.10 kernel (I'm using Arch now) and unfortunately there are many compatibility issues and the module is unable to compile.

I encourage you to check which compile errors you have encountered. It should be mostly some changes in C struct's field names, includes etc.