Access EEPROM at u-boot level on LS1043A board

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

Access EEPROM at u-boot level on LS1043A board

586 Views
Tao2022
Contributor III

Hi,

I am trying to access EEPROM at u-boot level on my customized #ls1043a board#, it seems that I can only read the #EEPROM# for the first 16 bytes, after that, all reading return 0xFF. See following screen capture from conso

Tao2022_0-1683727033395.png

Same issue if I read the eeprom with code, except it can read up to 64 bytes, any extra reading returns 0xFF (even I repeat reading with same address offset). Our application can access EEPROM without any issue with at24 driver.

   Does NXP have any eeprom driver at u-boot level to access I2C? Like the at24.c at Linux kernel level.  I track down which driver is called when EEPROM was accessed on my board, found that the driver currently being used is drivers/i2c/i2c_uclass.c. Wonder if this is the right one for ls1043a.

  Anyone had idea or solution for this? thanks in advance.

 

0 Kudos
Reply
1 Reply

526 Views
June_Lu
NXP TechSupport
NXP TechSupport

Yesbut I checked the command in LS1043ARDB, could read out the board ID and MAC address and so on.

=> i2c probe

Valid chip addresses: 00 08 40 4C 52 53 68 69

=> i2c md 0x53 0x0 0x100

0000: 4e 58 49 44 54 52 31 35 33 34 30 30 39 36 00 00    NXIDTR15340096..

0010: 31 2e 30 00 00 15 09 09 10 35 04 ff 00 00 00 01    1.0......5......

0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

0030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

0040: 07 ff 00 04 9f 03 dd 26 00 04 9f 03 dd 27 00 04    .......&.....'..

0050: 9f 03 dd 28 00 04 9f 03 dd 29 00 04 9f 03 dd 2a    ...(.....).....*

0060: 00 04 9f 03 dd 2b 00 04 9f 03 dd 2d ff ff ff ff    .....+.....-....

0070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

00b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

00c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

00d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

00e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

00f0: ff ff ff ff ff ff ff ff ff ff ff ff 2c cf bd 76    ............,..v

0 Kudos
Reply