问题
I'm writing a linux driver for a custom RF board. The RF board have an EEPROM contain some information and I want to load this information to my driver. Linux kernel already has EEPROM module, this module read all memory of the EEPROM and export to userspace by sysfs.
Can I read this sysfs to get EEPROM's memory? If not, how can I get this information? Thank you.
回答1:
There are userspace applications which read the data exported by the eeprom module. So if you know Perl a bit, I suggest that you will consider looking at the following i2c-tools link: https://github.com/groeck/i2c-tools/tree/master/eeprom
Rami Rosen
来源:https://stackoverflow.com/questions/41634394/read-eeprom-entry-from-linux-module