LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2005, 05:00 PM   #1
PinRojas
Member
 
Registered: Feb 2005
Distribution: debian
Posts: 75

Rep: Reputation: 15
Make my kernel little and better


Hi Guys,

I Just installed kernel 2.6.8-2 from an image deb package and the BOOTING process until i can get the xwin manager form is too long.

I have a Laptop Dell Inspiron 600m. How could make this faster?
Is there a shortcut to get a faster and ligther kernel?
I am beginner and I have never could build a kernel succesly for my Laptop?
Is there any link with info for beginners about kernel building process and how could i select the rigth options for my laptop?

Salu2!
 
Old 06-06-2005, 05:10 PM   #2
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Rep: Reputation: 30
Go to http://www.kernel.org/ and download the Kernel version you want. Then read this thread.
 
Old 06-06-2005, 05:17 PM   #3
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
Hi PinRojas,
If you want to make your kernel ligher and then boot faster the only option I know is recompiling. It can seem hard but actually it's quite straighforward in debian. But before getting into such thing decide if you find that it is *really* necessary: compiling your own kernel will not make your machine faster (just boot faster because it will be smaller). The reason to recompile a kernel are ususally related to hardware support. Well, maybe recompiling will allow your system to use the ram more effectively.
In any case if you feel like doing it there are plenty of help on this site for that and I will be happy to give you some hints if you wish; however, don't expect something *very* different, the packaged kernel of debian are already very good... install a 686 by the way it's still better( install the kernel-image-2.6-686 and you'll get always the news 2.6 kernels for 686)
Good luck!
 
Old 06-06-2005, 07:08 PM   #4
PinRojas
Member
 
Registered: Feb 2005
Distribution: debian
Posts: 75

Original Poster
Rep: Reputation: 15
Hi gys,

I found this site http://www.guilds.net/machines/600m/#kernel_modules with information about kernel config files. I want to build a kernel that supports my ipw2200 wireless card, I think that it's the 2.6.11 version. see http://ipw2200.sourceforge.net/INSTALL for details.

I think that it's very complicated to understand quickly. If you can (or if you have time), please give me a step by step process to prepare the compilation and, guys please, help me to NOT screw it up again. My wife is not going to stand it.

Salu2!
 
Old 06-06-2005, 07:18 PM   #5
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
ipw2200 will be compiled *after* your kernel... download ipw2200-source and read the doc in /usr/share/doc/ipw2200-source/README.Debian...
I installed ipw2200 recently and I have maybe a hint that may help you:
once I installed it it was working perfectly but the name of the interface seemed to change depending which modules load first (the explanation is just my guess by the way...) which is *very* annoying. I solved the problem by compiling the support for my ethernet card (intelPro 100 something for me) as Y in the kernel and NOT a module. then, now ethernet is always eth0 and ipww2200 take eth1 when it loads... there are plenty of explanations out there to set up ipw2200 but I would advise you to stay simple:
0 download ipw2200-source, unpack it and module-assistant -a ipw2200, download and unpack the firmwares in /usr/lib/horplug/firmware (refer to the doc of ipw2200-source), and edit /etc/network/interfaces accordingly.
Now if you feel like recompiling your kernel let me know and I'll tell you what I think to be the best and easiest way to have it done...
Good luck
A.
 
Old 06-06-2005, 07:59 PM   #6
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
oups sorry I read a little fast so you actually want to compile your kernel... so I am going to try to summarize the steps for you:
Ok so to compile we are going to keep it simple to avoid to screw up everything:

- download the latest kernel-source (I think it is kernel-source-2.6.11 but I use the 2.6.8, when you download check with apt-listbugs if there is no bugs in the source you are going to install, it's better to use a old one than one that gonna take longer to make usable ;-) )
- download kernel-package and libncurses-dev
- if you need suport for a nvidia card you need to download also nvidia-kernel-source, nvidia-kernel-common, nvidia-glx)

Now,
cd /usr/src
tar jxvvf kernel-source-2.6.8.tar.bz2 ( I take 2.6.8 as an example but replace by the one you picked)
if you need support for a nvidia card you also unpack the source:
tar xzvvf nvidia-kernel-source.tar.gz

Then,
ln -s /usr/src/kernel-source-2.6.8 /usr/src/linux
cd linux
make-menuconfig (configure your kernel) *
make-kpkg clean
make-kpkg --initrd --append-to-version=-yourkernelname kernel_image kernel_modules (put kernel_modules *only* if you compile your nvidia driver along the way).

Then you just have to install the kernel-image-.........deb and nvidia........deb packages, run lilo and reboot in your new kernel.

PS1: make sure you edited lilo to be able to boot with another kernel if the one you compiled does not work!!

PS2: * concerning the configuration I would advise you to stay simple and only change what is really necessary, don't touch what you don't understand. you can change your cpu, compile the ethernet support as Y, and probably get rid of some obvious useless stuff like raid support, 10000M/bits ethernet support, and hardware you dont need etc... but in case you don't know, do not change it!!

PS3: when you start make menuconfig, load a config file of a kernel that work, the one you use for instance, you can find it in /boot, and then begin your configuration.

PS4: I had a problem during the compilation of the kernel-source-2.6.8 and I solved it by removing support for isd200 (in usb mass-storage support). I think it was a bug of the version I use but I'm not sure...

Hope this help, if you need anything please ask I come back in a hour or so...

Good luck!
A.
 
Old 06-06-2005, 09:11 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Also, check and see if you have any unnecessary services starting at boot time. The actual loading of the kernel is only a small part (generally) of the time it take to get from power on to a login prompt.
 
Old 06-07-2005, 12:03 PM   #8
PinRojas
Member
 
Registered: Feb 2005
Distribution: debian
Posts: 75

Original Poster
Rep: Reputation: 15
Wow! Thanks for paying attention to my request.

Well I have an ATI Radeon Video Card and I am using Grub as boot loader.
How does it change now?

Currently I am getting roblems with ALSA an my sound card (I think there is a conflict between this andmy modem)

Salu2!
 
Old 06-07-2005, 03:40 PM   #9
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
Quote:
Originally posted by PinRojas
Hi gys,



I think that it's very complicated to understand quickly. If you can (or if you have time), please give me a step by step process to prepare the compilation and, guys please, help me to NOT screw it up again. My wife is not going to stand it.

Salu2!
basically you just have to go for it
leave a functioning kernel and don't mess it up just make a new entry in grubb for the new one so when it fails no problem
hack the kernel Makefile and make it verbose and change the gcc flags to fit your machine then config to only support exactly the hardware and features you need and nothing more.
if at first you don't suceed fix it and try again till you get it right
we can't tell you how to do it you just have to figure it out
 
  


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 compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 09:11 AM
How to make own kernel headers? kule Linux - Software 7 03-31-2005 06:42 AM
How do I make a change to a current kernel? Would 'make oldconfig' work... jtp51 Slackware 11 11-01-2004 11:02 PM
Can't make iptables-1.2.9 with Kernel-2.6 pembo13 Linux - Networking 8 04-12-2004 10:28 PM
make rpm kernel 2.6.0 illtbagu Linux - Software 4 12-24-2003 04:14 PM


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