beautypg.com

1 id eeprom – Artesyn COMX-P40x0 ENP2 Installation and Use (August 2014) User Manual

Page 101

background image

BSP

COMX-P40x0 ENP2 Installation and Use (6806800R95B)

101

I2C buses in the U-Boot have been re-assigned as follows:

The devices displayed via the "i2c probe" command are 7-bit I2C addresses. The addresses
found in the HW

Table 4-8 on page 75

are 8-bit addresses. (For example: 7-bit address 0x18

corresponds to the 8-bit address 0x30)

7.15.1 ID EEPROM

An I2C EEPROM AT24C02 (U30) is used as the ID EEPROM, located on I2C<1>. COMX-P40x0
uses ID EEPROM to store the board’s serial number, number of network ports, MAC addresses,
errata level, manufacturing date and other information. Boot up message in the U-Boot will be:
"EEPROM: NXID v0".

U-Boot provides several "mac" utilities to display and program the data in ID EEPROM.

i2c read chip address[.0, .1, .2] length
memaddress

Reads to memory

i2c reset

Re-inititializes the I2C Controller

i2c speed [speed]

Shows or set I2C bus speed

’i2c dev 0’ selects I2C<1>

’i2c dev 1’ selects I2C<2>

’i2c dev 2’ selects I2C<4>

Table 7-8 U-Boot I2C Utilities

Utility

Description

mac [read|save|id|num|errata|date|ports|0|1|2|3|4|5|6|7]

mac read

Shows content of EEPROM

mac save

Saves to the EEPROM

mac id

Programs system id

mac num

Programs system serial number