问题描述
我正在为自定义RF板编写linux驱动程序.射频板上有一个包含一些信息的EEPROM,我想将此信息加载到驱动程序中. Linux内核已经具有EEPROM模块,该模块读取EEPROM的所有内存并通过sysfs导出到用户空间.
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.
我可以阅读此sysfs以获得EEPROM的内存吗?如果没有,我如何获得此信息?谢谢.
Can I read this sysfs to get EEPROM's memory? If not, how can I get this information? Thank you.
推荐答案
有些用户空间应用程序读取eeprom模块导出的数据.因此,如果您稍微了解Perl,建议您考虑查看以下i2c-tools链接: https://github.com/groeck/i2c-tools/tree/master/eeprom
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)
Rami Rosen
这篇关于从linux模块读取EEPROM条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!