-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi I took this unmanaged switch for a while and on open I notice it's the reference RTL design RTL8373 + RTL8224 + 10g SFP.
I dumped the SPI and it's a 1MB NOR.
I flashed the firmware compiled from this repository and to my surprise it does more or less work. I have UART output and the port from 8373 are actually bridged. What I can notice is that 8224 seems to be not correctly configured and the SFP port isa detected but from stat i have "NO SFP".
I assume this is a problem with GPIO configuration.
I added the log for reference.
Detecting CPU: RTL8373
Starting up...
Flash controller
NIC reset
rtl8373_init called
CPU revision: 6868
phy_config_8224 called
R02f8-00000bff R02f4-00000bed
phy_config_8224 done
RTL837X_REG_SDS_MODES: 0x00000bff
RTL837X_REG_SDS_MODES: 0x00000bff
sds_config sds: 00, mode: 0d
RTL837X_REG_SDS_MODES: 0x00000bed
Trying to set SDS mode to 0x0d
rtl8224_phy_enable called
R02f8-00000003 R02f4-0000000c
rtl8224_phy_enable done
rtl8373_init done
vlan_setup called
vlan_setup done
port_l2_setup called
port_l2_forget called
port_l2_forget done
port_l2_setup done
uip_arp_init called
A minimal prompt to explore the RTL8372:
Clock register: 0x00001101
Register 0x7b20/RTL837X_REG_SDS_MODES: 0x00000bed
Verifying PHY settings:
Port State Link TxGood TxBad RxGood RxBad
1 On Down 0x00000000 0x00000000 0x00000000 0x00000000
2 On Down 0x00000000 0x00000000 0x00000000 0x00000000
3 On Down 0x00000000 0x00000000 0x00000000 0x00000000
4 On Down 0x00000000 0x00000000 0x00000000 0x00000000
5 On Down 0x00000000 0x00000000 0x00000000 0x00000000
6 On Down 0x00000000 0x00000000 0x00000000 0x00000000
7 On Down 0x00000000 0x00000000 0x00000000 0x00000000
8 On Down 0x00000000 0x00000000 0x00000000 0x00000000
9 NO SFP 2500G 0x00000000 0x00000000 0x00000000 0x00000000
>
<SFP-RX OK>
> stat
Port State Link TxGood TxBad RxGood RxBad
1 On Down 0x00000000 0x00000000 0x00000000 0x00000000
2 On Down 0x00000000 0x00000000 0x00000000 0x00000000
3 On Down 0x00000000 0x00000000 0x00000000 0x00000000
4 On Down 0x00000000 0x00000000 0x00000000 0x00000000
5 On 1000M 0x00000068 0x00000000 0x00000000 0x00000000
6 On Down 0x00000000 0x00000000 0x00000000 0x00000000
7 On Down 0x00000000 0x00000000 0x00000000 0x00000000
8 On Down 0x00000000 0x00000000 0x00000000 0x00000000
9 NO SFP 2500G 0x00000000 0x00000000 0x00000000 0x00000000
Also I'm attaching the original firmware. I will further research and inspect the source.
Would be interesting to inspect the structure of the original firmware.
Also honestly I think we need a slimmed down version that reduce the size for platform that have only 1MB flash.