[devices]: Adding new SKU to DELL Z9264f (#2891)

correcting default sku

Changes for adding tiers

Adding new SKU to Z9264f

correcting default sku

Changes for adding tiers

Modified reboot script

Adding new SKU to Z9264f

correcting default sku

Changes for adding tiers

Adding new SKU to Z9264f

correcting default sku

Changes for adding tiers

Modified reboot script

Renaming sai.profile

UT Fixes

Fixing z9100 c32

Modifying c64 sku

Changing default sku

Fixing typo
This commit is contained in:
Sudharsan D.G 2019-05-13 13:36:25 -07:00 committed by lguohan
parent 77b9feaa1f
commit db7c42f750
12 changed files with 2169 additions and 101 deletions

View File

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

View File

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

View File

@ -0,0 +1,13 @@
{# Get sai.profile based on switch_role #}
{%- if DEVICE_METADATA is defined -%}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
{%- if switch_role.lower() == 'torrouter' %}
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-z9264f-64x40G-t0.config.bcm' -%}
{%- else %}
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-z9264f-64x40G-t1.config.bcm' -%}
{%- endif %}
{%- else %}
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-z9264f-64x40G-t1.config.bcm' -%}
{%- endif %}
{# Write the contents of sai_ profile_filename to sai.profile file #}
{{ sai_profile_contents }}

View File

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

View File

@ -1 +1 @@
DellEMC-Z9264f t1
DellEMC-Z9264f-C64 t1

View File

@ -1,25 +0,0 @@
#!/usr/bin/python
import sys
import os
import struct
PORT_RES = '/dev/port'
def portio_reg_write(resource, offset, val):
fd = os.open(resource, os.O_RDWR)
if(fd < 0):
print 'file open failed %s" % resource'
return
if(os.lseek(fd, offset, os.SEEK_SET) != offset):
print 'lseek failed on %s' % resource
return
ret = os.write(fd, struct.pack('B', val))
if(ret != 1):
print 'write failed %d' % ret
return
os.close(fd)
if __name__ == "__main__":
portio_reg_write(PORT_RES, 0xcf9, 0xe)

View File

@ -19,9 +19,9 @@ except ImportError as e:
class SfpUtil(SfpUtilBase):
"""Platform-specific SfpUtil class"""
PORT_START = 0
PORT_END = 63
PORTS_IN_BLOCK = 32
PORT_START = 1
PORT_END = 64
PORTS_IN_BLOCK = 64
BASE_RES_PATH = "/sys/bus/pci/devices/0000:04:00.0/resource0"
@ -39,7 +39,7 @@ class SfpUtil(SfpUtilBase):
@property
def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1)
return range(self.PORT_START, self.PORTS_IN_BLOCK + 1)
@property
def port_to_eeprom_mapping(self):
@ -85,8 +85,8 @@ class SfpUtil(SfpUtilBase):
def __init__(self):
eeprom_path = "/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom"
for x in range(0, self.port_end + 1):
port_num = x + 2
for x in range(self.port_start, self.port_end + 1):
port_num = x + 1
self.port_to_eeprom_mapping[x] = eeprom_path.format(
port_num)
port_num = 0
@ -100,7 +100,7 @@ class SfpUtil(SfpUtilBase):
return False
# Port offset starts with 0x4004
port_offset = 16388 + ((port_num) * 16)
port_offset = 16388 + ((port_num-1) * 16)
status = self.pci_get_value(self.BASE_RES_PATH, port_offset)
reg_value = int(status)
@ -125,7 +125,7 @@ class SfpUtil(SfpUtilBase):
return False
# Port offset starts with 0x4000
port_offset = 16384 + ((port_num) * 16)
port_offset = 16384 + ((port_num-1) * 16)
status = self.pci_get_value(self.BASE_RES_PATH, port_offset)
reg_value = int(status)
@ -150,7 +150,7 @@ class SfpUtil(SfpUtilBase):
return False
# Port offset starts with 0x4000
port_offset = 16384 + ((port_num) * 16)
port_offset = 16384 + ((port_num-1) * 16)
status = self.pci_get_value(self.BASE_RES_PATH, port_offset)
reg_value = int(status)
@ -180,7 +180,7 @@ class SfpUtil(SfpUtilBase):
return False
# Port offset starts with 0x4000
port_offset = 16384 + ((port_num) * 16)
port_offset = 16384 + ((port_num-1) * 16)
status = self.pci_get_value(self.BASE_RES_PATH, port_offset)
reg_value = int(status)

View File

@ -5,3 +5,4 @@ z9264f/scripts/sensors usr/bin
z9264f/scripts/pcisysfs.py usr/bin
z9264f/cfg/z9264f-modules.conf etc/modules-load.d
z9264f/systemd/platform-modules-z9264f.service etc/systemd/system
common/platform_reboot usr/share/sonic/device/x86_64-dellemc_z9264f_c3538-r0