V125-260722:(暂时发现DPD/FSSI/网页频谱显示都不正常,临时提交)1.合并增加 Web 端 FPGA .mcs 在线升级功能,支持升级进度及错误状态反馈。2.合并优化 FPGA 升级后的恢复流程,实现无需断电的 FPGA 配置、JESD 链路及 RF 热恢复。3.合并重构 ORx 功率、FSSI 和 FWD 计算;4.合并DPD相关优化和调试日志;5.合并IQ 频谱数据接收由 eth1 调整至 eth0,降低对外部网口连接状态的依赖。
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
hw_ser_num_0=`cat /sys/fsl_otp/HW_OCOTP_CFG0|grep 0x`
|
||||
hw_ser_num_1=`cat /sys/fsl_otp/HW_OCOTP_CFG1|grep 0x`
|
||||
|
||||
dec2hex(){
|
||||
printf "0x%x" $1
|
||||
}
|
||||
xor_num=$(($hw_ser_num_0^$hw_ser_num_1))
|
||||
hex_xor=$(dec2hex $xor_num)
|
||||
#echo $hex_xor
|
||||
|
||||
mac0=94:40:a2:${hex_xor:2:2}:${hex_xor:6:2}:${hw_ser_num_1:8:2}
|
||||
mac1=94:40:a2:${hex_xor:4:2}:${hex_xor:8:2}:${hw_ser_num_1:2:2}
|
||||
echo $mac0
|
||||
echo $mac1
|
||||
ifconfig eth0 hw ether $mac0
|
||||
ifconfig eth1 hw ether $mac1
|
||||
Reference in New Issue
Block a user