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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-23-2004, 06:33 AM
|
#1
|
|
Member
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96
Rep:
|
.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
|
|
|
|
02-23-2004, 06:39 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,830
|
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.
|
|
|
|
02-23-2004, 07:13 AM
|
#3
|
|
Member
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96
Original Poster
Rep:
|
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
|
|
|
|
02-23-2004, 07:40 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,830
|
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
|
|
|
|
02-23-2004, 08:26 AM
|
#5
|
|
Member
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96
Original Poster
Rep:
|
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.
|
|
|
|
02-23-2004, 08:41 AM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,830
|
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....
|
|
|
|
02-23-2004, 08:58 AM
|
#7
|
|
Member
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96
Original Poster
Rep:
|
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
|
|
|
|
02-23-2004, 12:20 PM
|
#8
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,830
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:27 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|