U-Boot commands to read/write i2c eeprom

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-Boot commands to read/write i2c eeprom

6,364 Views
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 Kudos
1 Reply

4,606 Views
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 Kudos