linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* can't write more than one byte to AT24C64 EEPROM using "eeprog"
@ 2017-07-25 12:51 rpjday
  2017-07-25 17:51 ` Robert P. J. Day
  0 siblings, 1 reply; 8+ messages in thread
From: rpjday @ 2017-07-25 12:51 UTC (permalink / raw)
  To: linux-i2c


   warning: doing this from memory since someone just walked off with my
test system, but i'll try to get all the details in:

   in order to read a 4-byte manufacturer string from the EEPROM, i used
"eeprog", which worked delightfully (displaying for Lenovo):

   # eeprog /dev/i2c-0 0x50 -16 -f -r 0x0060:4
   LNVO

so reading from the EEPROM using "eeprog" seems to work just fine.
but when i tried to write a string there:

   # echo -n "rday" | eeprog /dev/i2c-0 0x50 -16 -f -w 0x0060

i got a "i2c_write_3b" error (that's all i can remember of it),
and when i checked memory, only the first character ("r") had
been written at address 0x0060, the rest of the characters were
unchanged.

   as a test, i used "eeprog" to write the remaining characters
one at a time (at addresses 0x0061, 0x0062 and 0x0063), and that
appeared to work just fine.

   am i doing something obviously silly? from the man page, it
seems i should be able to pass a string for writing.

rday

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-27  9:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-25 12:51 can't write more than one byte to AT24C64 EEPROM using "eeprog" rpjday
2017-07-25 17:51 ` Robert P. J. Day
2017-07-26 18:30   ` Robert P. J. Day
2017-07-26 20:57     ` Wolfram Sang
2017-07-26 21:31       ` Robert P. J. Day
2017-07-26 21:57         ` Wolfram Sang
2017-07-27  8:40       ` Robert P. J. Day
2017-07-27  9:34         ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).