hi all, I followed all the steps in make oldconfig , it asked me some
questions (coming with (NEW) ) .... depmod -ae it comes with message “ Unresolved sysbols
in /lib/modules/......./my_module.o “ and I cant insmod it message “ could not find the kernel version the module was compiled
for “ Any more suggestions Thanks a lot -----Original Message----- You distribution should
be normally providing a file in you boot directory with the config options like
/boot/config-xxx IF it is not there also
no problem try these below steps Install kernel source
closest to your source from kernel.org(check uname -r) untar it in /usr/src Match the Version name in
the Makefile to the exact name of your current running kernel .. enter directory , make mrproper make oldconfig make menuconfig (and
select the option for the module you wanted and save) make dep clean bzImage
modules ( dont do modules_install - it will overwrite) latter do a find for your
module in the kernel source and copy it to approriate path (just in case try
insmoding it first) in
/lib/modules/<current-kernel-path>/kernel/drivers/<your mod dir> or
where ever then do a depmod -ae update your modules.conf that's all .. enjoy..... ----------------------------------------------------- Surya Prabhakar Naredla United
Kingdom. ------------------------------------------------------ From:
kernelnewbies-bounce@xxxxxxxxxxxx on behalf of #NGUYEN HOANG CHUNG# Hi all, I have a running kernel without any
thing in /usr/src, all that
I have now are the folder /lib/modules/x.x.x and bzImage, initrd-xxx.img…,
and System.map. I want to recompile the kernel
to add only one module. Without .config file, it
takes me several hours to go through all the options during configuring
‘make xconfig’ however usually the one I get is not the same as the original,
running one ( I am new in kernel). It causes potential problems when
I run my existing applications (some modules ) The options in configuration come with : Y (built in) , M (module), N (not included). I think it is hard to recover .config file with only a few lines of command but I can do
that work ‘manually ‘ (with a pen and
paper to jot down every option configured) Any suggestion and thought will be
appreciated. Thanks in advance.
|