LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-03-2002, 04:11 AM   #1
lolmc
Member
 
Registered: Nov 2001
Location: Wirral.Merseyside - UK
Distribution: Mandrake 10.0 on desktop and 9.2 laptop
Posts: 60

Rep: Reputation: 15
Reverse engineering the kernel


Hi peeps - here's a tricky one for ya!
Does anybody know of a reliable utility which examines a compiled kernel and from that produces a reliable .config file which can be used to reproduce the said kernel?
An url or ftp address for either would be most gratefully received.
Cheers
Lol
 
Old 07-03-2002, 04:38 AM   #2
SlCKB0Y
Member
 
Registered: Oct 2001
Location: Sydney, Australia
Distribution: Debian Unstable
Posts: 279

Rep: Reputation: 36
why would you need to do this?

almost any conpiled kernel from any distro will have a .config file available somewhere
 
Old 07-03-2002, 04:54 AM   #3
lolmc
Member
 
Registered: Nov 2001
Location: Wirral.Merseyside - UK
Distribution: Mandrake 10.0 on desktop and 9.2 laptop
Posts: 60

Original Poster
Rep: Reputation: 15
I'm using Slackware 8.1 and every config file I can find for the kernel is a vanilla config file and does NOT reflect the hardware I have ergo sum it was not the one used to build the currently running kernel as that DOES recognise and utilise my hardware.Except sound which needs me to recompile with other options but I can't get things right from the base config files and wanted to just tweak a config that I know works - geddit?
 
Old 07-03-2002, 05:07 AM   #4
SlCKB0Y
Member
 
Registered: Oct 2001
Location: Sydney, Australia
Distribution: Debian Unstable
Posts: 279

Rep: Reputation: 36
well i dotn know what to suggest. youre the only one ive ever heard ask this. Why not do what the rest of the linux community does, and that is go thru the options, and read the help, decide if you need it or not.

Its worthwhile doing because i garantee it will produce a much leaner kernel than any precompiled .config will, plus you will learn what the options do.

I still have a config which has been basically the same since 2.4.5, and for each ner kernel i just adjuct it for the new options.
 
Old 07-05-2002, 11:12 PM   #5
urinal cake
LQ Newbie
 
Registered: Feb 2002
Posts: 27

Rep: Reputation: 15
Did you look in /usr/src/linux ?

I agree about it being kind of a pain, deciding whether you need some of the options or not. Most are easy, but some are a little harder to decide. When I wanted to recompile my kernel the first time, I just took the one in /usr/src/linux and made changes from there. Once I had a working one I liked, I saved it, both to a different directory, and burned it to a CD with other things I was backing up.
 
Old 07-05-2002, 11:17 PM   #6
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Why not just start with one of Pat's basic .config

pop up the X config tool make you changes?
 
Old 07-05-2002, 11:33 PM   #7
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Ok, maybe I am wrong on this one, but when you rebuilt your kernel to make it recognize your hardware, didn't it ask you to save your config file? If not, if you are referring to right after install, isn't there a .config file in your /boot directory?
 
Old 07-06-2002, 12:54 AM   #8
lolmc
Member
 
Registered: Nov 2001
Location: Wirral.Merseyside - UK
Distribution: Mandrake 10.0 on desktop and 9.2 laptop
Posts: 60

Original Poster
Rep: Reputation: 15
I'm talking about right after the install and I've checked out this .config file in /boot and it doesn't have options enabled i.e. pcmcia stuff which I know is working cos the kernel is using cardmgr to see my eth0 and pcmcia modem and loading the appropriate modules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse Engineering for Portability dlublink Linux - Software 1 11-23-2005 02:43 PM
Reverse engineering code barrythai Suse/Novell 4 09-08-2005 06:29 AM
Reverse Engineering tools hari_s_82 Linux - Newbie 0 10-13-2004 07:58 AM
which module of OpenOffice1.1 is best for reverse engineering jyotsna Programming 1 09-01-2004 12:25 PM
reverse engineering walterw Programming 3 01-18-2003 05:15 PM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration