raspberrypi/hats

eepflash.sh update cannot find eeprom in system folder

PoshMfg opened this issue · 0 comments

Hello,

I am having difficulties using eepflash.sh to flash an eep file. I was previously using a Raspberry pi zero W running raspian Stretch and your code from 24 October 2018. I was able to flash my device without issue. After pulling the new repository (the most recent from 2020), my pi now returns this string of errors:

pi@raspberrypi:~/Desktop/EEPROM/hats/eepromutils $ sudo ./eepflash.sh -w -f=K9JR-BT-eeprom_settings.eep -a=50 -t=24c32 This will attempt to talk to an eeprom at i2c address 0x50 on bus NOT_SET. 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 Expected I2C bus (i2c-9) not found. ./eepflash.sh: 140: ./eepflash.sh: cannot create /sys/class/i2c-adapter/i2c-NOT_SET/new_device: Directory nonexistent Writing... dd: failed to open '/sys/class/i2c-adapter/i2c-NOT_SET/NOT_SET-0050/eeprom': No such file or directory Closing EEPROM Device. ./eepflash.sh: 164: ./eepflash.sh: cannot create /sys/class/i2c-adapter/i2c-NOT_SET/delete_device: Directory nonexistent Error doing I/O operation.

I followed the setup of the repository on my local machine but this did not help. Would you be able to offer any insights as to why the updated code fails on my device? Do I need to make any changes to my Raspberry Pi settings? Attempting to do an overlay like in the instruction s(to set i2c-9) also fails.

Note: I also tried the code (both old and new) on the new Raspberry pi OS running on a raspberry pi Zero and that also returned similar errors.

Please let me know if you require more clarity on the nature of my problem. I will be happy to give you more information if needed.