Skip to contentSkip to conversation

eeprom write!

lm-sensors junping feng 2 participants 2 messages Sep 20, 2005

lore
Share & tools
lore
#0 lore raw

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).
Can you give me the source codes?

Thanks!

___________________________________________________________
????G???No.1??????????
http://cn.mail.yahoo.com

#1 lore raw
Quoted 10 lines · junping feng

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.

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

  'a smiley only costs 4 bytes'