Author Topic: TE0726-3M eth0 mac address is not persistent (zynqberry)  (Read 278 times)

hchenji

  • Active Member
  • *
  • Posts: 2
TE0726-3M eth0 mac address is not persistent (zynqberry)
« on: December 07, 2020, 08:05:41 PM »
Using 2019.2 release of test_board reference design. eth0 mac address keeps on changing every time I reboot the board. What should I do to make it stick? I tried setting ethaddr in u-boot, but no luck.

hchenji

  • Active Member
  • *
  • Posts: 2
Re: TE0726-3M eth0 mac address is not persistent (zynqberry)
« Reply #1 on: December 09, 2020, 12:22:16 AM »
Figured it out, you can just program the EEPROM like this. It was returning all 0xff until I programmed it.


ethtool -E eth0 magic 0x9500 offset 1 length 1 value 0x92 
ethtool -E eth0 magic 0x9500 offset 2 length 1 value 0x8c
ethtool -E eth0 magic 0x9500 offset 3 length 1 value 0x96
ethtool -E eth0 magic 0x9500 offset 4 length 1 value 0x79
ethtool -E eth0 magic 0x9500 offset 5 length 1 value 0x43
ethtool -E eth0 magic 0x9500 offset 6 length 1 value 0x7A

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1605
Re: TE0726-3M eth0 mac address is not persistent (zynqberry)
« Reply #2 on: January 06, 2021, 08:32:46 AM »
Hi,
we didn't set mac address on zynqberry default.
thanks for this notes with the procedure.
br
John