Hi, TI expert!
I have a development environment for am6234, with our own evaluation board.
The software SDK version is PROCESSOR-SDK-LINUX-RT-AM62X-08.06.00.42.
Refer to the post in the link below. If we want to perform an Ethernet MAC loopback test on am62x in Linux using the shell script in the referenced link, how should we modify the MAC register address in the shell script?
#!/bin/bash
my_ip_addr=192.168.1.46
server_ip_addr=192.168.1.100
# this mac addr is for TDA4/DRA8 devices,
# for am62x devices, what value it should be set to ??
mac_addr=0x0C023330
IF_NAME=eth2
echo "======= $IF_NAME stats ======="
ethtool -S $IF_NAME | grep good
echo "**************************"
echo "Setting CPSW in Loopback"
echo "**************************"
var=$(( 16#$(devmem2 $mac_addr | tail -n1 -c9) ))
devmem2 $mac_addr w `expr $var + 2`
devmem2 $mac_addr
echo ""
echo "Running Ping ..."
ping -c 5 $server_ip_addr
echo ""
echo "======= $IF_NAME stats ======="
ethtool -S $IF_NAME | grep good
echo "**************************"
echo "Removing CPSW Loopback"
echo "**************************"
devmem2 $mac_addr w $var
Regards,
Li