LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2004, 12:29 AM   #1
RFLAGG
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Kernel optimized for space


Okay first, heres what I'm doing: (If you don't want to read about it, and just want to know my problem, skip to the end)

I've got two 486 laptops and a 386 one. I've always wanted to put linux on there, but I never felt like putting stuff onto floppy disks (I'm very lazy) because they don't have cd drives. I guess I could take the hardrives out and hook them up to my desktop and do it that way, but that's no fun, ya know? So they sit there with DOS on them, and get no love from me.

I was reading some Linux sites the other day, when I got a link to LFS (Linux From Scratch) and decided to make my own distro aimed at those platforms, and to have it installed over floppies. So far I've got all the code etc etc seperated into seperate disks, and burnt to a CD (I only have one floppy left, so I'm just going to re-use it and put the stuff on it from my desktop)

The bootdisk loads the kernel, and it makes a ram disk with a compressed image containing the root FS on the floppy. I also want to have a graphical installer (just so I can brag) so I'm making a custom xorg that should fit on a floppy disk (I'm hoping to get it on the same bootdisk, I know it's possible, but it'll probably end up on a second disk) Then the installer copies a minium install over to the hardrive (It has some pretty GUI partitioning tools and junk too) and chroot's to it.

Then installer let's you choose what stuff to install (me and my revolutionary ideas) and I've made custom comments, like how much RAM the package takes up etc etc for all the stuff, and can fit from a 5MB HDD to about 300MB. (Still changing a few packages around etc) It also has stuff like a dependancy list blah blah.

Then, the installer tells you what disk(s) you'll need for the first package (not that it matters, but its binutils) and it copies the source (no packages, we need all speed possible on these machines) to the hardrive. It does a graphical compile, installs it, removes the source, finds out what it should compile next, then tells you what disk, then rinse and repeat as neccissary.

Theres alottttt of things you can choose from, alot custom coded to remove some bulk (er linux doesn't have bulk... it has love handles, or something)

So yeah, blah blah blah, if anyones interested in getting a copy (I doubt it, but worth mentioning) just reply and say so, otherwise I'll just keep it for myself.








OKAY so finally, my problem. The kernel is big. It doesn't really matter as much for the installed one, but for the one on the floppy it does. By configuring it to not support stuff like SCSI, considering I doubt too many 486's have them, etc etc, how small will I get the 2.4.26 kernel roughly? I would like to have it an up-to-date kernel, but I guess I could probably use a 2.0.x or something. Could I even compile the 2.4.26 kernel with a 2.0.x kernel? Bleh... I'm new to kernel compiling if you can't tell.

So basically, besides configuring, how can I reduce the RAM/physical space the kernel takes up? Or is configuring enough?
 
Old 08-26-2004, 12:35 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
If you are really that low on the hardware scale, you can try to compile the 2.2 kernel and do a make zImage instead of a bzImage. bzImage came along when the hardware could load up the larger kernel... 166mhz as I recall. Around that time frame.

Slackware in it's earlier revisions did a good job of this, like 7.0. Your going back in time, so it'll take some tinkering if the distro just doesn't wanna cooperate at the get go.
 
Old 08-26-2004, 02:53 AM   #3
strikeforce
Member
 
Registered: Jan 2004
Posts: 74

Rep: Reputation: 15
My suggestion is to modularize as much as possible. The kernel will then have modules to install when needed.

Theoretically that should reduce the size of the kernel. So when recompiling just make sure everything that can be put as a module is put as a module.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
centos optimized kernel flebber Linux - General 1 10-23-2005 09:05 PM
User Space - Kernel Space basu_arani Programming 3 05-25-2004 11:46 AM
Optimized kernel config file for p4b533 micheleq Linux - Software 0 10-30-2003 03:29 AM
compile optimized kernel kvikki Slackware 0 10-12-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 AM.

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
Open Source Consulting | Domain Registration