forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Innovium build for SONIC 202211 (sonic-net#17613)
* Add platform files for Marvell Innovium platform Add platform files for critical processes and default qos config for Innovium platforms * Fix Marvell innovium build for SONiC202211 * Add debug shell packages for Marvell Innovium platforms
- Loading branch information
1 parent
d264b5e
commit 2ca494d
Showing
9 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
# docker image for innovium syncd | ||
|
||
DOCKER_SYNCD_PLATFORM_CODE = invm | ||
include $(PLATFORM_PATH)/../template/docker-syncd-base.mk | ||
include $(PLATFORM_PATH)/../template/docker-syncd-bullseye.mk | ||
|
||
$(DOCKER_SYNCD_BASE)_DEPENDS += $(SYNCD) $(PYTHON_SDK_API) $(INVM_LIBSAI) | ||
$(DOCKER_SYNCD_BASE)_DEPENDS += $(SYNCD) $(PYTHON_SDK_API) $(INVM_LIBSAI) $(INVM_SHELL) | ||
|
||
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \ | ||
$(LIBSWSSCOMMON_DBG) \ | ||
$(LIBSAIMETADATA_DBG) \ | ||
$(LIBSAIREDIS_DBG) | ||
|
||
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE) | ||
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG) | ||
|
||
$(DOCKER_SYNCD_BASE)_VERSION = 1.0.0 | ||
$(DOCKER_SYNCD_BASE)_PACKAGE_NAME = syncd | ||
$(DOCKER_SYNCD_BASE)_MACHINE = innovium | ||
|
||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
program:syncd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
TOPO_CONF=/usr/share/sonic/platform/topo.conf | ||
if [ -f ${TOPO_CONF} ]; then | ||
topo=`cat ${TOPO_CONF}` | ||
else | ||
topo="none" | ||
fi | ||
|
||
if [ ${topo} != "none" ]; then | ||
BUFFER_CONFIG=/usr/share/sonic/hwsku/buffers_defaults_${topo}.j2 | ||
QOS_CONFIG=/usr/share/sonic/hwsku/qos_defaults_${topo}.j2 | ||
|
||
if [ "$(/usr/local/bin/sonic-cfggen -d -v TC_TO_PRIORITY_GROUP_MAP)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v MAP_PFC_PRIORITY_TO_QUEUE)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v TC_TO_QUEUE_MAP)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v DSCP_TO_TC_MAP)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v SCHEDULER)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v PFC_PRIORITY_TO_PRIORITY_GROUP_MAP)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v PORT_QOS_MAP)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v WRED_PROFILE)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v QUEUE)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v CABLE_LENGTH)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v BUFFER_POOL)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v BUFFER_PROFILE)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v BUFFER_PG)" ] || \ | ||
[ "$(/usr/local/bin/sonic-cfggen -d -v BUFFER_QUEUE)" ]; then | ||
echo "Database has QoS settings, skip loading defaults" | ||
elif [ -f "$BUFFER_CONFIG" ] && [ -f "$QOS_CONFIG" ]; then | ||
/usr/local/bin/sonic-cfggen -d -t $BUFFER_CONFIG >/tmp/buffers.json | ||
/usr/local/bin/sonic-cfggen -d -t $QOS_CONFIG -y /etc/sonic/sonic_version.yml >/tmp/qos.json | ||
/usr/local/bin/sonic-cfggen -j /tmp/buffers.json --write-to-db | ||
/usr/local/bin/sonic-cfggen -j /tmp/qos.json --write-to-db | ||
else | ||
echo "File not found (${BUFFER_CONFIG} and/or ${QOS_CONFIG})" | ||
fi | ||
else | ||
echo "Skip QoS config" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -f /usr/bin/ivm_start.sh ]; | ||
then | ||
/usr/bin/ivm_start.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# INVM SAI | ||
|
||
INVM_SAI_ONLINE = https://github.com/Innovium/SONiC/raw/master/debian/master | ||
INVM_SAI_ONLINE = https://github.com/Innovium/SONiC/raw/master/debian/202211 | ||
|
||
INVM_LIBSAI = isai.deb | ||
INVM_HSAI = saihdr.deb | ||
INVM_DRV = ipd.deb | ||
INVM_SHELL = ishell.deb | ||
|
||
$(INVM_LIBSAI)_URL = $(INVM_SAI_ONLINE)/$(INVM_LIBSAI) | ||
$(INVM_HSAI)_URL = $(INVM_SAI_ONLINE)/$(INVM_HSAI) | ||
$(INVM_DRV)_URL = $(INVM_SAI_ONLINE)/$(INVM_DRV) | ||
$(INVM_SHELL)_URL = $(INVM_SAI_ONLINE)/$(INVM_SHELL) | ||
|
||
$(eval $(call add_conflict_package,$(INVM_HSAI),$(LIBSAIVS_DEV))) | ||
|
||
SONIC_ONLINE_DEBS += $(INVM_LIBSAI) $(INVM_HSAI) $(INVM_DRV) | ||
SONIC_ONLINE_DEBS += $(INVM_LIBSAI) $(INVM_HSAI) $(INVM_DRV) $(INVM_SHELL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters