Documentation:NGW/NGW100 Ethernet PHY

From AVRFreaks Wiki

Jump to: navigation, search

Connection and usage of the two Ethernet physical (PHY) chips are summarized in the table below.

AP7000 peripheralNGW schematicPHY IDLinux usage
MACB0ETH_000001 (01h)WAN
MACB1ETH_100011 (03h)LAN

AP7000 interfaces the PHYs with the Media Independent Interface (MII)

PHY datasheet: DP83848I.pdf


[edit] MAC address

The Network gateway is assigned official MAC addresses with the base 00:04:25:1C:50:00 +

serial number*2 (WAN)
serial number*2 +1 (LAN)

[edit] Example

Serial Number is on a White Label on the bottom of board.

eg NGW01235

WAN = 00:04:25:1C:50:00 + 1235 * 2
WAN = 00:04:25:1C:50:00 + 2470
WAN = 00:04:25:1C:50:00 + 9A6
WAN = 00:04:25:1C:59:A6
LAN = 00:04:25:1C:59:A7

[edit] Editing the U-boot variables

Press <space> when U-boot loads, and at the U-boot prompt, type the following commands to set the variables and save them to the flash:

u-boot> setenv ethaddr XX:XX:XX:XX:XX:XX
u-boot> setenv eth1addr XX:XX:XX:XX:XX:XX
u-boot> saveenv
Personal tools