Ls1046a configuration mac address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Ls1046a configuration mac address

4,117 次查看
hongyuanz
Contributor IV

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

0 项奖励
回复
4 回复数

4,105 次查看
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,099 次查看
hongyuanz
Contributor IV

I2C EEPROM

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

0 项奖励
回复

4,080 次查看
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,094 次查看
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 项奖励
回复