All of lore.kernel.org
 help / color / mirror / Atom feed
From: stefano@codesink.org (Stefano Barbato)
To: lm-sensors@vger.kernel.org
Subject: EEPROM read/write user space program
Date: Thu, 19 May 2005 06:24:27 +0000	[thread overview]
Message-ID: <200311282127.35985.stefano@codesink.org> (raw)
In-Reply-To: <20031122084059.0f9f73fa.khali@linux-fr.org>

I could also change in "your system will brake, very very VERY much" :)

I think that defaulting to 8bit makes sense, I agree with you. It will be more 
safer or, better, less devastating. Reading from a 16bit using 8bit will just 
confuse the eeprom that can return wrong values (usually 0xff). Writing just 
don't work or at least not on eeproms I used for testing.

So I'll change to 16bit default as soon as possible (and I'll add a -16 
switch).

I was trying to figure out if there's a non-euristic mode to detect the eeprom 
type without writing to it but, before trying, I want to buy a new 8bit 
eeprom because I don't want to play with my dimm spd (that btw is not write 
protected)!

I'll let you know.

Thanks for the proofreading work :)

stefano


On Friday 28 November 2003 19:23, you wrote:
> > __________________________________WARNING____________________________
> > ___ Erroneously writing to a system EEPROM (like DIMM SPD modules) can
> > brake your system.  It will NOT boot any more so you'll not be able to
> > fix it.
>
> It's "break", not "brake" (also in some way I agree it does too ;)).
> And "any more" is "anymore".
>
> > Reading from 8bit EEPROMs (like that in your DIMM) without using the
> > -8 switch can also UNEXPECTEDLY write to them, so be sure to use the
> > -8 command param when required.
>
> Wouldn't it be safer to default to 8-bit and have a switch to use
> 16-bit addressing? From what you said, "reading from an 8bit eeprom
> using 16bit addressing can actually *write* to the eeprom", but what
> would reading a 16-bit eeprom using 8-bit addressing do? If it isn't
> dangerous, I believe you should default to 8-bit addressing.
>
> BTW, isn't it possible to detect the addressing mode?

  parent reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 EEPROM read/write user space program Jean Delvare
2005-05-19  6:24 ` Mark Studebaker
2005-05-19  6:24 ` Stefano Barbato
2005-05-19  6:24 ` Stefano Barbato
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Stefano Barbato
2005-05-19  6:24 ` Stefano Barbato [this message]
2005-05-19  6:24 ` Stefano Barbato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311282127.35985.stefano@codesink.org \
    --to=stefano@codesink.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.