modified script

rc35 -- fix upload bandwidth issue if the stick is running in HiSGMII mode (LAN_SDS_MODE 4 o 5)
runlanshs.sh -- get the value of LAN_SDS_MODE from config xml
This commit is contained in:
stich86 2022-05-02 17:53:19 +02:00 committed by GitHub
parent 519488b8d7
commit 5a1a71cddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

15
Added Scripts/rc35 Normal file
View File

@ -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

View File

@ -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 &