Hello @chenyin_h ,
Thank you for the log, it was certainly helpful.
Yes, I also have this issue with mii info resetting the board from my side. Actually it happens when I use the default configuration, but when I modify the device tree files, it doesn't happen.
From your ifconfig output:
pfe0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.192.209.48 netmask 255.255.255.0 broadcast 10.192.209.255
inet6 fe80::204:9fff:febe:ef00 prefixlen 64 scopeid 0x20<link>
ether 00:04:9f:be:ef:00 txqueuelen 1000 (Ethernet)
RX packets 7 bytes 1454 (1.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 2248 (2.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x46000000-46ffffff
- Can you confirm that the proper behavior of pfe0 when configured as SGMII is to have non-zero RX packets and TX packets even when no ethernet cable is connected?
I also found that this behavior:
[ 7.765177] sja1110 spi5.1: Could not get GPIO from device tree
[ 7.765196] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch
[ 7.766772] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2
[ 7.766785] sja1110 spi5.1: request_firmware failed with -2
[ 7.766790] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC
[ 7.766822] sja1110 spi5.0: Direct firmware load for sja1110_uc.bin failed with error -2
[ 7.766828] sja1110 spi5.0: request_firmware failed with -2
Is due to the position of the J189 jumpers. In the default configuration it just loads the default firmware. When both sides are in state short, then it successfully reads the firmware files from lib/firmware/ folder, as described here.

But another question is: How can I get the file sja1110_switch.bin?
Following the Ethernet Enablement Guide, I am able to reconfigure the SJA1110 switch, but it only explains how to generate the flash_image.bin file that corresponds to sja1110_uc.bin. How about the other configuration file? How is it generated?
Thank you again,
Best regards,
Guilherme