This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:tools-software:linux-software:fru_dump [14 Dec 2012 16:42] – created Lars-Peter Clausen | resources:tools-software:linux-software:fru_dump [04 Feb 2022 18:12] (current) – Typo: fru_dump -> fru-dump Dragos Bogdan | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== FMC FRU EEPROM Utility ====== | ====== FMC FRU EEPROM Utility ====== | ||
+ | |||
+ | The [[http:// | ||
+ | Information storage recorders, as defined in the [[https:// | ||
+ | |||
+ | The FRU Information is used to primarily to provide ‘inventory’ information about the boards that the FRU information device is located on. All FMC mezzanine modules include an EEPROM where this FRU Information, | ||
+ | |||
+ | There are some extensions, or FMC-specific MultiRecords, | ||
+ | |||
+ | In order to better use this data, Analog Devices has written a small utility which dumps the FRU file which can be found on many systems. It also can change the serial number and date (since we use this for production test of ADI's FMC cards). | ||
+ | |||
+ | < | ||
+ | **NAME** | ||
+ | | ||
+ | |||
+ | **SYNOPSIS** | ||
+ | | ||
+ | |||
+ | **DESCRIPTION** | ||
+ | |||
+ | dump information about FRU files for FMC Cards | ||
+ | file options | ||
+ | -i input file | ||
+ | -o output file, only makes sense when changing something | ||
+ | dump info | ||
+ | -b dump board info | ||
+ | -c dump connector info | ||
+ | -p dump power supply info | ||
+ | -2 dump I2C info | ||
+ | -v verbose (show warnings) | ||
+ | set info (modifies output file) | ||
+ | -d < | ||
+ | -d < | ||
+ | -d now set the date to the current time | ||
+ | -s < | ||
+ | -t < | ||
+ | -6 force output to be in 6-bit ASCII | ||
+ | </ | ||
+ | |||
+ | ===== Installing the FRUDump utility ===== | ||
+ | |||
+ | The source code for the FRUDump utility is found at [[https:// | ||
+ | |||
+ | ===== Finding the eeprom ===== | ||
+ | |||
+ | <WRAP box bggreen fgblack> | ||
+ | This specifies a root shell prompt running on the target, where the FMC module is attached | ||
+ | < | ||
+ | # **find /sys -name eeprom** | ||
+ | / | ||
+ | # | ||
+ | </ | ||
+ | </ | ||
The FRU EEPROM responds to I2C Slave address 0x51. | The FRU EEPROM responds to I2C Slave address 0x51. | ||
Line 5: | Line 57: | ||
===== Dump FRU Board Information ===== | ===== Dump FRU Board Information ===== | ||
- | < | + | <WRAP box bggreen fgblack> |
- | # **fru_dump | + | This specifies any shell prompt running on the target |
+ | < | ||
+ | # **fru-dump | ||
read 256 bytes from / | read 256 bytes from / | ||
Date of Man : Tue Sep 18 16:30:00 2012 | Date of Man : Tue Sep 18 16:30:00 2012 | ||
Line 14: | Line 68: | ||
Part Number | Part Number | ||
Board Rev : B | Board Rev : B | ||
- | </ | + | </ |
+ | </WRAP> | ||
===== Dump FRU Power Information ===== | ===== Dump FRU Power Information ===== | ||
- | < | + | <WRAP box bggreen fgblack> |
- | # **fru_dump | + | This specifies any shell prompt running on the target |
+ | < | ||
+ | # **fru-dump | ||
read 256 bytes from / | read 256 bytes from / | ||
DC Load | DC Load | ||
Line 69: | Line 126: | ||
Minimum current draw: 0 (mA) | Minimum current draw: 0 (mA) | ||
Maximum current draw: 0 (mA) | Maximum current draw: 0 (mA) | ||
- | </ | + | </ |
+ | </WRAP> | ||
===== Dump FRU Connector Information ===== | ===== Dump FRU Connector Information ===== | ||
- | < | + | <WRAP box bggreen fgblack> |
- | # **fru_dump | + | This specifies any shell prompt running on the target |
+ | < | ||
+ | # **fru-dump | ||
read 256 bytes from / | read 256 bytes from / | ||
Single Width Card | Single Width Card | ||
Line 82: | Line 142: | ||
P1 GBT Transceivers needed 0 | P1 GBT Transceivers needed 0 | ||
Max JTAG Clock 0 | Max JTAG Clock 0 | ||
- | </ | + | </ |
+ | |||
+ | ===== Set tuning parameters ===== | ||
+ | |||
+ | A tuning (or calibration) parameter for the related board can be written to the EEPROM as seen below. Usually this is integer or floating point values encoded as a raw hex string that is then decoded where it's used such as in IIO Oscilloscope or wherever the parameter needs to be set. | ||
+ | |||
+ | < | ||
+ | This specifies any shell prompt running on the target | ||
+ | < | ||
+ | # **fru-dump -i / | ||
+ | read 256 bytes from / | ||
+ | changing tuning parameter to 0b10db | ||
+ | </ | ||
+ | |||
+ | ===== For Help ===== | ||
+ | |||
+ | For help and assistance with the tool, check out [[ez>community/ |