Skip to content
Snippets Groups Projects
S99KM3NeT_customizations_lev12.sh 1.36 KiB
#!/bin/ash
export WR_HOME="/wr"

# WRS-Broadcast costumizations
# T.Chiarusi 20/09/2018

### Note:  SDN scenario ONLY

##Disabling the auto-negotiation on some ports
## Note: by default the KM3NeT customisation of WRS by 7S has wr3-17 already with no auto-negotiation
## This is useful for receiving the DU-bases 

#Disabling MAC-learning on wr0
devmem  0x10060004 32 0x00
devmem  0x10060008
devmem  0x10060008 32 0x82
echo "KM3 - Disabled MAC-learning on wr0"

#Static routing
$WR_HOME/bin/rtu_stat add 00:0F:53:20:66:50 1 # to Control Unit Server  ;
$WR_HOME/bin/rtu_stat add 00:0F:53:20:66:CC 1 # to DataQueue Server - for Acoustic data mainly ;    
echo "KM3 - Added static routing for CU and DQs"

#Enable Jumbo frames on all ports (customising the MRU to 9000B)
devmem 0x10030008 32 0x00800002
devmem 0x10030408 32 0x00800002
devmem 0x10030808 32 0x00800002
devmem 0x10030c08 32 0x00800002
devmem 0x10031008 32 0x00800002
devmem 0x10031408 32 0x00800002
devmem 0x10031808 32 0x00800002
devmem 0x10031c08 32 0x00800002
devmem 0x10032008 32 0x00800002
devmem 0x10032408 32 0x00800002
devmem 0x10032808 32 0x00800002
devmem 0x10032c08 32 0x00800002
devmem 0x10033008 32 0x00800002
devmem 0x10033408 32 0x00800002
devmem 0x10033808 32 0x00800002
devmem 0x10033c08 32 0x00800002
devmem 0x10034008 32 0x00800002
devmem 0x10034408 32 0x00800002
echo "KM3 - Enabled Jumbo frames on all ports"