Does anybody know how to work with MT7531BE switch in the OpenWRT? The Kernel has a driver and it logs messages of switch working (List 1 – plugging/unplugging cable, List 2 – kernel loading).
@sinovoip, @rainfall83, could you explain what are openwrt packages have to be installed?
List 1
[ 169.295088] mt753x gsw@0: Port 0 Link is Up - 100Mbps/Full
[ 170.838622] mt753x gsw@0: Port 0 Link is Down
[ 173.497715] mt753x gsw@0: Port 1 Link is Up - 100Mbps/Full
[ 176.666734] mt753x gsw@0: Port 1 Link is Down
[ 179.725273] mt753x gsw@0: Port 2 Link is Up - 100Mbps/Full
[ 180.950672] mt753x gsw@0: Port 2 Link is Down
[ 182.703661] mt753x gsw@0: Port 3 Link is Up - 100Mbps/Full
[ 184.069169] mt753x gsw@0: Port 3 Link is Down
[ 185.853478] mt753x gsw@0: Port 4 Link is Up - 100Mbps/Full
[ 187.766002] mt753x gsw@0: Port 4 Link is Down
[ 190.881768] mt753x gsw@0: Port 0 Link is Up - 100Mbps/Full
List 2
[ 3.988773] mt753x gsw@0: LAN/WAN VLAN setting=wllll
[ 3.994369] mt753x gsw@0: Switch is MediaTek MT7531BE rev 0
[ 6.709694] mt753x gsw@0: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> START CALIBRATION:
[ 6.718802] mt753x gsw@0: -------- gephy-calbration (port:0) --------
[ 6.742196] CALDLY = 40
[ 7.091919] GE Rext AnaCal Saturation!
[ 7.096136] GE Rxet cal something wrong2
[ 7.390010] GE R50 AnaCal Saturation!
[ 7.394139] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 7.680008] GE R50 AnaCal Saturation!
[ 7.684137] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 7.970049] GE R50 AnaCal Saturation!
[ 7.974178] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 8.259989] GE R50 AnaCal Saturation!
[ 8.264117] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 8.274425] GE 1e_174(0x8080), 1e_175(0x8080)
[ 8.346764] GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
[ 8.394963] GE Tx offset AnaCal Done! (pair-1)(3)(0x22) 0x1e_172=0x2222
[ 8.443135] GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
[ 8.499589] GE Tx offset AnaCal Done! (pair-3)(4)(0x23) 0x1e_173=0x2223
[ 8.619692] GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x5014)
[ 8.715098] GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1212)
[ 8.806509] GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1b23)
[ 8.928767] GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0xf17)
[ 9.025385] PORT 0 RX_DC_OFFSET
[ 9.045906] before pairA output = 1d
[ 9.052775] after pairA output = ff
[ 9.059466] before pairB output = 1e
[ 9.066329] after pairB output = ff
[ 9.073030] before pairC output = f
[ 9.079779] after pairC output = 0
[ 9.086382] before pairD output = f
[ 9.093166] after pairD output = 1
[ 9.097134] mt753x gsw@0: -------- gephy-calbration (port:1) --------
[ 9.120541] CALDLY = 40
[ 9.404889] GE R50 AnaCal Saturation!
[ 9.409026] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 9.694888] GE R50 AnaCal Saturation!
[ 9.699026] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 9.984870] GE R50 AnaCal Saturation!
[ 9.989007] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 10.274857] GE R50 AnaCal Saturation!
[ 10.278993] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 10.289290] GE 1e_174(0x8080), 1e_175(0x8080)
[ 10.394655] GE Tx offset AnaCal Done! (pair-0)(7)(0x26) 0x1e_172=0x2620
[ 10.426311] GE Tx offset AnaCal Done! (pair-1)(1)(0x1) 0x1e_172=0x2601
[ 10.457876] GE Tx offset AnaCal Done! (pair-2)(1)(0x1) 0x1e_173=0x120
[ 10.489358] GE Tx offset AnaCal Done! (pair-3)(1)(0x1) 0x1e_173=0x101
[ 10.660690] GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x4010)
[ 10.766338] GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1212)
[ 10.847468] GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1b23)
[ 10.897748] GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1820)
[ 10.994480] PORT 1 RX_DC_OFFSET
[ 11.015016] before pairA output = f
[ 11.021791] after pairA output = 1
[ 11.028396] before pairB output = f
[ 11.035176] after pairB output = 0
[ 11.041784] before pairC output = 1e
[ 11.048645] after pairC output = fe
[ 11.055344] before pairD output = 1e
[ 11.062213] after pairD output = 0
[ 11.066182] mt753x gsw@0: -------- gephy-calbration (port:2) --------
[ 11.089577] CALDLY = 40
[ 11.373784] GE R50 AnaCal Saturation!
[ 11.377914] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 11.663751] GE R50 AnaCal Saturation!
[ 11.667880] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 11.953733] GE R50 AnaCal Saturation!
[ 11.957862] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 12.243778] GE R50 AnaCal Saturation!
[ 12.247906] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 12.258212] GE 1e_174(0x8080), 1e_175(0x8080)
[ 12.330545] GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
[ 12.395255] GE Tx offset AnaCal Done! (pair-1)(5)(0x24) 0x1e_172=0x2224
[ 12.426889] GE Tx offset AnaCal Done! (pair-2)(1)(0x1) 0x1e_173=0x120
[ 12.458374] GE Tx offset AnaCal Done! (pair-3)(1)(0x1) 0x1e_173=0x101
[ 12.578337] GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x681a)
[ 12.704593] GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1f1f)
[ 12.785725] GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x141c)
[ 12.907980] GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1f27)
[ 13.004738] PORT 2 RX_DC_OFFSET
[ 13.025278] before pairA output = 1e
[ 13.032150] after pairA output = ff
[ 13.038847] before pairB output = e
[ 13.045622] after pairB output = 1
[ 13.052234] before pairC output = 1e
[ 13.059099] after pairC output = ff
[ 13.065792] before pairD output = f
[ 13.072575] after pairD output = 0
[ 13.076544] mt753x gsw@0: -------- gephy-calbration (port:3) --------
[ 13.099941] CALDLY = 40
[ 13.384266] GE R50 AnaCal Saturation!
[ 13.388395] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 13.674261] GE R50 AnaCal Saturation!
[ 13.678389] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 13.964260] GE R50 AnaCal Saturation!
[ 13.968387] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 14.254197] GE R50 AnaCal Saturation!
[ 14.258326] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 14.268634] GE 1e_174(0x8080), 1e_175(0x8080)
[ 14.340928] GE Tx offset AnaCal Done! (pair-0)(3)(0x3) 0x1e_172=0x320
[ 14.372419] GE Tx offset AnaCal Done! (pair-1)(1)(0x20) 0x1e_172=0x320
[ 14.420498] GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
[ 14.452155] GE Tx offset AnaCal Done! (pair-3)(1)(0x1) 0x1e_173=0x2201
[ 14.644125] GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x3c0f)
[ 14.749830] GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1212)
[ 14.810391] GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x161e)
[ 14.901708] GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1d25)
[ 14.998400] PORT 3 RX_DC_OFFSET
[ 15.018904] before pairA output = d
[ 15.025676] after pairA output = 0
[ 15.032287] before pairB output = f
[ 15.039068] after pairB output = ff
[ 15.045759] before pairC output = f
[ 15.052540] after pairC output = 0
[ 15.059144] before pairD output = 1e
[ 15.066008] after pairD output = ff
[ 15.070074] mt753x gsw@0: -------- gephy-calbration (port:4) --------
[ 15.093460] CALDLY = 40
[ 15.377648] GE R50 AnaCal Saturation!
[ 15.381787] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 15.667726] GE R50 AnaCal Saturation!
[ 15.671863] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 15.957667] GE R50 AnaCal Saturation!
[ 15.961806] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 16.247639] GE R50 AnaCal Saturation!
[ 16.251776] GE R50 AnaCal Done! (32) (0x0)(0x80)
[ 16.262055] GE 1e_174(0x8080), 1e_175(0x8080)
[ 16.342611] GE Tx offset AnaCal Done! (pair-0)(4)(0x4) 0x1e_172=0x420
[ 16.398842] GE Tx offset AnaCal Done! (pair-1)(4)(0x23) 0x1e_172=0x423
[ 16.446920] GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
[ 16.503367] GE Tx offset AnaCal Done! (pair-3)(4)(0x23) 0x1e_173=0x2223
[ 16.644024] GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x5014)
[ 16.770267] GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0xf0f)
[ 16.953970] GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0xa12)
[ 17.086367] GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0xf17)
[ 17.182980] PORT 4 RX_DC_OFFSET
[ 17.203506] before pairA output = e
[ 17.210279] after pairA output = 1
[ 17.216883] before pairB output = 1e
[ 17.223754] after pairB output = ff
[ 17.230449] before pairC output = 1e
[ 17.237308] after pairC output = fe
[ 17.244012] before pairD output = f
[ 17.250788] after pairD output = 1