LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 08-06-2004, 10:27 PM   #1
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
configuring a kernel


ok so today i compiled my first kernel (2.4 upgraded to 2.6.7). the good news is that linux was able to boot properly and start x. the bad news is that i dont think i added the right support for all my peripherals. when i was configuring the kernel as some points i would hold down enter because the shear amount of questions . this is most likely why i am having some trouble.

to solve this i am going to do a clean install of slack 10 and then try again until i get it right. alot of the questions asked were about what chipsets to support. i have no idea what my different chipsets are. what is the best way to find them? and also is there somewhere that explains the questions in more simplistic terms than the help included in the kernel?
 
Old 08-07-2004, 01:46 AM   #2
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
To find out what sort of chipsets you have, type "lspci" (as root). This should give you a nearly incomprehensible list of chipsets in your computer. Write them down. Often it is enough to write down the manufacturer of the chipset, because many manufacturers only make one or two compatible chipsets of each type. Most people will only need to keep track of the IDE interface, sound card, USB, host bridge (for the agpgart driver) and video card chipsets. Depending on your setup you might also need SATA, firewire or a number of other things.
 
Old 08-07-2004, 01:56 PM   #3
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Use lshw to get a complete hardware configuration of your machine.
 
Old 08-07-2004, 03:30 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
buffed317 -- next time you compile a kernel, use make menuconfig or make xconfig instead of make xconfig. They are much easier to get along with and you can browse through menus of configuration option rather than having them all given to you in a big long list.
 
Old 08-07-2004, 03:47 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what i propose is that u get urself a working configurstion of the 2.6 kenel whci is working for ur kernel. u can get to those after u have installed a precompiled kernel.
after that u can remove options from there
beacuse it happended at many time we do not what are the things required for our system

regards
 
Old 08-08-2004, 01:11 PM   #6
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
what about kernel arguements? how do i pass those? i just did a second kernel compile on a clean installation of slack 10. the only problems i am having now is that the cdrom is reconized but not mountable,i get this error when i try to mount it:


mount: special device /dev/cdrom does not exist

i think i need to use hdc = ide.......something. i forget exactly what it is. also i have a pcmcia card with 2 2.0 usb ports. upon boot the kernel sees that there is a card there but doesnt activate it. the two power lights for the ports dont light up. what are some common kernel arguements? is there a list somewhere? what file do i add the arguements to? i googled for stuff and nothing useful came up.

mesand: how do i go about tweaking a kernel like that?

thanks

Last edited by buffed317; 08-08-2004 at 01:13 PM.
 
Old 08-08-2004, 01:42 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
also before trying out anything new in kernel aupgrads
see to it that u have the latest modutils and initscripts,kernel-utils and mkinitrd packages

modutils is very impotant here


regadrs
gaurav
 
Old 08-08-2004, 02:18 PM   #8
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
how do i go about doing that. i am a noob at this

thanks
 
Old 08-08-2004, 02:26 PM   #9
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
For quick and easy kernel configuring, take your distro's working kernel+source's .config file and use something like KDE's kcmshell linuz app to work your way through the options and just disable/module things you know you dont need. Eg HAM radio or ISDN support. Then drop that .config file in as you're going through the compile process and you've got nothing to change via make *config.
 
Old 08-08-2004, 05:54 PM   #10
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
hdc=ide-cdrom. 2.4 used to use hdX=ide-scsi for scsi emulation, but that is no longer necessary.
Not too sure about the usb thing. make sure the pcmcia modules are inserted (using modprobe). This is from the kernel option on pcmcia: To use your PC-cards, you will need supporting software from David Hinds' pcmcia-cs package.

So you might need to do some extra configuring before they work.
 
Old 08-09-2004, 09:47 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

get a good tutuorial here
http://kerneltrap.org/node/view/799

get modutils from here
http://www.kernel.org/pub/linux/util...modutils/v2.4/


if u r using 2.6 kernel in ur distro then u do not need this ,modutils but if ur distro is using 2.4 kernel then u need to upgrade ur modutils and others

regards
 
Old 08-09-2004, 12:09 PM   #12
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
i am using slack 10 with a 2.4.* kernel since the utils are out of date could this be causing me problems? i have been building everything into the kernel that i need. should i make more thing modules? if so what?
 
Old 08-09-2004, 02:14 PM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
when i had the modutls problem, the kernel did not get even started and since u r having problem in the modules
section,u can try out the new modutils etc packages

refer to their documentation also

regards
gaurav
 
Old 08-09-2004, 06:54 PM   #14
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
ok, so i compilied 2.6.7 and installed pcmcia-cs by following the directions:

Unpack pcmcia-cs-3.2.?.tar.gz in /usr/src.

Run ``make config'' in the new pcmcia-cs-3.2.? directory.

Run ``make all'', then ``make install''.

and rebooted. i still got the same error message of:

Starting PCMCIA Services
Probing for PCIC: edit /etc/rc.d/rc.pcmcia>
cardmgr[942]:no sockets found!

any ideas?

thanks
 
Old 08-09-2004, 07:13 PM   #15
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
Is the pcmcia module getting loaded? Check the output of "lsmod" after it's finished booting. You might also need the cardbus module. You can insert the with modprobe if they aren't already loaded.

ps: you don't need to reboot every time you change a setting (unless you want to change kernels). Just run /etc/rc.d/rc.pcmcia to see if it has been fixed.

pps: i believe slack 9 and 10 are "2.6 ready" even though they ship with 2.4 kernels. This means they already have the correct versions of modutils and all that stuff
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel configuring problem greklas Slackware 1 09-06-2004 09:44 AM
I need help configuring Kernel 2.6.6... 92GTA Debian 3 06-06-2004 02:58 AM
Configuring the Kernel lorengd Mandriva 1 09-21-2003 06:10 PM
Configuring kernel.... Bogdan Linux - General 6 03-28-2002 01:49 PM
Configuring or not the Kernel mariomason Linux - Newbie 3 12-20-2000 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:39 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
Open Source Consulting | Domain Registration