How can I adapt the kernel module to get the "character version for the module_layout"?

Suppose I have a Linux kernel working with root permissions. There are also some existing modules for this kernel. I want to be able to create my own kernel modules for it, but there are problems:

  • There is no exact kernel source code (although there is an approximate one);
  • There are no exact ones .configavailable (although there is an example);
    • No /proc/config.gz;
    • scripts/extract-ikconfig does not work;
  • extract-symvers.py does not work;
  • Forced loading of the module is not performed.
+3
source share
1 answer

Update: I pointed out the wrong kernel offset for extract-symvers.py.

extract-symvers.py -B 0xc0008000 zImage Module.symvers, .

, 0xc0008000 - ...

+2

All Articles