LinuxQuestions.org
Register a domain and help support LQ
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 02-23-2004, 06:33 AM   #1
csvke
Member
 
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96

Rep: Reputation: 15
.config file for kernel compilation, is it universal format?


To be more precise, can I use somebody else's .config file to compile my kernel, if we are using a different disto but the working on the same kernel version?

I reckon i'd be the same provided the kernel versions are the same becoz some parameters are only for a certain version of kernel.... but just to make things certain before compiling becoz it makes a bit of time in my PII box.

cheers,
F
 
Old 02-23-2004, 06:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
yeah should be ok, no real reason not to other than many distro's will provide their own patches for the kernel, so they might differe slightly in terms of the config. any missing options will just get ignored though.

OT - isn't cov cold today? i'm sitting in the Walsgrave triangle, waiting for lunch....

y'know for 10.50 i could arrange to meet you and let you touch my hand... then you'd be truly blessed!

Last edited by acid_kewpie; 02-23-2004 at 06:42 AM.
 
Old 02-23-2004, 07:13 AM   #3
csvke
Member
 
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
cheers.
but it doesnt seem quite work... i placed the .config file in /usr/src/linux
but running make menuconfig does not seem to load that .config file...

should i
make dep
make bzImage

straight away? or did i place the .config file in a wrong location?

OT1: It is indeed... I am in the student union of university of warwick, wind's sneaking inside... should haf got one or two more layers... come over n u will see a chinese boy playing around with his iBook haha.

OT2: heard that I can compile and compress the kernel, would u pls give me some direction of how to do that? coz i m compiling a small kernel for a CF Card, then i will run that with a mini-itx board to form a PPTP VPN router. And can i compile some other applications (webmin and poptop) into the kernel or do i need to compile it with the 'compiled kernel system'? or should i compile it in a redhat machine and copy the binary to the CF card?

Sorry there's a bunch of questions... thanks a lot chris.
Cheers,
Frankie
 
Old 02-23-2004, 07:40 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well the menuconfig should read the file fine, you can always try loading it in specifically... go to load from alternate location (or whatever it actually is) and then enter the path, should load up fine. why do you not think it loads?

on the 2.4 series, once you exit menuconfig, then it'll be ready to make dep and so on from there.

OT1 - i got a 2:1 in CSE there... not in the SU of course.. i used to DJ there for the union, and also ran Offbeat...

OT2 - the bzImage (vmlinuz) IS the compressed file. the vmlinux file is the uncompressed one. mini-itx? http://mini-itx.com/projects/animalsnes/ i rock. i've never meesed with CF though.... most files should be adequately compatible though
 
Old 02-23-2004, 08:26 AM   #5
csvke
Member
 
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
you r the man chris.
will look into your project in a minute.. i m now in k'scope, the cafe attached to the library.

the reason that i worried about the .config file is that the options dont seem to be selected accroding to the .config such as CPU type should be seleted as Cyrix /VIA C3 and so on.

so how do i enter the path?

i think compatability is njot an issue since the BIOS sees my CF as a 128MB LBA HDD... I m worried about compiling the kernel thou... like wat i mentioned, should i compile extra apps such as webmin and poptop in the mini-itx box? if yes, i need to put a glibc into the mini-itx box as well which takes up a bit of space....
what do u think abt that?

OT: i did a bit of DJ earlier in my first yr (chinese radio show called purple paradise) where i m a finalist now for CBS, struggling to get a 2:1.
 
Old 02-23-2004, 08:41 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
just type the full path in when prompted, but overwriting the .config really should normally do it. obeviously you don't want to do a make mrproper or anything between copying the config and making the kernel.

as for extra apps... well you've got room for glibc no problem... mayb eyou'd just want to look at a ready made distro like damnsmall for inspiration (or a total solution depending on your needs)

but then webmin is just scripts anyway, so doesn't need compilation (afaik) and i've not heard of poptop before.. soujnds like summat to do with pptp to me....
 
Old 02-23-2004, 08:58 AM   #7
csvke
Member
 
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
ahhh i just messed up something stupid meself moments ago, it's fine now with the .config problem.

i got the .config gile from www.linitx.org and modified a bit... now it's compiling.
will a bzImage file be created once make bzImage is done?
what should i do to the file? obviously i DON'T want the compiled kernel ro run on my normal redhat box.... there's a couple of commands that i can fdisk n format my CF (just an ordinary HDD) into a bootable drive then i can 'burn' the image into the drive... but i haf no clue of how to do that. it's my first time of compiling my own kernel n stuff. the kernel dont panic, i panic.

thanks a lot chris, your nintendo box rock! (i m hoping to build my own box for my project thou)

F
 
Old 02-23-2004, 12:20 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
yeah you'll get a bzImage out of it (hence the name )

like i said, i've no experience on compact flash n stuff... as far as general compatability, the c3's are fully x86 compatable, so compiling on a standard box won't hurt.
 
  


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
Where is kernel compilation output file? Linuxrat Slackware 6 01-03-2005 10:19 AM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM
Kernel config/compilation (serial ports, lirc, apm) Hex29A Debian 2 02-07-2004 05:55 PM
Compilation options in config and Kernel panic beejayzed Linux - Newbie 0 01-30-2004 04:56 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM


All times are GMT -5. The time now is 12:52 PM.

Main Menu
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