[Ingrasys] Update platform configuration files (#1194)

This commit is contained in:
Jason Tsai 2017-11-30 03:57:35 +08:00 committed by Joe LeVeque
parent 33d5e93b0a
commit 51dfa1768d
15 changed files with 804 additions and 105 deletions

View File

@ -103,7 +103,7 @@
<DeviceLinkBase i:type="DeviceInterfaceLink"> <DeviceLinkBase i:type="DeviceInterfaceLink">
<Bandwidth>40000</Bandwidth> <Bandwidth>40000</Bandwidth>
<ElementType>DeviceInterfaceLink</ElementType> <ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>OCPSCH8810MS</EndDevice> <EndDevice>OCPSCH0104002MS</EndDevice>
<EndPort>Ethernet0</EndPort> <EndPort>Ethernet0</EndPort>
<StartDevice>OCPSCH01040HHLF</StartDevice> <StartDevice>OCPSCH01040HHLF</StartDevice>
<StartPort>Ethernet52</StartPort> <StartPort>Ethernet52</StartPort>
@ -111,7 +111,7 @@
</DeviceInterfaceLinks> </DeviceInterfaceLinks>
<Devices> <Devices>
<Device i:type="LeafRouter"> <Device i:type="LeafRouter">
<Hostname>OCPSCH8810HHLF</Hostname> <Hostname>OCPSCH01040HHLF</Hostname>
<HwSku>INGRASYS-S8810-32Q</HwSku> <HwSku>INGRASYS-S8810-32Q</HwSku>
</Device> </Device>
</Devices> </Devices>

View File

@ -1,55 +1,55 @@
# name lanes alias index # name lanes alias index
Ethernet0 1 Ethernet1 0 Ethernet0 1 Ethernet1/1 0
Ethernet1 2 Ethernet2 1 Ethernet1 2 Ethernet2/1 1
Ethernet2 3 Ethernet3 2 Ethernet2 3 Ethernet3/1 2
Ethernet3 4 Ethernet4 3 Ethernet3 4 Ethernet4/1 3
Ethernet4 5 Ethernet5 4 Ethernet4 5 Ethernet5/1 4
Ethernet5 6 Ethernet6 5 Ethernet5 6 Ethernet6/1 5
Ethernet6 7 Ethernet7 6 Ethernet6 7 Ethernet7/1 6
Ethernet7 8 Ethernet8 7 Ethernet7 8 Ethernet8/1 7
Ethernet8 9 Ethernet9 8 Ethernet8 9 Ethernet9/1 8
Ethernet9 10 Ethernet10 9 Ethernet9 10 Ethernet10/1 9
Ethernet10 11 Ethernet11 10 Ethernet10 11 Ethernet11/1 10
Ethernet11 12 Ethernet12 11 Ethernet11 12 Ethernet12/1 11
Ethernet12 21 Ethernet13 12 Ethernet12 21 Ethernet13/1 12
Ethernet13 22 Ethernet14 13 Ethernet13 22 Ethernet14/1 13
Ethernet14 23 Ethernet15 14 Ethernet14 23 Ethernet15/1 14
Ethernet15 24 Ethernet16 15 Ethernet15 24 Ethernet16/1 15
Ethernet16 33 Ethernet17 16 Ethernet16 33 Ethernet17/1 16
Ethernet17 34 Ethernet18 17 Ethernet17 34 Ethernet18/1 17
Ethernet18 35 Ethernet19 18 Ethernet18 35 Ethernet19/1 18
Ethernet19 36 Ethernet20 19 Ethernet19 36 Ethernet20/1 19
Ethernet20 37 Ethernet21 20 Ethernet20 37 Ethernet21/1 20
Ethernet21 38 Ethernet22 21 Ethernet21 38 Ethernet22/1 21
Ethernet22 39 Ethernet23 22 Ethernet22 39 Ethernet23/1 22
Ethernet23 40 Ethernet24 23 Ethernet23 40 Ethernet24/1 23
Ethernet24 41 Ethernet25 24 Ethernet24 41 Ethernet25/1 24
Ethernet25 42 Ethernet26 25 Ethernet25 42 Ethernet26/1 25
Ethernet26 43 Ethernet27 26 Ethernet26 43 Ethernet27/1 26
Ethernet27 44 Ethernet28 27 Ethernet27 44 Ethernet28/1 27
Ethernet28 49 Ethernet29 28 Ethernet28 49 Ethernet29/1 28
Ethernet29 50 Ethernet30 29 Ethernet29 50 Ethernet30/1 29
Ethernet30 51 Ethernet31 30 Ethernet30 51 Ethernet31/1 30
Ethernet31 52 Ethernet32 31 Ethernet31 52 Ethernet32/1 31
Ethernet32 53 Ethernet33 32 Ethernet32 53 Ethernet33/1 32
Ethernet33 54 Ethernet34 33 Ethernet33 54 Ethernet34/1 33
Ethernet34 55 Ethernet35 34 Ethernet34 55 Ethernet35/1 34
Ethernet35 56 Ethernet36 35 Ethernet35 56 Ethernet36/1 35
Ethernet36 65 Ethernet37 36 Ethernet36 65 Ethernet37/1 36
Ethernet37 66 Ethernet38 37 Ethernet37 66 Ethernet38/1 37
Ethernet38 67 Ethernet39 38 Ethernet38 67 Ethernet39/1 38
Ethernet39 68 Ethernet40 39 Ethernet39 68 Ethernet40/1 39
Ethernet40 69 Ethernet41 40 Ethernet40 69 Ethernet41/1 40
Ethernet41 70 Ethernet42 41 Ethernet41 70 Ethernet42/1 41
Ethernet42 71 Ethernet43 42 Ethernet42 71 Ethernet43/1 42
Ethernet43 72 Ethernet44 43 Ethernet43 72 Ethernet44/1 43
Ethernet44 81 Ethernet45 44 Ethernet44 81 Ethernet45/1 44
Ethernet45 82 Ethernet46 45 Ethernet45 82 Ethernet46/1 45
Ethernet46 83 Ethernet47 46 Ethernet46 83 Ethernet47/1 46
Ethernet47 84 Ethernet48 47 Ethernet47 84 Ethernet48/1 47
Ethernet48 85,86,87,88 Ethernet49/1 48 Ethernet48 85,86,87,88 Ethernet52/1 48
Ethernet52 97,98,99,100 Ethernet50/1 49 Ethernet52 97,98,99,100 Ethernet56/1 49
Ethernet56 101,102,103,104 Ethernet51/1 50 Ethernet56 101,102,103,104 Ethernet60/1 50
Ethernet60 105,106,107,108 Ethernet52/1 51 Ethernet60 105,106,107,108 Ethernet64/1 51
Ethernet64 109,110,111,112 Ethernet53/1 52 Ethernet64 109,110,111,112 Ethernet68/1 52
Ethernet68 117,118,119,120 Ethernet54/1 53 Ethernet68 117,118,119,120 Ethernet69/1 53

View File

@ -1,52 +1,52 @@
# name lanes alias index # name lanes alias index
Ethernet0 17 Ethernet1 0 Ethernet0 17 Ethernet1/1 0
Ethernet1 18 Ethernet2 1 Ethernet1 18 Ethernet2/1 1
Ethernet2 19 Ethernet3 2 Ethernet2 19 Ethernet3/1 2
Ethernet3 20 Ethernet4 3 Ethernet3 20 Ethernet4/1 3
Ethernet4 24 Ethernet5 4 Ethernet4 24 Ethernet5/1 4
Ethernet5 23 Ethernet6 5 Ethernet5 23 Ethernet6/1 5
Ethernet6 22 Ethernet7 6 Ethernet6 22 Ethernet7/1 6
Ethernet7 21 Ethernet8 7 Ethernet7 21 Ethernet8/1 7
Ethernet8 28 Ethernet9 8 Ethernet8 28 Ethernet9/1 8
Ethernet9 27 Ethernet10 9 Ethernet9 27 Ethernet10/1 9
Ethernet10 26 Ethernet11 10 Ethernet10 26 Ethernet11/1 10
Ethernet11 25 Ethernet12 11 Ethernet11 25 Ethernet12/1 11
Ethernet12 32 Ethernet13 12 Ethernet12 32 Ethernet13/1 12
Ethernet13 31 Ethernet14 13 Ethernet13 31 Ethernet14/1 13
Ethernet14 30 Ethernet15 14 Ethernet14 30 Ethernet15/1 14
Ethernet15 29 Ethernet16 15 Ethernet15 29 Ethernet16/1 15
Ethernet16 1 Ethernet17 16 Ethernet16 1 Ethernet17/1 16
Ethernet17 2 Ethernet18 17 Ethernet17 2 Ethernet18/1 17
Ethernet18 3 Ethernet19 18 Ethernet18 3 Ethernet19/1 18
Ethernet19 4 Ethernet20 19 Ethernet19 4 Ethernet20/1 19
Ethernet20 8 Ethernet21 20 Ethernet20 8 Ethernet21/1 20
Ethernet21 7 Ethernet22 21 Ethernet21 7 Ethernet22/1 21
Ethernet22 6 Ethernet23 22 Ethernet22 6 Ethernet23/1 22
Ethernet23 5 Ethernet24 23 Ethernet23 5 Ethernet24/1 23
Ethernet24 12 Ethernet25 24 Ethernet24 12 Ethernet25/1 24
Ethernet25 11 Ethernet26 25 Ethernet25 11 Ethernet26/1 25
Ethernet26 10 Ethernet27 26 Ethernet26 10 Ethernet27/1 26
Ethernet27 9 Ethernet28 27 Ethernet27 9 Ethernet28/1 27
Ethernet28 13 Ethernet29 28 Ethernet28 13 Ethernet29/1 28
Ethernet29 14 Ethernet30 29 Ethernet29 14 Ethernet30/1 29
Ethernet30 15 Ethernet31 30 Ethernet30 15 Ethernet31/1 30
Ethernet31 16 Ethernet32 31 Ethernet31 16 Ethernet32/1 31
Ethernet32 33 Ethernet33 32 Ethernet32 33 Ethernet33/1 32
Ethernet33 34 Ethernet34 33 Ethernet33 34 Ethernet34/1 33
Ethernet34 35 Ethernet35 34 Ethernet34 35 Ethernet35/1 34
Ethernet35 36 Ethernet36 35 Ethernet35 36 Ethernet36/1 35
Ethernet36 38 Ethernet37 36 Ethernet36 38 Ethernet37/1 36
Ethernet37 39 Ethernet38 37 Ethernet37 39 Ethernet38/1 37
Ethernet38 40 Ethernet39 38 Ethernet38 40 Ethernet39/1 38
Ethernet39 37 Ethernet40 39 Ethernet39 37 Ethernet40/1 39
Ethernet40 41 Ethernet41 40 Ethernet40 41 Ethernet41/1 40
Ethernet41 42 Ethernet42 41 Ethernet41 42 Ethernet42/1 41
Ethernet42 43 Ethernet43 42 Ethernet42 43 Ethernet43/1 42
Ethernet43 44 Ethernet44 43 Ethernet43 44 Ethernet44/1 43
Ethernet44 48 Ethernet45 44 Ethernet44 48 Ethernet45/1 44
Ethernet45 45 Ethernet46 45 Ethernet45 45 Ethernet46/1 45
Ethernet46 46 Ethernet47 46 Ethernet46 46 Ethernet47/1 46
Ethernet47 47 Ethernet48 47 Ethernet47 47 Ethernet48/1 47
Ethernet48 49,50,51,52 Ethernet49/1 48 Ethernet48 49,50,51,52 Ethernet49/1 48
Ethernet52 53,54,55,56 Ethernet50/1 49 Ethernet52 53,54,55,56 Ethernet50/1 49
Ethernet56 57,58,59,60 Ethernet51/1 50 Ethernet56 57,58,59,60 Ethernet51/1 50

View File

@ -0,0 +1,65 @@
# name lanes alias index
Ethernet0 1,2,3,4 Ethernet1/1 0
Ethernet4 5,6,7,8 Ethernet2/1 1
Ethernet8 17,18,19,20 Ethernet3/1 2
Ethernet12 21,22,23,24 Ethernet4/1 3
Ethernet16 33,34,35,36 Ethernet5/1 4
Ethernet20 37,38,39,40 Ethernet6/1 5
Ethernet24 49,50,51,52 Ethernet7/1 6
Ethernet28 53,54,55,56 Ethernet8/1 7
Ethernet32 65,66,67,68 Ethernet9/1 8
Ethernet36 69,70,71,72 Ethernet10/1 9
Ethernet40 81,82,83,84 Ethernet11/1 10
Ethernet44 85,86,87,88 Ethernet12/1 11
Ethernet48 97,98,99,100 Ethernet13/1 12
Ethernet52 101,102,103,104 Ethernet14/1 13
Ethernet56 113,114,115,116 Ethernet15/1 14
Ethernet60 117,118,119,120 Ethernet16/1 15
Ethernet64 129,130,131,132 Ethernet17/1 16
Ethernet68 133,134,135,136 Ethernet18/1 17
Ethernet72 145,146,147,148 Ethernet19/1 18
Ethernet76 149,150,151,152 Ethernet20/1 19
Ethernet80 161,162,163,164 Ethernet21/1 20
Ethernet84 165,166,167,168 Ethernet22/1 21
Ethernet88 177,178,179,180 Ethernet23/1 22
Ethernet92 181,182,183,184 Ethernet24/1 23
Ethernet96 193,194,195,196 Ethernet25/1 24
Ethernet100 197,198,199,200 Ethernet26/1 25
Ethernet104 209,210,211,212 Ethernet27/1 26
Ethernet108 213,214,215,216 Ethernet28/1 27
Ethernet112 225,226,227,228 Ethernet29/1 28
Ethernet116 229,230,231,232 Ethernet30/1 29
Ethernet120 241,242,243,244 Ethernet31/1 30
Ethernet124 245,246,247,248 Ethernet32/1 31
Ethernet128 9,10,11,12 Ethernet33/1 32
Ethernet132 13,14,15,16 Ethernet34/1 33
Ethernet136 25,26,27,28 Ethernet35/1 34
Ethernet140 29,30,31,32 Ethernet36/1 35
Ethernet144 41,42,43,44 Ethernet37/1 36
Ethernet148 45,46,47,48 Ethernet38/1 37
Ethernet152 57,58,59,60 Ethernet39/1 38
Ethernet156 61,62,63,64 Ethernet40/1 39
Ethernet160 73,74,75,76 Ethernet41/1 40
Ethernet164 77,78,79,80 Ethernet42/1 41
Ethernet168 89,90,91,92 Ethernet43/1 42
Ethernet172 93,94,95,96 Ethernet44/1 43
Ethernet176 105,106,107,108 Ethernet45/1 44
Ethernet180 109,110,111,112 Ethernet46/1 45
Ethernet184 121,122,123,124 Ethernet47/1 46
Ethernet188 125,126,127,128 Ethernet48/1 47
Ethernet192 137,138,139,140 Ethernet49/1 48
Ethernet196 141,142,143,144 Ethernet50/1 49
Ethernet200 153,154,155,156 Ethernet51/1 50
Ethernet204 157,158,159,160 Ethernet52/1 51
Ethernet208 169,170,171,172 Ethernet53/1 52
Ethernet212 173,174,175,176 Ethernet54/1 53
Ethernet216 185,186,187,188 Ethernet55/1 54
Ethernet220 189,190,191,192 Ethernet56/1 55
Ethernet224 201,202,203,204 Ethernet57/1 56
Ethernet228 205,206,207,208 Ethernet58/1 57
Ethernet232 217,218,219,220 Ethernet59/1 58
Ethernet236 221,222,223,224 Ethernet60/1 59
Ethernet240 233,234,235,236 Ethernet61/1 60
Ethernet244 237,238,239,240 Ethernet62/1 61
Ethernet248 249,250,251,252 Ethernet63/1 62
Ethernet252 253,254,255,256 Ethernet64/1 63

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th2-s9200-64x100G.config.bcm

View File

@ -0,0 +1,9 @@
INTERVAL=10
DEVPATH=hwmon5=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-16/16-002f hwmon1=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-7/7-004d
DEVNAME=hwmon5=w83795adg
FCTEMPS=hwmon5/device/pwm2=hwmon1/temp1_input
FCFANS=hwmon5/device/pwm2=hwmon5/device/fan7_input hwmon5/device/pwm2=hwmon5/device/fan5_input hwmon5/device/pwm2=hwmon5/device/fan3_input hwmon5/device/pwm2=hwmon5/device/fan1_input
MINTEMP=hwmon5/device/pwm2=20
MAXTEMP=hwmon5/device/pwm2=60
MINSTART=hwmon5/device/pwm2=75
MINSTOP=hwmon5/device/pwm2=22

View File

@ -0,0 +1,3 @@
CONSOLE_PORT=0x3f8
CONSOLE_DEV=0
CONSOLE_SPEED=115200

View File

@ -0,0 +1,111 @@
#processor initialization for Ingrasys S9200-64X
led 0 stop
led 0 prog 12 00 61 F1 12 10 61 F2 12 04 61 F3 12 04 61 F4 67 16 86 F0 77 74 96 F2 2E F1 67 2B 67 3F 16 F3 FE F1 61 F1 12 00 DE F2 74 16 57 2E F1 32 00 32 01 B7 97 75 3A 02 01 60 FE 57 02 00 60 FE 57 2E F1 32 08 97 75 58 77 48 06 FE D2 01 70 50 77 66 06 F0 C2 08 74 58 77 66 16 F4 91 22 0E 87 22 0E 87 DA 00 74 5A 57 16 F4 91 22 0F 87 22 0E 87 DA 00 74 68 57 02 80 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=56 REMAP_PORT_2=57 REMAP_PORT_1=58 REMAP_PORT_0=59
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=60 REMAP_PORT_6=61 REMAP_PORT_5=62 REMAP_PORT_4=63
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=52 REMAP_PORT_10=53 REMAP_PORT_9=54 REMAP_PORT_8=55
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=48 REMAP_PORT_14=49 REMAP_PORT_13=50 REMAP_PORT_12=51
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=40 REMAP_PORT_18=41 REMAP_PORT_17=42 REMAP_PORT_16=43
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=44 REMAP_PORT_22=45 REMAP_PORT_21=46 REMAP_PORT_20=47
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=36 REMAP_PORT_26=37 REMAP_PORT_25=38 REMAP_PORT_24=39
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=32 REMAP_PORT_30=33 REMAP_PORT_29=34 REMAP_PORT_28=35
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=24 REMAP_PORT_34=25 REMAP_PORT_33=26 REMAP_PORT_32=27
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=28 REMAP_PORT_38=29 REMAP_PORT_37=30 REMAP_PORT_36=31
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=20 REMAP_PORT_42=21 REMAP_PORT_41=22 REMAP_PORT_40=23
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=16 REMAP_PORT_46=17 REMAP_PORT_45=18 REMAP_PORT_44=19
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=8 REMAP_PORT_50=9 REMAP_PORT_49=10 REMAP_PORT_48=11
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=12 REMAP_PORT_54=13 REMAP_PORT_53=14 REMAP_PORT_52=15
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=4 REMAP_PORT_58=5 REMAP_PORT_57=6 REMAP_PORT_56=7
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=0 REMAP_PORT_62=1 REMAP_PORT_61=2 REMAP_PORT_60=3
led 0 auto on
led 0 start
led 1 stop
led 1 prog 12 00 61 F1 12 10 61 F2 12 04 61 F3 12 04 61 F4 67 16 86 F0 77 74 96 F2 2E F1 67 2B 67 3F 16 F3 FE F1 61 F1 12 00 DE F2 74 16 57 2E F1 32 00 32 01 B7 97 75 3A 02 01 60 FE 57 02 00 60 FE 57 2E F1 32 08 97 75 58 77 48 06 FE D2 01 70 50 77 66 06 F0 C2 08 74 58 77 66 16 F4 91 22 0E 87 22 0E 87 DA 00 74 5A 57 16 F4 91 22 0F 87 22 0E 87 DA 00 74 68 57 02 80 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=0 REMAP_PORT_2=1 REMAP_PORT_1=2 REMAP_PORT_0=3
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=4 REMAP_PORT_6=5 REMAP_PORT_5=6 REMAP_PORT_4=7
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=12 REMAP_PORT_10=13 REMAP_PORT_9=14 REMAP_PORT_8=15
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=8 REMAP_PORT_14=9 REMAP_PORT_13=10 REMAP_PORT_12=11
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=16 REMAP_PORT_18=17 REMAP_PORT_17=18 REMAP_PORT_16=19
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=20 REMAP_PORT_22=21 REMAP_PORT_21=22 REMAP_PORT_20=23
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=28 REMAP_PORT_26=29 REMAP_PORT_25=30 REMAP_PORT_24=31
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=24 REMAP_PORT_30=25 REMAP_PORT_29=26 REMAP_PORT_28=27
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=32 REMAP_PORT_34=33 REMAP_PORT_33=34 REMAP_PORT_32=35
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=36 REMAP_PORT_38=37 REMAP_PORT_37=38 REMAP_PORT_36=39
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=44 REMAP_PORT_42=45 REMAP_PORT_41=46 REMAP_PORT_40=47
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=40 REMAP_PORT_46=41 REMAP_PORT_45=42 REMAP_PORT_44=43
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=48 REMAP_PORT_50=49 REMAP_PORT_49=50 REMAP_PORT_48=51
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=52 REMAP_PORT_54=53 REMAP_PORT_53=54 REMAP_PORT_52=55
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=60 REMAP_PORT_58=61 REMAP_PORT_57=62 REMAP_PORT_56=63
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=56 REMAP_PORT_62=57 REMAP_PORT_61=58 REMAP_PORT_60=59
led 1 auto on
led 1 start
led 2 stop
led 2 prog 12 00 61 F1 12 10 61 F2 12 04 61 F3 12 04 61 F4 67 16 86 F0 77 74 96 F2 2E F1 67 2B 67 3F 16 F3 FE F1 61 F1 12 00 DE F2 74 16 57 2E F1 32 00 32 01 B7 97 75 3A 02 01 60 FE 57 02 00 60 FE 57 2E F1 32 08 97 75 58 77 48 06 FE D2 01 70 50 77 66 06 F0 C2 08 74 58 77 66 16 F4 91 22 0E 87 22 0E 87 DA 00 74 5A 57 16 F4 91 22 0F 87 22 0E 87 DA 00 74 68 57 02 80 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=56 REMAP_PORT_2=57 REMAP_PORT_1=58 REMAP_PORT_0=59
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=60 REMAP_PORT_6=61 REMAP_PORT_5=62 REMAP_PORT_4=63
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=52 REMAP_PORT_10=53 REMAP_PORT_9=54 REMAP_PORT_8=55
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=48 REMAP_PORT_14=49 REMAP_PORT_13=50 REMAP_PORT_12=51
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=40 REMAP_PORT_18=41 REMAP_PORT_17=42 REMAP_PORT_16=43
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=44 REMAP_PORT_22=45 REMAP_PORT_21=46 REMAP_PORT_20=47
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=36 REMAP_PORT_26=37 REMAP_PORT_25=38 REMAP_PORT_24=39
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=32 REMAP_PORT_30=33 REMAP_PORT_29=34 REMAP_PORT_28=35
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=24 REMAP_PORT_34=25 REMAP_PORT_33=26 REMAP_PORT_32=27
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=28 REMAP_PORT_38=29 REMAP_PORT_37=30 REMAP_PORT_36=31
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=20 REMAP_PORT_42=21 REMAP_PORT_41=22 REMAP_PORT_40=23
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=16 REMAP_PORT_46=17 REMAP_PORT_45=18 REMAP_PORT_44=19
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=8 REMAP_PORT_50=9 REMAP_PORT_49=10 REMAP_PORT_48=11
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=12 REMAP_PORT_54=13 REMAP_PORT_53=14 REMAP_PORT_52=15
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=4 REMAP_PORT_58=5 REMAP_PORT_57=6 REMAP_PORT_56=7
modreg CMIC_LEDUP2_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=0 REMAP_PORT_62=1 REMAP_PORT_61=2 REMAP_PORT_60=3
led 2 auto on
led 2 start
led 3 stop
led 3 prog 12 00 61 F1 12 10 61 F2 12 04 61 F3 12 04 61 F4 67 16 86 F0 77 74 96 F2 2E F1 67 2B 67 3F 16 F3 FE F1 61 F1 12 00 DE F2 74 16 57 2E F1 32 00 32 01 B7 97 75 3A 02 01 60 FE 57 02 00 60 FE 57 2E F1 32 08 97 75 58 77 48 06 FE D2 01 70 50 77 66 06 F0 C2 08 74 58 77 66 16 F4 91 22 0E 87 22 0E 87 DA 00 74 5A 57 16 F4 91 22 0F 87 22 0E 87 DA 00 74 68 57 02 80 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=0 REMAP_PORT_2=1 REMAP_PORT_1=2 REMAP_PORT_0=3
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=4 REMAP_PORT_6=5 REMAP_PORT_5=6 REMAP_PORT_4=7
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=12 REMAP_PORT_10=13 REMAP_PORT_9=14 REMAP_PORT_8=15
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=8 REMAP_PORT_14=9 REMAP_PORT_13=10 REMAP_PORT_12=11
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=16 REMAP_PORT_18=17 REMAP_PORT_17=18 REMAP_PORT_16=19
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=20 REMAP_PORT_22=21 REMAP_PORT_21=22 REMAP_PORT_20=23
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=28 REMAP_PORT_26=29 REMAP_PORT_25=30 REMAP_PORT_24=31
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=24 REMAP_PORT_30=25 REMAP_PORT_29=26 REMAP_PORT_28=27
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=32 REMAP_PORT_34=33 REMAP_PORT_33=34 REMAP_PORT_32=35
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=36 REMAP_PORT_38=37 REMAP_PORT_37=38 REMAP_PORT_36=39
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=44 REMAP_PORT_42=45 REMAP_PORT_41=46 REMAP_PORT_40=47
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=40 REMAP_PORT_46=41 REMAP_PORT_45=42 REMAP_PORT_44=43
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=48 REMAP_PORT_50=49 REMAP_PORT_49=50 REMAP_PORT_48=51
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=52 REMAP_PORT_54=53 REMAP_PORT_53=54 REMAP_PORT_52=55
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=60 REMAP_PORT_58=61 REMAP_PORT_57=62 REMAP_PORT_56=63
modreg CMIC_LEDUP3_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=56 REMAP_PORT_62=57 REMAP_PORT_61=58 REMAP_PORT_60=59
led 3 auto on
led 3 start
led 4 stop
led 4 prog 12 00 61 F1 12 40 61 F2 12 01 61 F3 12 01 61 F4 67 16 86 F0 77 74 96 F2 2E F1 67 2B 67 3F 16 F3 FE F1 61 F1 12 00 DE F2 74 16 57 2E F1 32 00 32 01 B7 97 75 3A 02 01 60 FE 57 02 00 60 FE 57 2E F1 32 08 97 75 58 77 48 06 FE D2 01 70 50 77 66 06 F0 C2 08 74 58 77 66 16 F4 91 22 0E 87 22 0E 87 DA 00 74 5A 57 16 F4 91 22 0F 87 22 0E 87 DA 00 74 68 57 02 80 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=62 REMAP_PORT_2=0 REMAP_PORT_1=63 REMAP_PORT_0=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=0 REMAP_PORT_6=0 REMAP_PORT_5=0 REMAP_PORT_4=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=0 REMAP_PORT_10=0 REMAP_PORT_9=0 REMAP_PORT_8=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=0 REMAP_PORT_14=0 REMAP_PORT_13=0 REMAP_PORT_12=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=0 REMAP_PORT_18=0 REMAP_PORT_17=0 REMAP_PORT_16=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=0 REMAP_PORT_22=0 REMAP_PORT_21=0 REMAP_PORT_20=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=0 REMAP_PORT_26=0 REMAP_PORT_25=0 REMAP_PORT_24=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=0 REMAP_PORT_30=0 REMAP_PORT_29=0 REMAP_PORT_28=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=0 REMAP_PORT_34=0 REMAP_PORT_33=0 REMAP_PORT_32=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=0 REMAP_PORT_38=0 REMAP_PORT_37=0 REMAP_PORT_36=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=0 REMAP_PORT_42=0 REMAP_PORT_41=0 REMAP_PORT_40=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=0 REMAP_PORT_46=0 REMAP_PORT_45=0 REMAP_PORT_44=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=0 REMAP_PORT_50=0 REMAP_PORT_49=0 REMAP_PORT_48=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=0 REMAP_PORT_54=0 REMAP_PORT_53=0 REMAP_PORT_52=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=0 REMAP_PORT_58=0 REMAP_PORT_57=0 REMAP_PORT_56=0
modreg CMIC_LEDUP4_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=0 REMAP_PORT_62=0 REMAP_PORT_61=0 REMAP_PORT_60=0
led 4 auto on
led 4 start

View File

@ -0,0 +1,151 @@
<DeviceMiniGraph xmlns="Microsoft.Search.Autopilot.Evolution" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CpgDec>
<IsisRouters xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
<PeeringSessions>
<BGPSession>
<StartRouter>OCPSCH0104001MS</StartRouter>
<StartPeer>10.10.1.26</StartPeer>
<EndRouter>OCPSCH01040GGLF</EndRouter>
<EndPeer>10.10.1.25</EndPeer>
<Multihop>1</Multihop>
<HoldTime>10</HoldTime>
<KeepAliveTime>3</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>OCPSCH0104002MS</StartRouter>
<StartPeer>10.10.2.26</StartPeer>
<EndRouter>OCPSCH01040GGLF</EndRouter>
<EndPeer>10.10.2.25</EndPeer>
<Multihop>1</Multihop>
<HoldTime>10</HoldTime>
<KeepAliveTime>3</KeepAliveTime>
</BGPSession>
</PeeringSessions>
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>64536</a:ASN>
<a:Hostname>OCPSCH01040GGLF</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.10.1.26</Address>
<RouteMapIn i:nil="true"/>
<RouteMapOut i:nil="true"/>
</BGPPeer>
<BGPPeer>
<Address>10.10.2.26</Address>
<RouteMapIn i:nil="true"/>
<RouteMapOut i:nil="true"/>
</BGPPeer>
</a:Peers>
<a:RouteMaps/>
</a:BGPRouterDeclaration>
<a:BGPRouterDeclaration>
<a:ASN>64542</a:ASN>
<a:Hostname>OCPSCH0104001MS</a:Hostname>
<a:RouteMaps/>
</a:BGPRouterDeclaration>
<a:BGPRouterDeclaration>
<a:ASN>64543</a:ASN>
<a:Hostname>OCPSCH0104002MS</a:Hostname>
<a:RouteMaps/>
</a:BGPRouterDeclaration>
</Routers>
</CpgDec>
<DpgDec>
<DeviceDataPlaneInfo>
<IPSecTunnels/>
<LoopbackIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:LoopbackIPInterface>
<Name>HostIP</Name>
<AttachTo>Loopback0</AttachTo>
<a:Prefix xmlns:b="Microsoft.Search.Autopilot.NetMux">
<b:IPPrefix>100.0.0.9/32</b:IPPrefix>
</a:Prefix>
<a:PrefixStr>100.0.0.9/32</a:PrefixStr>
</a:LoopbackIPInterface>
</LoopbackIPInterfaces>
<ManagementIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
</ManagementIPInterfaces>
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>OCPSCH01040GGLF</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
<IPInterface>
<Name i:nil="true"/>
<AttachTo>Ethernet0</AttachTo>
<Prefix>10.10.1.25/30</Prefix>
</IPInterface>
<IPInterface>
<Name i:nil="true"/>
<AttachTo>Ethernet4</AttachTo>
<Prefix>10.10.2.25/30</Prefix>
</IPInterface>
</IPInterfaces>
<DataAcls/>
<AclInterfaces/>
<DownstreamSummaries/>
<DownstreamSummarySet xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</DeviceDataPlaneInfo>
</DpgDec>
<PngDec>
<DeviceInterfaceLinks>
<DeviceLinkBase i:type="DeviceInterfaceLink">
<Bandwidth>40000</Bandwidth>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>OCPSCH0104001MS</EndDevice>
<EndPort>Ethernet24</EndPort>
<StartDevice>OCPSCH01040GGLF</StartDevice>
<StartPort>Ethernet0</StartPort>
</DeviceLinkBase>
<DeviceLinkBase i:type="DeviceInterfaceLink">
<Bandwidth>40000</Bandwidth>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>OCPSCH0104002MS</EndDevice>
<EndPort>Ethernet24</EndPort>
<StartDevice>OCPSCH01040GGLF</StartDevice>
<StartPort>Ethernet4</StartPort>
</DeviceLinkBase>
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>OCPSCH01040GGLF</Hostname>
<HwSku>INGRASYS-S9200-64X</HwSku>
</Device>
</Devices>
</PngDec>
<MetadataDeclaration>
<Devices xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:DeviceMetadata>
<a:Name>OCPSCH01040GGLF</a:Name>
<a:Properties>
<a:DeviceProperty>
<a:Name>DhcpResources</a:Name>
<a:Reference i:nil="true"/>
<a:Value></a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>NtpResources</a:Name>
<a:Reference i:nil="true"/>
<a:Value>0.debian.pool.ntp.org;1.debian.pool.ntp.org;2.debian.pool.ntp.org;3.debian.pool.ntp.org</a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>SyslogResources</a:Name>
<a:Reference i:nil="true"/>
<a:Value></a:Value>
</a:DeviceProperty>
<a:DeviceProperty>
<a:Name>ErspanDestinationIpv4</a:Name>
<a:Reference i:nil="true"/>
<a:Value>2.2.2.2</a:Value>
</a:DeviceProperty>
</a:Properties>
</a:DeviceMetadata>
</Devices>
<Properties xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</MetadataDeclaration>
<Hostname>OCPSCH01040GGLF</Hostname>
<HwSku>INGRASYS-S9200-64X</HwSku>
</DeviceMiniGraph>

View File

@ -0,0 +1,24 @@
#!/usr/bin/env python
#############################################################################
# Ingrasys S9200-64X
#
# Platform and model specific eeprom subclass, inherits from the base class,
# and provides the followings:
# - the eeprom format definition
# - specific encoder/decoder if there is special need
#############################################################################
try:
from sonic_eeprom import eeprom_tlvinfo
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
def __init__(self, name, path, cpld_root, ro):
i2c_bus = "0"
i2c_addr = "0055"
self.eeprom_path = "/sys/class/i2c-adapter/i2c-" + i2c_bus + "/" + i2c_bus + "-" + i2c_addr + "/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,260 @@
# sfputil.py
#
# Platform-specific SFP transceiver interface for SONiC
#
try:
import time
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
raise ImportError("%s - required module not found" % str(e))
class SfpUtil(SfpUtilBase):
"""Platform-specific SfpUtil class"""
PORT_START = 0
PORT_END = 63
PORTS_IN_BLOCK = 64
EEPROM_OFFSET = 29
_port_to_eeprom_mapping = {}
_logic_to_phy_port_mapping = {
0: 0,
1: 1,
2: 4,
3: 5,
4: 8,
5: 9,
6: 12,
7: 13,
8: 16,
9: 17,
10: 20,
11: 21,
12: 24,
13: 25,
14: 28,
15: 29,
16: 32,
17: 33,
18: 36,
19: 37,
20: 40,
21: 41,
22: 44,
23: 45,
24: 48,
25: 49,
26: 52,
27: 53,
28: 56,
29: 57,
30: 60,
31: 61,
32: 2,
33: 3,
34: 6,
35: 7,
36: 10,
37: 11,
38: 14,
39: 15,
40: 18,
41: 19,
42: 22,
43: 23,
44: 26,
45: 27,
46: 30,
47: 31,
48: 34,
49: 35,
50: 38,
51: 39,
52: 42,
53: 43,
54: 46,
55: 47,
56: 50,
57: 51,
58: 54,
59: 55,
60: 58,
61: 59,
62: 62,
63: 63
}
@property
def port_start(self):
return self.PORT_START
@property
def port_end(self):
return self.PORT_END
@property
def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1)
@property
def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping
def __init__(self):
eeprom_path = "/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom"
for x in range(0, self.port_end + 1):
phy_port = self._logic_to_phy_port_mapping[x]
self._port_to_eeprom_mapping[x] = eeprom_path.format(phy_port + self.EEPROM_OFFSET)
SfpUtilBase.__init__(self)
def get_presence(self, port_num):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
# logic port to physical port mapping
port_num = self._logic_to_phy_port_mapping[port_num]
try:
reg_file = open("/sys/devices/platform/ingrasys-s9200-cpld.0/qsfp_modprs")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = reg_file.readline().rstrip()
# content is a string containing the hex representation of the register
reg_value = int(content, 16)
# Mask off the bit corresponding to our port
mask = (1 << port_num)
# ModPrsL is active low
if reg_value & mask == 0:
return True
return False
def get_low_power_mode(self, port_num):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
# logic port to physical port mapping
port_num = self._logic_to_phy_port_mapping[port_num]
try:
reg_file = open("/sys/devices/platform/ingrasys-s9200-cpld.0/qsfp_lpmode")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
content = reg_file.readline().rstrip()
# content is a string containing the hex representation of the register
reg_value = int(content, 16)
# Mask off the bit corresponding to our port
mask = (1 << port_num)
# LPMode is active high
if reg_value & mask == 0:
return False
return True
def set_low_power_mode(self, port_num, lpmode):
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
# logic port to physical port mapping
port_num = self._logic_to_phy_port_mapping[port_num]
try:
reg_file = open("/sys/devices/platform/ingrasys-s9200-cpld.0/qsfp_lpmode", "r+")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = reg_file.readline().rstrip()
# content is a string containing the hex representation of the register
reg_value = int(content, 16)
# Mask off the bit corresponding to our port
mask = (1 << port_num)
# LPMode is active high; set or clear the bit accordingly
if lpmode is True:
reg_value = reg_value | mask
else:
reg_value = reg_value & ~mask
# Convert our register value back to a hex string and write back
content = format(reg_value, 'x')
reg_file.seek(0)
reg_file.write(content)
reg_file.close()
return True
def reset(self, port_num):
QSFP_RESET_REGISTER_DEVICE_FILE = "/sys/devices/platform/ingrasys-s9200-cpld.0/qsfp_reset"
# Check for invalid port_num
if port_num < self.port_start or port_num > self.port_end:
return False
# logic port to physical port mapping
port_num = self._logic_to_phy_port_mapping[port_num]
try:
reg_file = open(QSFP_RESET_REGISTER_DEVICE_FILE, "r+")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
content = reg_file.readline().rstrip()
# File content is a string containing the hex representation of the register
reg_value = int(content, 16)
# Mask off the bit corresponding to our port
mask = (1 << port_num)
# ResetL is active low
reg_value = reg_value & ~mask
# Convert our register value back to a hex string and write back
content = format(reg_value, 'x')
reg_file.seek(0)
reg_file.write(content)
reg_file.close()
# Sleep 1 second to allow it to settle
time.sleep(1)
# Flip the bit back high and write back to the register to take port out of reset
try:
reg_file = open(QSFP_RESET_REGISTER_DEVICE_FILE, "w")
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
reg_value = reg_value | mask
content = format(reg_value, 'x')
reg_file.seek(0)
reg_file.write(content)
reg_file.close()
return True

