0405b369af
Why I did it Support Intel Tofino based platforms Netberg Aurora 750 ASIC: Intel Tofino BFN-T10-064Q Pors: 64x 100G How I did it Added specification to device/netberg directory Added platform/barefoot/sonic-platform-modules-netberg contains kernel modules, scripts and sonic_platform packages. Modified the platform/barefoot/platform-modules-netberg.mk to include Aurora 750 related ID. Signed-off-by: Andrew Sapronov <andrew.sapronov@gmail.com>
41 lines
578 B
Bash
41 lines
578 B
Bash
#!/bin/bash
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: setup-board
|
|
# Required-Start:
|
|
# Required-Stop:
|
|
# Should-Start:
|
|
# Should-Stop:
|
|
# Default-Start: S
|
|
# Default-Stop: 0 6
|
|
# Short-Description: Setup Aurora-750 board.
|
|
### END INIT INFO
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Setting up board... "
|
|
|
|
depmod -a
|
|
/usr/sbin/i2c_init.sh
|
|
|
|
echo "done."
|
|
;;
|
|
|
|
stop)
|
|
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
force-reload|restart)
|
|
echo "Not supported"
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: /etc/init.d/sonic-platform-netberg-aurora-750.init {start|stop}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|