This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Factory MAC addresses on Keystone II



We are using a Keystone II in a project and need to assign MAC addresses to it. I see that there is unique MAC address burned into the Keystone. But there appears to be only one.

We will be using two Ethernet ports in a system and they will be used by the same ARM core. How do I obtain MAC addresses for each? Does the MAC address burned into the part actually represent a range? Would it be valid to use the same MAC address for both (or all 4) ports (they are going through a switch in the chassis)?

Thanks

Lance

  • Hi Lance,
    MAC address of the port 0(eth0) is taken from SOC e-fuse. We have to set the mac address for rest of the ports however in Linux it assignes random mac address for each port when we do "ifconfig ethx up".

    Please refer below wiki for more information.
    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    Thank you.

  • Rajasekaran,

    Thank you for the quick response. I am familiar with the u-boot treatment of the MAC address. My question has to do with getting a MAC address to use each of the ports.

    To put the question in context, I was hoping to avoid the whole process of getting an OUI, and devising and implementing a scheme for creating MAC addresses from that. So, specifically, I have two questions:

    1. Does the SOC e-fuse MAC address represent a range of addresses (maybe 4?), so that I could, for example, use it for MAC1, then add 1 for MAC2, etc?

    2. Would using the same MAC address for all ports be valid? (It worked when I tried it, but I don't know if this is proper usage.)

    Thanks,

    Lance
  • Hi Lance,
    As you said it would be valid only but always we recommend to maintain different MAC address for EMAC ports so that we can identify the which EMAC it is.


    1. Does the SOC e-fuse MAC address represent a range of addresses (maybe 4?), so that I could, for example, use it for MAC1, then add 1 for MAC2, etc?


    MAC address would have 6 sets of addresses, say e.g, : 00:01:02:03:04:05
  • Titus,

    I may not have been clear in my question:

    1. Does the SOC e-fuse MAC address represent a range of addresses (maybe 4?), so that I could, for example, use it for MAC1, then add 1 for MAC2, etc?

    Your answer was: "MAC address would have 6 sets of addresses, say e.g, : 00:01:02:03:04:05"

    What I was asking is whether the MAC address in the efuse array (00:01:02:03:04:05 in your example), is actually the first of four addresses that could be used (00:01:02:03:04:05, 00:01:02:03:04:06, ...). That is, are 4 MAC addresses allocated to the device? If not, then the efuse MAC does not solve the problem of obtaining unique MAC addresses for all 4 ports.


    Thanks,

    Lance

  • Hi Lance,
    1. Does the SOC e-fuse MAC address represent a range of addresses (maybe 4?), so that I could, for example, use it for MAC1, then add 1 for MAC2, etc?
    No. Its not a range. By default, keystone devices holds only one unique MAC. Please refer section Security Accelerator of data manual for more information.

    2. Would using the same MAC address for all ports be valid? (It worked when I tried it, but I don't know if this is proper usage.)

    I think, that is depends on application. Please refer below thread,
    e2e.ti.com/.../191261