Read EEPROM entry from linux module

筅森魡賤 提交于 2019-12-12 03:49:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!