U-Boot commands to read/write i2c eeprom

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

U-Boot commands to read/write i2c eeprom

6,448件の閲覧回数
deans
Contributor I

I'm working on a P5020DS SuperHydra - the factory loaded RCW is in I2C EEPROM (Atmel AT24C64A or equivalent on I2C1 addr 0x50).

I've experimented w/ various U-Boot commands - the closest I get is:

=> i2c dev 0
Setting bus to 0
=> i2c read 50 0 100 100000
=> md 100000
00100000: 55aa5501 0e01000c 58000000 0000001e    U.U.....X.......
00100010: 12000000 000000d8 602a0000 002000fe    ........`*... ..
00100020: 80000041 00000000 00000000 00000000    ...A............
00100030: 00000010 c30001a8 00000000 00000000    ................
00100040: 00000000 00000008 1380408b c4c2fcff    ..........@.....
00100050: ffffffff ffffffff ffffffff ffffffff    ................
00100060: ffffffff ffffffff ffffffff ffffffff    ................
00100070: ffffffff ffffffff ffffffff ffffffff    ................

But the 1st byte is missing. I definitely don't want to overwrite anything until I'm sure I can recover from corruption.

Thanks,

0 件の賞賛
1 返信

4,690件の閲覧回数
Pavel
NXP Employee
NXP Employee

Write correct data to the I2C EEPROM.

Is there problem for reading correct data after writing?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