Skip to contentSkip to conversation

[lm-sens

DISCUSSION junping feng 1 participant 1 message Sep 23, 2005

lore
Share & tools
lore
#0 lore raw

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 <[email protected]> ???
see the userspace programs and documents in prog/eepromer in the lm-sensors package.

the kernel module does not support writes.

Quoted 61 lines · junping feng

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 ??:

Quoted 29 lines
Quoted 2 lines · junping feng

Hi,
My cpu is PowerPC8250.I2C device is eeprom

AT24C01.

Quoted 1 line

I want to access the eeprom,read from the eeprom

and

Quoted 3 lines

write to it.
I have read the file
/lm_sensors-2.5.0/kernel/chips/eeprom.c,but this

file

Quoted 1 line

can't achieve writing function and only can read

128

Quoted 2 lines

bytes.
How can i complete the writing functions and

read

Quoted 1 line

total the chip (1024 bytes).

Quoted 14 lines

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.

Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

'a smiley only costs 4 bytes'
Quoted 8 lines

___________________________________________________________
???????????2G?????pop3??????????
http://cn.mail.yahoo.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

---------------------------------
????G???????????????????
??????????????
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050923/0fa297d0/attachment-0001.html