View File

@ -0,0 +1,68 @@
# libsensors configuration file
chip "i350bb-*"
ignore loc1
chip "jc42-*"
label temp1 "DIMM Temp"
set temp1_max 50
set temp1_crit 85
chip "w83795adg-*"
ignore in0
label in1 "P0V9"
set in1_min 0.90 * 0.97
set in1_max 0.90 * 1.03
ignore in2
label in3 "P1V8"
set in3_min 1.8 * 0.97
set in3_max 1.8 * 1.03
label in4 "P1V0"
set in4_min 1.0 * 0.97
set in4_max 1.0 * 1.03
label in5 "P0V8"
set in5_min 0.8 * 0.97
set in5_max 0.8 * 1.03
ignore in6
ignore in7
ignore in8
ignore in9
ignore in10
ignore in11
ignore in12
ignore in13
ignore in14
ignore in15
ignore in16
ignore in17
ignore in18
ignore in19
label fan1 "FANTRAY 1"
ignore fan2
label fan3 "FANTRAY 2"
ignore fan4
label fan5 "FANTRAY 3"
ignore fan6
label fan7 "FANTRAY 4"
ignore fan8
ignore temp1
ignore temp2
ignore temp3
ignore temp4
ignore intrusion0
bus "i2c-6" "i2c-0-mux (chan_id 5)"
chip "lm75-i2c-6-4E"
label temp1 "MAC Temp"
set temp1_max 50
set temp1_max_hyst 45
bus "i2c-6" "i2c-0-mux (chan_id 5)"
chip "lm75-i2c-6-4D"
label temp1 "REAR Temp"
set temp1_max 50
set temp1_max_hyst 45
bus "i2c-7" "i2c-0-mux (chan_id 6)"
chip "lm75-i2c-7-4D"
label temp1 "Front Temp"
set temp1_max 50
set temp1_max_hyst 45

