[WBEL-users] newbie - kernel and other upgrades questions
Craig White
craigwhite at azapple.com
Sat Jan 22 09:32:43 CST 2005
On Sat, 2005-01-22 at 10:38 +0200, Alon wrote:
> OK..
>
> Getting closer to the targe :)
>
> # rpm -q --whatprovides /usr/sbin/sensors-detect
> lm_sensors-2.6.5-6
>
> # sensors
> Can't access /proc file
> /proc/sys/dev/sensors/chips or /proc/bus/i2c unreadable;
> Make sure you have done 'modprobe i2c-proc'!\
----
did you modprobe it?
what did detect-sensors tell you?
Did you follow the instructions?
* Run (as root) `sensors-detect' to detect your hardware,
put the lines it suggests into /etc/modules.conf
and enter the modprobe lines sensors-detect suggests.
Add the line `sensors -s' after the modprobe lines.
* Reboot, or else type in the modprobe lines and `sensors -s'.
* Run `sensors' to see your output.
Definitely seems to me that you aren't following the instructions.
----
>
> # uname -r
> 2.4.21-27.0.2.ELsmp
>
> # modprobe i2c-proc
> modprobe: Can't locate module i2c-proc
>
> # make
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/Makefile: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/include/linux/autoconf.h: No
> such file or directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
> Makefile:170: kernel/i2c-core.d: No such file or directory
> Makefile:170: kernel/i2c-dev.d: No such file or directory
> Makefile:170: kernel/i2c-algo-bit.d: No such file or directory
> Makefile:170: kernel/i2c-algo-biths.d: No such file or directory
> Makefile:170: kernel/i2c-elv.d: No such file or directory
> Makefile:170: kernel/i2c-velleman.d: No such file or directory
> Makefile:170: kernel/i2c-algo-pcf.d: No such file or directory
> Makefile:170: kernel/i2c-proc.d: No such file or directory
> Makefile:170: kernel/i2c-pport.d: No such file or directory
> grep: /lib/modules/2.4.21-27.0.2.ELsmp/build/.config: No such file or
> directory
>
> Error - missing file /lib/modules/2.4.21-27.0.2.ELsmp/build/.config !!
> Verify kernel source is in /lib/modules/2.4.21-27.0.2.ELsmp/build and then
> cd to /lib/modules/2.4.21-27.0.2.ELsmp/build and run 'make config' !!
>
> Exception: if you're using a stock RedHat/Fedora kernel...
> (1) Install the appropriate kernel-source RPM.
> (2) Copy the appropriate config...
> from /lib/modules/2.4.21-27.0.2.ELsmp/build/configs/<...>
> to /lib/modules/2.4.21-27.0.2.ELsmp/build/.config
> (3) Do *NOT* 'make dep' or 'make config'.
>
> make: *** [/lib/modules/2.4.21-27.0.2.ELsmp/build/.config] Error 1
>
>
> # rpm -q kernel-2.4.21-27.0.2.EL
> kernel-2.4.21-27.0.2.EL
>
> And here I'm guessing,... as I don't know exactly how to find out if the
> src.rpm is installed.
> # rpm -q kernel-2.4.21-27.0.2.EL.src
> package kernel-2.4.21-27.0.2.EL.src is not installed
>
> # ll
> total 37984
> -rw-r--r-- 1 root root 38847784 Jan 22 08:28
> kernel-2.4.21-27.0.2.EL.src.rpm
>
> NOTICE this is not ELsmp. I can't seem to find a ELsmp source kernel.
----
I notice but there is only one source for each version of the kernel.
It's the compile options that determine the ultimate kernel binaries.
When you install a kernel-src rpm it doesn't install it anywhere it can
be located by the rpm command since it isn't a binary and is installed
in the appropriate places in /usr/src/redhat.
I want to thoroughly discourage you from trying to compile these things
since you don't know what you are doing and would have to really learn a
lot. I have been trying to assure you that this has already been done
for you.
The detect-sensors command should tell you which modules to modprobe
AFTER you put the instructed lines into /etc/modules.conf
You have to follow the instructions in the 'Quickstart' file as I have
quoted you now twice.
Craig
More information about the Whitebox-users
mailing list