Skip to content

File tree

212 files changed

+37966
-2768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+37966
-2768
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@
6565
[submodule "src/scapy"]
6666
path = src/scapy
6767
url = https://github.com/secdev/scapy.git
68-
[submodule "platform/mellanox/mlnx-sai/SAI-Implementation"]
69-
path = platform/mellanox/mlnx-sai/SAI-Implementation
70-
url = https://github.com/Mellanox/SAI-Implementation
7168
[submodule "src/sonic-mgmt-framework"]
7269
path = src/sonic-mgmt-framework
7370
url = https://github.com/sonic-net/sonic-mgmt-framework

Makefile.work

+5-5
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ DOCKER_ROOT = $(PWD)/fsroot.docker.$(BLDENV)
176176

177177
# Support FIPS feature, armhf not supported yet
178178
ifeq ($(PLATFORM_ARCH),armhf)
179-
ENABLE_FIPS_FEATURE := n
179+
INCLUDE_FIPS := n
180180
ENABLE_FIPS := n
181181
endif
182182

183-
ifeq ($(ENABLE_FIPS_FEATURE), n)
183+
ifeq ($(INCLUDE_FIPS), n)
184184
ifeq ($(ENABLE_FIPS), y)
185-
$(error Cannot set fips config ENABLE_FIPS=y when ENABLE_FIPS_FEATURE=n)
185+
$(error Cannot set fips config ENABLE_FIPS=y when INCLUDE_FIPS=n)
186186
endif
187187
endif
188188