View File

@ -11,6 +11,7 @@ $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(DELL_S6000_PLATFORM_MODULE) \
$(INGRASYS_S8900_64XC_PLATFORM_MODULE) \ $(INGRASYS_S8900_64XC_PLATFORM_MODULE) \
$(INGRASYS_S9100_PLATFORM_MODULE) \ $(INGRASYS_S9100_PLATFORM_MODULE) \
$(INGRASYS_S8810_32Q_PLATFORM_MODULE) \ $(INGRASYS_S8810_32Q_PLATFORM_MODULE) \
$(INGRASYS_S9200_64X_PLATFORM_MODULE) \
$(ACCTON_AS7712_32X_PLATFORM_MODULE) \ $(ACCTON_AS7712_32X_PLATFORM_MODULE) \
$(ACCTON_AS5712_54X_PLATFORM_MODULE) \ $(ACCTON_AS5712_54X_PLATFORM_MODULE) \
$(INVENTEC_D7032Q28B_PLATFORM_MODULE) \ $(INVENTEC_D7032Q28B_PLATFORM_MODULE) \

View File

@ -4,11 +4,13 @@ INGRASYS_S9100_PLATFORM_MODULE_VERSION = 1.1.0
INGRASYS_S8900_64XC_PLATFORM_MODULE_VERSION = 1.1.0 INGRASYS_S8900_64XC_PLATFORM_MODULE_VERSION = 1.1.0
INGRASYS_S8900_54XC_PLATFORM_MODULE_VERSION = 1.1.0 INGRASYS_S8900_54XC_PLATFORM_MODULE_VERSION = 1.1.0
INGRASYS_S8810_32Q_PLATFORM_MODULE_VERSION = 1.1.0 INGRASYS_S8810_32Q_PLATFORM_MODULE_VERSION = 1.1.0
INGRASYS_S9200_64X_PLATFORM_MODULE_VERSION = 1.1.0
export INGRASYS_S9100_PLATFORM_MODULE_VERSION export INGRASYS_S9100_PLATFORM_MODULE_VERSION
export INGRASYS_S8900_64XC_PLATFORM_MODULE_VERSION export INGRASYS_S8900_64XC_PLATFORM_MODULE_VERSION
export INGRASYS_S8900_54XC_PLATFORM_MODULE_VERSION export INGRASYS_S8900_54XC_PLATFORM_MODULE_VERSION
export INGRASYS_S8810_32Q_PLATFORM_MODULE_VERSION export INGRASYS_S8810_32Q_PLATFORM_MODULE_VERSION
export INGRASYS_S9200_64X_PLATFORM_MODULE_VERSION
INGRASYS_S9100_PLATFORM_MODULE = sonic-platform-ingrasys-s9100_$(INGRASYS_S9100_PLATFORM_MODULE_VERSION)_amd64.deb INGRASYS_S9100_PLATFORM_MODULE = sonic-platform-ingrasys-s9100_$(INGRASYS_S9100_PLATFORM_MODULE_VERSION)_amd64.deb
$(INGRASYS_S9100_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-ingrasys $(INGRASYS_S9100_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-ingrasys
@ -25,6 +27,10 @@ $(INGRASYS_S8900_54XC_PLATFORM_MODULE)_PLATFORM = x86_64-ingrasys_s8900_54xc-r0
INGRASYS_S8810_32Q_PLATFORM_MODULE = sonic-platform-ingrasys-s8810-32q_$(INGRASYS_S8810_32Q_PLATFORM_MODULE_VERSION)_amd64.deb INGRASYS_S8810_32Q_PLATFORM_MODULE = sonic-platform-ingrasys-s8810-32q_$(INGRASYS_S8810_32Q_PLATFORM_MODULE_VERSION)_amd64.deb
$(INGRASYS_S8810_32Q_PLATFORM_MODULE)_PLATFORM = x86_64-ingrasys_s8810_32q-r0 $(INGRASYS_S8810_32Q_PLATFORM_MODULE)_PLATFORM = x86_64-ingrasys_s8810_32q-r0
INGRASYS_S9200_64X_PLATFORM_MODULE = sonic-platform-ingrasys-s9200-64x_$(INGRASYS_S9200_64X_PLATFORM_MODULE_VERSION)_amd64.deb
$(INGRASYS_S9200_64X_PLATFORM_MODULE)_PLATFORM = x86_64-ingrasys_s9200_64x-r0
$(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S8900_64XC_PLATFORM_MODULE))) $(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S8900_64XC_PLATFORM_MODULE)))
$(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S8900_54XC_PLATFORM_MODULE))) $(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S8900_54XC_PLATFORM_MODULE)))
$(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S8810_32Q_PLATFORM_MODULE))) $(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S8810_32Q_PLATFORM_MODULE)))
$(eval $(call add_extra_package,$(INGRASYS_S9100_PLATFORM_MODULE),$(INGRASYS_S9200_64X_PLATFORM_MODULE)))

@ -1 +1 @@
Subproject commit e66b8839da2180fd586aae040701faf180d59477 Subproject commit e60d63d9b54dc3673433615c555a4fc62bfc488d