Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5381

Advanced users • [SOLVED] eeptools non-working here

$
0
0
tools seem to rely on SW I2C interface.

Anyhow the M.2 HAT specification seems to have a typo - and the tool help as well - as the address is to be provided as decimal.

Page 18 of the HAT+ spec

Code:

sudo ./eepflash.sh -w -t=24c32 -a=0x50 -f=eeprom.eep
correct is

Code:

sudo ./eepflash.sh -w -t=24c32 -a=50 -f=eeprom.eep
Here is an example with a stackable HAT (M.2 HAT+) connected

Code:

pi@raspberrypi:~/utils/eeptools $ sudo dtoverlay i2c-gpio i2c_gpio_sda=0 i2c_gpio_scl=1 bus=9pi@raspberrypi:~/utils/eeptools $ i2cdetect -y 9     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f00:                         -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --   
correct address format - DECIMAL -> tool works

Code:

pi@raspberrypi:~/utils/eeptools $ sudo ./eepflash.sh -r -t=24c32 -a=51 -f=eeprom.eepThis will attempt to talk to an eeprom at i2c address 0x51. Make sure there is an eeprom at this address.This script comes with ABSOLUTELY no warranty. Continue only if you know what you are doing.Do you wish to continue? (yes/no): yesReading...Closing EEPROM Device.Done.
incorrect - HEX - as in the HAT+ spec and the tools help --> tools fail

Code:

pi@raspberrypi:~/utils/eeptools $ sudo ./eepflash.sh -r -t=24c32 -a=0x51 -f=eeprom.eepThis will attempt to talk to an eeprom at i2c address 0x0x51. Make sure there is an eeprom at this address.This script comes with ABSOLUTELY no warranty. Continue only if you know what you are doing.Do you wish to continue? (yes/no): yes./eepflash.sh: 161: echo: echo: I/O errorReading...dd: failed to open '/sys/class/i2c-adapter/i2c-9/9-000x51/eeprom': No such file or directoryClosing EEPROM Device../eepflash.sh: 189: echo: echo: I/O errorError doing I/O operation.

Statistics: Posted by aBUGSworstnightmare — Mon May 27, 2024 5:14 am



Viewing all articles
Browse latest Browse all 5381

Trending Articles