All of lore.kernel.org
 help / color / mirror / Atom feed
From: mds@mds.gotdns.com (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: 回复: Re: 回复: Re: [lm-sensors] ee
Date: Fri, 23 Sep 2005 22:26:14 +0000	[thread overview]
Message-ID: <433464A1.6000806@mds.gotdns.com> (raw)

Feel free to look at or modify the source code in the kernel module,
available at our website www.lm-sensors.org.
We can't provide extensive help however,
and we recommend you use the userspace tools instead.

junping feng wrote:
> Thank you!
> But I have another problem that how can I achieve writes function in the 
> module eeprom.c(in the lm-sensors package) .Can you help me and give me 
> the scource codes?
> 
> */Mark Studebaker <mds@mds.gotdns.com>/* ???
> 
>     see the userspace programs and documents in prog/eepromer
>     in the lm-sensors package.
> 
>     the kernel module does not support writes.
> 
>     junping feng wrote:
>      > I am sorry for my fault of the eeprom. My eeprom is
>      > AT24C01A,and its size is 1Kbits(128Bytes).
>      > In the ile /lm_sensors-2.5.0/kernel/chips/eeprom.c,
>      > how can I complete the function of writing to the
>      > chip?
>      > please help me !
>      > Can you give me the source codes?
>      > Thanks!
>      >
>      >
>      > --- Ben Dooks ??:
>      >
>      >
>      >>On Tue, Sep 20, 2005 at 05:52:54PM +0800, junping
>      >>feng wrote:
>      >>
>      >>>Hi,
>      >>> My cpu is PowerPC8250.I2C device is eeprom
>      >>
>      >>AT24C01.
>      >>
>      >>>I want to access the eeprom,read from the eeprom
>      >>
>      >>and
>      >>
>      >>>write to it.
>      >>> I have read the file
>      >>>/lm_sensors-2.5.0/kernel/chips/eeprom.c,but this
>      >>
>      >>file
>      >>
>      >>>can't achieve writing function and only can read
>      >>
>      >>128
>      >>
>      >>>bytes.
>      >>> How can i complete the writing functions and
>      >>
>      >>read
>      >>
>      >>>total the chip (1024 bytes).
>      >>
>      >>The chip is only 128 bytes big. You are confusing
>      >>the
>      >>_bit_ size (which is 1024bits).
>      >>
>      >>I have no actual experience of this chip, but the
>      >>data-sheet implies it is only capable of page-write
>      >>of 4 bytes at a time, so it could be the eeprom
>      >>driver is trying to write too much data in one go.
>      >>
>      >>--
>      >>Ben (ben@fluff.org, http://www.fluff.org/)
>      >>
>      >> 'a smiley only costs 4 bytes'
>      >>
>      >
>      >
>      >
>      >
>      >
>      > ___________________________________________________________
>      > ???????????2G?????pop3??????????
>      > http://cn.mail.yahoo.com
>      >
>      > _______________________________________________
>      > lm-sensors mailing list
>      > lm-sensors@lm-sensors.org
>      > http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
> 
> ------------------------------------------------------------------------
> ????G??????????????????? <http://cn.mail.yahoo.com>
> ?????????????? <http://cn.zs.yahoo.com>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> lm-sensors mailing list
> lm-sensors@lm-sensors.org
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


                 reply	other threads:[~2005-09-23 22:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=433464A1.6000806@mds.gotdns.com \
    --to=mds@mds.gotdns.com \
    --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.