I2C eeprom utilities
Hi,
I ported and enabled the eeprom commands to u-boot.
Quoted 15 lines
I ported and enabled the eeprom commands to u-boot.
Quoted 1 line
From the readme file, it expects a bin file to be
loaded into ram and then using the "eeprom write" command we should be able to program the eeprom. => tftp 100000 eeprom.bin
=> md 100000
=> eeprom write 100000 0 100
=> eeprom read 150000 0 100
=> md 150000
However, when I try the above and check the eeprom content only the last few bytes are programmed. Any idea? How to generate this bin file? Also, the "imd" command is not working properly on my set up.
Quoted 4 lines
I am using u-boot version 1.1.2 on a custom board with mpc8541 cpu.
Only last few bytes are written in flash after a sequential write block?
Usually indicates that the flash bus has a SMALLER bus width support (i.e., 8 or 16-bit) and software operation is performing 32-bit operations instead.
S. Egbert
Quoted 2 lines · In message <[email protected]> you wrote:
Quoted 2 lines
I ported and enabled the eeprom commands to u-boot.
...
Quoted 2 lines
Quoted 2 lines
idea? How to generate this bin file? Also, the "imd" command is not working properly on my set up.
...
Quoted 1 line
Only last few bytes are written in flash after a sequential write block?
No, not flash, but an EEPROM on the I2C bus.
Quoted 3 lines
Usually indicates that the flash bus has a SMALLER bus width support (i.e., 8 or 16-bit) and software operation is performing 32-bit operations instead.
No.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Q: Why do mountain climbers rope themselves together? A: To prevent the sensible ones from going home.
Hi Wolfgang,
Thank you for your response!! Everything is working as expected now. You were correct as I found some issues with my configuration parameters. To start with atmel at24c64a eeprom expects a 2-byte offset and so forth. So for the record here are the needed configuration to get the eeprom utilities working.
#define CFG_I2C_EEPROM_ADDR_LEN 2
#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
#define CFG_EEPROM_PAGE_WRITE_BITS 4
Regards,
Rahmat
Quoted 18 lines · --- Wolfgang Denk
Quoted 2 lines · In message <[email protected]> you wrote:
Quoted 2 lines
I ported and enabled the eeprom commands to
u-boot.
...Quoted 1 line
Quoted 1 line
idea? How to generate this bin file? Also, the
"imd"
Quoted 1 line
Quoted 1 line
command is not working properly on my set up.
...
Quoted 1 line
Only last few bytes are written in flash after a
sequential write block?
No, not flash, but an EEPROM on the I2C bus.
Quoted 1 line
Usually indicates that the flash bus has a SMALLER
bus width support
Quoted 1 line
(i.e., 8 or 16-bit) and software operation is
Quoted 18 lines
performing 32-bit
Quoted 1 line
operations instead.
No.
Best regards,
Wolfgang Denk
Signature · 7 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Q: Why do mountain climbers rope themselves together? A: To prevent the sensible ones from going home.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 14 lines · In message <[email protected]> you wrote:
I ported and enabled the eeprom commands to u-boot. From the readme file, it expects a bin file to be loaded into ram and then using the "eeprom write" command we should be able to program the eeprom. => tftp 100000 eeprom.bin
=> md 100000
=> eeprom write 100000 0 100
=> eeprom read 150000 0 100
=> md 150000
However, when I try the above and check the eeprom content only the last few bytes are programmed. Any idea? How to generate this bin file? Also, the "imd" command is not working properly on my set up.
Then you misconfigured your EEPROM interface (address length, page size, ...)
Quoted 2 lines
I am using u-boot version 1.1.2 on a custom board with mpc8541 cpu.
I wonder why everybody seems so eager to use old code...
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Landru! Guide us! -- A Beta 3-oid, "The Return of the Archons", stardate 3157.4