3ad830eb49
Introduce new sonic-buildimage images for Broadcom DNX ASIC family. sonic-broadcom-dnx.bin sonic-aboot-broadcom-dnx.swi How I did it NO CHANGE to existing make commands make init; make configure PLATFORM=broadcom; make target/sonic-aboot-broadcom.swi; make target/sonic-broadcom.bin The difference now is that it will result in new broadcom images for DNX asic family as well. sonic-broadcom.bin, sonic-broadcom-dnx.bin sonic-aboot-broadcom.swi, sonic-aboot-broadcom-dnx.swi Note: This PR also adds support for Broadcom SAI 5.0 (based on 1.8 SAI ) for DNX based platform + changes in platform x86_64-arista_7280cr3_32p4 bcm config files and platform_env.conf files
39 lines
1.0 KiB
Bash
Executable File
39 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
PLATFORM_DIR=/usr/share/sonic/platform
|
|
SYNCD_SOCKET_FILE=/var/run/sswsyncd/sswsyncd.socket
|
|
LED_PROC_INIT_SOC=${PLATFORM_DIR}/led_proc_init.soc
|
|
|
|
# Function: wait until syncd has created the socket for bcmcmd to connect to
|
|
wait_syncd() {
|
|
while true; do
|
|
if [ -e ${SYNCD_SOCKET_FILE} ]; then
|
|
break
|
|
fi
|
|
sleep 1
|
|
done
|
|
|
|
# wait until bcm sdk is ready to get a request
|
|
counter=0
|
|
while true; do
|
|
/usr/bin/bcmcmd -t 1 "show unit" | grep BCM >/dev/null 2>&1
|
|
rv=$?
|
|
if [ $rv -eq 0 ]; then
|
|
break
|
|
fi
|
|
counter=$((counter+1))
|
|
if [ $counter -ge 60 ]; then
|
|
echo "syncd is not ready to take commands after $counter re-tries; Exiting!"
|
|
break
|
|
fi
|
|
sleep 1
|
|
done
|
|
}
|
|
|
|
# If this platform has an initialization file for the Broadcom LED microprocessor, load it
|
|
if [[ -r "$LED_PROC_INIT_SOC" && ! -f /var/warmboot/warm-starting ]]; then
|
|
wait_syncd
|
|
/usr/bin/bcmcmd -t 60 "rcload $LED_PROC_INIT_SOC"
|
|
fi
|
|
|