LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-27-2005, 11:49 AM   #1
Clark Bent
Member
 
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201

Rep: Reputation: 30
Won't work unless complied directly in the kernel


I had a simple question that I thought one of you might know the answer to. In my travels, I have noticed that some types of hardware don't quite funciton in a optimal manner unless the driver is compliled directly in to the kernel. Why is that?

For example, I was trying to enable DMA on my laptop hd...but I couldn't get it to go. The module for my IDE controller was loading and listed when I did lsmod. But until I compiled it right into the kernel, I could not get my DMA to come on. Why is that?
 
Old 03-27-2005, 12:52 PM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
If you load a module after the controller is initialized, you will have to set the parameters with the hdparm utility.

Compared to being compiled in... it's always there so when initializing the controller it can use DMA at the time of check.

Things like that I tend to compile in and anything I can label as "doesn't need this to boot" gets thrown into a module.
 
Old 03-27-2005, 01:09 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
some hardware drivers act better as modules, some are better compiled in... It depends on the hardware, the only way to know is to read about it. Usually, you better compile in what you need at boot (unless you want to mess with initrd, which is an unnecessary pain atmo), as example IDE chipset and filesystem drivers and to compile as module drivers that might need extra paramaters or that you might need to unload, as example ram disk size can only be changed if you give the module a certain parameter on load.
 
Old 03-27-2005, 01:20 PM   #4
Clark Bent
Member
 
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201

Original Poster
Rep: Reputation: 30
Thank you both for your replies. Makes sense to me. Are you really running all those variations of Slackware Half_Elf?
 
Old 03-27-2005, 02:49 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
LOL
not right now but I used too. 8.0 was my great love but I had to switch to 9.0 when Win98 killed my linux partition (3-4 years go?). I had a "testing" box running Slackware 8.1 for a long time (the hdd died last years, it's an useless piece of metal now). This box was running 9.0 'til 2 month ago when I switched to Gentoo. I still have the Slackware on another partition, for now...
 
Old 03-27-2005, 06:43 PM   #6
Clark Bent
Member
 
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201

Original Poster
Rep: Reputation: 30
8 was my great love too. It was the first time I had ran slack and it was quite the good vintage was it not? And if I recall 9 did not strike me as being as good for some reason. I just loved 8 though. I actually migrated from Slack to Debian. And I really liked it. Then I tried Gentoo...which I liked as well. Well, not long ago I decided to give Slack 10.1 a go. It wasn't as nice as 8. I don't know how or why that is remotely possible. But 8 was the 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting newly complied kernel (hard-drive problem) donaldtalbert Linux - Software 2 06-19-2005 03:06 AM
Complied Xine lib but no executable shazam75 Linux - Software 6 12-02-2004 04:22 PM
My computer reboots directly after i try to load a newly compiled kernel Klas Linux - General 1 08-18-2004 05:58 PM
Install complied kernel to redhat from other distros geejo_leo Red Hat 4 03-04-2004 11:44 AM
cant seem to get my brother HL-630 to work directly connected to my IBM Thinkpad 600 eyeon Linux - Hardware 1 09-26-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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