EEPROM write support
Hello list,
I've just connected an old serial EEPROM to my i2c-bus, to see what else can be done with this bus. My question is, why is there no write support (yet)? Mere protection? I've added a basic write functionality myself, and it works pretty fine (the chip didn't blow and presents the written data on next real read-out).
I've also found some other I2C-Chips on the board I have that one from, mostly Audio and Video processors also found in other packages. Are those drivers intentionally not part of lm_sensors but instead their respective driver packages? I'm thinking about abusing the audio- and video-switches inside my machine :-)
Greetings,
Sascha
Quoted 4 lines
I've just connected an old serial EEPROM to my i2c-bus, to see what else can be done with this bus. My question is, why is there no write support (yet)? Mere protection?
Protection and lack of need. The module was initially written to read memory chips eeproms, and that's not the kind of eeprom you want to write to (if you only can, I'm not sure about that.) What's more, we have been having trouble with some eeproms found on IBM laptops. This has kept our project from being integrated into the Linux kernel tree for years (no kidding) so nobody here is wanting to play with eeproms anymore.
Quoted 3 lines
I've added a basic write functionality myself, and it works pretty fine (the chip didn't blow and presents the written data on next real read-out).
As said before, I think there is almost no need for such a use. Same as your SAA1064 driver actually. We had fun writing it but we don't expect hundreds of users to need it.
If we are to add write support to the module, it has to be an option, and disabled by default (my opinion).
Quoted 4 lines
I've also found some other I2C-Chips on the board I have that one from, mostly Audio and Video processors also found in other packages. Are those drivers intentionally not part of
lm_sensorsbut instead their respective driver packages?
It's intentional. We can't handle all these devices, and we simply don't *want* to do so. The project is aimed at hardware monitoring. We only "host" drivers that couldn't possibly leave out there, either because they are generic (eeprom driver) or too specific (such as your saa1064 driver). Such drivers would probably not be maintained if we weren't maintaining them by ourselves. This is also linked to the fact that we are responsible for the i2c subsystem.
Audio and video drivers (well, mostly video) are more complex things, requiring regular updates and hardware for testing. It's better that the people who know much more than us on the topic write and maintain the drivers on their own.
BTW, just my own point of view, not the lm-sensors-team official one (if there ever was one).
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines · At Mittwoch, 23. Juli 2003 02:40 Philip Edelbrock wrote:
I thought we did have write support as a compile-time option (via a define or something). I thought Mark did that a long time ago? I could be imagining things. (Or maybe we moved that to user-space only?)
Well in the latest cvs (which I use for a regular base now, updated at least once a week), everything that there _has been_ write support ist commented out (/* No write support (yet) */). I was mainly wandering why it said "yet".
@Phil, Jean: You don't need to CC me anymore, I'm subscribed :-)
Greetings,
Sascha
Just a few quick comments:
Quoted 4 lines · Jean Delvare
The module was initially written to read
memory chips eeproms, and that's not the kind of eeprom you want to write to (if you only can, I'm not sure about that.)
Yeah, that was the initial application and reasoning. And, yes, at that time (and probably still true), you could write over the SPD record on the eeprom on the DIMMs, making your computer not boot. Not good! Eventhough there is a write protect pin on the eeprom (a hardware protection), the DIMM manufacturers seem to program the eeproms while on the DIMM.
BTW- There is a little app for the Mac which will 'fix' you incompatible DIMM's which get detected and disabled at boot by overwriting the SPD record with a 'valid' one (read: adjusting the timing specs to make the DIMM seem compatible). A Mac user friend here at work showed me. It looked like a bad idea, imho.... But, I understand that isn't what is being proposed here. ;')
Quoted 4 lines
If we are to add write support to the module, it has to be an option, and disabled by default (my opinion).
I thought we did have write support as a compile-time option (via a define or something). I thought Mark did that a long time ago? I could be imagining things. (Or maybe we moved that to user-space only?)
Phil
there's no code in the eeprom module for writes, only that comment. See the userspace programs in prog/eepromer if you would like to do writes.
Quoted 17 lines · Sascha Volkenandt
Quoted 3 lines · At Mittwoch, 23. Juli 2003 02:40 Philip Edelbrock wrote:
I thought we did have write support as a compile-time option (via a define or something). I thought Mark did that a long time ago? I could be imagining things. (Or maybe we moved that to user-space only?)
Well in the latest cvs (which I use for a regular base now, updated at least once a week), everything that there
_hasbeen_write support ist commented out (/* No write support (yet) */). I was mainly wandering why it said "yet".@Phil, Jean: You don't need to CC me anymore, I'm subscribed :-)
Greetings,
Sascha