diff --git a/Added Scripts/rc35 b/Added Scripts/rc35 new file mode 100644 index 0000000..d5bbe06 --- /dev/null +++ b/Added Scripts/rc35 @@ -0,0 +1,15 @@ +echo 'Turn on phy power...' +bin/diag port set phy-force-power-down port all state disable +/bin/echo 2048 > /proc/sys/vm/min_free_kbytes +lan_sds_mode=`flash get LAN_SDS_MODE | sed 's/LAN_SDS_MODE=//g'` + +if [ $lan_sds_mode == "4" ]; then + echo 'Fix upload issue for HiSGMII...' + /bin/diag bandwidth set egress port all rate 4194296 + /bin/diag bandwidth set ingress port all rate 4194296 +fi +if [ $lan_sds_mode == "5" ]; then + echo 'Fix upload issue for HiSGMII...' + /bin/diag bandwidth set egress port all rate 4194296 + /bin/diag bandwidth set ingress port all rate 4194296 +fi diff --git a/Added Scripts/runlansds.sh b/Added Scripts/runlansds.sh new file mode 100644 index 0000000..d17294e --- /dev/null +++ b/Added Scripts/runlansds.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +lan_sds_mode=`flash get LAN_SDS_MODE | sed 's/LAN_SDS_MODE=//g'` +echo $lan_sds_mode > proc/lan_sds/lan_sds_cfg +echo 1 > proc/lan_sds/sfp_app +sfpapp &