Documentation:NGW/NGW100 Ethernet PHY
From AVRFreaks Wiki
Connection and usage of the two Ethernet physical (PHY) chips are summarized in the table below.
| AP7000 peripheral | NGW schematic | PHY ID | Linux usage |
|---|---|---|---|
| MACB0 | ETH_0 | 00001 (01h) | WAN |
| MACB1 | ETH_1 | 00011 (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
