Ls1046a configuration mac address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ls1046a configuration mac address

1,520 Views
hongyuanz
Contributor IV

 There are several ways to configure the MAC address ..?

0 Kudos
Reply
4 Replies

1,508 Views
Chavira
NXP TechSupport
NXP TechSupport

Thank you for contacting NXP support!

I attached for you 2 logs for mac configuration.

Inside the log called "unconfigured mac" you can see what happens when you can boot a board on LS1043 with an unconfigured MAC and how dissapear the ethernet port on tiny linux.

And then you have another log called "configured mac" inside that log, you can see how to set a mac address on U-Boot and how to corroborate under tiny Linux with ping and ifconfig.

1,502 Views
hongyuanz
Contributor IV

I2C EEPROM

What needs to be modified to configure the MAC address..?

0 Kudos
Reply

1,483 Views
stadium_aquino
Contributor IV

You can do something like

&i2c0 {
	eeprom@54 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "atmel,24c02";
		reg = <0x54>;
		size = <256>;
		pagesize = <4>;

		eth3_address: addr@32 {
			reg = <32 6>;
		};
};

and then later on

&fman0 {
	enet3: ethernet@e4000 {
		nvmem-cells = <&eth3_address>;
		nvmem-cell-names = "mac-address";
	};
};

 You will need to enable CONFIG_NVMEM in Linux and U-Boot for this to work.

1,497 Views
Chavira
NXP TechSupport
NXP TechSupport

Is not possible to boot from the i2c eeprom but, I think it is possible to save those configurations on the i2c eeprom and take the values and put that values on U-Boot.

If you want to do that, download the components of U-Boot and then you can program after the boot sequence the reading of the i2c eeprom and configure the mac address and then compile the U-Boot and run the bootloader on your Layerscape

0 Kudos
Reply