It is currently 20 Jun 2013, 00:07

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: /etc/rc.modules
PostPosted: 20 Feb 2010, 20:50 
Offline

Joined: 20 Feb 2010, 20:38
Posts: 3
Hi all, and thank you very much for your work.
I installed succesfully crux ppc 2.6, compiled the kernel and i'm configuring the system.
Before start struggling with the net ;) i'm tryinfg to load therm_adt746x at startup without much success.
I can modprobe it, and see the output with dmesg, but editing /etc/rc.modules i don't see it at startup. Any idea how to start it? Sorry i know it's a very simple question but i'm stucked here.

Thank you very much for any suggestion

Enrico

p.s.

my /etc/rc.modules is:

/sbin/depmod -a
/sbin/modprobe therm_adt746x fan_speed=66 limit_adjust=6


Top
 Profile  
 
 Post subject: Re: /etc/rc.modules
PostPosted: 20 Feb 2010, 22:52 
Offline
User avatar

Joined: 17 Dec 2005, 14:31
Posts: 314
Location: Italy
/etc/rc.modules is run at every startup and your one is correct. You are able to pass these parametres only when therm_adt746x is compiled as module.
Code:
CONFIG_THERM_ADT746X=m


That's my /etc/rc.modules (iBook G4 Mid2005)
Code:
[95%][L] acrux@hermes:~$ cat /etc/rc.modules
#!/bin/bash
#
# /etc/rc.modules: module initialization script
#

/sbin/depmod -a

/sbin/modprobe b43
/sbin/modprobe sungem
/sbin/modprobe therm_adt746x fan_speed=66 limit_adjust=6
/sbin/modprobe ams
/sbin/modprobe snd_aoa_codec_tas
/sbin/modprobe radeon modeset=0

# End of file


I think you already did it thus, if the module is loaded, you can see it in your dmesg:
Code:
adt746x: version 1 (supported)
adt746x: Thermostat bus: 1, address: 0x2e, limit_adjust: 6, fan_speed: 66
sensor 0: PWR/MEMORY BOTTOMSIDE
sensor 1: CPU BOTTOMSIDE
sensor 2: GPU BOTTOMSIDE
adt746x: ADT7467 initializing
adt746x: Lowering max temperatures from 69, 92, 101 to 76, 56, 76


Top
 Profile  
 
 Post subject: Re: /etc/rc.modules
PostPosted: 21 Feb 2010, 00:31 
Offline

Joined: 20 Feb 2010, 20:38
Posts: 3
Yes, i can see with dmesg your output after modprobing it, but it doesn't start with rc.modules.
I try to double check the kernel config and to recompile the kernel...

any idea about some conflicting setup that can invalidate rc.modules?
After all i can try to reinstall all saving all the configuration files if i'm not succesfull...

thank you
Enrico


Top
 Profile  
 
 Post subject: Re: /etc/rc.modules
PostPosted: 21 Feb 2010, 02:14 
Offline
User avatar

Joined: 17 Dec 2005, 14:31
Posts: 314
Location: Italy
The initialization scripts used in CRUX (PPC) follow the BSD-style and are quite simple scripts.
/etc/rc.modules is directly called from /etc/rc (the system boot script) as you can read:
Code:
102 # Run module initialization script
103   if [ -x /etc/rc.modules ]; then
104      /etc/rc.modules
105   fi

that simply checks if a /etc/rc.modules exists therefore runs it too.

I can only suppose, for a strange reason, your /etc/rc.modules has wrong permissions.


Top
 Profile  
 
 Post subject: Re: /etc/rc.modules
PostPosted: 21 Feb 2010, 17:34 
Offline

Joined: 20 Feb 2010, 20:38
Posts: 3
Bingo! I forgot to chmod +x after creating rc.modules, that was absent in my system.
Thank you very much

Ad majora
Enrico


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron