LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 08-20-2004, 11:03 AM   #1
Rocker
Member
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: gentoo
Posts: 68

Rep: Reputation: 15
2.6 Kernel


can anyone offer me any advice towards getting a 2.6 kernel on damn small linux? Our system needs to have a 2.6 kernel, gcc, java and X all in around 120MB of flash
 
Old 08-21-2004, 12:17 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Are you sure that Damn Small Linux is really the distribution to use?

If you go to http://www.distrowatch.org and do a search, you'll probably find something else that already has what you require.

Start by installing Damn Small Linux onto a hard disk, compile the extra things you need, and then copy everything except the sources to the flash. I'm not sure what you do about bootloaders on a flash card; someone else will have to answer that.

Do you really need gcc? Damn Small Linux includes tcc (http://www.damnsmalllinux.org/packages.html), so you'll have to install gcc instead if you want it. I'd do a build of gcc from source (not exactly a trivial task) and set the CCOPTS to -Os (optimise for size) before building.

As far as the kernel is concerned, just install it from source (“make xconfig” then “make modules modules_install install”). When you configure it, don't include anything you don't need. Again, you might want to consider -Os as a compiler option, or at least -O1, as -O2 will increase the binary size quite a bit.

You can use strip to remove unused information in executables and libraries, which can make them a lot smaller:
Code:
strip /usr/bin/gcc
Another tip is to use gzexe to compress executable files.
Code:
gzexe /usr/X11R6/bin/XFree86
This will make the files smaller on disk, but take longer to start up.
 
Old 08-23-2004, 08:11 AM   #3
Rocker
Member
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: gentoo
Posts: 68

Original Poster
Rep: Reputation: 15
thanks.

I decided to build something out of a gentoo stage 1 tarball, but have used your suggestions of strip and maybe gzeze. And yes, I do need gcc. I am building this to someone elses specifications, so I dont question what they want.

Thanks for the help
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 09:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration