EVM : AM335x Start Kit
SDK : ti-sdk-am335x-evm-05.05.01.00
filesystem : base-rootfs-am335x-evm.tar.gz
About eth0 MAC address , i found can setting in u-boot env : ethaddr and pass to linux
About eth1 MAC address , where can setting on linux?
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.
EVM : AM335x Start Kit
SDK : ti-sdk-am335x-evm-05.05.01.00
filesystem : base-rootfs-am335x-evm.tar.gz
About eth0 MAC address , i found can setting in u-boot env : ethaddr and pass to linux
About eth1 MAC address , where can setting on linux?
The TI evms in Linux read the MAC addresses from the part and set accordingly. If you have the starter kit evm you should be to see both interfaces with the "ifconfig -a" command.
Schuyler , thanks your reply.
I try to trace the kernel , found board-am335xevm.c will read the eeprom data to am335x_mac_addr[] , but this data is ff:ff:ff:ff:ff:ff .
On cpsw_probe() , i can see get mac_addr is 0:18:31:e7:cf:18 and 0:18:31:e7:cf:19
For the production , we need write MAC address to every product.
I can't understand where is MAC address store and how to change MAC address on linux .
Each AM335x part has two MAC addresses set at time of the production.
In the linux source included in the SDK is a file called devices.c located here in the sdk
ti-sdk-am335x-evm-05.06.00.00/board-support/linux-3.2.0-psp05.06.00.00/arch/arm/mach-omap2/devices.c
is a function called am33xx_cpsw_init,in this function it will read a MAC address from the internal registers. If the address is not valid then it will attempt to read from a eeprom. This file was written for a TI evm. The customer is free to either use the mac address supplied with the part or assign their based on whenever they would like to store the address. They will have to modify the code in the function mentioned if they plan to do that.
In the TRM located here
http://www.ti.com/lit/ug/spruh73g/spruh73g.pdf
Around page 787 is the start of the desription of the MAC addresses stored in the part.