Skip to contentSkip to conversation

p4b_smbus and other modules

DISCUSSION Marco De Vitis 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Here I am again with a dumb question, as I promised on IRC (nick "mdv"). ;)
On my Asus P4PE, Mandrake Linux 9.0, lm_sensors 2.8.2, sensors works fine if I manually issue the following commands:

insmod p4b_smbus
modprobe i2c-core
modprobe i2c-i801
modprobe i2c-dev
modprobe i2c-proc
modprobe asb100

(BTW, is i2c-dev really needed? And what about module "eeprom", which sensors-detect suggested to add? I suppose it's related to the "Chip `SPD EEPROM'" it detects, but I don't know what it is...)

The problem is that, when issuing the first command "insmod p4b_smbus", lots of error lines are reported to syslog.
If I add p4b_smbus in /etc/modules to make it load at boot time, those errors appear again, preventing other non-i2c modules from loading correctly.

I attach the error log. As you can see, all following i2c modules are loaded fine (last six lines in the file).

Moreover, I found a p4b_smbus module already installed on my system:
/lib/modules/2.4.19-35mdk/kernel/3rdparty/p4b_smbus/p4b_smbus.o.gz

While I manually copied the one built from lm_sensors sources here:
/lib/modules/2.4.19-35mdk/kernel/drivers/hotplug/p4b_smbus.o

When I do insmod by hand, the system tells me it's using the latter. Now, you might have understood that I'm rather newbie with regards to modules... what should I do with these two modules? Where should I copy the new one? What should I do with the old one? Is this related to the errors reported?

Thanks a lot.

Signature · 69 lines
Ciao,
  Marco.

.."Low", David Bowie 1977
-------------- next part --------------
Jan 21 12:43:37 gpserver kernel: i801smbus: found Intel ICH4 (82801DB).
Jan 21 12:43:37 gpserver kernel: PCI: Found IRQ 9 for device 00:1f.3
Jan 21 12:43:37 gpserver kernel: PCI: Sharing IRQ 9 with 00:1f.5
Jan 21 12:43:37 gpserver kernel: i801smbus: Enabled
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: pcimodules is scanning more than  ...
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: Setup 8139too 8139cp rivafb snd-intel8x0 i810_audio i810-tco i810_rng ehci-hcd usb-uhci uhci usb-uhci uhci usb-uhci uhci for PCI slot 00:1f.3
Jan 21 12:43:37 gpserver kernel: 8139cp 10/100 PCI Ethernet driver v0.0.7 (Feb 27, 2002)
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/drivers/net/8139cp.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/drivers/net/8139cp.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod 8139cp failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module 8139cp
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver 8139cp 
Jan 21 12:43:37 gpserver kernel: rivafb: cannot reserve FB region
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/drivers/video/riva/rivafb.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/drivers/video/riva/rivafb.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod rivafb failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module rivafb
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver rivafb 
Jan 21 12:43:37 gpserver kernel: Intel ICH soundcard not found or device busy
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/sound/pci/snd-intel8x0.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/sound/pci/snd-intel8x0.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod snd-intel8x0 failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module snd-intel8x0
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver snd-intel8x0 
Jan 21 12:43:37 gpserver kernel: i810_rng: RNG not detected
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/drivers/char/i810_rng.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/drivers/char/i810_rng.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod i810_rng failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module i810_rng
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver i810_rng 
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... blacklisted module:  usb-uhci
Jan 21 12:43:37 gpserver kernel: uhci.c: USB Universal Host Controller Interface driver v1.1
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/drivers/usb/uhci.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/drivers/usb/uhci.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod uhci failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module uhci
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver uhci 
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... blacklisted module:  usb-uhci
Jan 21 12:43:37 gpserver kernel: uhci.c: USB Universal Host Controller Interface driver v1.1
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/drivers/usb/uhci.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/drivers/usb/uhci.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod uhci failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module uhci
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver uhci 
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... blacklisted module:  usb-uhci
Jan 21 12:43:37 gpserver kernel: uhci.c: USB Universal Host Controller Interface driver v1.1
Jan 21 12:43:37 gpserver insmod: /lib/modules/2.4.19-35mdk/kernel/drivers/usb/uhci.o.gz: init_module: No such device
Jan 21 12:43:37 gpserver insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.       You may find more information in syslog or the output from dmesg
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod /lib/modules/2.4.19-35mdk/kernel/drivers/usb/uhci.o.gz failed
Jan 21 12:43:37 gpserver modprobe: modprobe: insmod uhci failed
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: ... can't load module uhci
Jan 21 12:43:37 gpserver /etc/hotplug/pci.agent: missing kernel or user mode driver uhci 
Jan 21 12:43:59 gpserver kernel: i2c-core.o: i2c core module version 2.8.2 (20031211)
Jan 21 12:44:06 gpserver kernel: i2c-i801 version 2.8.2 (20031211)
Jan 21 12:44:12 gpserver kernel: i2c-dev.o: i2c /dev entries driver module version 2.8.2 (20031211)
Jan 21 12:44:12 gpserver kernel: i2c-dev.o: Registered 'SMBus I801 adapter at e800' as minor 0
Jan 21 12:44:18 gpserver kernel: i2c-proc.o version 2.8.2 (20031211)
Jan 21 12:44:24 gpserver kernel: asb100.o version 2.8.2 (20031211)
#1 lore raw
Quoted 10 lines

On my Asus P4PE, Mandrake Linux 9.0, lm_sensors 2.8.2, sensors works fine if I manually issue the following commands:

insmod p4b_smbus
modprobe i2c-core
modprobe i2c-i801
modprobe i2c-dev
modprobe i2c-proc
modprobe asb100

Quoted 3 lines

(BTW, is i2c-dev really needed? And what about module "eeprom", which sensors-detect suggested to add? I suppose it's related to the "Chip `SPD EEPROM'" it detects, but I don't know what it is...)

I2c-dev is only needed for raw access to the chips. Typically this is needed by sensors-detect, and not anymore after that. So you can skip it.

SPD EEPROM is something different, provided by the eeprom module. This is related to memory modules present on your system. Memory modules have an EEPROM with information that can be accessed through i2c busses, so we have a driver for them in our package, although these are not sensors.

Quoted 6 lines

The problem is that, when issuing the first command "insmod p4b_smbus", lots of error lines are reported to syslog.
If I add p4b_smbus in /etc/modules to make it load at boot time, those errors appear again, preventing other non-i2c modules from loading correctly.

Quoted 8 lines

I attach the error log. As you can see, all following i2c modules are loaded fine (last six lines in the file).

Moreover, I found a p4b_smbus module already installed on my system:
/lib/modules/2.4.19-35mdk/kernel/3rdparty/p4b_smbus/p4b_smbus.o.gz

While I manually copied the one built from lm_sensors sources here:
/lib/modules/2.4.19-35mdk/kernel/drivers/hotplug/p4b_smbus.o

You should never have two modules with the same name. This is likely to cause the problem you encounter. You should rename one of them so you are sure to load the one you want. That said, their module may work as well, so you could simply consider not using lm_sensors' one.

Quoted 5 lines

When I do insmod by hand, the system tells me it's using the latter. Now, you might have understood that I'm rather newbie with regards to modules... what should I do with these two modules? Where should I copy the new one? What should I do with the old one? Is this related to the errors reported?

Maybe removing the new one will solve the problem directly. If not, this may be a distribution-related problem of hotplug stuff. You could try telling your system not to handle the p4b_smbus module as a hotplug one. I don't know much about hotplug but I think you just need to add it to /etc/hotplug/blacklist.

With a single module named p4b_smbus and the system not taking care about it in your back, I'd expect the insmod to be much quiter.

Hope that helps and sorry for not answering before, I don't know much about hotplug and was hoping that someone with more knowledge would answer.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Marco De Vitis
Quoted 7 lines · Hello Jean, on 09/02/2004 at 19.48 you wrote:
Quoted 2 lines

The problem is that, when issuing the first command "insmod p4b_smbus", lots of error lines are reported to syslog.

You should never have two modules with the same name. This is likely to cause the problem you encounter. You should rename one of them so you are sure to load the one you want. That said, their module may work as well, so you could simply consider not using lm_sensors' one.

I removed lm_sensors' one, and now the system tells it's using its own one, but I get the same errors.

I also tried adding p4b_smbus in /etc/hotplug/blacklist (yes, it seems the right place to do it), but I still get the same identical errors. I also rebooted, just to be sure I tried on a clean startup.

Does anyone have any other clue?

Quoted 1 line

Hope that helps and sorry for not answering before, I don't know much

No problem, I largely compensated with the delay in my answer. ;) Sorry but I only recently found the time to do the tests while nobody was using the machine.

Signature · 4 lines
Ciao,
  Marco.

.."Homogenic", Bj?rk 1997
#3 lore raw
In reply to Marco De Vitis
Quoted 8 lines

I removed lm_sensors' one, and now the system tells it's using its own one, but I get the same errors.

I also tried adding p4b_smbus in /etc/hotplug/blacklist (yes, it seems the right place to do it), but I still get the same identical errors. I also rebooted, just to be sure I tried on a clean startup.

Does anyone have any other clue?

Except trying the other way around (removing your distribution's one and using lm_sensors one instead), no other ideas, sorry.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/