In this demo, we will demo how to use the fixed link feature in the macb linux driver on the ZCU102 Rev1.0. To demo this, the GEM2 is routed to the GEM3 via the PL. The iptables utility is used here for testing purposes only and are prepended with Opt.

Table of Contents


Build Hardware


Launch Vivado 2017.2, create a new project targeting the ZCU102 board.

Use the Block Automation in IPI, make slight PS changes:




Connect as shown below:

Generate Output Products, Create HDL wrapper, write_bitstream and export to SDK (include bitstream).

Build Linux Image


Here, Petalinux 2017.2 is used. See the link here for more info on the Petalinux commands:
&gem2 {
        phy-mode = "moca";
        fixed-link {
                speed = <1000>;
                full-duplex;
         };
};
&gem3 {
        phy-mode = "moca";
        fixed-link {
                speed = <1000>;
                full-duplex;
         };
};




Testing on Hardware


Place the following files onto the SD card and boot:

Place the commands below into a commands.sh file:

Note: If the file was created on a windows OS, make sure that this is converted to Unix. For example dos2unix

Make sure each MAC address is unique. To verify, do a ipconfig -a


User can set the MAC address with the command below:

Since we have the system added in a loop, we can use the NAT to set up the LAN and test. This is optional.


To test follow the tests below: