Disclaimer, I am far, very far, from a CentOS/Linux expert and I have been having a difficult time finding any of this out on my own, using Google fu. I am working on a product that goes into a PCIe slot in a PC running CentOS. On the side channel of the PCIe interconnect there is a SMBus (i.e., I2C) that is used to gather the Vital Product Data (VPD) table. I am trying to find a way to test this interface, but have failed miserably thus far. I know there are a few tools to try and read the VPD and I2C device, which are:
LM-Tools (I2C), installed by using
sudo yum install i2c-tools
dmidecode, installed by using
sudo yum install dmidecode
The tools in dmidecode has a "vpddecode" which doesn't return anything and I suspect is looking for something in memory, but I really don't know. the LM-Tools has the i2cdetect, but trying to execute "sudo i2cdetect -y 0" does not work and reports:
Error: Could not open file /dev/i2c-2 or /dev/i2c/2: No such file or directory
If I look under
/dev, there are no items with i2c in it. So, I am thinking I need to a load a module or something?
So, my questions are:
- Will these tools be able to communicate with my device that is on the PCIe SMBus?
- If these utilities will work with my device on the PCIe SMBus, what actions do I need to take in order for them to work?
- If these utilities will not work with my device on the PCIe SMBus, what utilities will work?
Any help is greatly appreciated. I have google, but my google fu mostly brings up info for LM modules to read temps and items like that, even if I try to filter them out.