This is the hardware profile my script for the other device extracted for the F1100WP:
static hwp_swDescp_t rtl9303_4xge_4x8261be_swDescp = {
.chip_id = 0x93036810,
.swcore_supported = TRUE,
.swcore_access_method = HWP_SW_ACC_MEM /* 0x1 */,
.swcore_spi_chip_select = HWP_NOT_USED /* 0xff */,
.nic_supported = TRUE,
.port.descp = {
{ .mac_id = 0, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_SERDES /* 0x8 */, .sds_idx = 0, .phy_idx = HWP_NONE /* 0xff */, .smi = HWP_NONE /* 0xff */, .phy_addr = HWP_NONE /* 0xff */, .led_c = 0, .led_f = 0, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 8, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_SERDES /* 0x8 */, .sds_idx = 1, .phy_idx = HWP_NONE /* 0xff */, .smi = HWP_NONE /* 0xff */, .phy_addr = HWP_NONE /* 0xff */, .led_c = 0, .led_f = 0, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 16, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_SERDES /* 0x8 */, .sds_idx = 2, .phy_idx = HWP_NONE /* 0xff */, .smi = HWP_NONE /* 0xff */, .phy_addr = HWP_NONE /* 0xff */, .led_c = 0, .led_f = 0, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 20, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_SERDES /* 0x8 */, .sds_idx = 3, .phy_idx = HWP_NONE /* 0xff */, .smi = HWP_NONE /* 0xff */, .phy_addr = HWP_NONE /* 0xff */, .led_c = 0, .led_f = 0, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 24, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_COPPER /* 0x1 */, .sds_idx = 4, .phy_idx = 0, .smi = 2, .phy_addr = 0, .led_c = 0, .led_f = HWP_NONE /* 0xff */, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 25, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_COPPER /* 0x1 */, .sds_idx = 5, .phy_idx = 1, .smi = 3, .phy_addr = 16, .led_c = 0, .led_f = HWP_NONE /* 0xff */, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 26, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_COPPER /* 0x1 */, .sds_idx = 6, .phy_idx = 2, .smi = 0, .phy_addr = 16, .led_c = 0, .led_f = HWP_NONE /* 0xff */, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 27, .attr = HWP_ETH /* 0x1 */, .eth = HWP_XGE /* 0x10 */, .medi = HWP_COPPER /* 0x1 */, .sds_idx = 7, .phy_idx = 3, .smi = 1, .phy_addr = 0, .led_c = 0, .led_f = HWP_NONE /* 0xff */, .led_layout = SINGLE_SET /* 0x0 */, .phy_mdi_pin_swap = 0, },
{ .mac_id = 28, .attr = HWP_CPU /* 0x8 */, .eth = HWP_NONE /* 0xff */, .medi = HWP_NONE /* 0xff */, .sds_idx = HWP_NONE /* 0xff */, .phy_idx = HWP_NONE /* 0xff */, .smi = HWP_NONE /* 0xff */, .phy_addr = HWP_NONE /* 0xff */, .led_c = HWP_NONE /* 0xff */, .led_f = HWP_NONE /* 0xff */, .led_layout = HWP_NONE /* 0xff */, .phy_mdi_pin_swap = 0, },
{ .mac_id = HWP_END },
}, /* port.descp */
.led.descp = {
.led_active = LED_ACTIVE_LOW /* 0x1 */,
.led_if_sel = LED_IF_SEL_SERIAL /* 0x1 */,
.led_definition_set[0].led[0] = 0xBA0,
.led_definition_set[0].led[1] = 0xA01,
.led_definition_set[0].led[2] = HWP_LED_END /* 0xffffffff */,
}, /* led.descp */
.serdes.descp = {
[0] = { .sds_id = 2, .mode = RTK_MII_10GR /* 0x2 */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[1] = { .sds_id = 3, .mode = RTK_MII_10GR /* 0x2 */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[2] = { .sds_id = 4, .mode = RTK_MII_10GR /* 0x2 */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[3] = { .sds_id = 5, .mode = RTK_MII_10GR /* 0x2 */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[4] = { .sds_id = 6, .mode = RTK_MII_USXGMII_10GSXGMII /* 0x1c */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[5] = { .sds_id = 7, .mode = RTK_MII_USXGMII_10GSXGMII /* 0x1c */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[6] = { .sds_id = 8, .mode = RTK_MII_USXGMII_10GSXGMII /* 0x1c */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[7] = { .sds_id = 9, .mode = RTK_MII_USXGMII_10GSXGMII /* 0x1c */, .rx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */, .tx_polarity = SERDES_POLARITY_NORMAL /* 0x0 */ },
[8] = { .sds_id = HWP_END },
}, /* serdes.descp */
.phy.descp = {
[0] = { .chip = RTK_PHYTYPE_RTL8224 /* 0x20 */, .mac_id = 24, .phy_max = 1 },
[1] = { .chip = RTK_PHYTYPE_RTL8224 /* 0x20 */, .mac_id = 25, .phy_max = 1 },
[2] = { .chip = RTK_PHYTYPE_RTL8224 /* 0x20 */, .mac_id = 26, .phy_max = 1 },
[3] = { .chip = RTK_PHYTYPE_RTL8224 /* 0x20 */, .mac_id = 27, .phy_max = 1 },
[4] = { .chip = HWP_END },
}, /* .phy.descp */
};
static hwp_hwProfile_t rtl9303_4xge_4x8261be = {
.identifier.name = "RTL9303_4XGE_4X8261BE",
.identifier.id = HWP_RTL9303_8x2_5G /* 0x8de83a */,
.soc.swDescp_index = 0,
.soc.slaveInterruptPin = HWP_NONE /* 0xff */,
.sw_count = 1,
.swDescp = {
[0] = &rtl9303_4xge_4x8261be_swDescp,
}
};
The phy stuff seems wrong, as it sounds more plausible the 4 copper ports are just 4 RTL8261.
If you see the same problem of the switch resetting after sitting at the uboot prompt for about 2-3 minutes you likely also have this hasivo watchdog chip thing.