Ls1046a configuration mac address

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Ls1046a configuration mac address

4,261件の閲覧回数
hongyuanz
Contributor IV

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

0 件の賞賛
返信
4 返答(返信)

4,249件の閲覧回数
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.

4,243件の閲覧回数
hongyuanz
Contributor IV

I2C EEPROM

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

0 件の賞賛
返信

4,224件の閲覧回数
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.

4,238件の閲覧回数
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 件の賞賛
返信