@@ -209,7 +209,7 @@ $(shell \
209209
$(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) \
210210
MULTIARCH_QEMU_ENVIRON=$(MULTIARCH_QEMU_ENVIRON) \
211211
CROSS_BUILD_ENVIRON=$(CROSS_BUILD_ENVIRON) \
212-
ENABLE_FIPS_FEATURE=$(ENABLE_FIPS_FEATURE) \
212+
INCLUDE_FIPS=$(INCLUDE_FIPS) \
213213
DOCKER_EXTRA_OPTS=$(DOCKER_EXTRA_OPTS) \
214214
DEFAULT_CONTAINER_REGISTRY=$(DEFAULT_CONTAINER_REGISTRY) \
215215
GZ_COMPRESS_PROGRAM=$(GZ_COMPRESS_PROGRAM) \
@@ -562,7 +562,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \
562562
ENABLE_ASAN=$(ENABLE_ASAN) \
563563
SONIC_INCLUDE_BOOTCHART=$(INCLUDE_BOOTCHART) \
564564
SONIC_ENABLE_BOOTCHART=$(ENABLE_BOOTCHART) \
565-
ENABLE_FIPS_FEATURE=$(ENABLE_FIPS_FEATURE) \
565+
INCLUDE_FIPS=$(INCLUDE_FIPS) \
566566
ENABLE_FIPS=$(ENABLE_FIPS) \
567567
SONIC_SLAVE_DOCKER_DRIVER=$(SONIC_SLAVE_DOCKER_DRIVER) \
568568
MIRROR_URLS=$(MIRROR_URLS) \

build_debian.sh

+14
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docke
559559
# Install scapy
560560
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'scapy==2.4.4'
561561

562+
# The option --no-build-isolation can be removed when upgrading PyYAML to 6.0.1
563+
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'PyYAML==5.4.1' --no-build-isolation
564+
562565
## Note: keep pip installed for maintainance purpose
563566

564567
# Install GCC, needed for building/installing some Python packages
@@ -613,6 +616,14 @@ export built_by="$USER@$BUILD_HOSTNAME"
613616
export sonic_os_version="${SONIC_OS_VERSION}"
614617
j2 files/build_templates/sonic_version.yml.j2 | sudo tee $FILESYSTEM_ROOT/etc/sonic/sonic_version.yml
615618

619+
# Default users info
620+
export password_expire="$( [[ "$CHANGE_DEFAULT_PASSWORD" == "y" ]] && echo true || echo false )"
621+
export username="${USERNAME}"
622+
export password="$(sudo grep ^${USERNAME} $FILESYSTEM_ROOT/etc/shadow | cut -d: -f2)"
623+
j2 files/build_templates/default_users.json.j2 | sudo tee $FILESYSTEM_ROOT/etc/sonic/default_users.json
624+
sudo LANG=c chroot $FILESYSTEM_ROOT chmod 600 /etc/sonic/default_users.json
625+
sudo LANG=c chroot $FILESYSTEM_ROOT chown root:shadow /etc/sonic/default_users.json
626+
616627
## Copy over clean-up script
617628
sudo cp ./files/scripts/core_cleanup.py $FILESYSTEM_ROOT/usr/bin/core_cleanup.py
618629

@@ -795,6 +806,9 @@ sudo cp files/image_config/resolv-config/resolv.conf.head $FILESYSTEM_ROOT/etc/r
795806

796807
sudo mksquashfs $FILESYSTEM_ROOT $FILESYSTEM_SQUASHFS -comp zstd -b 1M -e boot -e var/lib/docker -e $PLATFORM_DIR
797808

809+
## Reduce /boot permission
810+
sudo chmod -R go-wx $FILESYSTEM_ROOT/boot
811+
798812
# Ensure admin gid is 1000
799813
gid_user=$(sudo LANG=C chroot $FILESYSTEM_ROOT id -g $USERNAME) || gid_user="none"
800814
if [ "${gid_user}" != "1000" ]; then
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CONSOLE_PORT=0x2f8
22
CONSOLE_DEV=1
33
CONSOLE_SPEED=9600
4-
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="module_blacklist=gpio_ich"
4+
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="module_blacklist=gpio_ich processor.max_cstate=1 intel_idle.max_cstate=0"
Binary file not shown.

device/dell/x86_64-dellemc_s5248f_c3538-r0/DellEMC-S5248f-P-10G/td3-s5248f-10g.config.bcm

+1-2
Original file line numberDiff line numberDiff line change
@@ -350,5 +350,4 @@ dport_map_port_5=55
350350
dport_map_port_41=56
351351

352352
mmu_init_config="TD3-DELL-lossless"
353-
#sai_preinit_cmd_file=/usr/share/sonic/hwsku/sai_preinit_cmd.soc
354-
353+
sai_preinit_cmd_file=/usr/share/sonic/hwsku/sai_preinit_cmd.soc
Binary file not shown.

device/dell/x86_64-dellemc_s5248f_c3538-r0/DellEMC-S5248f-P-25G/td3-s5248f-25g.config.bcm

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,5 +352,5 @@ dport_map_port_5=55
352352
dport_map_port_41=56
353353

354354
mmu_init_config="TD3-DELL-lossless"
355-
#sai_preinit_cmd_file=/usr/share/sonic/hwsku/sai_preinit_cmd.soc
355+
sai_preinit_cmd_file=/usr/share/sonic/hwsku/sai_preinit_cmd.soc
356356

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# LED interface controls
2+
config add sai_led_intf_enable_0=1
3+
config add sai_led_intf_head_0=1
4+
config add sai_led_intf_tail_0=24
5+
config add sai_led_intf_bits_0=2
6+
7+
config add sai_led_intf_enable_1=1
8+
config add sai_led_intf_head_1=25
9+
config add sai_led_intf_tail_1=80
10+
config add sai_led_intf_bits_1=2
11+
12+
# LED data patterns for ON/OFF
13+
config add sai_led_patt_off_0=0x3
14+
config add sai_led_patt_on_0=0x2
15+
16+
# Physical Port --> LED Port (1-based indexing)
17+
# 1-lane port [49-49] Ethernet0 Eth1/1
18+
config add sai_led_portmap_49=2
19+
# 1-lane port [50-50] Ethernet1 Eth1/2
20+
config add sai_led_portmap_50=3
21+
# 1-lane port [51-51] Ethernet2 Eth1/3
22+
config add sai_led_portmap_51=4
23+
# 1-lane port [52-52] Ethernet3 Eth1/4
24+
config add sai_led_portmap_52=5
25+
# 1-lane port [57-57] Ethernet4 Eth1/5
26+
config add sai_led_portmap_57=6
27+
# 1-lane port [58-58] Ethernet5 Eth1/6
28+
config add sai_led_portmap_58=7
29+
# 1-lane port [59-59] Ethernet6 Eth1/7
30+
config add sai_led_portmap_59=8
31+
# 1-lane port [60-60] Ethernet7 Eth1/8
32+
config add sai_led_portmap_60=9
33+
# 1-lane port [61-61] Ethernet8 Eth1/9
34+
config add sai_led_portmap_61=10
35+
# 1-lane port [62-62] Ethernet9 Eth1/10
36+
config add sai_led_portmap_62=11
37+
# 1-lane port [63-63] Ethernet10 Eth1/11
38+
config add sai_led_portmap_63=12
39+
# 1-lane port [64-64] Ethernet11 Eth1/12
40+
config add sai_led_portmap_64=13
41+
# 1-lane port [77-77] Ethernet12 Eth1/13
42+
config add sai_led_portmap_77=14
43+
# 1-lane port [78-78] Ethernet13 Eth1/14
44+
config add sai_led_portmap_78=15
45+
# 1-lane port [79-79] Ethernet14 Eth1/15
46+
config add sai_led_portmap_79=16
47+
# 1-lane port [80-80] Ethernet15 Eth1/16
48+
config add sai_led_portmap_80=17
49+
# 1-lane port [85-85] Ethernet16 Eth1/17
50+
config add sai_led_portmap_85=18
51+
# 1-lane port [86-86] Ethernet17 Eth1/18
52+
config add sai_led_portmap_86=19
53+
# 1-lane port [87-87] Ethernet18 Eth1/19
54+
config add sai_led_portmap_87=20
55+
# 1-lane port [88-88] Ethernet19 Eth1/20
56+
config add sai_led_portmap_88=21
57+
# 1-lane port [93-93] Ethernet20 Eth1/21
58+
config add sai_led_portmap_93=22
59+
# 1-lane port [94-94] Ethernet21 Eth1/22
60+
config add sai_led_portmap_94=23
61+
# 1-lane port [95-95] Ethernet22 Eth1/23
62+
config add sai_led_portmap_95=24
63+
# 1-lane port [96-96] Ethernet23 Eth1/24
64+
config add sai_led_portmap_96=25
65+
# 1-lane port [13-13] Ethernet24 Eth1/25
66+
config add sai_led_portmap_13=26
67+
# 1-lane port [14-14] Ethernet25 Eth1/26
68+
config add sai_led_portmap_14=27
69+
# 1-lane port [15-15] Ethernet26 Eth1/27
70+
config add sai_led_portmap_15=28
71+
# 1-lane port [16-16] Ethernet27 Eth1/28
72+
config add sai_led_portmap_16=29
73+
# 1-lane port [21-21] Ethernet28 Eth1/29
74+
config add sai_led_portmap_21=30
75+
# 1-lane port [22-22] Ethernet29 Eth1/30
76+
config add sai_led_portmap_22=31
77+
# 1-lane port [23-23] Ethernet30 Eth1/31
78+
config add sai_led_portmap_23=32
79+
# 1-lane port [24-24] Ethernet31 Eth1/32
80+
config add sai_led_portmap_24=33
81+
# 1-lane port [29-29] Ethernet32 Eth1/33
82+
config add sai_led_portmap_29=34
83+
# 1-lane port [30-30] Ethernet33 Eth1/34
84+
config add sai_led_portmap_30=35
85+
# 1-lane port [31-31] Ethernet34 Eth1/35
86+
config add sai_led_portmap_31=36
87+
# 1-lane port [32-32] Ethernet35 Eth1/36
88+
config add sai_led_portmap_32=37
89+
# 1-lane port [97-97] Ethernet36 Eth1/37
90+
config add sai_led_portmap_97=38
91+
# 1-lane port [98-98] Ethernet37 Eth1/38
92+
config add sai_led_portmap_98=39
93+
# 1-lane port [99-99] Ethernet38 Eth1/39
94+
config add sai_led_portmap_99=40
95+
# 1-lane port [100-100] Ethernet39 Eth1/40
96+
config add sai_led_portmap_100=41
97+
# 1-lane port [105-105] Ethernet40 Eth1/41
98+
config add sai_led_portmap_105=42
99+
# 1-lane port [106-106] Ethernet41 Eth1/42
100+
config add sai_led_portmap_106=43
101+
# 1-lane port [107-107] Ethernet42 Eth1/43
102+
config add sai_led_portmap_107=44
103+
# 1-lane port [108-108] Ethernet43 Eth1/44
104+
config add sai_led_portmap_108=45
105+
# 1-lane port [113-113] Ethernet44 Eth1/45
106+
config add sai_led_portmap_113=46
107+
# 1-lane port [114-114] Ethernet45 Eth1/46
108+
config add sai_led_portmap_114=47
109+
# 1-lane port [115-115] Ethernet46 Eth1/47
110+
config add sai_led_portmap_115=48
111+
# 1-lane port [116-116] Ethernet47 Eth1/48
112+
config add sai_led_portmap_116=49
113+
# QSFP [121-124] Ethernet48-51 Eth1/49/1-4
114+
config add sai_led_portmap_121=66
115+
config add sai_led_portmap_122=67
116+
config add sai_led_portmap_123=68
117+
config add sai_led_portmap_124=69
118+
# QSFP [125-128] Ethernet52-55 Eth1/50/1-4
119+
config add sai_led_portmap_125=70
120+
config add sai_led_portmap_126=71
121+
config add sai_led_portmap_127=72
122+
config add sai_led_portmap_128=73
123+
# QSFP [69-72] Ethernet56-59 Eth1/51/1-4
124+
config add sai_led_portmap_69=74
125+
config add sai_led_portmap_70=75
126+
config add sai_led_portmap_71=76
127+
config add sai_led_portmap_72=77
128+
# QSFP [65-68] Ethernet60-63 Eth1/52/1-4
129+
config add sai_led_portmap_65=78
130+
config add sai_led_portmap_66=79
131+
config add sai_led_portmap_67=80
132+
config add sai_led_portmap_68=81
133+
# QSFP [1-4] Ethernet64-67 Eth1/53/1-4
134+
config add sai_led_portmap_1=50
135+
config add sai_led_portmap_2=51
136+
config add sai_led_portmap_3=52
137+
config add sai_led_portmap_4=53
138+
# QSFP [33-36] Ethernet68-71 Eth1/54/1-4
139+
config add sai_led_portmap_33=54
140+
config add sai_led_portmap_34=55
141+
config add sai_led_portmap_35=56
142+
config add sai_led_portmap_36=57
143+
# QSFP [5-8] Ethernet72-75 Eth1/55/1-4
144+
config add sai_led_portmap_5=58
145+
config add sai_led_portmap_6=59
146+
config add sai_led_portmap_7=60
147+
config add sai_led_portmap_8=61
148+
# QSFP [41-44] Ethernet76-79 Eth1/56/1-4
149+
config add sai_led_portmap_41=62
150+
config add sai_led_portmap_42=63
151+
config add sai_led_portmap_43=64
152+
config add sai_led_portmap_44=65

device/mellanox/x86_64-mlnx_msn2700-r0/pcie.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
- bus: '00'
3636
dev: '01'
3737
fn: '2'
38-
id: 0159
38+
id: '0159'
3939
name: 'PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI
4040
Express Root Port (rev 09)'
4141
- bus: '00'

device/mellanox/x86_64-mlnx_msn4600c-r0/pcie.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
- bus: '09'
155155
dev: '00'
156156
fn: '0'
157-
id: 1533
157+
id: '1533'
158158
name: 'Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev
159159
03)'
160160
- bus: 'ff'

0 commit comments

Comments
 (0)