LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-22-2006, 02:28 PM   #1
FlashHarry
LQ Newbie
 
Registered: Jun 2006
Location: East Midlands UK
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Genrtc and rtc


Hello all,

Sorry if this post is a bit long winded - but I would like to prove I have tried to sort it myself and that I have RTFM'ed - if you want to just get to the question, that can be found at the end


Bit of a linux newbie, (been using it for about a month now)

I have Debian Sarge r2 (2.6.8-2-686 kernel)

Everything is fine except 1 small niggling issue. When I boot linux, it loads all its modules as normal, loads genrtc (can you guess where this is going ) then goes on to load rtc. Which of course is pointless as genrtc is already loaded, and so I get an error message.

Now while this doesnt really matter, I thought this would be a good exercise to stop one or the other from loading, and learn a bit about how Linux works under the hood. So a bit of reading tells me to look in /etc/modules

So I have a look there, and no mention of genrtc or rtc. So I cd to /etc and grep "rtc" * (which if im not mistaken should search all files and tell me where rtc is right in the directory /etc ?)

well, I have one entry in modules.conf, except its an alias (char-major-10-135 rtc) I understand that if I type off besides this, this will switch rtc off? - can't I just take it out of whatever script is loading it (even though I can't find it)

*EDIT*
Tried commenting that alias line out, also tried typing off at the end of it. Still nothing

Is genrtc and rtc compiled into the kernel, and I just need to recompile it and take one or the other out?


The question:

How do I stop both genrtc and rtc from loading, and only load one?

Last edited by FlashHarry; 06-22-2006 at 05:49 PM.
 
Old 06-23-2006, 11:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
If it's a module:

echo rtc >> /etc/hotplug/blacklist


Cheers,
Tink
 
Old 06-24-2006, 01:09 PM   #3
FlashHarry
LQ Newbie
 
Registered: Jun 2006
Location: East Midlands UK
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Tinkster,

Thanks for that


Am I right in saying then that genrtc is loading (first obviously) then when the hotplug subsystem is starting it's detecting my hardware clock, and trying to load the clock module for it as well then?

Reason I ask is merely just to understand Linux a bit more, as up until now I had thought that as it was booting, it was loading modules from a list from various places
 
Old 06-24-2006, 04:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That's how it is in the 2.4 kernels. All modules get loaded via
/etc/modules.conf or a script.

In 2.6 you can leave it all up to hotplug, or disable hotplug and
use modprobe.conf.


Cheers,
Tink
 
  


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
missing /dev/rtc meres Linux - General 7 10-17-2005 02:37 PM
Proc-rtc HeatSeaker Linux - Software 3 10-31-2004 09:50 AM
How to read the RTC ? oskernel Programming 3 10-17-2003 08:38 AM
Change RTC with PROC? Mor_Petrus Programming 1 04-15-2003 01:14 PM
Two problems again.. Printer and RTC NSKL Slackware 4 08-14-2002 11:26 AM


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