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.

Linux/AM5718: Same MAC address

Part Number: AM5718

Tool/software: Linux

Hi,

We have developed a custom board with AM5718 processor and we are using ti-processor-sdk-linux-am57xx-evm-02.00.01.07. we are getting the same MAC address for all the boards as HWaddr 74:DA:EA:0C:DC:A2. How to get the unique MAC Address for each device/board.

Thanks & Regards,

N.V.Subbaiah

  • Hi,

    Please post the markings on the AM5718 package. A photo would be great.
  • HI,

    The following details are there on three processors:

    1. SITARA

    XAM5718ABCXE

    64ZD0C9

    784  ABC   G1

    2. SITARA

    XAM5718ABCXE

    64ZD0E9

    784  ABC   G1

    3. SITARA

    XAM5718ABCXE

    64ZDZ99

    784  ABC   G1

    Thanks & Regards,

    N.V.Subbaiah.

  • Thanks. I will ask the factory team to comment. They will respond here. You should note that XAM marking means that this is an experimental device that is not necessarily representative of the final device's electrical specifications and may not use production assembly flow. This is described in section 9.1 of the AM571x Datasheet Rev. D.
  • Hi Biser,


    I am trying to read Ethernet MAC address stored in the processor for eth0 in the registers,
    CTRL_CORE_MAC_ID_SW_0(0x4A00 2514)
    CTRL_CORE_MAC_ID_SW_1(0x4A00 2518)
    The values are different for different cards, please see below:

    CARD1
    root@am57xx-evm:~# devmem2 0x4a002514
    /dev/mem opened.
    Memory mapped at address 0xb6f0e000.
    Read at address 0x4A002514 (0xb6f0e514): 0x003F83AA
    root@am57xx-evm:~# devmem2 0x4a002518
    /dev/mem opened.
    Memory mapped at address 0xb6ff9000.
    Read at address 0x4A002518 (0xb6ff9518): 0x005CF821
    root@am57xx-evm:~# ifconfig eth0
    eth0 Link encap:Ethernet HWaddr 74:DA:EA:0C:DC:A2
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:56

    CARD2:
    root@am57xx-evm:~# devmem2 0x4A002514
    /dev/mem opened.
    Memory mapped at address 0xb6f81000.
    Read at address 0x4A002514 (0xb6f81514): 0x00410686
    root@am57xx-evm:~# devmem2 0x4A002518
    /dev/mem opened.
    Memory mapped at address 0xb6f54000.
    Read at address 0x4A002518 (0xb6f54518): 0x005CF821
    root@am57xx-evm:~# ifconfig
    eth0 Link encap:Ethernet HWaddr 74:DA:EA:0C:DC:A2
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:57

    Please confirm whether 74:DA:EA:0C:DC:A2 is fixed anywhere in the software or did I read the wrong registers.
    Also we are waiting for factory team response on this.


    Thanks & Regards,

    N.V.Subbaiah.
  • The registers are correct. Do you see the same issue with the latest SDK?
  • Biser,

    We are using this ti-processor-sdk-linux-am57xx-evm-02.00.01.07, not tested with latest SDK. If you have any EVM please check you are also getting the same MAC address 74:DA:EA:0C:DC:A2.

    Thanks & Regards,

    N.V.Subbaiah.

  • I have notified the software team. They will respond here.
  • Biser,

    In environment variables, we are setting the MAC address below values:

    dofastboot=0
    eth1addr=74:da:ea:0c:dc:a3
    ethact=cpsw
    ethaddr=74:da:ea:0c:dc:a2
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000

    So, we are getting the MAC address 74:da:ea:0c:dc:a2. I deleted that environment variable and then a random MAC ID is generated each time.How to modify it so that real MAC address of the device is being reflected in user space.

    1st time:
    [ 1.741011] cpsw 48484000.ethernet: Missing slave[1] phy_id property
    [ 1.747823] cpsw 48484000.ethernet: Random MACID = 9a:8a:1a:eb:08:c9

    2nd time:
    [ 1.741011] cpsw 48484000.ethernet: Missing slave[1] phy_id property
    [ 1.747457] cpsw 48484000.ethernet: Random MACID = fe:43:48:21:67:5d


    Thanks & Regards,

    N.V.Subbaiah.