문제

I'm trying to figure out how I can read, write, and update memory addresses for eeprom on a pci network card using c language on ubuntu.

Can some please point me in the right direction to get started? Thank you

도움이 되었습니까?

해결책

After some research, it appears ethtool can be used to read and write to the eeprom (http://manpages.ubuntu.com/manpages/hardy/en/man8/ethtool.8.html):

   ethtool -d|--register-dump ethX [raw on|off] [hex on|off] [file name]

   ethtool -e|--eeprom-dump ethX [raw on|off] [offset N] [length N]

   ethtool -E|--change-eeprom ethX [magic N] [offset N] [value N]

To dump eeprom, you can do ethtool -e ethX raw <on|off> offset <N> length <N>.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top