LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-27-2005, 04:10 PM   #1
Bluesuperman
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Unhappy Proper way to add in hardware not auto detected


Hello,

I need to know what is the proper way to add in hardware on a RH / CentOS system when kuduz does not auto detect it ?

I am used to using Slackware where I would just run modprobe to load the module if the kernel did not detected it.

But on RH it seems that the kernel has everything built in as a module but not all the modules are available in /lib/modules/kernel-version/... ?

Do I need to cd to /usr/src/linux/ and do a make modules first ?

I kind of get the impression that kuduz would compile the module on the fly if it detected the hardware ?

Any help would be appreciated

Michael
 
Old 04-27-2005, 07:07 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I don't think that kudzu will compile a kernel module on the fly.
If the module support for a type of device isn't enabled in the kernel, you will probably need to recompile the kernel.
For example, suppose you don't have any USB support compiled into the kernel. ( Perhaps, this was done previously for security reasons ) You will need to go through the process of re-compiling the kernel with usb module support enabled before you will be able to use kudzu to detect and install new USB devices.

If there is module support for the class of device you may still need to copy the source code for the particular device and run:
Code:
make dep
make modules
make modules_install
depmod -av
As always, please check the documentation that is in your system. For example, read through the relevant documentation that comes with the kernel-source.

Different distributions do some things differently, and even different versions of the same distro may have different methods.
Always check information you read on the web, or in books and magazines with the documentation included with the distribution.
Sometimes, while information that you receive may be correct, things may be done slightly differently. I find that it is usually best to do things the same way that the distro is set up. For example, if you have SuSE, editing the files in /etc/sysconfig/ and running SuSEconfig instead of directly editing many of the configuration files in /etc directly.

One idea is to check you web pages for kudzu on LFS (Linux From Scratch) sites. They compile and setup everything manually, so the documentation on exactly how kudzu works and setting up the configuration may be more extensive.
 
Old 04-28-2005, 12:37 PM   #3
cowboy_jake
Member
 
Registered: Apr 2005
Location: Texas
Distribution: RHEL 2.1,3.0,4.0
Posts: 39

Rep: Reputation: 15
It may not be necessary to recompile the entire kernel. The following is from the release notes for CentOS 4.0 (/usr/share/doc/centos-release-4/RELEASE-NOTES-en)...

==================================================================
Note
An exploded source tree is not required to build kernel modules
against the currently in-use kernel.
For example, to build the foo.ko module, create the following file
(named Makefile) in the directory containing the foo.c file:


obj-m := foo.o

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules


Issue the make command to build the foo.ko module.
==================================================================

-Jake
 
Old 04-30-2005, 03:32 PM   #4
RickyRockRat
LQ Newbie
 
Registered: Apr 2005
Location: boise
Distribution: Red Hat - 6.2,7.3,9.0,FC3,FC4, FC5, Debian-3.1, Ubuntu 7x,8x,10x, DSL
Posts: 14

Rep: Reputation: 0
Bluesuperman,
You need to make sure the hardware is there. Try a lspci to see what exists.

Kudzu does not compile modules, it just configures modprobe and sysconfig to auto-load modules.

What hardware is not being detected? Send the output of lspci here with a description of your hardware.
 
Old 04-30-2005, 11:35 PM   #5
KooPA
Member
 
Registered: Apr 2004
Location: Phili
Distribution: SuSE v9.1 Personal, Slackware (TV Server)
Posts: 53

Rep: Reputation: 15
Along the lines of this post I am trying to detect my PCMCIA wireless card so I can go about getting my last piece of my machine working (wireless), the hardware browser doesn't see anything but when I boot it says that the PCMCIA bus is being enabled so then why wouldn't it see it since it seems to already be compiled into the kernal...
 
  


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
HDD auto detected as LARGE, is it ok? x4444 Linux - Hardware 1 10-28-2005 07:21 AM
Proper way to add modules gameport.o and cmpci.o rundarm Linux - Newbie 2 07-16-2004 11:32 PM
Md5044 tv card not auto detected in mandrake 10.0 c kernel 2.6.3 Quack Linux - Hardware 0 06-03-2004 08:41 AM
What to add to etc/file/host for proper boot? Cliff Fussell Linux - Newbie 3 01-21-2004 10:22 PM
How do you add hardware? (Esp. USB hardware) Travis86 Linux - Newbie 3 05-31-2003 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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