Skip to contentSkip to conversation

Using i2c for inventory/asset management.

lm-sensors Rolf 3 participants 3 messages Aug 10, 2005

lore
Share & tools
lore

Rolf

author
#0 lore raw

My company is starting to implement an auto provisioning mechanism for web servers, I want to keep track of memory serial numbers by the data in the SPD EEPROM on the sdram. I can access this fairly easily from i2cdump. However, our kernels do not support module loading (for security) and I have to compile all the drivers into the kernel. sensors exec shows the i2c bus and sensor information from it but i2cdetect returns :

Error: No i2c-bus specified!
Syntax: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
i2cdetect -l
i2cdetect -V
I2CBUS is an integer
With -a, probe all addresses (NOT RECOMMENDED)
With -q, uses only quick write commands for probing (NOT RECOMMENDED) With -r, uses only read byte commands for probing (NOT RECOMMENDED) If provided, FIRST and LAST limit the probing range.
With -l, lists installed busses only
Error: No I2C busses found!
Be sure you have done 'modprobe i2c-dev'
and also modprobed your i2c bus drivers

This is on debian with a vanilla kernal recompiled for i2c support. Are my i2c tools out of date?

#1 lore raw

Hi Rolf,

Quoted 6 lines

Error: No I2C busses found!
Be sure you have done 'modprobe i2c-dev'
and also modprobed your i2c bus drivers

This is on debian with a vanilla kernal recompiled for i2c support. Are my i2c tools out of date?

Is the i2c-dev driver built into your kernel? If not, that's what you're missing for i2cdetect to work properly.

--
Jean Delvare

#2 lore raw
In reply to Rolf
Quoted 5 lines · Rolf

Error: No i2c-bus specified!
Syntax: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
i2cdetect -l
i2cdetect -V
I2CBUS is an integer

Did you pass an i2c bus number on the command line? If I don't then I get this same message...

Ian.

Signature · 5 lines
Ian Campbell
Current Noise: Pentagram - Prayer For An Exit Before The Dead End

If you can count your money, you don't have a billion dollars.
		-- J. Paul Getty