aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/base-files/etc
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2021-09-18 16:41:41 +0200
committerChristian Lamparter <chunkeey@gmail.com>2021-09-23 20:50:58 +0200
commit608baf44c60cd3614a9bd502b7742919725a4c43 (patch)
tree766da4fb889c7eebbfb150cb336a5206725f02a6 /target/linux/bcm53xx/base-files/etc
parentfd67908647390b916470501c88b4f5258123da95 (diff)
downloadupstream-608baf44c60cd3614a9bd502b7742919725a4c43.tar.gz
upstream-608baf44c60cd3614a9bd502b7742919725a4c43.tar.bz2
upstream-608baf44c60cd3614a9bd502b7742919725a4c43.zip
bcm53xx: MR32: read mac-address from eeprom
Meraki wrote the ethernet MAC-address of the device onto the eeprom (AT24C64) at the fixed location 0x66 to 0x6C. Let's fetch it from there. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/bcm53xx/base-files/etc')
-rw-r--r--target/linux/bcm53xx/base-files/etc/board.d/02_network4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network
index 1daaa6ba00..e02286027f 100644
--- a/target/linux/bcm53xx/base-files/etc/board.d/02_network
+++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network
@@ -94,10 +94,6 @@ bcm53xx_setup_macs()
# As vendor doesn't use eth0 its MAC may be missing. Use one from eth2.
et2macaddr="$(nvram get et2macaddr)"
;;
- meraki,mr32)
- # The MAC is stored on an AT24C64 eeprom and not on the nvram
- et2macaddr=$(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66)
- ;;
esac
[ -n "$et2macaddr" ] && ucidef_set_interface_macaddr "lan" "$et2macaddr"