cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
371 Views
Registered: ‎04-03-2018

Xilinx net interface naming help

I am using zcu102 and 2018.1 . We have design with 1G PS (eth0) and 4 10G PL interfaces (eth1-eth4). Problem I am having is that the 2 middle 10G interfaces are swapped w/r to order from the device tree (i.e. sequentially w/r starting address) or checking assigment in /sys/devices/platform/abma_pl.../net. 

 

What is the correct way to map the interface name to device tree entry.  I have read about MAC strapping but not sure if this is the right way.

 

Thanks

 

 

0 Kudos
1 Reply
Highlighted
Visitor
Visitor
311 Views
Registered: ‎03-29-2018

Re: Xilinx net interface naming help

On top of <project_dir>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi add

 

/include/ "system-conf.dtsi"
/ {

	aliases {
		ethernet0 = &gem0;
		ethernet1 = &<name_of_10G_node>_0;
		ethernet2 = &<name_of_10G_node>_1;
		ethernet3 = &<name_of_10G_node>_2;
                ethernet4 = &<name_of_10G_node>_3;
	};

};

... rest of your custom device-tree defintion goes here

Cheers.

0 Kudos