RE: how to recover the kernel configuration in a running kernel without /usr/src

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Wipro Technologies
United Kingdom.
------------------------------------------------------


From: kernelnewbies-bounce@xxxxxxxxxxxx on behalf of #NGUYEN HOANG CHUNG#
Sent: Mon 17/01/2005 08:15
To: kernelnewbies@xxxxxxxxxxxx
Subject: how to recover the kernel configuration in a running kernel without /usr/src

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.

 


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux