LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-18-2004, 09:04 AM   #46
gamehack
Member
 
Registered: Jun 2003
Location: Sevenoaks, UK
Distribution: Ubuntu
Posts: 183

Rep: Reputation: 30

Is it possible to use your own kernel without using the initrd and cramfs and etc...because in gentoo and slackware everything was a breeze and I don't know if Debian needs some of its own kernel patches in order to work properly ?

Thanks

Cheers,
gamehack
 
Old 10-18-2004, 09:37 AM   #47
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,173

Original Poster
Rep: Reputation: 54
You don't have to use the kpkg tool to make a kernel, or any of the Debian-specific stuff. If you want to, you can upgrade the kernel exactly the same way you do in Slackware or Gentoo. I just found it was easier to make a Debian package using make-kpkg. Of course, you will have to configure your kernel differently to avoid using an initrd, but if you have a working configuration from Slackware or Gentoo, you could use it.
 
Old 10-18-2004, 06:18 PM   #48
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
just how do you configure the kernel (2.6.8) so that initrd is not necessary?
 
Old 10-30-2004, 05:13 AM   #49
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 198

Rep: Reputation: 30
Quote:
Originally posted by utanja
just how do you configure the kernel (2.6.8) so that initrd is not necessary?
Great question. I tried getting rid of things in my kernel that my system doesn't use and when I try to make the initrd.img i get errors.


Is there a guide somewhere which can help you to slim down your kernel and avoid errors? I just want to get rid of the things that my system doesn't need but I'm running into some problems.
 
Old 10-31-2004, 03:06 AM   #50
wellmt
Member
 
Registered: Oct 2003
Location: Oxford, England
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 15
utanja, muxman

You need to make sure that your disk controllers and the root file system (ReiserFS, Ext3 or whatever) is compliled into the kernel and not set as a module. Don't enable the RAM disk option, initial Ram disk or cramfs patch options in the kernel configuration either.

When you build the kernel package you then don't need the --initrd option

Sorry can't give you proper kernel option names, not on my Linux box at the moment.
 
Old 10-31-2004, 08:38 AM   #51
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
Quote:
Originally posted by wellmt
utanja, muxman

You need to make sure that your disk controllers and the root file system (ReiserFS, Ext3 or whatever) is compliled into the kernel and not set as a module. Don't enable the RAM disk option, initial Ram disk or cramfs patch options in the kernel configuration either.

When you build the kernel package you then don't need the --initrd option

Sorry can't give you proper kernel option names, not on my Linux box at the moment.
thank you so much....when you have the time, would you kindly list the names of the modules that must be included...i have it working without initrd but i think i included more than needed..
 
Old 10-31-2004, 10:57 PM   #52
SolarBear
Member
 
Registered: Oct 2003
Location: Québec, Canada
Distribution: Gentoo 2005.0(desktop), Debian 3.0 r2 (server)
Posts: 105

Rep: Reputation: 15
Thanks for the help on compiling a custom kernel (seems I have too, otherwise my crappy SB Audigy LS won't work it seems).

Still, I have a problem... when I get to make menuconfig, I get these errors - here are the first ones.

HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:97:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:98:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:99:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:100:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:101:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:102:20: string.h: No such file or directory
scripts/basic/fixdep.c:103:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:104:19: stdio.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:11,
from scripts/basic/fixdep.c:105:
/usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:122:75: limits.h: No such file or directory
scripts/basic/fixdep.c:106:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:107:24: netinet/in.h: No such file or directory


... and this goes on for quite a while. I suppose I miss some libraries to compile the kernel, but which one are they ? I'm not quite sure.
 
Old 11-15-2004, 08:37 PM   #53
peoyu
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Thx!
 
Old 11-19-2004, 08:03 PM   #54
provkitir
Member
 
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Rep: Reputation: 15
hi

i run a 2.6.9 debian sid on 800 MHz and 384 MB ram compaq m700 and i was recompiling the kernel for swsusp support, and the compilation just kept eating disk space til it ate about 1 GB worth of space. how can this be?? thanks!
to note, I disabled almost everything I don't need for my box, and it still took soo much space, is this normal?
 
Old 11-20-2004, 06:46 AM   #55
dmigh
LQ Newbie
 
Registered: Oct 2004
Posts: 29

Rep: Reputation: 15
sorry i have my own

1.make menuconfig
<do some configs> : <M> <*> <> things

2. make; make install

3. make modules_install (make sure you have module-init-tools)

4. /usr/sbin/mkinitrd -o /boot/initrd.img-2.6.10-rc2 2.6.10-rc2

5. vi /boot/grub/menu.lst
<do some edit> : v y p ZZ

6. reboot

--
try to remove ramdisk. thanks.

PS: Thanks to earlier poster. the link (kerneltrap.org) helped me out.
but, boot with no initrd not much different from with initrd..

1-1. to boot with no-initrd option (you should skip 4.)
debian:/usr/src/linux-2.6.10-rc3# vi .config

CONFIG_BLK_DEV_IDEDISK=y (it was m)

Last edited by dmigh; 12-04-2004 at 05:00 AM.
 
Old 12-09-2004, 07:53 PM   #56
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Hi,

I think I'm more used to compile and install kernel the standard way. So I grab a copy of the latest stable 2.6.9.tar.bz2 from kernel.org. Extract to /usr/src, link to /usr/src/linux. Then I proceed to make menuconfig but encounter the error.

Quote:
debian:/usr/src/linux# make menuconfig
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

>> Unable to find the Ncurses libraries.
>>
>> You must install ncurses-devel in order
>> to use 'make menuconfig'

make[2]: *** [scripts/lxdialog/ncurses] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2

debian:/usr/src/linux# apt-get install ncurses-devel
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package ncurses-devel
debian:/usr/src/linux#
Any idea?

btw, what are kernel-headers for?

Last edited by subaruwrx; 12-09-2004 at 08:02 PM.
 
Old 12-10-2004, 04:13 AM   #57
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
Quote:
Originally posted by subaruwrx
Hi,

I think I'm more used to compile and install kernel the standard way. So I grab a copy of the latest stable 2.6.9.tar.bz2 from kernel.org. Extract to /usr/src, link to /usr/src/linux. Then I proceed to make menuconfig but encounter the error.



Any idea?

btw, what are kernel-headers for?
to get ncurses try this

apt-get install ncurses-dev
 
Old 12-11-2004, 11:08 PM   #58
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Quote:
Originally posted by utanja
to get ncurses try this

apt-get install ncurses-dev
thanx btw got a question.

How do I check the name of the application that I want to apt-get install?
 
Old 12-12-2004, 04:55 AM   #59
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Rep: Reputation: 15
use
apt-cache search whateveryouwanttosearchfor|less
 
Old 12-15-2004, 08:04 AM   #60
verus
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Wink


my actual post is following this brief introduction.
The above smilies says it all!
Greetings.

Last edited by verus; 12-15-2004 at 08:27 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recompile drivers after upgrade? Tons of Fun Debian 4 09-11-2005 10:00 PM
recompile kernel laurentwahl Linux - Software 5 06-02-2005 02:27 PM
Another Kernel Guide 2.6.11 xaos5 Slackware 20 03-26-2005 12:49 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
should i recompile after kernel upgrade? doralsoral Linux - Software 1 03-26-2004 11:50 PM


All times are GMT -5. The time now is 05:12 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