i'm trying to write eeprom via i2c interface but i could'nt.
i2c eeprom address is 0x50 and i use following u-boot commands.
=>i2c md 0x50 0x00 0x01 // firstly i read 0x0000 eeprom address
0000: ff .
=>i2c mw 0x50 0x00 0x41 0x01 // 0x41 is written to 0x0000 eeprom adress
=>i2c md 0x50 0x00 0x01
0000: ff . // but it's same not changing.
i miss something when i try to write eeprom ?
thanks in advance.
已解决! 转到解答。
the problem was about using i2c command wrongly.
it works like the following;
i2c mw 0x50 0.2 0x41 0x1
thanks.
i'm sure eeprom addres is 0x50 and this address was specified in QorIQ T1042DR Reference Design Board Ref Man.
the following is output of i2c probe command.
=>i2c probe
Valid chip addresses : 00 19 36 37 38 40 4C 50 51 68 6A 75