element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MicroZed Hardware Design Setting MAC ID
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 335 subscribers
  • Views 413 views
  • Users 0 members are here
Related

Setting MAC ID

Former Member
Former Member over 10 years ago

I have two microZeds and need them to have unique MAC addresses.  I've try to set the MAC address in UBOOT via "setenv ethaddr 00:0a:35:XX:YY:ZZ" but when Linux boots, it seems to still have the default address of 00:0a:35:00:01:22 and a reboot shows UBOOT is back to the default.  In UBOOT I do a "printenv ethaddr" and can see I changed the value.

I have a microZed FMC carrier, and found that in section 2.1.1 of the User Guide it says there is a MAC ID EEPROM, but the info there is too sparce for me to figure out how to use it and have Linux read it.

What I don't understand is that I would have thought this would be in the QSPI, and that changing it in UBOOT would update the QSPI, and that Linux would read it from the QSPI.  Does this mean I have a problem with the devicetree?

Can anyone provide guidance here?  Thanks!

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 10 years ago

    I found that I need to save the environment in uboot with "saveenv".  "saveenv" was not available though.  Comparing the microZed config with the zed config, I noticed that the microZed was missing "#define CONFIG_ZYNQ_QSPI".  So I added that, rebuilt UBoot, and now I can "saveenv". 

    So no UBOOT remembers my MAC address every reboot.  Unfortunately, Linux still uses the default address.  I have an ITX board, and a ZC706.  I tried the same procedure on those boards and Linux does use the updated UBOOT ethaddr.

    So why doesn't the microZed?  What's different?  What might I have configured wrong?  Thank.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    Looks like I just needed another reboot.  It now works.

    So, I consider there to be a bug in UBOOT for the microZed.  Specifically, I recommend the following change:

         u-boot-xlnx/include/configs/zynq_microzed.h

    add

         #define CONFIG_ZYNQ_QSPI

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    To further clarify, I built uboot from:

    https://github.com/Xilinx/u-boot-xlnx/

    So if I should be building it from somewhere else please let me know.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube