HMX Automotive Ethernet Setup Guide⚓︎
This document explains how to configure and use the automotive ethernet ports (eth2 / eth3) between two HMX units.
In practice, you should be able to replicate the steps that suit your desired setup by replacing HMX B with another system. Keep in mind that the speed and master/slave roles must be compatible in order to establish a connection, so if one of the endpoints is fixed (e.g. the one that replaces HMX B), the other one (HMX A) must be adapted.
This guide covers:
- 100BASE-T1 (100 Mbit) and 1000BASE-T1 (1 Gbit) speed selection
- Master (CMD) / Slave (RSP) configurations
- IP configuration
- Throughput testing using iperf3
Both systems must use compatible T1 PHYs.
1. Physical Topology⚓︎
HMX A (eth2/eth3) <---- T1 cable ----> HMX B (eth2/eth3)
Requirements:
- Yocto Scarthgap with Linux 6.6 or later
- Both systems must be configured to use the same speed (100BASE-T1 or 1000BASE-T1)
- Cable properly connected
- One side must be Master (CMD), the other Slave (RSP)
2. Verify Link Capability⚓︎
Either port eth2/eth3 is fine but in this guide eth2 will be used.
Run on both systems:
You should see:
- Supported link modes: 100baseT1/Full and 1000baseT1/Full
- Link detected: yes (when connected)
3. Configure Master / Slave Roles⚓︎
Configuration 1⚓︎
HMX A = Master
HMX B = Slave
On HMX A⚓︎
On HMX B⚓︎
Verify:
Expected:
- master-slave status: master (on HMX A)
- master-slave status: slave (on HMX B)
- Link detected: yes
Configuration 2⚓︎
HMX A = Slave
HMX B = Master
On HMX A⚓︎
On HMX B⚓︎
Verify:
Expected:
- master-slave status: slave (on HMX A)
- master-slave status: master (on HMX B)
- Link detected: yes
4. Set Link Speed⚓︎
For 1000BASE-T1 (1 Gbit) speed⚓︎
On both systems:
For 100BASE-T1 (100 Mbit) speed⚓︎
On both systems:
Verify:
Expected:
Speed: 1000Mb/s
or
Speed: 100Mb/s
5. Configure IP Addresses⚓︎
Choose a subnet (example 192.168.10.0/24).
On HMX A⚓︎
On HMX B⚓︎
Verify:
You should see:
192.168.10.0/24 dev eth2 scope link
6. Test Connectivity⚓︎
From HMX A:
From HMX B :
7. Throughput Testing (iperf3)⚓︎
On HMX B (Server)⚓︎
On HMX A (Client)⚓︎
Expected throughput:
- \~900--940 Mbit/s at 1000BASE-T1
- \~90--95 Mbit/s at 100BASE-T1
8. Quick Troubleshooting⚓︎
If link is down:
- Ensure speed selection is the same on both ends
- Ensure one side is master and the other slave
- Reconnect cable
- Verify with:
If ping fails:
- Verify IP addresses are in same subnet
- Check firewall rules
- Verify route with:
If HMX fails to switch Speed or Slave/Master roles:
- Bring down the interface and bring it back up