This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EEPROM writing from U boot ported on beaglebone

Hi,

I ported linux on to beaglebone, my work ig to try write and read a value from EEPROM connected to the i2c bus from U boot terminal.

A bit of searching suggests me that the EEPROM connected to the extension boards have some write protect bit set.

Does anything like that exists for the EEPROM present in the beaglebone too?? I am using beaglebone Rev. A3

  • Hi,

    Simple solution to detect EEPROM is present or not is, try reading the hw id from eeprom using i2c_read

    and match it if reading fails or hw id mismatches you can conclude eeprom is present or not.

    Thx,

    --Prabhakar Lad

  • HI,

    Thanks for the reply. I am able to read from the EEPROM, but I encounter problem when tryiny to write to it. The values what ever I write to are not reflected when I read after I write.

    So I doubt if there is any write protection for the EEPROM?

    Thanks in advance

  • Hi,

    Ok. Is write returning with failure ? Can you attach the log of following commands in the post,

    Replace <0x20000000> with known free address from memory

    #>eeprom info
    #> eeprom read <0x2000000> 0x300 0x100
    #> md 0x2000000
    #> eeprom write <0x20000000> 0x300 0x100
    #> md 0x2000000

    Thx,
    --Prabhakar Lad