Ubuntu 20.04 installation guide on Tofino-enabled Netberg switches

OS installation:

We are going through a standard ONIE procedure.

Please refer to this article if ONIE is missing.

You can make your own ONIE image with the preseed file (https://github.com/opencomputeproject/onie/blob/master/contrib/debian-iso/README.md)

or get a ready to use Ubuntu 20.04 image:

Install OS with the onie-nos-install command from a remote or local source (don’t forget to put debian-preseed.txt near the image).


During installation

Select the proper network device:

e.g. enp8s0: Intel Corporation I210 Gigabit Network Connection.

Agree to a weak password (onie/onie is the default user/password).

Post-intallation steps:

Update repos:

apt update
apt upgrade

Install additional components:

apt install openssh-server build-essential git i2c-tools

Build optoe driver

git clone https://github.com/opencomputeproject/oom.git
cd oom/optoe
echo "obj-m := optoe.o" > Makefile
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install

Install i2c_utils.sh

wget https://github.com/netbergtw/files/raw/master/debian-bsps/aurora-710/i2c_utils.sh -O /usr/sbin/i2c_utils.sh
chmod +x /usr/sbin/i2c_utils.sh

Init the switch

With this, you can initialize the switch i2c tree:

i2c_utils.sh i2c_init

There are a lot of useful i2c_utils.sh options.
Just execute it without parameters to show all of them.

Example of a simple systemd monitoring service

wget https://github.com/netbergtw/files/raw/master/debian-bsps/aurora-710/aurora-710-monitor.service -O /etc/systemd/system/aurora-710-monitor.service
wget https://github.com/netbergtw/files/raw/master/debian-bsps/aurora-710/aurora_710_monitor.sh -O /usr/sbin/aurora_710_monitor.sh
chmod +x /usr/sbin/aurora_710_monitor.sh
systemctl enable aurora-710-monitor

This script will automatically run during the system boot, start the i2c_init function, and control fans/LEDs.

P4 Studion installation on Aurora 750, 710, and 610

Please refer to our FTP for instructions.


Latest news